From f1984dc2f2a48bb1cde55e6fc8426e7d3f677f59 Mon Sep 17 00:00:00 2001 From: github-actions Date: Wed, 18 Dec 2024 00:42:12 +0000 Subject: [PATCH] Release v1.105.0 --- .github/workflows/e2e-target.yaml | 61 - .github/workflows/e2e.yaml | 44 - .github/workflows/release.yaml | 27 - .github/workflows/ts.yaml | 56 - .gitignore | 2 +- dist/index.js | 220914 +++++++++++++++++++++++++++ dist/index.js.map | 1 + dist/licenses.txt | 1166 + dist/package.json | 3 + dist/sourcemap-register.cjs | 1 + 10 files changed, 222086 insertions(+), 189 deletions(-) delete mode 100644 .github/workflows/e2e-target.yaml delete mode 100644 .github/workflows/e2e.yaml delete mode 100644 .github/workflows/release.yaml delete mode 100644 .github/workflows/ts.yaml create mode 100644 dist/index.js create mode 100644 dist/index.js.map create mode 100644 dist/licenses.txt create mode 100644 dist/package.json create mode 100644 dist/sourcemap-register.cjs diff --git a/.github/workflows/e2e-target.yaml b/.github/workflows/e2e-target.yaml deleted file mode 100644 index 101f16d2..00000000 --- a/.github/workflows/e2e-target.yaml +++ /dev/null @@ -1,61 +0,0 @@ -name: e2e-target - -on: - workflow_run: - workflows: - - ts - types: - - completed - -jobs: - test: - name: test / ${{ github.event_name }} / ${{ github.event.action }} - runs-on: ubuntu-latest - timeout-minutes: 10 - permissions: - actions: read - checks: write - contents: read - steps: - - name: Event - uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 - with: - script: | - core.info(`eventName=${context.eventName}`) - core.info(`sha=${context.sha}`) - core.info(`ref=${context.ref}`) - core.info(`actor=${context.actor}`) - core.info(`payload=${JSON.stringify(context.payload, undefined, 2)}`) - - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - with: - ref: ${{ github.event.workflow_run.head_sha }} - - uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 - with: - node-version: 20 - - run: corepack enable pnpm - - run: pnpm i - - run: pnpm build - - - uses: ./ - with: - datadog-api-key: ${{ secrets.DATADOG_API_KEY }} - collect-job-metrics: true - collect-step-metrics: true - - - if: always() - uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 - with: - script: | - const details_url = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}` - await github.rest.checks.create({ - ...context.repo, - name: 'e2e-target', - head_sha: context.payload.workflow_run.head_sha, - conclusion: '${{ job.status }}', - details_url, - output: { - title: '${{ job.status }}', - summary: details_url, - }, - }) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml deleted file mode 100644 index ba555209..00000000 --- a/.github/workflows/e2e.yaml +++ /dev/null @@ -1,44 +0,0 @@ -name: e2e - -on: - workflow_run: - workflows: - - '**' - types: - - completed - pull_request: - types: - - opened - - closed - push: - branches: - - main - schedule: - - cron: '0 * * * *' # hourly - -jobs: - test: - name: test / ${{ github.event_name }} / ${{ github.event.action }} - runs-on: ubuntu-latest - timeout-minutes: 10 - permissions: - actions: read - checks: read - contents: read - pull-requests: read - steps: - - name: Event - uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 - with: - script: | - core.info(`eventName=${context.eventName}`) - core.info(`sha=${context.sha}`) - core.info(`ref=${context.ref}`) - core.info(`actor=${context.actor}`) - core.info(`payload=${JSON.stringify(context.payload, undefined, 2)}`) - - - uses: int128/datadog-actions-metrics@v1 - with: - datadog-api-key: ${{ secrets.DATADOG_API_KEY }} - collect-job-metrics: true - collect-step-metrics: true diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml deleted file mode 100644 index 00ee6eda..00000000 --- a/.github/workflows/release.yaml +++ /dev/null @@ -1,27 +0,0 @@ -name: release - -on: - pull_request: - paths: - - .github/workflows/release.yaml - push: - branches: - - main - tags: - - v* - -jobs: - tag: - runs-on: ubuntu-latest - timeout-minutes: 10 - permissions: - contents: write - steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 - with: - node-version: 20 - - run: corepack enable pnpm - - run: pnpm i - - run: pnpm build - - uses: int128/release-typescript-action@5c561f7c79fbe5981a4e91a58735a7d124a70022 # v1.34.0 diff --git a/.github/workflows/ts.yaml b/.github/workflows/ts.yaml deleted file mode 100644 index 625ebc98..00000000 --- a/.github/workflows/ts.yaml +++ /dev/null @@ -1,56 +0,0 @@ -name: ts - -on: - pull_request: - paths: - - src/** - - tests/** - - '*.json' - - '*.yaml' - - graphql-codegen.* - - .github/workflows/ts.yaml - push: - branches: - - main - paths: - - src/** - - tests/** - - '*.json' - - '*.yaml' - - graphql-codegen.* - - .github/workflows/ts.yaml - -jobs: - test: - runs-on: ubuntu-latest - timeout-minutes: 10 - steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 - with: - node-version: 20 - - run: corepack enable pnpm - - run: pnpm i - - run: pnpm test - - run: pnpm build - - - name: smoke test - uses: ./ - - generate: - runs-on: ubuntu-latest - timeout-minutes: 10 - permissions: - contents: write - pull-requests: write - steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 - with: - node-version: 20 - - run: corepack enable pnpm - - run: pnpm i - - run: pnpm lint --fix - - run: pnpm format - - run: pnpm graphql-codegen - - uses: int128/update-generated-files-action@7eb71af1ae8e30d970ea5512d23fd2f4b0eae44c # v2.56.0 diff --git a/.gitignore b/.gitignore index 682ebc1c..ecc01059 100644 --- a/.gitignore +++ b/.gitignore @@ -98,4 +98,4 @@ Thumbs.db lib/ # Only release tag contains dist directory -/dist + diff --git a/dist/index.js b/dist/index.js new file mode 100644 index 00000000..1959c713 --- /dev/null +++ b/dist/index.js @@ -0,0 +1,220914 @@ +import './sourcemap-register.cjs';import { createRequire as __WEBPACK_EXTERNAL_createRequire } from "module"; +/******/ var __webpack_modules__ = ({ + +/***/ 83191: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.issue = exports.issueCommand = void 0; +const os = __importStar(__nccwpck_require__(70857)); +const utils_1 = __nccwpck_require__(96283); +/** + * Commands + * + * Command Format: + * ::name key=value,key=value::message + * + * Examples: + * ::warning::This is the message + * ::set-env name=MY_VAR::some value + */ +function issueCommand(command, properties, message) { + const cmd = new Command(command, properties, message); + process.stdout.write(cmd.toString() + os.EOL); +} +exports.issueCommand = issueCommand; +function issue(name, message = '') { + issueCommand(name, {}, message); +} +exports.issue = issue; +const CMD_STRING = '::'; +class Command { + constructor(command, properties, message) { + if (!command) { + command = 'missing.command'; + } + this.command = command; + this.properties = properties; + this.message = message; + } + toString() { + let cmdStr = CMD_STRING + this.command; + if (this.properties && Object.keys(this.properties).length > 0) { + cmdStr += ' '; + let first = true; + for (const key in this.properties) { + if (this.properties.hasOwnProperty(key)) { + const val = this.properties[key]; + if (val) { + if (first) { + first = false; + } + else { + cmdStr += ','; + } + cmdStr += `${key}=${escapeProperty(val)}`; + } + } + } + } + cmdStr += `${CMD_STRING}${escapeData(this.message)}`; + return cmdStr; + } +} +function escapeData(s) { + return (0, utils_1.toCommandValue)(s) + .replace(/%/g, '%25') + .replace(/\r/g, '%0D') + .replace(/\n/g, '%0A'); +} +function escapeProperty(s) { + return (0, utils_1.toCommandValue)(s) + .replace(/%/g, '%25') + .replace(/\r/g, '%0D') + .replace(/\n/g, '%0A') + .replace(/:/g, '%3A') + .replace(/,/g, '%2C'); +} +//# sourceMappingURL=command.js.map + +/***/ }), + +/***/ 59999: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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()); + }); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +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__(83191); +const file_command_1 = __nccwpck_require__(59058); +const utils_1 = __nccwpck_require__(96283); +const os = __importStar(__nccwpck_require__(70857)); +const path = __importStar(__nccwpck_require__(16928)); +const oidc_utils_1 = __nccwpck_require__(53549); +/** + * The code to exit an action + */ +var ExitCode; +(function (ExitCode) { + /** + * A code indicating that the action was successful + */ + ExitCode[ExitCode["Success"] = 0] = "Success"; + /** + * A code indicating that the action was a failure + */ + ExitCode[ExitCode["Failure"] = 1] = "Failure"; +})(ExitCode || (exports.ExitCode = ExitCode = {})); +//----------------------------------------------------------------------- +// Variables +//----------------------------------------------------------------------- +/** + * Sets env variable for this action and future actions in the job + * @param name the name of the variable to set + * @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify + */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function exportVariable(name, val) { + const convertedVal = (0, utils_1.toCommandValue)(val); + process.env[name] = convertedVal; + const filePath = process.env['GITHUB_ENV'] || ''; + if (filePath) { + return (0, file_command_1.issueFileCommand)('ENV', (0, file_command_1.prepareKeyValueMessage)(name, val)); + } + (0, command_1.issueCommand)('set-env', { name }, convertedVal); +} +exports.exportVariable = exportVariable; +/** + * Registers a secret which will get masked from logs + * @param secret value of the secret + */ +function setSecret(secret) { + (0, command_1.issueCommand)('add-mask', {}, secret); +} +exports.setSecret = setSecret; +/** + * Prepends inputPath to the PATH (for this action and future actions) + * @param inputPath + */ +function addPath(inputPath) { + const filePath = process.env['GITHUB_PATH'] || ''; + if (filePath) { + (0, file_command_1.issueFileCommand)('PATH', inputPath); + } + else { + (0, command_1.issueCommand)('add-path', {}, inputPath); + } + process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`; +} +exports.addPath = addPath; +/** + * Gets the value of an input. + * Unless trimWhitespace is set to false in InputOptions, the value is also trimmed. + * Returns an empty string if the value is not defined. + * + * @param name name of the input to get + * @param options optional. See InputOptions. + * @returns string + */ +function getInput(name, options) { + const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || ''; + if (options && options.required && !val) { + throw new Error(`Input required and not supplied: ${name}`); + } + if (options && options.trimWhitespace === false) { + return val; + } + return val.trim(); +} +exports.getInput = getInput; +/** + * Gets the values of an multiline input. Each value is also trimmed. + * + * @param name name of the input to get + * @param options optional. See InputOptions. + * @returns string[] + * + */ +function getMultilineInput(name, options) { + const inputs = getInput(name, options) + .split('\n') + .filter(x => x !== ''); + if (options && options.trimWhitespace === false) { + return inputs; + } + return inputs.map(input => input.trim()); +} +exports.getMultilineInput = getMultilineInput; +/** + * Gets the input value of the boolean type in the YAML 1.2 "core schema" specification. + * Support boolean input list: `true | True | TRUE | false | False | FALSE` . + * The return value is also in boolean type. + * ref: https://yaml.org/spec/1.2/spec.html#id2804923 + * + * @param name name of the input to get + * @param options optional. See InputOptions. + * @returns boolean + */ +function getBooleanInput(name, options) { + const trueValue = ['true', 'True', 'TRUE']; + const falseValue = ['false', 'False', 'FALSE']; + const val = getInput(name, options); + if (trueValue.includes(val)) + return true; + if (falseValue.includes(val)) + return false; + throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name}\n` + + `Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); +} +exports.getBooleanInput = getBooleanInput; +/** + * Sets the value of an output. + * + * @param name name of the output to set + * @param value value to store. Non-string values will be converted to a string via JSON.stringify + */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function setOutput(name, value) { + const filePath = process.env['GITHUB_OUTPUT'] || ''; + if (filePath) { + return (0, file_command_1.issueFileCommand)('OUTPUT', (0, file_command_1.prepareKeyValueMessage)(name, value)); + } + process.stdout.write(os.EOL); + (0, command_1.issueCommand)('set-output', { name }, (0, utils_1.toCommandValue)(value)); +} +exports.setOutput = setOutput; +/** + * Enables or disables the echoing of commands into stdout for the rest of the step. + * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set. + * + */ +function setCommandEcho(enabled) { + (0, command_1.issue)('echo', enabled ? 'on' : 'off'); +} +exports.setCommandEcho = setCommandEcho; +//----------------------------------------------------------------------- +// Results +//----------------------------------------------------------------------- +/** + * Sets the action status to failed. + * When the action exits it will be with an exit code of 1 + * @param message add error issue message + */ +function setFailed(message) { + process.exitCode = ExitCode.Failure; + error(message); +} +exports.setFailed = setFailed; +//----------------------------------------------------------------------- +// Logging Commands +//----------------------------------------------------------------------- +/** + * Gets whether Actions Step Debug is on or not + */ +function isDebug() { + return process.env['RUNNER_DEBUG'] === '1'; +} +exports.isDebug = isDebug; +/** + * Writes debug message to user log + * @param message debug message + */ +function debug(message) { + (0, command_1.issueCommand)('debug', {}, message); +} +exports.debug = debug; +/** + * Adds an error issue + * @param message error issue message. Errors will be converted to string via toString() + * @param properties optional properties to add to the annotation. + */ +function error(message, properties = {}) { + (0, command_1.issueCommand)('error', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message); +} +exports.error = error; +/** + * Adds a warning issue + * @param message warning issue message. Errors will be converted to string via toString() + * @param properties optional properties to add to the annotation. + */ +function warning(message, properties = {}) { + (0, command_1.issueCommand)('warning', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message); +} +exports.warning = warning; +/** + * Adds a notice issue + * @param message notice issue message. Errors will be converted to string via toString() + * @param properties optional properties to add to the annotation. + */ +function notice(message, properties = {}) { + (0, command_1.issueCommand)('notice', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message); +} +exports.notice = notice; +/** + * Writes info to log with console.log. + * @param message info message + */ +function info(message) { + process.stdout.write(message + os.EOL); +} +exports.info = info; +/** + * Begin an output group. + * + * Output until the next `groupEnd` will be foldable in this group + * + * @param name The name of the output group + */ +function startGroup(name) { + (0, command_1.issue)('group', name); +} +exports.startGroup = startGroup; +/** + * End an output group. + */ +function endGroup() { + (0, command_1.issue)('endgroup'); +} +exports.endGroup = endGroup; +/** + * Wrap an asynchronous function call in a group. + * + * Returns the same type as the function itself. + * + * @param name The name of the group + * @param fn The function to wrap in the group + */ +function group(name, fn) { + return __awaiter(this, void 0, void 0, function* () { + startGroup(name); + let result; + try { + result = yield fn(); + } + finally { + endGroup(); + } + return result; + }); +} +exports.group = group; +//----------------------------------------------------------------------- +// Wrapper action state +//----------------------------------------------------------------------- +/** + * Saves state for current action, the state can only be retrieved by this action's post job execution. + * + * @param name name of the state to store + * @param value value to store. Non-string values will be converted to a string via JSON.stringify + */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function saveState(name, value) { + const filePath = process.env['GITHUB_STATE'] || ''; + if (filePath) { + return (0, file_command_1.issueFileCommand)('STATE', (0, file_command_1.prepareKeyValueMessage)(name, value)); + } + (0, command_1.issueCommand)('save-state', { name }, (0, utils_1.toCommandValue)(value)); +} +exports.saveState = saveState; +/** + * Gets the value of an state set by this action's main execution. + * + * @param name name of the state to get + * @returns string + */ +function getState(name) { + return process.env[`STATE_${name}`] || ''; +} +exports.getState = getState; +function getIDToken(aud) { + return __awaiter(this, void 0, void 0, function* () { + return yield oidc_utils_1.OidcClient.getIDToken(aud); + }); +} +exports.getIDToken = getIDToken; +/** + * Summary exports + */ +var summary_1 = __nccwpck_require__(71638); +Object.defineProperty(exports, "summary", ({ enumerable: true, get: function () { return summary_1.summary; } })); +/** + * @deprecated use core.summary + */ +var summary_2 = __nccwpck_require__(71638); +Object.defineProperty(exports, "markdownSummary", ({ enumerable: true, get: function () { return summary_2.markdownSummary; } })); +/** + * Path exports + */ +var path_utils_1 = __nccwpck_require__(40539); +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__(22563)); +//# sourceMappingURL=core.js.map + +/***/ }), + +/***/ 59058: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +// For internal use, subject to change. +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.prepareKeyValueMessage = exports.issueFileCommand = void 0; +// We use any as a valid input type +/* eslint-disable @typescript-eslint/no-explicit-any */ +const crypto = __importStar(__nccwpck_require__(76982)); +const fs = __importStar(__nccwpck_require__(79896)); +const os = __importStar(__nccwpck_require__(70857)); +const utils_1 = __nccwpck_require__(96283); +function issueFileCommand(command, message) { + const filePath = process.env[`GITHUB_${command}`]; + if (!filePath) { + throw new Error(`Unable to find environment variable for file command ${command}`); + } + if (!fs.existsSync(filePath)) { + throw new Error(`Missing file at path: ${filePath}`); + } + fs.appendFileSync(filePath, `${(0, utils_1.toCommandValue)(message)}${os.EOL}`, { + encoding: 'utf8' + }); +} +exports.issueFileCommand = issueFileCommand; +function prepareKeyValueMessage(key, 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. + if (key.includes(delimiter)) { + throw new Error(`Unexpected input: name should not contain the delimiter "${delimiter}"`); + } + if (convertedValue.includes(delimiter)) { + throw new Error(`Unexpected input: value should not contain the delimiter "${delimiter}"`); + } + return `${key}<<${delimiter}${os.EOL}${convertedValue}${os.EOL}${delimiter}`; +} +exports.prepareKeyValueMessage = prepareKeyValueMessage; +//# sourceMappingURL=file-command.js.map + +/***/ }), + +/***/ 53549: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.OidcClient = void 0; +const http_client_1 = __nccwpck_require__(80787); +const auth_1 = __nccwpck_require__(63673); +const core_1 = __nccwpck_require__(59999); +class OidcClient { + static createHttpClient(allowRetry = true, maxRetry = 10) { + const requestOptions = { + allowRetries: allowRetry, + maxRetries: maxRetry + }; + return new http_client_1.HttpClient('actions/oidc-client', [new auth_1.BearerCredentialHandler(OidcClient.getRequestToken())], requestOptions); + } + static getRequestToken() { + const token = process.env['ACTIONS_ID_TOKEN_REQUEST_TOKEN']; + if (!token) { + throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable'); + } + return token; + } + static getIDTokenUrl() { + const runtimeUrl = process.env['ACTIONS_ID_TOKEN_REQUEST_URL']; + if (!runtimeUrl) { + throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable'); + } + return runtimeUrl; + } + static getCall(id_token_url) { + var _a; + return __awaiter(this, void 0, void 0, function* () { + const httpclient = OidcClient.createHttpClient(); + const res = yield httpclient + .getJson(id_token_url) + .catch(error => { + throw new Error(`Failed to get ID Token. \n + Error Code : ${error.statusCode}\n + Error Message: ${error.message}`); + }); + const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value; + if (!id_token) { + throw new Error('Response json body do not have ID Token field'); + } + return id_token; + }); + } + static getIDToken(audience) { + return __awaiter(this, void 0, void 0, function* () { + try { + // New ID Token is requested from action service + let id_token_url = OidcClient.getIDTokenUrl(); + if (audience) { + const encodedAudience = encodeURIComponent(audience); + id_token_url = `${id_token_url}&audience=${encodedAudience}`; + } + (0, core_1.debug)(`ID token url is ${id_token_url}`); + const id_token = yield OidcClient.getCall(id_token_url); + (0, core_1.setSecret)(id_token); + return id_token; + } + catch (error) { + throw new Error(`Error message: ${error.message}`); + } + }); + } +} +exports.OidcClient = OidcClient; +//# sourceMappingURL=oidc-utils.js.map + +/***/ }), + +/***/ 40539: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.toPlatformPath = exports.toWin32Path = exports.toPosixPath = void 0; +const path = __importStar(__nccwpck_require__(16928)); +/** + * toPosixPath converts the given path to the posix form. On Windows, \\ will be + * replaced with /. + * + * @param pth. Path to transform. + * @return string Posix path. + */ +function toPosixPath(pth) { + return pth.replace(/[\\]/g, '/'); +} +exports.toPosixPath = toPosixPath; +/** + * toWin32Path converts the given path to the win32 form. On Linux, / will be + * replaced with \\. + * + * @param pth. Path to transform. + * @return string Win32 path. + */ +function toWin32Path(pth) { + return pth.replace(/[/]/g, '\\'); +} +exports.toWin32Path = toWin32Path; +/** + * toPlatformPath converts the given path to a platform-specific path. It does + * this by replacing instances of / and \ with the platform-specific path + * separator. + * + * @param pth The path to platformize. + * @return string The platform-specific path. + */ +function toPlatformPath(pth) { + return pth.replace(/[/\\]/g, path.sep); +} +exports.toPlatformPath = toPlatformPath; +//# sourceMappingURL=path-utils.js.map + +/***/ }), + +/***/ 22563: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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__(58872)); +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 + +/***/ }), + +/***/ 71638: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.summary = exports.markdownSummary = exports.SUMMARY_DOCS_URL = exports.SUMMARY_ENV_VAR = void 0; +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'; +class Summary { + constructor() { + this._buffer = ''; + } + /** + * Finds the summary file path from the environment, rejects if env var is not found or file does not exist + * Also checks r/w permissions. + * + * @returns step summary file path + */ + filePath() { + return __awaiter(this, void 0, void 0, function* () { + if (this._filePath) { + return this._filePath; + } + const pathFromEnv = process.env[exports.SUMMARY_ENV_VAR]; + if (!pathFromEnv) { + throw new Error(`Unable to find environment variable for $${exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`); + } + try { + yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK); + } + catch (_a) { + throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`); + } + this._filePath = pathFromEnv; + return this._filePath; + }); + } + /** + * Wraps content in an HTML tag, adding any HTML attributes + * + * @param {string} tag HTML tag to wrap + * @param {string | null} content content within the tag + * @param {[attribute: string]: string} attrs key-value list of HTML attributes to add + * + * @returns {string} content wrapped in HTML element + */ + wrap(tag, content, attrs = {}) { + const htmlAttrs = Object.entries(attrs) + .map(([key, value]) => ` ${key}="${value}"`) + .join(''); + if (!content) { + return `<${tag}${htmlAttrs}>`; + } + return `<${tag}${htmlAttrs}>${content}`; + } + /** + * Writes text in the buffer to the summary buffer file and empties buffer. Will append by default. + * + * @param {SummaryWriteOptions} [options] (optional) options for write operation + * + * @returns {Promise} summary instance + */ + write(options) { + return __awaiter(this, void 0, void 0, function* () { + const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite); + const filePath = yield this.filePath(); + const writeFunc = overwrite ? writeFile : appendFile; + yield writeFunc(filePath, this._buffer, { encoding: 'utf8' }); + return this.emptyBuffer(); + }); + } + /** + * Clears the summary buffer and wipes the summary file + * + * @returns {Summary} summary instance + */ + clear() { + return __awaiter(this, void 0, void 0, function* () { + return this.emptyBuffer().write({ overwrite: true }); + }); + } + /** + * Returns the current summary buffer as a string + * + * @returns {string} string of summary buffer + */ + stringify() { + return this._buffer; + } + /** + * If the summary buffer is empty + * + * @returns {boolen} true if the buffer is empty + */ + isEmptyBuffer() { + return this._buffer.length === 0; + } + /** + * Resets the summary buffer without writing to summary file + * + * @returns {Summary} summary instance + */ + emptyBuffer() { + this._buffer = ''; + return this; + } + /** + * Adds raw text to the summary buffer + * + * @param {string} text content to add + * @param {boolean} [addEOL=false] (optional) append an EOL to the raw text (default: false) + * + * @returns {Summary} summary instance + */ + addRaw(text, addEOL = false) { + this._buffer += text; + return addEOL ? this.addEOL() : this; + } + /** + * Adds the operating system-specific end-of-line marker to the buffer + * + * @returns {Summary} summary instance + */ + addEOL() { + return this.addRaw(os_1.EOL); + } + /** + * Adds an HTML codeblock to the summary buffer + * + * @param {string} code content to render within fenced code block + * @param {string} lang (optional) language to syntax highlight code + * + * @returns {Summary} summary instance + */ + addCodeBlock(code, lang) { + const attrs = Object.assign({}, (lang && { lang })); + const element = this.wrap('pre', this.wrap('code', code), attrs); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML list to the summary buffer + * + * @param {string[]} items list of items to render + * @param {boolean} [ordered=false] (optional) if the rendered list should be ordered or not (default: false) + * + * @returns {Summary} summary instance + */ + addList(items, ordered = false) { + const tag = ordered ? 'ol' : 'ul'; + const listItems = items.map(item => this.wrap('li', item)).join(''); + const element = this.wrap(tag, listItems); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML table to the summary buffer + * + * @param {SummaryTableCell[]} rows table rows + * + * @returns {Summary} summary instance + */ + addTable(rows) { + const tableBody = rows + .map(row => { + const cells = row + .map(cell => { + if (typeof cell === 'string') { + return this.wrap('td', cell); + } + const { header, data, colspan, rowspan } = cell; + const tag = header ? 'th' : 'td'; + const attrs = Object.assign(Object.assign({}, (colspan && { colspan })), (rowspan && { rowspan })); + return this.wrap(tag, data, attrs); + }) + .join(''); + return this.wrap('tr', cells); + }) + .join(''); + const element = this.wrap('table', tableBody); + return this.addRaw(element).addEOL(); + } + /** + * Adds a collapsable HTML details element to the summary buffer + * + * @param {string} label text for the closed state + * @param {string} content collapsable content + * + * @returns {Summary} summary instance + */ + addDetails(label, content) { + const element = this.wrap('details', this.wrap('summary', label) + content); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML image tag to the summary buffer + * + * @param {string} src path to the image you to embed + * @param {string} alt text description of the image + * @param {SummaryImageOptions} options (optional) addition image attributes + * + * @returns {Summary} summary instance + */ + addImage(src, alt, options) { + const { width, height } = options || {}; + const attrs = Object.assign(Object.assign({}, (width && { width })), (height && { height })); + const element = this.wrap('img', null, Object.assign({ src, alt }, attrs)); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML section heading element + * + * @param {string} text heading text + * @param {number | string} [level=1] (optional) the heading level, default: 1 + * + * @returns {Summary} summary instance + */ + addHeading(text, level) { + const tag = `h${level}`; + const allowedTag = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'].includes(tag) + ? tag + : 'h1'; + const element = this.wrap(allowedTag, text); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML thematic break (
) to the summary buffer + * + * @returns {Summary} summary instance + */ + addSeparator() { + const element = this.wrap('hr', null); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML line break (
) to the summary buffer + * + * @returns {Summary} summary instance + */ + addBreak() { + const element = this.wrap('br', null); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML blockquote to the summary buffer + * + * @param {string} text quote text + * @param {string} cite (optional) citation url + * + * @returns {Summary} summary instance + */ + addQuote(text, cite) { + const attrs = Object.assign({}, (cite && { cite })); + const element = this.wrap('blockquote', text, attrs); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML anchor tag to the summary buffer + * + * @param {string} text link text/content + * @param {string} href hyperlink + * + * @returns {Summary} summary instance + */ + addLink(text, href) { + const element = this.wrap('a', text, { href }); + return this.addRaw(element).addEOL(); + } +} +const _summary = new Summary(); +/** + * @deprecated use `core.summary` + */ +exports.markdownSummary = _summary; +exports.summary = _summary; +//# sourceMappingURL=summary.js.map + +/***/ }), + +/***/ 96283: +/***/ ((__unused_webpack_module, exports) => { + + +// We use any as a valid input type +/* eslint-disable @typescript-eslint/no-explicit-any */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.toCommandProperties = exports.toCommandValue = void 0; +/** + * Sanitizes an input into a string so it can be passed into issueCommand safely + * @param input input to sanitize into a string + */ +function toCommandValue(input) { + if (input === null || input === undefined) { + return ''; + } + else if (typeof input === 'string' || input instanceof String) { + return input; + } + return JSON.stringify(input); +} +exports.toCommandValue = toCommandValue; +/** + * + * @param annotationProperties + * @returns The command properties to send with the actual annotation command + * See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646 + */ +function toCommandProperties(annotationProperties) { + if (!Object.keys(annotationProperties).length) { + return {}; + } + return { + title: annotationProperties.title, + file: annotationProperties.file, + line: annotationProperties.startLine, + endLine: annotationProperties.endLine, + col: annotationProperties.startColumn, + endColumn: annotationProperties.endColumn + }; +} +exports.toCommandProperties = toCommandProperties; +//# sourceMappingURL=utils.js.map + +/***/ }), + +/***/ 58872: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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__(35574); +const tr = __importStar(__nccwpck_require__(73725)); +/** + * 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 + +/***/ }), + +/***/ 73725: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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__(73357)); +const ioUtil = __importStar(__nccwpck_require__(52746)); +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 + +/***/ }), + +/***/ 63721: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Context = void 0; +const fs_1 = __nccwpck_require__(79896); +const os_1 = __nccwpck_require__(70857); +class Context { + /** + * Hydrate the context from the environment + */ + constructor() { + var _a, _b, _c; + this.payload = {}; + if (process.env.GITHUB_EVENT_PATH) { + if ((0, fs_1.existsSync)(process.env.GITHUB_EVENT_PATH)) { + this.payload = JSON.parse((0, fs_1.readFileSync)(process.env.GITHUB_EVENT_PATH, { encoding: 'utf8' })); + } + else { + const path = process.env.GITHUB_EVENT_PATH; + process.stdout.write(`GITHUB_EVENT_PATH ${path} does not exist${os_1.EOL}`); + } + } + this.eventName = process.env.GITHUB_EVENT_NAME; + this.sha = process.env.GITHUB_SHA; + this.ref = process.env.GITHUB_REF; + this.workflow = process.env.GITHUB_WORKFLOW; + this.action = process.env.GITHUB_ACTION; + this.actor = process.env.GITHUB_ACTOR; + this.job = process.env.GITHUB_JOB; + this.runNumber = parseInt(process.env.GITHUB_RUN_NUMBER, 10); + this.runId = parseInt(process.env.GITHUB_RUN_ID, 10); + this.apiUrl = (_a = process.env.GITHUB_API_URL) !== null && _a !== void 0 ? _a : `https://api.github.com`; + this.serverUrl = (_b = process.env.GITHUB_SERVER_URL) !== null && _b !== void 0 ? _b : `https://github.com`; + this.graphqlUrl = + (_c = process.env.GITHUB_GRAPHQL_URL) !== null && _c !== void 0 ? _c : `https://api.github.com/graphql`; + } + get issue() { + const payload = this.payload; + return Object.assign(Object.assign({}, this.repo), { number: (payload.issue || payload.pull_request || payload).number }); + } + get repo() { + if (process.env.GITHUB_REPOSITORY) { + const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/'); + return { owner, repo }; + } + if (this.payload.repository) { + return { + owner: this.payload.repository.owner.login, + repo: this.payload.repository.name + }; + } + throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'"); + } +} +exports.Context = Context; +//# sourceMappingURL=context.js.map + +/***/ }), + +/***/ 22819: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.getOctokit = exports.context = void 0; +const Context = __importStar(__nccwpck_require__(63721)); +const utils_1 = __nccwpck_require__(14655); +exports.context = new Context.Context(); +/** + * Returns a hydrated octokit ready to use for GitHub Actions + * + * @param token the repo PAT or GITHUB_TOKEN + * @param options other options to set + */ +function getOctokit(token, options, ...additionalPlugins) { + const GitHubWithPlugins = utils_1.GitHub.plugin(...additionalPlugins); + return new GitHubWithPlugins((0, utils_1.getOctokitOptions)(token, options)); +} +exports.getOctokit = getOctokit; +//# sourceMappingURL=github.js.map + +/***/ }), + +/***/ 34523: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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()); + }); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getApiBaseUrl = exports.getProxyFetch = exports.getProxyAgentDispatcher = exports.getProxyAgent = exports.getAuthString = void 0; +const httpClient = __importStar(__nccwpck_require__(80787)); +const undici_1 = __nccwpck_require__(86472); +function getAuthString(token, options) { + if (!token && !options.auth) { + throw new Error('Parameter token or opts.auth is required'); + } + else if (token && options.auth) { + throw new Error('Parameters token and opts.auth may not both be specified'); + } + return typeof options.auth === 'string' ? options.auth : `token ${token}`; +} +exports.getAuthString = getAuthString; +function getProxyAgent(destinationUrl) { + const hc = new httpClient.HttpClient(); + return hc.getAgent(destinationUrl); +} +exports.getProxyAgent = getProxyAgent; +function getProxyAgentDispatcher(destinationUrl) { + const hc = new httpClient.HttpClient(); + return hc.getAgentDispatcher(destinationUrl); +} +exports.getProxyAgentDispatcher = getProxyAgentDispatcher; +function getProxyFetch(destinationUrl) { + const httpDispatcher = getProxyAgentDispatcher(destinationUrl); + const proxyFetch = (url, opts) => __awaiter(this, void 0, void 0, function* () { + return (0, undici_1.fetch)(url, Object.assign(Object.assign({}, opts), { dispatcher: httpDispatcher })); + }); + return proxyFetch; +} +exports.getProxyFetch = getProxyFetch; +function getApiBaseUrl() { + return process.env['GITHUB_API_URL'] || 'https://api.github.com'; +} +exports.getApiBaseUrl = getApiBaseUrl; +//# sourceMappingURL=utils.js.map + +/***/ }), + +/***/ 14655: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.getOctokitOptions = exports.GitHub = exports.defaults = exports.context = void 0; +const Context = __importStar(__nccwpck_require__(63721)); +const Utils = __importStar(__nccwpck_require__(34523)); +// octokit + plugins +const core_1 = __nccwpck_require__(3112); +const plugin_rest_endpoint_methods_1 = __nccwpck_require__(81858); +const plugin_paginate_rest_1 = __nccwpck_require__(12566); +exports.context = new Context.Context(); +const baseUrl = Utils.getApiBaseUrl(); +exports.defaults = { + baseUrl, + request: { + agent: Utils.getProxyAgent(baseUrl), + fetch: Utils.getProxyFetch(baseUrl) + } +}; +exports.GitHub = core_1.Octokit.plugin(plugin_rest_endpoint_methods_1.restEndpointMethods, plugin_paginate_rest_1.paginateRest).defaults(exports.defaults); +/** + * Convience function to correctly format Octokit Options to pass into the constructor. + * + * @param token the repo PAT or GITHUB_TOKEN + * @param options other options to set + */ +function getOctokitOptions(token, options) { + const opts = Object.assign({}, options || {}); // Shallow clone - don't mutate the object provided by the caller + // Auth + const auth = Utils.getAuthString(token, opts); + if (auth) { + opts.auth = auth; + } + return opts; +} +exports.getOctokitOptions = getOctokitOptions; +//# sourceMappingURL=utils.js.map + +/***/ }), + +/***/ 63673: +/***/ (function(__unused_webpack_module, exports) { + + +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.PersonalAccessTokenCredentialHandler = exports.BearerCredentialHandler = exports.BasicCredentialHandler = void 0; +class BasicCredentialHandler { + constructor(username, password) { + this.username = username; + this.password = password; + } + prepareRequest(options) { + if (!options.headers) { + throw Error('The request has no headers'); + } + options.headers['Authorization'] = `Basic ${Buffer.from(`${this.username}:${this.password}`).toString('base64')}`; + } + // This handler cannot handle 401 + canHandleAuthentication() { + return false; + } + handleAuthentication() { + return __awaiter(this, void 0, void 0, function* () { + throw new Error('not implemented'); + }); + } +} +exports.BasicCredentialHandler = BasicCredentialHandler; +class BearerCredentialHandler { + constructor(token) { + this.token = token; + } + // currently implements pre-authorization + // TODO: support preAuth = false where it hooks on 401 + prepareRequest(options) { + if (!options.headers) { + throw Error('The request has no headers'); + } + options.headers['Authorization'] = `Bearer ${this.token}`; + } + // This handler cannot handle 401 + canHandleAuthentication() { + return false; + } + handleAuthentication() { + return __awaiter(this, void 0, void 0, function* () { + throw new Error('not implemented'); + }); + } +} +exports.BearerCredentialHandler = BearerCredentialHandler; +class PersonalAccessTokenCredentialHandler { + constructor(token) { + this.token = token; + } + // currently implements pre-authorization + // TODO: support preAuth = false where it hooks on 401 + prepareRequest(options) { + if (!options.headers) { + throw Error('The request has no headers'); + } + options.headers['Authorization'] = `Basic ${Buffer.from(`PAT:${this.token}`).toString('base64')}`; + } + // This handler cannot handle 401 + canHandleAuthentication() { + return false; + } + handleAuthentication() { + return __awaiter(this, void 0, void 0, function* () { + throw new Error('not implemented'); + }); + } +} +exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler; +//# sourceMappingURL=auth.js.map + +/***/ }), + +/***/ 80787: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +/* eslint-disable @typescript-eslint/no-explicit-any */ +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()); + }); +}; +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__(58611)); +const https = __importStar(__nccwpck_require__(65692)); +const pm = __importStar(__nccwpck_require__(77407)); +const tunnel = __importStar(__nccwpck_require__(16124)); +const undici_1 = __nccwpck_require__(86472); +var HttpCodes; +(function (HttpCodes) { + HttpCodes[HttpCodes["OK"] = 200] = "OK"; + HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices"; + HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently"; + HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved"; + HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther"; + HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified"; + HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy"; + HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy"; + HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect"; + HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect"; + HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest"; + HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized"; + HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired"; + HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden"; + HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound"; + HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed"; + HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable"; + HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired"; + HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout"; + HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict"; + HttpCodes[HttpCodes["Gone"] = 410] = "Gone"; + HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests"; + HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError"; + HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented"; + HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway"; + HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable"; + HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout"; +})(HttpCodes || (exports.HttpCodes = HttpCodes = {})); +var Headers; +(function (Headers) { + Headers["Accept"] = "accept"; + Headers["ContentType"] = "content-type"; +})(Headers || (exports.Headers = Headers = {})); +var MediaTypes; +(function (MediaTypes) { + MediaTypes["ApplicationJson"] = "application/json"; +})(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 + */ +function getProxyUrl(serverUrl) { + const proxyUrl = pm.getProxyUrl(new URL(serverUrl)); + return proxyUrl ? proxyUrl.href : ''; +} +exports.getProxyUrl = getProxyUrl; +const HttpRedirectCodes = [ + HttpCodes.MovedPermanently, + HttpCodes.ResourceMoved, + HttpCodes.SeeOther, + HttpCodes.TemporaryRedirect, + HttpCodes.PermanentRedirect +]; +const HttpResponseRetryCodes = [ + HttpCodes.BadGateway, + HttpCodes.ServiceUnavailable, + HttpCodes.GatewayTimeout +]; +const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD']; +const ExponentialBackoffCeiling = 10; +const ExponentialBackoffTimeSlice = 5; +class HttpClientError extends Error { + constructor(message, statusCode) { + super(message); + this.name = 'HttpClientError'; + this.statusCode = statusCode; + Object.setPrototypeOf(this, HttpClientError.prototype); + } +} +exports.HttpClientError = HttpClientError; +class HttpClientResponse { + constructor(message) { + this.message = message; + } + readBody() { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () { + let output = Buffer.alloc(0); + this.message.on('data', (chunk) => { + output = Buffer.concat([output, chunk]); + }); + this.message.on('end', () => { + resolve(output.toString()); + }); + })); + }); + } + readBodyBuffer() { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () { + const chunks = []; + this.message.on('data', (chunk) => { + chunks.push(chunk); + }); + this.message.on('end', () => { + resolve(Buffer.concat(chunks)); + }); + })); + }); + } +} +exports.HttpClientResponse = HttpClientResponse; +function isHttps(requestUrl) { + const parsedUrl = new URL(requestUrl); + return parsedUrl.protocol === 'https:'; +} +exports.isHttps = isHttps; +class HttpClient { + constructor(userAgent, handlers, requestOptions) { + this._ignoreSslError = false; + this._allowRedirects = true; + this._allowRedirectDowngrade = false; + this._maxRedirects = 50; + this._allowRetries = false; + this._maxRetries = 1; + this._keepAlive = false; + this._disposed = false; + this.userAgent = userAgent; + this.handlers = handlers || []; + this.requestOptions = requestOptions; + if (requestOptions) { + if (requestOptions.ignoreSslError != null) { + this._ignoreSslError = requestOptions.ignoreSslError; + } + this._socketTimeout = requestOptions.socketTimeout; + if (requestOptions.allowRedirects != null) { + this._allowRedirects = requestOptions.allowRedirects; + } + if (requestOptions.allowRedirectDowngrade != null) { + this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade; + } + if (requestOptions.maxRedirects != null) { + this._maxRedirects = Math.max(requestOptions.maxRedirects, 0); + } + if (requestOptions.keepAlive != null) { + this._keepAlive = requestOptions.keepAlive; + } + if (requestOptions.allowRetries != null) { + this._allowRetries = requestOptions.allowRetries; + } + if (requestOptions.maxRetries != null) { + this._maxRetries = requestOptions.maxRetries; + } + } + } + options(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('OPTIONS', requestUrl, null, additionalHeaders || {}); + }); + } + get(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('GET', requestUrl, null, additionalHeaders || {}); + }); + } + del(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('DELETE', requestUrl, null, additionalHeaders || {}); + }); + } + post(requestUrl, data, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('POST', requestUrl, data, additionalHeaders || {}); + }); + } + patch(requestUrl, data, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('PATCH', requestUrl, data, additionalHeaders || {}); + }); + } + put(requestUrl, data, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('PUT', requestUrl, data, additionalHeaders || {}); + }); + } + head(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('HEAD', requestUrl, null, additionalHeaders || {}); + }); + } + sendStream(verb, requestUrl, stream, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request(verb, requestUrl, stream, additionalHeaders); + }); + } + /** + * Gets a typed object from an endpoint + * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise + */ + getJson(requestUrl, additionalHeaders = {}) { + return __awaiter(this, void 0, void 0, function* () { + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + const res = yield this.get(requestUrl, additionalHeaders); + return this._processResponse(res, this.requestOptions); + }); + } + postJson(requestUrl, obj, additionalHeaders = {}) { + return __awaiter(this, void 0, void 0, function* () { + const data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + const res = yield this.post(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); + }); + } + putJson(requestUrl, obj, additionalHeaders = {}) { + return __awaiter(this, void 0, void 0, function* () { + const data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + const res = yield this.put(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); + }); + } + patchJson(requestUrl, obj, additionalHeaders = {}) { + return __awaiter(this, void 0, void 0, function* () { + const data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + const res = yield this.patch(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); + }); + } + /** + * Makes a raw http request. + * All other methods such as get, post, patch, and request ultimately call this. + * Prefer get, del, post and patch + */ + request(verb, requestUrl, data, headers) { + return __awaiter(this, void 0, void 0, function* () { + if (this._disposed) { + throw new Error('Client has already been disposed.'); + } + const parsedUrl = new URL(requestUrl); + let info = this._prepareRequest(verb, parsedUrl, headers); + // Only perform retries on reads since writes may not be idempotent. + const maxTries = this._allowRetries && RetryableHttpVerbs.includes(verb) + ? this._maxRetries + 1 + : 1; + let numTries = 0; + let response; + do { + response = yield this.requestRaw(info, data); + // Check if it's an authentication challenge + if (response && + response.message && + response.message.statusCode === HttpCodes.Unauthorized) { + let authenticationHandler; + for (const handler of this.handlers) { + if (handler.canHandleAuthentication(response)) { + authenticationHandler = handler; + break; + } + } + if (authenticationHandler) { + return authenticationHandler.handleAuthentication(this, info, data); + } + else { + // We have received an unauthorized response but have no handlers to handle it. + // Let the response return to the caller. + return response; + } + } + let redirectsRemaining = this._maxRedirects; + while (response.message.statusCode && + HttpRedirectCodes.includes(response.message.statusCode) && + this._allowRedirects && + redirectsRemaining > 0) { + const redirectUrl = response.message.headers['location']; + if (!redirectUrl) { + // if there's no location to redirect to, we won't + break; + } + const parsedRedirectUrl = new URL(redirectUrl); + if (parsedUrl.protocol === 'https:' && + parsedUrl.protocol !== parsedRedirectUrl.protocol && + !this._allowRedirectDowngrade) { + throw new Error('Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.'); + } + // we need to finish reading the response before reassigning response + // which will leak the open socket. + yield response.readBody(); + // strip authorization header if redirected to a different hostname + if (parsedRedirectUrl.hostname !== parsedUrl.hostname) { + for (const header in headers) { + // header names are case insensitive + if (header.toLowerCase() === 'authorization') { + delete headers[header]; + } + } + } + // let's make the request with the new redirectUrl + info = this._prepareRequest(verb, parsedRedirectUrl, headers); + response = yield this.requestRaw(info, data); + redirectsRemaining--; + } + if (!response.message.statusCode || + !HttpResponseRetryCodes.includes(response.message.statusCode)) { + // If not a retry code, return immediately instead of retrying + return response; + } + numTries += 1; + if (numTries < maxTries) { + yield response.readBody(); + yield this._performExponentialBackoff(numTries); + } + } while (numTries < maxTries); + return response; + }); + } + /** + * Needs to be called if keepAlive is set to true in request options. + */ + dispose() { + if (this._agent) { + this._agent.destroy(); + } + this._disposed = true; + } + /** + * Raw request. + * @param info + * @param data + */ + requestRaw(info, data) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => { + function callbackForResult(err, res) { + if (err) { + reject(err); + } + else if (!res) { + // If `err` is not passed, then `res` must be passed. + reject(new Error('Unknown error')); + } + else { + resolve(res); + } + } + this.requestRawWithCallback(info, data, callbackForResult); + }); + }); + } + /** + * Raw request with callback. + * @param info + * @param data + * @param onResult + */ + requestRawWithCallback(info, data, onResult) { + if (typeof data === 'string') { + if (!info.options.headers) { + info.options.headers = {}; + } + info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8'); + } + let callbackCalled = false; + function handleResult(err, res) { + if (!callbackCalled) { + callbackCalled = true; + onResult(err, res); + } + } + const req = info.httpModule.request(info.options, (msg) => { + const res = new HttpClientResponse(msg); + handleResult(undefined, res); + }); + let socket; + req.on('socket', sock => { + socket = sock; + }); + // If we ever get disconnected, we want the socket to timeout eventually + req.setTimeout(this._socketTimeout || 3 * 60000, () => { + if (socket) { + socket.end(); + } + handleResult(new Error(`Request timeout: ${info.options.path}`)); + }); + req.on('error', function (err) { + // err has statusCode property + // res should have headers + handleResult(err); + }); + if (data && typeof data === 'string') { + req.write(data, 'utf8'); + } + if (data && typeof data !== 'string') { + data.on('close', function () { + req.end(); + }); + data.pipe(req); + } + else { + req.end(); + } + } + /** + * Gets an http agent. This function is useful when you need an http agent that handles + * routing through a proxy server - depending upon the url and proxy environment variables. + * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com + */ + getAgent(serverUrl) { + 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; + const usingSsl = info.parsedUrl.protocol === 'https:'; + info.httpModule = usingSsl ? https : http; + const defaultPort = usingSsl ? 443 : 80; + info.options = {}; + info.options.host = info.parsedUrl.hostname; + info.options.port = info.parsedUrl.port + ? parseInt(info.parsedUrl.port) + : defaultPort; + info.options.path = + (info.parsedUrl.pathname || '') + (info.parsedUrl.search || ''); + info.options.method = method; + info.options.headers = this._mergeHeaders(headers); + if (this.userAgent != null) { + info.options.headers['user-agent'] = this.userAgent; + } + info.options.agent = this._getAgent(info.parsedUrl); + // gives handlers an opportunity to participate + if (this.handlers) { + for (const handler of this.handlers) { + handler.prepareRequest(info.options); + } + } + return info; + } + _mergeHeaders(headers) { + if (this.requestOptions && this.requestOptions.headers) { + return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers || {})); + } + return lowercaseKeys(headers || {}); + } + _getExistingOrDefaultHeader(additionalHeaders, header, _default) { + let clientHeader; + if (this.requestOptions && this.requestOptions.headers) { + clientHeader = lowercaseKeys(this.requestOptions.headers)[header]; + } + return additionalHeaders[header] || clientHeader || _default; + } + _getAgent(parsedUrl) { + let agent; + const proxyUrl = pm.getProxyUrl(parsedUrl); + const useProxy = proxyUrl && proxyUrl.hostname; + if (this._keepAlive && useProxy) { + agent = this._proxyAgent; + } + if (!useProxy) { + agent = this._agent; + } + // if agent is already assigned use that agent. + if (agent) { + return agent; + } + const usingSsl = parsedUrl.protocol === 'https:'; + let maxSockets = 100; + if (this.requestOptions) { + maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets; + } + // This is `useProxy` again, but we need to check `proxyURl` directly for TypeScripts's flow analysis. + if (proxyUrl && proxyUrl.hostname) { + const agentOptions = { + maxSockets, + keepAlive: this._keepAlive, + proxy: Object.assign(Object.assign({}, ((proxyUrl.username || proxyUrl.password) && { + proxyAuth: `${proxyUrl.username}:${proxyUrl.password}` + })), { host: proxyUrl.hostname, port: proxyUrl.port }) + }; + let tunnelAgent; + const overHttps = proxyUrl.protocol === 'https:'; + if (usingSsl) { + tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp; + } + else { + tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp; + } + agent = tunnelAgent(agentOptions); + this._proxyAgent = 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 (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 + agent.options = Object.assign(agent.options || {}, { + rejectUnauthorized: false + }); + } + 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); + const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber); + return new Promise(resolve => setTimeout(() => resolve(), ms)); + }); + } + _processResponse(res, options) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { + const statusCode = res.message.statusCode || 0; + const response = { + statusCode, + result: null, + headers: {} + }; + // not found leads to null obj returned + if (statusCode === HttpCodes.NotFound) { + resolve(response); + } + // get the result from the body + function dateTimeDeserializer(key, value) { + if (typeof value === 'string') { + const a = new Date(value); + if (!isNaN(a.valueOf())) { + return a; + } + } + return value; + } + let obj; + let contents; + try { + contents = yield res.readBody(); + if (contents && contents.length > 0) { + if (options && options.deserializeDates) { + obj = JSON.parse(contents, dateTimeDeserializer); + } + else { + obj = JSON.parse(contents); + } + response.result = obj; + } + response.headers = res.message.headers; + } + catch (err) { + // Invalid resource (contents not json); leaving result obj null + } + // note that 3xx redirects are handled by the http layer. + if (statusCode > 299) { + let msg; + // if exception/error in body, attempt to get better error + if (obj && obj.message) { + msg = obj.message; + } + else if (contents && contents.length > 0) { + // it may be the case that the exception is in the body message as string + msg = contents; + } + else { + msg = `Failed request: (${statusCode})`; + } + const err = new HttpClientError(msg, statusCode); + err.result = response.result; + reject(err); + } + else { + resolve(response); + } + })); + }); + } +} +exports.HttpClient = HttpClient; +const lowercaseKeys = (obj) => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {}); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 77407: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.checkBypass = exports.getProxyUrl = void 0; +function getProxyUrl(reqUrl) { + const usingSsl = reqUrl.protocol === 'https:'; + if (checkBypass(reqUrl)) { + return undefined; + } + const proxyVar = (() => { + if (usingSsl) { + return process.env['https_proxy'] || process.env['HTTPS_PROXY']; + } + else { + return process.env['http_proxy'] || process.env['HTTP_PROXY']; + } + })(); + if (proxyVar) { + try { + return new DecodedURL(proxyVar); + } + catch (_a) { + if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://')) + return new DecodedURL(`http://${proxyVar}`); + } + } + else { + return undefined; + } +} +exports.getProxyUrl = getProxyUrl; +function checkBypass(reqUrl) { + if (!reqUrl.hostname) { + return false; + } + const reqHost = reqUrl.hostname; + if (isLoopbackAddress(reqHost)) { + return true; + } + const noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || ''; + if (!noProxy) { + return false; + } + // Determine the request port + let reqPort; + if (reqUrl.port) { + reqPort = Number(reqUrl.port); + } + else if (reqUrl.protocol === 'http:') { + reqPort = 80; + } + else if (reqUrl.protocol === 'https:') { + reqPort = 443; + } + // Format the request hostname and hostname with port + const upperReqHosts = [reqUrl.hostname.toUpperCase()]; + if (typeof reqPort === 'number') { + upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`); + } + // Compare request host against noproxy + for (const upperNoProxyItem of noProxy + .split(',') + .map(x => x.trim().toUpperCase()) + .filter(x => x)) { + if (upperNoProxyItem === '*' || + upperReqHosts.some(x => x === upperNoProxyItem || + x.endsWith(`.${upperNoProxyItem}`) || + (upperNoProxyItem.startsWith('.') && + x.endsWith(`${upperNoProxyItem}`)))) { + return true; + } + } + return false; +} +exports.checkBypass = checkBypass; +function isLoopbackAddress(host) { + const hostLower = host.toLowerCase(); + return (hostLower === 'localhost' || + hostLower.startsWith('127.') || + 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 + +/***/ }), + +/***/ 52746: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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()); + }); +}; +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); + } + catch (err) { + if (err.code === 'ENOENT') { + return false; + } + throw err; + } + 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); + } + 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}`); + } + } + 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; + } + } + else { + if (isUnixExecutable(stats)) { + return filePath; + } + } + } + // try each extension + const originalFilePath = filePath; + for (const extension of extensions) { + filePath = originalFilePath + extension; + stats = undefined; + try { + stats = yield exports.stat(filePath); + } + 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}`); + } + } + 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 { + if (isUnixExecutable(stats)) { + return filePath; + } + } + } + } + return ''; + }); +} +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, '/'); +} +// 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 + +/***/ }), + +/***/ 73357: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.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__(52746)); +/** + * 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; +/** + * 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'); + } + } + } + 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'); + } + } + try { + // note if path does not exist, error is silent + yield ioUtil.rm(inputPath, { + force: true, + maxRetries: 3, + recursive: true, + retryDelay: 300 + }); + } + catch (err) { + throw new Error(`File was unable to be removed ${err}`); + } + }); +} +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.`); + } + } + 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); + } + } + } + // 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]; + } + 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); + } + } + } + // 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); + } + } + 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); + } + } + // 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 (!(yield ioUtil.exists(destFile)) || force) { + yield ioUtil.copyFile(srcFile, destFile); + } + }); +} +//# sourceMappingURL=io.js.map + +/***/ }), + +/***/ 17394: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.client = exports.v2 = exports.v1 = void 0; +exports.v1 = __importStar(__nccwpck_require__(1408)); +exports.v2 = __importStar(__nccwpck_require__(68665)); +exports.client = __importStar(__nccwpck_require__(31188)); +__exportStar(__nccwpck_require__(75896), exports); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 75896: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.logger = void 0; +const loglevel_1 = __importDefault(__nccwpck_require__(54669)); +const logger = loglevel_1.default.noConflict(); +exports.logger = logger; +logger.setLevel((typeof process !== "undefined" && process.env && process.env.DEBUG) ? logger.levels.DEBUG : logger.levels.INFO); +//# sourceMappingURL=logger.js.map + +/***/ }), + +/***/ 20016: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.configureAuthMethods = exports.AppKeyAuthAuthentication = exports.ApiKeyAuthAuthentication = exports.AuthZAuthentication = void 0; +/** + * Applies oauth2 authentication to the request context. + */ +class AuthZAuthentication { + /** + * Configures OAuth2 with the necessary properties + * + * @param accessToken: The access token to be used for every request + */ + constructor(accessToken) { + this.accessToken = accessToken; + } + getName() { + return "AuthZ"; + } + applySecurityAuthentication(context) { + context.setHeaderParam("Authorization", "Bearer " + this.accessToken); + } +} +exports.AuthZAuthentication = AuthZAuthentication; +/** + * Applies apiKey authentication to the request context. + */ +class ApiKeyAuthAuthentication { + /** + * Configures this api key authentication with the necessary properties + * + * @param apiKey: The api key to be used for every request + */ + constructor(apiKey) { + this.apiKey = apiKey; + } + getName() { + return "apiKeyAuth"; + } + applySecurityAuthentication(context) { + context.setHeaderParam("DD-API-KEY", this.apiKey); + } +} +exports.ApiKeyAuthAuthentication = ApiKeyAuthAuthentication; +/** + * Applies apiKey authentication to the request context. + */ +class AppKeyAuthAuthentication { + /** + * Configures this api key authentication with the necessary properties + * + * @param apiKey: The api key to be used for every request + */ + constructor(apiKey) { + this.apiKey = apiKey; + } + getName() { + return "appKeyAuth"; + } + applySecurityAuthentication(context) { + context.setHeaderParam("DD-APPLICATION-KEY", this.apiKey); + } +} +exports.AppKeyAuthAuthentication = AppKeyAuthAuthentication; +/** + * Creates the authentication methods from a swagger description. + * + */ +function configureAuthMethods(config) { + const authMethods = {}; + if (!config) { + return authMethods; + } + if (config["AuthZ"]) { + authMethods["AuthZ"] = new AuthZAuthentication(config["AuthZ"]["accessToken"]); + } + if (config["apiKeyAuth"]) { + authMethods["apiKeyAuth"] = new ApiKeyAuthAuthentication(config["apiKeyAuth"]); + } + if (config["appKeyAuth"]) { + authMethods["appKeyAuth"] = new AppKeyAuthAuthentication(config["appKeyAuth"]); + } + return authMethods; +} +exports.configureAuthMethods = configureAuthMethods; +//# sourceMappingURL=auth.js.map + +/***/ }), + +/***/ 50443: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.RequiredError = exports.BaseAPIRequestFactory = exports.COLLECTION_FORMATS = void 0; +/** + * + * @export + */ +exports.COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", +}; +/** + * + * @export + * @class BaseAPI + */ +class BaseAPIRequestFactory { + constructor(configuration) { + this.configuration = configuration; + } +} +exports.BaseAPIRequestFactory = BaseAPIRequestFactory; +/** + * + * @export + * @class RequiredError + * @extends {Error} + */ +class RequiredError extends Error { + constructor(field, operation) { + super(`Required parameter ${field} was null or undefined when calling ${operation}.`); + this.field = field; + this.name = "RequiredError"; + } +} +exports.RequiredError = RequiredError; +//# sourceMappingURL=baseapi.js.map + +/***/ }), + +/***/ 51158: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.applySecurityAuthentication = exports.setServerVariables = exports.getServer = exports.createConfiguration = exports.Configuration = void 0; +const isomorphic_fetch_1 = __nccwpck_require__(49833); +const servers_1 = __nccwpck_require__(4172); +const auth_1 = __nccwpck_require__(20016); +const logger_1 = __nccwpck_require__(75896); +class Configuration { + constructor(baseServer, serverIndex, operationServerIndices, httpApi, authMethods, httpConfig, debug, enableRetry, maxRetries, backoffBase, backoffMultiplier, unstableOperations) { + this.baseServer = baseServer; + this.serverIndex = serverIndex; + this.operationServerIndices = operationServerIndices; + this.httpApi = httpApi; + this.authMethods = authMethods; + this.httpConfig = httpConfig; + this.debug = debug; + this.enableRetry = enableRetry; + this.maxRetries = maxRetries; + this.backoffBase = backoffBase; + this.backoffMultiplier = backoffMultiplier; + this.unstableOperations = unstableOperations; + this.servers = []; + for (const server of servers_1.servers) { + this.servers.push(server.clone()); + } + this.operationServers = {}; + for (const endpoint in servers_1.operationServers) { + this.operationServers[endpoint] = []; + for (const server of servers_1.operationServers[endpoint]) { + this.operationServers[endpoint].push(server.clone()); + } + } + if (backoffBase && backoffBase < 2) { + throw new Error("Backoff base must be at least 2"); + } + } + setServerVariables(serverVariables) { + if (this.baseServer !== undefined) { + this.baseServer.setVariables(serverVariables); + return; + } + const index = this.serverIndex; + this.servers[index].setVariables(serverVariables); + for (const op in this.operationServers) { + const index = op in this.operationServerIndices + ? this.operationServerIndices[op] + : this.serverIndex; + this.operationServers[op][index].setVariables(serverVariables); + } + } + getServer(endpoint) { + if (this.baseServer !== undefined) { + return this.baseServer; + } + const index = endpoint in this.operationServerIndices + ? this.operationServerIndices[endpoint] + : this.serverIndex; + return endpoint in servers_1.operationServers + ? this.operationServers[endpoint][index] + : this.servers[index]; + } +} +exports.Configuration = Configuration; +/** + * Configuration factory function + * + * If a property is not included in conf, a default is used: + * - baseServer: null + * - serverIndex: 0 + * - operationServerIndices: {} + * - httpApi: IsomorphicFetchHttpLibrary + * - authMethods: {} + * - httpConfig: {} + * - debug: false + * + * @param conf partial configuration + */ +function createConfiguration(conf = {}) { + if (typeof process !== "undefined" && process.env && process.env.DD_SITE) { + const serverConf = servers_1.server1.getConfiguration(); + servers_1.server1.setVariables({ site: process.env.DD_SITE }); + for (const op in servers_1.operationServers) { + servers_1.operationServers[op][0].setVariables({ site: process.env.DD_SITE }); + } + } + const authMethods = conf.authMethods || {}; + if (!("apiKeyAuth" in authMethods) && + typeof process !== "undefined" && + process.env && + process.env.DD_API_KEY) { + authMethods["apiKeyAuth"] = process.env.DD_API_KEY; + } + if (!("appKeyAuth" in authMethods) && + typeof process !== "undefined" && + process.env && + process.env.DD_APP_KEY) { + authMethods["appKeyAuth"] = process.env.DD_APP_KEY; + } + const configuration = new Configuration(conf.baseServer, conf.serverIndex || 0, conf.operationServerIndices || {}, conf.httpApi || new isomorphic_fetch_1.IsomorphicFetchHttpLibrary({ fetch: conf.fetch }), (0, auth_1.configureAuthMethods)(authMethods), conf.httpConfig || {}, conf.debug, conf.enableRetry || false, conf.maxRetries || 3, conf.backoffBase || 2, conf.backoffMultiplier || 2, { + "v2.createOpenAPI": false, + "v2.deleteOpenAPI": false, + "v2.getOpenAPI": false, + "v2.listAPIs": false, + "v2.updateOpenAPI": false, + "v2.createApp": false, + "v2.deleteApp": false, + "v2.deleteApps": false, + "v2.getApp": false, + "v2.listApps": false, + "v2.updateApp": false, + "v2.deployApp": false, + "v2.disableApp": false, + "v2.getActiveBillingDimensions": false, + "v2.getBillingDimensionMapping": false, + "v2.getMonthlyCostAttribution": false, + "v2.cancelDataDeletionRequest": false, + "v2.createDataDeletionRequest": false, + "v2.getDataDeletionRequests": false, + "v2.createDORADeployment": false, + "v2.createDORAIncident": false, + "v2.createIncident": false, + "v2.createIncidentIntegration": false, + "v2.createIncidentTodo": false, + "v2.createIncidentType": false, + "v2.deleteIncident": false, + "v2.deleteIncidentIntegration": false, + "v2.deleteIncidentTodo": false, + "v2.deleteIncidentType": false, + "v2.getIncident": false, + "v2.getIncidentIntegration": false, + "v2.getIncidentTodo": false, + "v2.getIncidentType": false, + "v2.listIncidentAttachments": false, + "v2.listIncidentIntegrations": false, + "v2.listIncidents": false, + "v2.listIncidentTodos": false, + "v2.listIncidentTypes": false, + "v2.searchIncidents": false, + "v2.updateIncident": false, + "v2.updateIncidentAttachments": false, + "v2.updateIncidentIntegration": false, + "v2.updateIncidentTodo": false, + "v2.updateIncidentType": false, + "v2.createAWSAccount": false, + "v2.createNewAWSExternalID": false, + "v2.deleteAWSAccount": false, + "v2.getAWSAccount": false, + "v2.listAWSAccounts": false, + "v2.listAWSNamespaces": false, + "v2.updateAWSAccount": false, + "v2.listAWSLogsServices": false, + "v2.cancelHistoricalJob": false, + "v2.convertJobResultToSignal": false, + "v2.deleteHistoricalJob": false, + "v2.getFinding": false, + "v2.getHistoricalJob": false, + "v2.listFindings": false, + "v2.listHistoricalJobs": false, + "v2.muteFindings": false, + "v2.runHistoricalJob": false, + "v2.createScorecardOutcomesBatch": false, + "v2.createScorecardRule": false, + "v2.deleteScorecardRule": false, + "v2.listScorecardOutcomes": false, + "v2.listScorecardRules": false, + "v2.updateScorecardRule": false, + "v2.createIncidentService": false, + "v2.deleteIncidentService": false, + "v2.getIncidentService": false, + "v2.listIncidentServices": false, + "v2.updateIncidentService": false, + "v2.createSLOReportJob": false, + "v2.getSLOReport": false, + "v2.getSLOReportJobStatus": false, + "v2.createIncidentTeam": false, + "v2.deleteIncidentTeam": false, + "v2.getIncidentTeam": false, + "v2.listIncidentTeams": false, + "v2.updateIncidentTeam": false, + }); + configuration.httpApi.zstdCompressorCallback = conf.zstdCompressorCallback; + configuration.httpApi.debug = configuration.debug; + configuration.httpApi.enableRetry = configuration.enableRetry; + configuration.httpApi.maxRetries = configuration.maxRetries; + configuration.httpApi.backoffBase = configuration.backoffBase; + configuration.httpApi.backoffMultiplier = configuration.backoffMultiplier; + return configuration; +} +exports.createConfiguration = createConfiguration; +function getServer(conf, endpoint) { + logger_1.logger.warn("getServer is deprecated, please use Configuration.getServer instead."); + return conf.getServer(endpoint); +} +exports.getServer = getServer; +/** + * Sets the server variables. + * + * @param serverVariables key/value object representing the server variables (site, name, protocol, ...) + */ +function setServerVariables(conf, serverVariables) { + logger_1.logger.warn("setServerVariables is deprecated, please use Configuration.setServerVariables instead."); + return conf.setServerVariables(serverVariables); +} +exports.setServerVariables = setServerVariables; +/** + * Apply given security authentication method if avaiable in configuration. + */ +function applySecurityAuthentication(conf, requestContext, authMethods) { + for (const authMethodName of authMethods) { + const authMethod = conf.authMethods[authMethodName]; + if (authMethod) { + authMethod.applySecurityAuthentication(requestContext); + } + } +} +exports.applySecurityAuthentication = applySecurityAuthentication; +//# sourceMappingURL=configuration.js.map + +/***/ }), + +/***/ 77701: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ApiException = void 0; +/** + * Represents an error caused by an api call i.e. it has attributes for a HTTP status code + * and the returned body object. + * + * Example + * API returns a ErrorMessageObject whenever HTTP status code is not in [200, 299] + * => ApiException(404, someErrorMessageObject) + * + */ +class ApiException extends Error { + constructor(code, body) { + super("HTTP-Code: " + code + "\nMessage: " + JSON.stringify(body)); + this.code = code; + this.body = body; + Object.setPrototypeOf(this, ApiException.prototype); + this.code = code; + this.body = body; + } +} +exports.ApiException = ApiException; +//# sourceMappingURL=exception.js.map + +/***/ }), + +/***/ 79861: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.ResponseContext = exports.SelfDecodingBody = exports.RequestContext = exports.HttpException = exports.HttpMethod = void 0; +const userAgent_1 = __nccwpck_require__(23442); +const util_1 = __nccwpck_require__(38134); +const baseapi_1 = __nccwpck_require__(50443); +/** + * Represents an HTTP method. + */ +var HttpMethod; +(function (HttpMethod) { + HttpMethod["GET"] = "GET"; + HttpMethod["HEAD"] = "HEAD"; + HttpMethod["POST"] = "POST"; + HttpMethod["PUT"] = "PUT"; + HttpMethod["DELETE"] = "DELETE"; + HttpMethod["CONNECT"] = "CONNECT"; + HttpMethod["OPTIONS"] = "OPTIONS"; + HttpMethod["TRACE"] = "TRACE"; + HttpMethod["PATCH"] = "PATCH"; +})(HttpMethod = exports.HttpMethod || (exports.HttpMethod = {})); +class HttpException extends Error { + constructor(msg) { + super(msg); + } +} +exports.HttpException = HttpException; +/** + * Represents an HTTP request context + */ +class RequestContext { + /** + * Creates the request context using a http method and request resource url + * + * @param url url of the requested resource + * @param httpMethod http method + */ + constructor(url, httpMethod) { + this.httpMethod = httpMethod; + this.headers = {}; + this.body = undefined; + this.httpConfig = {}; + this.url = new URL(url); + if (!util_1.isBrowser) { + this.headers = { "user-agent": userAgent_1.userAgent }; + } + } + /* + * Returns the url set in the constructor including the query string + * + */ + getUrl() { + return this.url.toString(); + } + /** + * Replaces the url set in the constructor with this url. + * + */ + setUrl(url) { + this.url = new URL(url); + } + /** + * Sets the body of the http request either as a string or FormData + * + * Note that setting a body on a HTTP GET, HEAD, DELETE, CONNECT or TRACE + * request is discouraged. + * https://httpwg.org/http-core/draft-ietf-httpbis-semantics-latest.html#rfc.section.7.3.1 + * + * @param body the body of the request + */ + setBody(body) { + this.body = body; + } + getHttpMethod() { + return this.httpMethod; + } + getHeaders() { + return this.headers; + } + getBody() { + return this.body; + } + /** + * Sets query parameters on the request URL + * + * @param name the name of the query parameter + * @param value the value of the query parameter + * @param collectionFormat the format of the query parameter See https://spec.openapis.org/oas/v3.0.2#style-values + */ + setQueryParam(name, value, collectionFormat) { + if (collectionFormat === "multi") { + for (const val of value) { + this.url.searchParams.append(name, val); + } + return; + } + if (Array.isArray(value)) { + const delimiter = baseapi_1.COLLECTION_FORMATS[collectionFormat]; + value = value.join(delimiter); + } + return this.url.searchParams.set(name, value); + } + /** + * Sets a cookie with the name and value. NO check for duplicate cookies is performed + * + */ + addCookie(name, value) { + if (!this.headers["Cookie"]) { + this.headers["Cookie"] = ""; + } + this.headers["Cookie"] += name + "=" + value + "; "; + } + setHeaderParam(key, value) { + this.headers[key] = value; + } + setHttpConfig(conf) { + this.httpConfig = conf; + } + getHttpConfig() { + return this.httpConfig; + } +} +exports.RequestContext = RequestContext; +/** + * Helper class to generate a `ResponseBody` from binary data + */ +class SelfDecodingBody { + constructor(dataSource) { + this.dataSource = dataSource; + } + binary() { + return this.dataSource; + } + text() { + return __awaiter(this, void 0, void 0, function* () { + const data = yield this.dataSource; + return data.toString(); + }); + } +} +exports.SelfDecodingBody = SelfDecodingBody; +class ResponseContext { + constructor(httpStatusCode, headers, body) { + this.httpStatusCode = httpStatusCode; + this.headers = headers; + this.body = body; + } + /** + * Parse header value in the form `value; param1="value1"` + * + * E.g. for Content-Type or Content-Disposition + * Parameter names are converted to lower case + * The first parameter is returned with the key `""` + */ + getParsedHeader(headerName) { + const result = {}; + if (!this.headers[headerName]) { + return result; + } + const parameters = this.headers[headerName].split(";"); + for (const parameter of parameters) { + let [key, value] = parameter.split("=", 2); + key = key.toLowerCase().trim(); + if (value === undefined) { + result[""] = key; + } + else { + value = value.trim(); + if (value.startsWith('"') && value.endsWith('"')) { + value = value.substring(1, value.length - 1); + } + result[key] = value; + } + } + return result; + } + getBodyAsFile() { + return __awaiter(this, void 0, void 0, function* () { + const data = yield this.body.binary(); + const fileName = this.getParsedHeader("content-disposition")["filename"] || ""; + return { data, name: fileName }; + }); + } +} +exports.ResponseContext = ResponseContext; +//# sourceMappingURL=http.js.map + +/***/ }), + +/***/ 49833: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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 __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 __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 __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +var _IsomorphicFetchHttpLibrary_fetch; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IsomorphicFetchHttpLibrary = void 0; +const http_1 = __nccwpck_require__(79861); +const cross_fetch_1 = __nccwpck_require__(30433); +const pako_1 = __importDefault(__nccwpck_require__(27259)); +const buffer_from_1 = __importDefault(__nccwpck_require__(234)); +const util_1 = __nccwpck_require__(38134); +const logger_1 = __nccwpck_require__(75896); +class IsomorphicFetchHttpLibrary { + constructor({ fetch: customFetch }) { + this.debug = false; + _IsomorphicFetchHttpLibrary_fetch.set(this, void 0); + __classPrivateFieldSet(this, _IsomorphicFetchHttpLibrary_fetch, customFetch || + // On non-node environments, use native fetch if available. + // `cross-fetch` incorrectly assumes all browsers have XHR available. + // See https://github.com/lquixada/cross-fetch/issues/78 + // TODO: Remove once once above issue is resolved. + (!util_1.isNode && typeof fetch === "function" ? fetch : cross_fetch_1.fetch), "f"); + } + send(request) { + if (this.debug) { + this.logRequest(request); + } + const method = request.getHttpMethod().toString(); + let body = request.getBody(); + let compress = request.getHttpConfig().compress; + if (compress === undefined) { + compress = true; + } + const headers = request.getHeaders(); + if (typeof body === "string") { + if (headers["Content-Encoding"] === "gzip") { + body = (0, buffer_from_1.default)(pako_1.default.gzip(body).buffer); + } + else if (headers["Content-Encoding"] === "deflate") { + body = (0, buffer_from_1.default)(pako_1.default.deflate(body).buffer); + } + else if (headers["Content-Encoding"] === "zstd1") { + if (this.zstdCompressorCallback) { + body = this.zstdCompressorCallback(body); + } + else { + throw new Error("zstdCompressorCallback method missing"); + } + } + } + if (!util_1.isBrowser) { + if (!headers["Accept-Encoding"]) { + if (compress) { + headers["Accept-Encoding"] = "gzip,deflate"; + } + else { + // We need to enforce it otherwise node-fetch will set a default + headers["Accept-Encoding"] = "identity"; + } + } + } + return this.executeRequest(request, body, 0, headers); + } + executeRequest(request, body, currentAttempt, headers) { + return __awaiter(this, void 0, void 0, function* () { + const fetchOptions = { + method: request.getHttpMethod().toString(), + body: body, + headers: headers, + signal: request.getHttpConfig().signal, + }; + try { + const resp = yield __classPrivateFieldGet(this, _IsomorphicFetchHttpLibrary_fetch, "f").call(this, request.getUrl(), fetchOptions); + const responseHeaders = {}; + resp.headers.forEach((value, name) => { + responseHeaders[name] = value; + }); + const responseBody = { + text: () => resp.text(), + binary: () => __awaiter(this, void 0, void 0, function* () { + const arrayBuffer = yield resp.arrayBuffer(); + return Buffer.from(arrayBuffer); + }), + }; + const response = new http_1.ResponseContext(resp.status, responseHeaders, responseBody); + if (this.debug) { + this.logResponse(response); + } + if (this.shouldRetry(this.enableRetry, currentAttempt, this.maxRetries, response.httpStatusCode)) { + const delay = this.calculateRetryInterval(currentAttempt, this.backoffBase, this.backoffMultiplier, responseHeaders); + currentAttempt++; + yield this.sleep(delay * 1000); + return this.executeRequest(request, body, currentAttempt, headers); + } + return response; + } + catch (error) { + logger_1.logger.error("An error occurred during the HTTP request:", error); + throw error; + } + }); + } + sleep(milliseconds) { + return new Promise((resolve) => { + setTimeout(resolve, milliseconds); + }); + } + shouldRetry(enableRetry, currentAttempt, maxRetries, responseCode) { + return ((responseCode === 429 || responseCode >= 500) && + maxRetries > currentAttempt && + enableRetry); + } + calculateRetryInterval(currentAttempt, backoffBase, backoffMultiplier, headers) { + if ("x-ratelimit-reset" in headers) { + const rateLimitHeaderString = headers["x-ratelimit-reset"]; + const retryIntervalFromHeader = parseInt(rateLimitHeaderString, 10); + return retryIntervalFromHeader; + } + else { + return Math.pow(backoffMultiplier, currentAttempt) * backoffBase; + } + } + logRequest(request) { + var _a; + const headers = {}; + const originalHeaders = request.getHeaders(); + for (const header in originalHeaders) { + headers[header] = originalHeaders[header]; + } + if (headers["DD-API-KEY"]) { + headers["DD-API-KEY"] = headers["DD-API-KEY"].replace(/./g, "x"); + } + if (headers["DD-APPLICATION-KEY"]) { + headers["DD-APPLICATION-KEY"] = headers["DD-APPLICATION-KEY"].replace(/./g, "x"); + } + const headersJSON = JSON.stringify(headers, null, 2).replace(/\n/g, "\n\t"); + const method = request.getHttpMethod().toString(); + const url = request.getUrl().toString(); + const body = request.getBody() + ? JSON.stringify(request.getBody(), null, 2).replace(/\n/g, "\n\t") + : ""; + const compress = (_a = request.getHttpConfig().compress) !== null && _a !== void 0 ? _a : true; + logger_1.logger.debug("\nrequest: {\n", `\turl: ${url}\n`, `\tmethod: ${method}\n`, `\theaders: ${headersJSON}\n`, `\tcompress: ${compress}\n`, `\tbody: ${body}\n}\n`); + } + logResponse(response) { + const httpStatusCode = response.httpStatusCode; + const headers = JSON.stringify(response.headers, null, 2).replace(/\n/g, "\n\t"); + logger_1.logger.debug("response: {\n", `\tstatus: ${httpStatusCode}\n`, `\theaders: ${headers}\n`); + } +} +exports.IsomorphicFetchHttpLibrary = IsomorphicFetchHttpLibrary; +_IsomorphicFetchHttpLibrary_fetch = new WeakMap(); +//# sourceMappingURL=isomorphic-fetch.js.map + +/***/ }), + +/***/ 31188: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.Configuration = exports.setServerVariables = exports.createConfiguration = void 0; +__exportStar(__nccwpck_require__(79861), exports); +__exportStar(__nccwpck_require__(49833), exports); +__exportStar(__nccwpck_require__(20016), exports); +var configuration_1 = __nccwpck_require__(51158); +Object.defineProperty(exports, "createConfiguration", ({ enumerable: true, get: function () { return configuration_1.createConfiguration; } })); +var configuration_2 = __nccwpck_require__(51158); +Object.defineProperty(exports, "setServerVariables", ({ enumerable: true, get: function () { return configuration_2.setServerVariables; } })); +var configuration_3 = __nccwpck_require__(51158); +Object.defineProperty(exports, "Configuration", ({ enumerable: true, get: function () { return configuration_3.Configuration; } })); +__exportStar(__nccwpck_require__(77701), exports); +__exportStar(__nccwpck_require__(4172), exports); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 4172: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.operationServers = exports.servers = exports.server3 = exports.server2 = exports.server1 = exports.ServerConfiguration = exports.BaseServerConfiguration = void 0; +const http_1 = __nccwpck_require__(79861); +/** + * + * Represents the configuration of a server + * + */ +class BaseServerConfiguration { + constructor(url, variableConfiguration) { + this.url = url; + this.variableConfiguration = variableConfiguration; + } + /** + * Sets the value of the variables of this server. + * + * @param variableConfiguration a partial variable configuration for the variables contained in the url + */ + setVariables(variableConfiguration) { + Object.assign(this.variableConfiguration, variableConfiguration); + } + getConfiguration() { + return this.variableConfiguration; + } + clone() { + return new BaseServerConfiguration(this.url, Object.assign({}, this.variableConfiguration)); + } + getUrl() { + let replacedUrl = this.url; + for (const key in this.variableConfiguration) { + const re = new RegExp("{" + key + "}", "g"); + replacedUrl = replacedUrl.replace(re, this.variableConfiguration[key]); + } + return replacedUrl; + } + /** + * Creates a new request context for this server using the url with variables + * replaced with their respective values and the endpoint of the request appended. + * + * @param endpoint the endpoint to be queried on the server + * @param httpMethod httpMethod to be used + * + */ + makeRequestContext(endpoint, httpMethod) { + return new http_1.RequestContext(this.getUrl() + endpoint, httpMethod); + } +} +exports.BaseServerConfiguration = BaseServerConfiguration; +/** + * + * Represents the configuration of a server including its + * url template and variable configuration based on the url. + * + */ +class ServerConfiguration extends BaseServerConfiguration { +} +exports.ServerConfiguration = ServerConfiguration; +exports.server1 = new ServerConfiguration("https://{subdomain}.{site}", { + site: "datadoghq.com", + subdomain: "api", +}); +exports.server2 = new ServerConfiguration("{protocol}://{name}", { + name: "api.datadoghq.com", + protocol: "https", +}); +exports.server3 = new ServerConfiguration("https://{subdomain}.{site}", { + site: "datadoghq.com", + subdomain: "api", +}); +exports.servers = [exports.server1, exports.server2, exports.server3]; +exports.operationServers = { + "v1.IPRangesApi.getIPRanges": [ + new ServerConfiguration("https://{subdomain}.{site}", { + site: "datadoghq.com", + subdomain: "ip-ranges", + }), + new ServerConfiguration("{protocol}://{name}", { + name: "ip-ranges.datadoghq.com", + protocol: "https", + }), + new ServerConfiguration("https://{subdomain}.datadoghq.com", { + subdomain: "ip-ranges", + }), + ], + "v1.LogsApi.submitLog": [ + new ServerConfiguration("https://{subdomain}.{site}", { + site: "datadoghq.com", + subdomain: "http-intake.logs", + }), + new ServerConfiguration("{protocol}://{name}", { + name: "http-intake.logs.datadoghq.com", + protocol: "https", + }), + new ServerConfiguration("https://{subdomain}.{site}", { + site: "datadoghq.com", + subdomain: "http-intake.logs", + }), + ], + "v2.LogsApi.submitLog": [ + new ServerConfiguration("https://{subdomain}.{site}", { + site: "datadoghq.com", + subdomain: "http-intake.logs", + }), + new ServerConfiguration("{protocol}://{name}", { + name: "http-intake.logs.datadoghq.com", + protocol: "https", + }), + new ServerConfiguration("https://{subdomain}.{site}", { + site: "datadoghq.com", + subdomain: "http-intake.logs", + }), + ], +}; +//# sourceMappingURL=servers.js.map + +/***/ }), + +/***/ 38134: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.dateToRFC3339String = exports.dateFromRFC3339String = exports.DDate = exports.isNode = exports.isBrowser = exports.UnparsedObject = void 0; +class UnparsedObject { + constructor(data) { + this._data = data; + } +} +exports.UnparsedObject = UnparsedObject; +exports.isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined"; +exports.isNode = typeof process !== "undefined" && + process.release && + process.release.name === "node"; +class DDate extends Date { +} +exports.DDate = DDate; +const RFC3339Re = /^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})\.?(\d+)?(?:(?:([+-]\d{2}):?(\d{2}))|Z)?$/; +function dateFromRFC3339String(date) { + const m = RFC3339Re.exec(date); + if (m) { + const _date = new DDate(date); + _date.originalDate = date; + return _date; + } + else { + throw new Error("unexpected date format: " + date); + } +} +exports.dateFromRFC3339String = dateFromRFC3339String; +function dateToRFC3339String(date) { + if (date instanceof DDate && date.originalDate) { + return date.originalDate; + } + return date.toISOString().split(".")[0] + "Z"; +} +exports.dateToRFC3339String = dateToRFC3339String; +//# sourceMappingURL=util.js.map + +/***/ }), + +/***/ 93203: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.AWSIntegrationApi = exports.AWSIntegrationApiResponseProcessor = exports.AWSIntegrationApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class AWSIntegrationApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createAWSAccount(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createAWSAccount"); + } + // Path Params + const localVarPath = "/api/v1/integration/aws"; + // Make Request Context + const requestContext = _config + .getServer("v1.AWSIntegrationApi.createAWSAccount") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "AWSAccount", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createAWSEventBridgeSource(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createAWSEventBridgeSource"); + } + // Path Params + const localVarPath = "/api/v1/integration/aws/event_bridge"; + // Make Request Context + const requestContext = _config + .getServer("v1.AWSIntegrationApi.createAWSEventBridgeSource") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "AWSEventBridgeCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createAWSTagFilter(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createAWSTagFilter"); + } + // Path Params + const localVarPath = "/api/v1/integration/aws/filtering"; + // Make Request Context + const requestContext = _config + .getServer("v1.AWSIntegrationApi.createAWSTagFilter") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "AWSTagFilterCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createNewAWSExternalID(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createNewAWSExternalID"); + } + // Path Params + const localVarPath = "/api/v1/integration/aws/generate_new_external_id"; + // Make Request Context + const requestContext = _config + .getServer("v1.AWSIntegrationApi.createNewAWSExternalID") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "AWSAccount", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteAWSAccount(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "deleteAWSAccount"); + } + // Path Params + const localVarPath = "/api/v1/integration/aws"; + // Make Request Context + const requestContext = _config + .getServer("v1.AWSIntegrationApi.deleteAWSAccount") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "AWSAccountDeleteRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteAWSEventBridgeSource(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "deleteAWSEventBridgeSource"); + } + // Path Params + const localVarPath = "/api/v1/integration/aws/event_bridge"; + // Make Request Context + const requestContext = _config + .getServer("v1.AWSIntegrationApi.deleteAWSEventBridgeSource") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "AWSEventBridgeDeleteRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteAWSTagFilter(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "deleteAWSTagFilter"); + } + // Path Params + const localVarPath = "/api/v1/integration/aws/filtering"; + // Make Request Context + const requestContext = _config + .getServer("v1.AWSIntegrationApi.deleteAWSTagFilter") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "AWSTagFilterDeleteRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listAvailableAWSNamespaces(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/integration/aws/available_namespace_rules"; + // Make Request Context + const requestContext = _config + .getServer("v1.AWSIntegrationApi.listAvailableAWSNamespaces") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listAWSAccounts(accountId, roleName, accessKeyId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/integration/aws"; + // Make Request Context + const requestContext = _config + .getServer("v1.AWSIntegrationApi.listAWSAccounts") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (accountId !== undefined) { + requestContext.setQueryParam("account_id", ObjectSerializer_1.ObjectSerializer.serialize(accountId, "string", ""), ""); + } + if (roleName !== undefined) { + requestContext.setQueryParam("role_name", ObjectSerializer_1.ObjectSerializer.serialize(roleName, "string", ""), ""); + } + if (accessKeyId !== undefined) { + requestContext.setQueryParam("access_key_id", ObjectSerializer_1.ObjectSerializer.serialize(accessKeyId, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listAWSEventBridgeSources(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/integration/aws/event_bridge"; + // Make Request Context + const requestContext = _config + .getServer("v1.AWSIntegrationApi.listAWSEventBridgeSources") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listAWSTagFilters(accountId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'accountId' is not null or undefined + if (accountId === null || accountId === undefined) { + throw new baseapi_1.RequiredError("accountId", "listAWSTagFilters"); + } + // Path Params + const localVarPath = "/api/v1/integration/aws/filtering"; + // Make Request Context + const requestContext = _config + .getServer("v1.AWSIntegrationApi.listAWSTagFilters") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (accountId !== undefined) { + requestContext.setQueryParam("account_id", ObjectSerializer_1.ObjectSerializer.serialize(accountId, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateAWSAccount(body, accountId, roleName, accessKeyId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateAWSAccount"); + } + // Path Params + const localVarPath = "/api/v1/integration/aws"; + // Make Request Context + const requestContext = _config + .getServer("v1.AWSIntegrationApi.updateAWSAccount") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (accountId !== undefined) { + requestContext.setQueryParam("account_id", ObjectSerializer_1.ObjectSerializer.serialize(accountId, "string", ""), ""); + } + if (roleName !== undefined) { + requestContext.setQueryParam("role_name", ObjectSerializer_1.ObjectSerializer.serialize(roleName, "string", ""), ""); + } + if (accessKeyId !== undefined) { + requestContext.setQueryParam("access_key_id", ObjectSerializer_1.ObjectSerializer.serialize(accessKeyId, "string", ""), ""); + } + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "AWSAccount", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.AWSIntegrationApiRequestFactory = AWSIntegrationApiRequestFactory; +class AWSIntegrationApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createAWSAccount + * @throws ApiException if the response code was not in [200, 299] + */ + createAWSAccount(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSAccountCreateResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSAccountCreateResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createAWSEventBridgeSource + * @throws ApiException if the response code was not in [200, 299] + */ + createAWSEventBridgeSource(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSEventBridgeCreateResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSEventBridgeCreateResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createAWSTagFilter + * @throws ApiException if the response code was not in [200, 299] + */ + createAWSTagFilter(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createNewAWSExternalID + * @throws ApiException if the response code was not in [200, 299] + */ + createNewAWSExternalID(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSAccountCreateResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSAccountCreateResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteAWSAccount + * @throws ApiException if the response code was not in [200, 299] + */ + deleteAWSAccount(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteAWSEventBridgeSource + * @throws ApiException if the response code was not in [200, 299] + */ + deleteAWSEventBridgeSource(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSEventBridgeDeleteResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSEventBridgeDeleteResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteAWSTagFilter + * @throws ApiException if the response code was not in [200, 299] + */ + deleteAWSTagFilter(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listAvailableAWSNamespaces + * @throws ApiException if the response code was not in [200, 299] + */ + listAvailableAWSNamespaces(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listAWSAccounts + * @throws ApiException if the response code was not in [200, 299] + */ + listAWSAccounts(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSAccountListResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSAccountListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listAWSEventBridgeSources + * @throws ApiException if the response code was not in [200, 299] + */ + listAWSEventBridgeSources(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSEventBridgeListResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSEventBridgeListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listAWSTagFilters + * @throws ApiException if the response code was not in [200, 299] + */ + listAWSTagFilters(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSTagFilterListResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSTagFilterListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateAWSAccount + * @throws ApiException if the response code was not in [200, 299] + */ + updateAWSAccount(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.AWSIntegrationApiResponseProcessor = AWSIntegrationApiResponseProcessor; +class AWSIntegrationApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new AWSIntegrationApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new AWSIntegrationApiResponseProcessor(); + } + /** + * Create a Datadog-Amazon Web Services integration. + * Using the `POST` method updates your integration configuration + * by adding your new configuration to the existing one in your Datadog organization. + * A unique AWS Account ID for role based authentication. + * @param param The request object + */ + createAWSAccount(param, options) { + const requestContextPromise = this.requestFactory.createAWSAccount(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createAWSAccount(responseContext); + }); + }); + } + /** + * Create an Amazon EventBridge source. + * @param param The request object + */ + createAWSEventBridgeSource(param, options) { + const requestContextPromise = this.requestFactory.createAWSEventBridgeSource(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createAWSEventBridgeSource(responseContext); + }); + }); + } + /** + * Set an AWS tag filter. + * @param param The request object + */ + createAWSTagFilter(param, options) { + const requestContextPromise = this.requestFactory.createAWSTagFilter(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createAWSTagFilter(responseContext); + }); + }); + } + /** + * Generate a new AWS external ID for a given AWS account ID and role name pair. + * @param param The request object + */ + createNewAWSExternalID(param, options) { + const requestContextPromise = this.requestFactory.createNewAWSExternalID(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createNewAWSExternalID(responseContext); + }); + }); + } + /** + * Delete a Datadog-AWS integration matching the specified `account_id` and `role_name parameters`. + * @param param The request object + */ + deleteAWSAccount(param, options) { + const requestContextPromise = this.requestFactory.deleteAWSAccount(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteAWSAccount(responseContext); + }); + }); + } + /** + * Delete an Amazon EventBridge source. + * @param param The request object + */ + deleteAWSEventBridgeSource(param, options) { + const requestContextPromise = this.requestFactory.deleteAWSEventBridgeSource(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteAWSEventBridgeSource(responseContext); + }); + }); + } + /** + * Delete a tag filtering entry. + * @param param The request object + */ + deleteAWSTagFilter(param, options) { + const requestContextPromise = this.requestFactory.deleteAWSTagFilter(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteAWSTagFilter(responseContext); + }); + }); + } + /** + * List all namespace rules for a given Datadog-AWS integration. This endpoint takes no arguments. + * @param param The request object + */ + listAvailableAWSNamespaces(options) { + const requestContextPromise = this.requestFactory.listAvailableAWSNamespaces(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listAvailableAWSNamespaces(responseContext); + }); + }); + } + /** + * List all Datadog-AWS integrations available in your Datadog organization. + * @param param The request object + */ + listAWSAccounts(param = {}, options) { + const requestContextPromise = this.requestFactory.listAWSAccounts(param.accountId, param.roleName, param.accessKeyId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listAWSAccounts(responseContext); + }); + }); + } + /** + * Get all Amazon EventBridge sources. + * @param param The request object + */ + listAWSEventBridgeSources(options) { + const requestContextPromise = this.requestFactory.listAWSEventBridgeSources(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listAWSEventBridgeSources(responseContext); + }); + }); + } + /** + * Get all AWS tag filters. + * @param param The request object + */ + listAWSTagFilters(param, options) { + const requestContextPromise = this.requestFactory.listAWSTagFilters(param.accountId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listAWSTagFilters(responseContext); + }); + }); + } + /** + * Update a Datadog-Amazon Web Services integration. + * @param param The request object + */ + updateAWSAccount(param, options) { + const requestContextPromise = this.requestFactory.updateAWSAccount(param.body, param.accountId, param.roleName, param.accessKeyId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateAWSAccount(responseContext); + }); + }); + } +} +exports.AWSIntegrationApi = AWSIntegrationApi; +//# sourceMappingURL=AWSIntegrationApi.js.map + +/***/ }), + +/***/ 55776: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.AWSLogsIntegrationApi = exports.AWSLogsIntegrationApiResponseProcessor = exports.AWSLogsIntegrationApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class AWSLogsIntegrationApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + checkAWSLogsLambdaAsync(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "checkAWSLogsLambdaAsync"); + } + // Path Params + const localVarPath = "/api/v1/integration/aws/logs/check_async"; + // Make Request Context + const requestContext = _config + .getServer("v1.AWSLogsIntegrationApi.checkAWSLogsLambdaAsync") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "AWSAccountAndLambdaRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + checkAWSLogsServicesAsync(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "checkAWSLogsServicesAsync"); + } + // Path Params + const localVarPath = "/api/v1/integration/aws/logs/services_async"; + // Make Request Context + const requestContext = _config + .getServer("v1.AWSLogsIntegrationApi.checkAWSLogsServicesAsync") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "AWSLogsServicesRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createAWSLambdaARN(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createAWSLambdaARN"); + } + // Path Params + const localVarPath = "/api/v1/integration/aws/logs"; + // Make Request Context + const requestContext = _config + .getServer("v1.AWSLogsIntegrationApi.createAWSLambdaARN") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "AWSAccountAndLambdaRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteAWSLambdaARN(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "deleteAWSLambdaARN"); + } + // Path Params + const localVarPath = "/api/v1/integration/aws/logs"; + // Make Request Context + const requestContext = _config + .getServer("v1.AWSLogsIntegrationApi.deleteAWSLambdaARN") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "AWSAccountAndLambdaRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + enableAWSLogServices(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "enableAWSLogServices"); + } + // Path Params + const localVarPath = "/api/v1/integration/aws/logs/services"; + // Make Request Context + const requestContext = _config + .getServer("v1.AWSLogsIntegrationApi.enableAWSLogServices") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "AWSLogsServicesRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listAWSLogsIntegrations(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/integration/aws/logs"; + // Make Request Context + const requestContext = _config + .getServer("v1.AWSLogsIntegrationApi.listAWSLogsIntegrations") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listAWSLogsServices(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/integration/aws/logs/services"; + // Make Request Context + const requestContext = _config + .getServer("v1.AWSLogsIntegrationApi.listAWSLogsServices") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.AWSLogsIntegrationApiRequestFactory = AWSLogsIntegrationApiRequestFactory; +class AWSLogsIntegrationApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to checkAWSLogsLambdaAsync + * @throws ApiException if the response code was not in [200, 299] + */ + checkAWSLogsLambdaAsync(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSLogsAsyncResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSLogsAsyncResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to checkAWSLogsServicesAsync + * @throws ApiException if the response code was not in [200, 299] + */ + checkAWSLogsServicesAsync(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSLogsAsyncResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSLogsAsyncResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createAWSLambdaARN + * @throws ApiException if the response code was not in [200, 299] + */ + createAWSLambdaARN(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteAWSLambdaARN + * @throws ApiException if the response code was not in [200, 299] + */ + deleteAWSLambdaARN(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to enableAWSLogServices + * @throws ApiException if the response code was not in [200, 299] + */ + enableAWSLogServices(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listAWSLogsIntegrations + * @throws ApiException if the response code was not in [200, 299] + */ + listAWSLogsIntegrations(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listAWSLogsServices + * @throws ApiException if the response code was not in [200, 299] + */ + listAWSLogsServices(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.AWSLogsIntegrationApiResponseProcessor = AWSLogsIntegrationApiResponseProcessor; +class AWSLogsIntegrationApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new AWSLogsIntegrationApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new AWSLogsIntegrationApiResponseProcessor(); + } + /** + * Test if permissions are present to add a log-forwarding triggers for the given services and AWS account. The input + * is the same as for Enable an AWS service log collection. Subsequent requests will always repeat the above, so this + * endpoint can be polled intermittently instead of blocking. + * + * - Returns a status of 'created' when it's checking if the Lambda exists in the account. + * - Returns a status of 'waiting' while checking. + * - Returns a status of 'checked and ok' if the Lambda exists. + * - Returns a status of 'error' if the Lambda does not exist. + * @param param The request object + */ + checkAWSLogsLambdaAsync(param, options) { + const requestContextPromise = this.requestFactory.checkAWSLogsLambdaAsync(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.checkAWSLogsLambdaAsync(responseContext); + }); + }); + } + /** + * Test if permissions are present to add log-forwarding triggers for the + * given services and AWS account. Input is the same as for `EnableAWSLogServices`. + * Done async, so can be repeatedly polled in a non-blocking fashion until + * the async request completes. + * + * - Returns a status of `created` when it's checking if the permissions exists + * in the AWS account. + * - Returns a status of `waiting` while checking. + * - Returns a status of `checked and ok` if the Lambda exists. + * - Returns a status of `error` if the Lambda does not exist. + * @param param The request object + */ + checkAWSLogsServicesAsync(param, options) { + const requestContextPromise = this.requestFactory.checkAWSLogsServicesAsync(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.checkAWSLogsServicesAsync(responseContext); + }); + }); + } + /** + * Attach the Lambda ARN of the Lambda created for the Datadog-AWS log collection to your AWS account ID to enable log collection. + * @param param The request object + */ + createAWSLambdaARN(param, options) { + const requestContextPromise = this.requestFactory.createAWSLambdaARN(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createAWSLambdaARN(responseContext); + }); + }); + } + /** + * Delete a Datadog-AWS logs configuration by removing the specific Lambda ARN associated with a given AWS account. + * @param param The request object + */ + deleteAWSLambdaARN(param, options) { + const requestContextPromise = this.requestFactory.deleteAWSLambdaARN(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteAWSLambdaARN(responseContext); + }); + }); + } + /** + * Enable automatic log collection for a list of services. This should be run after running `CreateAWSLambdaARN` to save the configuration. + * @param param The request object + */ + enableAWSLogServices(param, options) { + const requestContextPromise = this.requestFactory.enableAWSLogServices(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.enableAWSLogServices(responseContext); + }); + }); + } + /** + * List all Datadog-AWS Logs integrations configured in your Datadog account. + * @param param The request object + */ + listAWSLogsIntegrations(options) { + const requestContextPromise = this.requestFactory.listAWSLogsIntegrations(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listAWSLogsIntegrations(responseContext); + }); + }); + } + /** + * Get the list of current AWS services that Datadog offers automatic log collection. Use returned service IDs with the services parameter for the Enable an AWS service log collection API endpoint. + * @param param The request object + */ + listAWSLogsServices(options) { + const requestContextPromise = this.requestFactory.listAWSLogsServices(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listAWSLogsServices(responseContext); + }); + }); + } +} +exports.AWSLogsIntegrationApi = AWSLogsIntegrationApi; +//# sourceMappingURL=AWSLogsIntegrationApi.js.map + +/***/ }), + +/***/ 73548: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.AuthenticationApi = exports.AuthenticationApiResponseProcessor = exports.AuthenticationApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class AuthenticationApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + validate(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/validate"; + // Make Request Context + const requestContext = _config + .getServer("v1.AuthenticationApi.validate") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, ["apiKeyAuth"]); + return requestContext; + }); + } +} +exports.AuthenticationApiRequestFactory = AuthenticationApiRequestFactory; +class AuthenticationApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to validate + * @throws ApiException if the response code was not in [200, 299] + */ + validate(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AuthenticationValidationResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AuthenticationValidationResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.AuthenticationApiResponseProcessor = AuthenticationApiResponseProcessor; +class AuthenticationApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new AuthenticationApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new AuthenticationApiResponseProcessor(); + } + /** + * Check if the API key (not the APP key) is valid. If invalid, a 403 is returned. + * @param param The request object + */ + validate(options) { + const requestContextPromise = this.requestFactory.validate(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.validate(responseContext); + }); + }); + } +} +exports.AuthenticationApi = AuthenticationApi; +//# sourceMappingURL=AuthenticationApi.js.map + +/***/ }), + +/***/ 87101: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.AzureIntegrationApi = exports.AzureIntegrationApiResponseProcessor = exports.AzureIntegrationApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class AzureIntegrationApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createAzureIntegration(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createAzureIntegration"); + } + // Path Params + const localVarPath = "/api/v1/integration/azure"; + // Make Request Context + const requestContext = _config + .getServer("v1.AzureIntegrationApi.createAzureIntegration") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "AzureAccount", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteAzureIntegration(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "deleteAzureIntegration"); + } + // Path Params + const localVarPath = "/api/v1/integration/azure"; + // Make Request Context + const requestContext = _config + .getServer("v1.AzureIntegrationApi.deleteAzureIntegration") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "AzureAccount", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listAzureIntegration(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/integration/azure"; + // Make Request Context + const requestContext = _config + .getServer("v1.AzureIntegrationApi.listAzureIntegration") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateAzureHostFilters(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateAzureHostFilters"); + } + // Path Params + const localVarPath = "/api/v1/integration/azure/host_filters"; + // Make Request Context + const requestContext = _config + .getServer("v1.AzureIntegrationApi.updateAzureHostFilters") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "AzureAccount", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateAzureIntegration(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateAzureIntegration"); + } + // Path Params + const localVarPath = "/api/v1/integration/azure"; + // Make Request Context + const requestContext = _config + .getServer("v1.AzureIntegrationApi.updateAzureIntegration") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "AzureAccount", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.AzureIntegrationApiRequestFactory = AzureIntegrationApiRequestFactory; +class AzureIntegrationApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createAzureIntegration + * @throws ApiException if the response code was not in [200, 299] + */ + createAzureIntegration(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteAzureIntegration + * @throws ApiException if the response code was not in [200, 299] + */ + deleteAzureIntegration(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listAzureIntegration + * @throws ApiException if the response code was not in [200, 299] + */ + listAzureIntegration(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateAzureHostFilters + * @throws ApiException if the response code was not in [200, 299] + */ + updateAzureHostFilters(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateAzureIntegration + * @throws ApiException if the response code was not in [200, 299] + */ + updateAzureIntegration(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.AzureIntegrationApiResponseProcessor = AzureIntegrationApiResponseProcessor; +class AzureIntegrationApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new AzureIntegrationApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new AzureIntegrationApiResponseProcessor(); + } + /** + * Create a Datadog-Azure integration. + * + * Using the `POST` method updates your integration configuration by adding your new + * configuration to the existing one in your Datadog organization. + * + * Using the `PUT` method updates your integration configuration by replacing your + * current configuration with the new one sent to your Datadog organization. + * @param param The request object + */ + createAzureIntegration(param, options) { + const requestContextPromise = this.requestFactory.createAzureIntegration(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createAzureIntegration(responseContext); + }); + }); + } + /** + * Delete a given Datadog-Azure integration from your Datadog account. + * @param param The request object + */ + deleteAzureIntegration(param, options) { + const requestContextPromise = this.requestFactory.deleteAzureIntegration(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteAzureIntegration(responseContext); + }); + }); + } + /** + * List all Datadog-Azure integrations configured in your Datadog account. + * @param param The request object + */ + listAzureIntegration(options) { + const requestContextPromise = this.requestFactory.listAzureIntegration(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listAzureIntegration(responseContext); + }); + }); + } + /** + * Update the defined list of host filters for a given Datadog-Azure integration. + * @param param The request object + */ + updateAzureHostFilters(param, options) { + const requestContextPromise = this.requestFactory.updateAzureHostFilters(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateAzureHostFilters(responseContext); + }); + }); + } + /** + * Update a Datadog-Azure integration. Requires an existing `tenant_name` and `client_id`. + * Any other fields supplied will overwrite existing values. To overwrite `tenant_name` or `client_id`, + * use `new_tenant_name` and `new_client_id`. To leave a field unchanged, do not supply that field in the payload. + * @param param The request object + */ + updateAzureIntegration(param, options) { + const requestContextPromise = this.requestFactory.updateAzureIntegration(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateAzureIntegration(responseContext); + }); + }); + } +} +exports.AzureIntegrationApi = AzureIntegrationApi; +//# sourceMappingURL=AzureIntegrationApi.js.map + +/***/ }), + +/***/ 43115: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.DashboardListsApi = exports.DashboardListsApiResponseProcessor = exports.DashboardListsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class DashboardListsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createDashboardList(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createDashboardList"); + } + // Path Params + const localVarPath = "/api/v1/dashboard/lists/manual"; + // Make Request Context + const requestContext = _config + .getServer("v1.DashboardListsApi.createDashboardList") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "DashboardList", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteDashboardList(listId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'listId' is not null or undefined + if (listId === null || listId === undefined) { + throw new baseapi_1.RequiredError("listId", "deleteDashboardList"); + } + // Path Params + const localVarPath = "/api/v1/dashboard/lists/manual/{list_id}".replace("{list_id}", encodeURIComponent(String(listId))); + // Make Request Context + const requestContext = _config + .getServer("v1.DashboardListsApi.deleteDashboardList") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getDashboardList(listId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'listId' is not null or undefined + if (listId === null || listId === undefined) { + throw new baseapi_1.RequiredError("listId", "getDashboardList"); + } + // Path Params + const localVarPath = "/api/v1/dashboard/lists/manual/{list_id}".replace("{list_id}", encodeURIComponent(String(listId))); + // Make Request Context + const requestContext = _config + .getServer("v1.DashboardListsApi.getDashboardList") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listDashboardLists(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/dashboard/lists/manual"; + // Make Request Context + const requestContext = _config + .getServer("v1.DashboardListsApi.listDashboardLists") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateDashboardList(listId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'listId' is not null or undefined + if (listId === null || listId === undefined) { + throw new baseapi_1.RequiredError("listId", "updateDashboardList"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateDashboardList"); + } + // Path Params + const localVarPath = "/api/v1/dashboard/lists/manual/{list_id}".replace("{list_id}", encodeURIComponent(String(listId))); + // Make Request Context + const requestContext = _config + .getServer("v1.DashboardListsApi.updateDashboardList") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "DashboardList", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.DashboardListsApiRequestFactory = DashboardListsApiRequestFactory; +class DashboardListsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createDashboardList + * @throws ApiException if the response code was not in [200, 299] + */ + createDashboardList(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DashboardList"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DashboardList", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteDashboardList + * @throws ApiException if the response code was not in [200, 299] + */ + deleteDashboardList(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DashboardListDeleteResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DashboardListDeleteResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getDashboardList + * @throws ApiException if the response code was not in [200, 299] + */ + getDashboardList(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DashboardList"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DashboardList", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listDashboardLists + * @throws ApiException if the response code was not in [200, 299] + */ + listDashboardLists(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DashboardListListResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DashboardListListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateDashboardList + * @throws ApiException if the response code was not in [200, 299] + */ + updateDashboardList(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DashboardList"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DashboardList", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.DashboardListsApiResponseProcessor = DashboardListsApiResponseProcessor; +class DashboardListsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new DashboardListsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new DashboardListsApiResponseProcessor(); + } + /** + * Create an empty dashboard list. + * @param param The request object + */ + createDashboardList(param, options) { + const requestContextPromise = this.requestFactory.createDashboardList(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createDashboardList(responseContext); + }); + }); + } + /** + * Delete a dashboard list. + * @param param The request object + */ + deleteDashboardList(param, options) { + const requestContextPromise = this.requestFactory.deleteDashboardList(param.listId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteDashboardList(responseContext); + }); + }); + } + /** + * Fetch an existing dashboard list's definition. + * @param param The request object + */ + getDashboardList(param, options) { + const requestContextPromise = this.requestFactory.getDashboardList(param.listId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getDashboardList(responseContext); + }); + }); + } + /** + * Fetch all of your existing dashboard list definitions. + * @param param The request object + */ + listDashboardLists(options) { + const requestContextPromise = this.requestFactory.listDashboardLists(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listDashboardLists(responseContext); + }); + }); + } + /** + * Update the name of a dashboard list. + * @param param The request object + */ + updateDashboardList(param, options) { + const requestContextPromise = this.requestFactory.updateDashboardList(param.listId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateDashboardList(responseContext); + }); + }); + } +} +exports.DashboardListsApi = DashboardListsApi; +//# sourceMappingURL=DashboardListsApi.js.map + +/***/ }), + +/***/ 95443: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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 __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DashboardsApi = exports.DashboardsApiResponseProcessor = exports.DashboardsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class DashboardsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createDashboard(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createDashboard"); + } + // Path Params + const localVarPath = "/api/v1/dashboard"; + // Make Request Context + const requestContext = _config + .getServer("v1.DashboardsApi.createDashboard") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "Dashboard", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createPublicDashboard(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createPublicDashboard"); + } + // Path Params + const localVarPath = "/api/v1/dashboard/public"; + // Make Request Context + const requestContext = _config + .getServer("v1.DashboardsApi.createPublicDashboard") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SharedDashboard", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteDashboard(dashboardId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'dashboardId' is not null or undefined + if (dashboardId === null || dashboardId === undefined) { + throw new baseapi_1.RequiredError("dashboardId", "deleteDashboard"); + } + // Path Params + const localVarPath = "/api/v1/dashboard/{dashboard_id}".replace("{dashboard_id}", encodeURIComponent(String(dashboardId))); + // Make Request Context + const requestContext = _config + .getServer("v1.DashboardsApi.deleteDashboard") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteDashboards(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "deleteDashboards"); + } + // Path Params + const localVarPath = "/api/v1/dashboard"; + // Make Request Context + const requestContext = _config + .getServer("v1.DashboardsApi.deleteDashboards") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "DashboardBulkDeleteRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deletePublicDashboard(token, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'token' is not null or undefined + if (token === null || token === undefined) { + throw new baseapi_1.RequiredError("token", "deletePublicDashboard"); + } + // Path Params + const localVarPath = "/api/v1/dashboard/public/{token}".replace("{token}", encodeURIComponent(String(token))); + // Make Request Context + const requestContext = _config + .getServer("v1.DashboardsApi.deletePublicDashboard") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deletePublicDashboardInvitation(token, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'token' is not null or undefined + if (token === null || token === undefined) { + throw new baseapi_1.RequiredError("token", "deletePublicDashboardInvitation"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "deletePublicDashboardInvitation"); + } + // Path Params + const localVarPath = "/api/v1/dashboard/public/{token}/invitation".replace("{token}", encodeURIComponent(String(token))); + // Make Request Context + const requestContext = _config + .getServer("v1.DashboardsApi.deletePublicDashboardInvitation") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SharedDashboardInvites", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getDashboard(dashboardId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'dashboardId' is not null or undefined + if (dashboardId === null || dashboardId === undefined) { + throw new baseapi_1.RequiredError("dashboardId", "getDashboard"); + } + // Path Params + const localVarPath = "/api/v1/dashboard/{dashboard_id}".replace("{dashboard_id}", encodeURIComponent(String(dashboardId))); + // Make Request Context + const requestContext = _config + .getServer("v1.DashboardsApi.getDashboard") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getPublicDashboard(token, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'token' is not null or undefined + if (token === null || token === undefined) { + throw new baseapi_1.RequiredError("token", "getPublicDashboard"); + } + // Path Params + const localVarPath = "/api/v1/dashboard/public/{token}".replace("{token}", encodeURIComponent(String(token))); + // Make Request Context + const requestContext = _config + .getServer("v1.DashboardsApi.getPublicDashboard") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getPublicDashboardInvitations(token, pageSize, pageNumber, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'token' is not null or undefined + if (token === null || token === undefined) { + throw new baseapi_1.RequiredError("token", "getPublicDashboardInvitations"); + } + // Path Params + const localVarPath = "/api/v1/dashboard/public/{token}/invitation".replace("{token}", encodeURIComponent(String(token))); + // Make Request Context + const requestContext = _config + .getServer("v1.DashboardsApi.getPublicDashboardInvitations") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (pageSize !== undefined) { + requestContext.setQueryParam("page_size", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), ""); + } + if (pageNumber !== undefined) { + requestContext.setQueryParam("page_number", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listDashboards(filterShared, filterDeleted, count, start, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/dashboard"; + // Make Request Context + const requestContext = _config + .getServer("v1.DashboardsApi.listDashboards") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (filterShared !== undefined) { + requestContext.setQueryParam("filter[shared]", ObjectSerializer_1.ObjectSerializer.serialize(filterShared, "boolean", ""), ""); + } + if (filterDeleted !== undefined) { + requestContext.setQueryParam("filter[deleted]", ObjectSerializer_1.ObjectSerializer.serialize(filterDeleted, "boolean", ""), ""); + } + if (count !== undefined) { + requestContext.setQueryParam("count", ObjectSerializer_1.ObjectSerializer.serialize(count, "number", "int64"), ""); + } + if (start !== undefined) { + requestContext.setQueryParam("start", ObjectSerializer_1.ObjectSerializer.serialize(start, "number", "int64"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + restoreDashboards(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "restoreDashboards"); + } + // Path Params + const localVarPath = "/api/v1/dashboard"; + // Make Request Context + const requestContext = _config + .getServer("v1.DashboardsApi.restoreDashboards") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "DashboardRestoreRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + sendPublicDashboardInvitation(token, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'token' is not null or undefined + if (token === null || token === undefined) { + throw new baseapi_1.RequiredError("token", "sendPublicDashboardInvitation"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "sendPublicDashboardInvitation"); + } + // Path Params + const localVarPath = "/api/v1/dashboard/public/{token}/invitation".replace("{token}", encodeURIComponent(String(token))); + // Make Request Context + const requestContext = _config + .getServer("v1.DashboardsApi.sendPublicDashboardInvitation") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SharedDashboardInvites", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateDashboard(dashboardId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'dashboardId' is not null or undefined + if (dashboardId === null || dashboardId === undefined) { + throw new baseapi_1.RequiredError("dashboardId", "updateDashboard"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateDashboard"); + } + // Path Params + const localVarPath = "/api/v1/dashboard/{dashboard_id}".replace("{dashboard_id}", encodeURIComponent(String(dashboardId))); + // Make Request Context + const requestContext = _config + .getServer("v1.DashboardsApi.updateDashboard") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "Dashboard", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updatePublicDashboard(token, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'token' is not null or undefined + if (token === null || token === undefined) { + throw new baseapi_1.RequiredError("token", "updatePublicDashboard"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updatePublicDashboard"); + } + // Path Params + const localVarPath = "/api/v1/dashboard/public/{token}".replace("{token}", encodeURIComponent(String(token))); + // Make Request Context + const requestContext = _config + .getServer("v1.DashboardsApi.updatePublicDashboard") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SharedDashboardUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.DashboardsApiRequestFactory = DashboardsApiRequestFactory; +class DashboardsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createDashboard + * @throws ApiException if the response code was not in [200, 299] + */ + createDashboard(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Dashboard"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Dashboard", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createPublicDashboard + * @throws ApiException if the response code was not in [200, 299] + */ + createPublicDashboard(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SharedDashboard"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SharedDashboard", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteDashboard + * @throws ApiException if the response code was not in [200, 299] + */ + deleteDashboard(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DashboardDeleteResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DashboardDeleteResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteDashboards + * @throws ApiException if the response code was not in [200, 299] + */ + deleteDashboards(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deletePublicDashboard + * @throws ApiException if the response code was not in [200, 299] + */ + deletePublicDashboard(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DeleteSharedDashboardResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DeleteSharedDashboardResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deletePublicDashboardInvitation + * @throws ApiException if the response code was not in [200, 299] + */ + deletePublicDashboardInvitation(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getDashboard + * @throws ApiException if the response code was not in [200, 299] + */ + getDashboard(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Dashboard"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Dashboard", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getPublicDashboard + * @throws ApiException if the response code was not in [200, 299] + */ + getPublicDashboard(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SharedDashboard"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SharedDashboard", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getPublicDashboardInvitations + * @throws ApiException if the response code was not in [200, 299] + */ + getPublicDashboardInvitations(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SharedDashboardInvites"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SharedDashboardInvites", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listDashboards + * @throws ApiException if the response code was not in [200, 299] + */ + listDashboards(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DashboardSummary"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DashboardSummary", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to restoreDashboards + * @throws ApiException if the response code was not in [200, 299] + */ + restoreDashboards(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to sendPublicDashboardInvitation + * @throws ApiException if the response code was not in [200, 299] + */ + sendPublicDashboardInvitation(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SharedDashboardInvites"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SharedDashboardInvites", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateDashboard + * @throws ApiException if the response code was not in [200, 299] + */ + updateDashboard(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Dashboard"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Dashboard", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updatePublicDashboard + * @throws ApiException if the response code was not in [200, 299] + */ + updatePublicDashboard(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SharedDashboard"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SharedDashboard", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.DashboardsApiResponseProcessor = DashboardsApiResponseProcessor; +class DashboardsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new DashboardsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new DashboardsApiResponseProcessor(); + } + /** + * Create a dashboard using the specified options. When defining queries in your widgets, take note of which queries should have the `as_count()` or `as_rate()` modifiers appended. + * Refer to the following [documentation](https://docs.datadoghq.com/developers/metrics/type_modifiers/?tab=count#in-application-modifiers) for more information on these modifiers. + * @param param The request object + */ + createDashboard(param, options) { + const requestContextPromise = this.requestFactory.createDashboard(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createDashboard(responseContext); + }); + }); + } + /** + * Share a specified private dashboard, generating a URL at which it can be publicly viewed. + * @param param The request object + */ + createPublicDashboard(param, options) { + const requestContextPromise = this.requestFactory.createPublicDashboard(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createPublicDashboard(responseContext); + }); + }); + } + /** + * Delete a dashboard using the specified ID. + * @param param The request object + */ + deleteDashboard(param, options) { + const requestContextPromise = this.requestFactory.deleteDashboard(param.dashboardId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteDashboard(responseContext); + }); + }); + } + /** + * Delete dashboards using the specified IDs. If there are any failures, no dashboards will be deleted (partial success is not allowed). + * @param param The request object + */ + deleteDashboards(param, options) { + const requestContextPromise = this.requestFactory.deleteDashboards(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteDashboards(responseContext); + }); + }); + } + /** + * Revoke the public URL for a dashboard (rendering it private) associated with the specified token. + * @param param The request object + */ + deletePublicDashboard(param, options) { + const requestContextPromise = this.requestFactory.deletePublicDashboard(param.token, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deletePublicDashboard(responseContext); + }); + }); + } + /** + * Revoke previously sent invitation emails and active sessions used to access a given shared dashboard for specific email addresses. + * @param param The request object + */ + deletePublicDashboardInvitation(param, options) { + const requestContextPromise = this.requestFactory.deletePublicDashboardInvitation(param.token, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deletePublicDashboardInvitation(responseContext); + }); + }); + } + /** + * Get a dashboard using the specified ID. + * @param param The request object + */ + getDashboard(param, options) { + const requestContextPromise = this.requestFactory.getDashboard(param.dashboardId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getDashboard(responseContext); + }); + }); + } + /** + * Fetch an existing shared dashboard's sharing metadata associated with the specified token. + * @param param The request object + */ + getPublicDashboard(param, options) { + const requestContextPromise = this.requestFactory.getPublicDashboard(param.token, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getPublicDashboard(responseContext); + }); + }); + } + /** + * Describe the invitations that exist for the given shared dashboard (paginated). + * @param param The request object + */ + getPublicDashboardInvitations(param, options) { + const requestContextPromise = this.requestFactory.getPublicDashboardInvitations(param.token, param.pageSize, param.pageNumber, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getPublicDashboardInvitations(responseContext); + }); + }); + } + /** + * Get all dashboards. + * + * **Note**: This query will only return custom created or cloned dashboards. + * This query will not return preset dashboards. + * @param param The request object + */ + listDashboards(param = {}, options) { + const requestContextPromise = this.requestFactory.listDashboards(param.filterShared, param.filterDeleted, param.count, param.start, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listDashboards(responseContext); + }); + }); + } + /** + * Provide a paginated version of listDashboards returning a generator with all the items. + */ + listDashboardsWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* listDashboardsWithPagination_1() { + let pageSize = 100; + if (param.count !== undefined) { + pageSize = param.count; + } + param.count = pageSize; + while (true) { + const requestContext = yield __await(this.requestFactory.listDashboards(param.filterShared, param.filterDeleted, param.count, param.start, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listDashboards(responseContext)); + const responseDashboards = response.dashboards; + if (responseDashboards === undefined) { + break; + } + const results = responseDashboards; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + if (param.start === undefined) { + param.start = pageSize; + } + else { + param.start = param.start + pageSize; + } + } + }); + } + /** + * Restore dashboards using the specified IDs. If there are any failures, no dashboards will be restored (partial success is not allowed). + * @param param The request object + */ + restoreDashboards(param, options) { + const requestContextPromise = this.requestFactory.restoreDashboards(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.restoreDashboards(responseContext); + }); + }); + } + /** + * Send emails to specified email addresses containing links to access a given authenticated shared dashboard. Email addresses must already belong to the authenticated shared dashboard's share_list. + * @param param The request object + */ + sendPublicDashboardInvitation(param, options) { + const requestContextPromise = this.requestFactory.sendPublicDashboardInvitation(param.token, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.sendPublicDashboardInvitation(responseContext); + }); + }); + } + /** + * Update a dashboard using the specified ID. + * @param param The request object + */ + updateDashboard(param, options) { + const requestContextPromise = this.requestFactory.updateDashboard(param.dashboardId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateDashboard(responseContext); + }); + }); + } + /** + * Update a shared dashboard associated with the specified token. + * @param param The request object + */ + updatePublicDashboard(param, options) { + const requestContextPromise = this.requestFactory.updatePublicDashboard(param.token, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updatePublicDashboard(responseContext); + }); + }); + } +} +exports.DashboardsApi = DashboardsApi; +//# sourceMappingURL=DashboardsApi.js.map + +/***/ }), + +/***/ 92416: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.DowntimesApi = exports.DowntimesApiResponseProcessor = exports.DowntimesApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class DowntimesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + cancelDowntime(downtimeId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'downtimeId' is not null or undefined + if (downtimeId === null || downtimeId === undefined) { + throw new baseapi_1.RequiredError("downtimeId", "cancelDowntime"); + } + // Path Params + const localVarPath = "/api/v1/downtime/{downtime_id}".replace("{downtime_id}", encodeURIComponent(String(downtimeId))); + // Make Request Context + const requestContext = _config + .getServer("v1.DowntimesApi.cancelDowntime") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + cancelDowntimesByScope(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "cancelDowntimesByScope"); + } + // Path Params + const localVarPath = "/api/v1/downtime/cancel/by_scope"; + // Make Request Context + const requestContext = _config + .getServer("v1.DowntimesApi.cancelDowntimesByScope") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "CancelDowntimesByScopeRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createDowntime(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createDowntime"); + } + // Path Params + const localVarPath = "/api/v1/downtime"; + // Make Request Context + const requestContext = _config + .getServer("v1.DowntimesApi.createDowntime") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "Downtime", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getDowntime(downtimeId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'downtimeId' is not null or undefined + if (downtimeId === null || downtimeId === undefined) { + throw new baseapi_1.RequiredError("downtimeId", "getDowntime"); + } + // Path Params + const localVarPath = "/api/v1/downtime/{downtime_id}".replace("{downtime_id}", encodeURIComponent(String(downtimeId))); + // Make Request Context + const requestContext = _config + .getServer("v1.DowntimesApi.getDowntime") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listDowntimes(currentOnly, withCreator, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/downtime"; + // Make Request Context + const requestContext = _config + .getServer("v1.DowntimesApi.listDowntimes") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (currentOnly !== undefined) { + requestContext.setQueryParam("current_only", ObjectSerializer_1.ObjectSerializer.serialize(currentOnly, "boolean", ""), ""); + } + if (withCreator !== undefined) { + requestContext.setQueryParam("with_creator", ObjectSerializer_1.ObjectSerializer.serialize(withCreator, "boolean", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listMonitorDowntimes(monitorId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'monitorId' is not null or undefined + if (monitorId === null || monitorId === undefined) { + throw new baseapi_1.RequiredError("monitorId", "listMonitorDowntimes"); + } + // Path Params + const localVarPath = "/api/v1/monitor/{monitor_id}/downtimes".replace("{monitor_id}", encodeURIComponent(String(monitorId))); + // Make Request Context + const requestContext = _config + .getServer("v1.DowntimesApi.listMonitorDowntimes") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateDowntime(downtimeId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'downtimeId' is not null or undefined + if (downtimeId === null || downtimeId === undefined) { + throw new baseapi_1.RequiredError("downtimeId", "updateDowntime"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateDowntime"); + } + // Path Params + const localVarPath = "/api/v1/downtime/{downtime_id}".replace("{downtime_id}", encodeURIComponent(String(downtimeId))); + // Make Request Context + const requestContext = _config + .getServer("v1.DowntimesApi.updateDowntime") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "Downtime", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.DowntimesApiRequestFactory = DowntimesApiRequestFactory; +class DowntimesApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to cancelDowntime + * @throws ApiException if the response code was not in [200, 299] + */ + cancelDowntime(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to cancelDowntimesByScope + * @throws ApiException if the response code was not in [200, 299] + */ + cancelDowntimesByScope(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CanceledDowntimesIds"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CanceledDowntimesIds", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createDowntime + * @throws ApiException if the response code was not in [200, 299] + */ + createDowntime(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Downtime"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Downtime", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getDowntime + * @throws ApiException if the response code was not in [200, 299] + */ + getDowntime(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Downtime"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Downtime", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listDowntimes + * @throws ApiException if the response code was not in [200, 299] + */ + listDowntimes(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listMonitorDowntimes + * @throws ApiException if the response code was not in [200, 299] + */ + listMonitorDowntimes(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateDowntime + * @throws ApiException if the response code was not in [200, 299] + */ + updateDowntime(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Downtime"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Downtime", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.DowntimesApiResponseProcessor = DowntimesApiResponseProcessor; +class DowntimesApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new DowntimesApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new DowntimesApiResponseProcessor(); + } + /** + * Cancel a downtime. **Note:** This endpoint has been deprecated. Please use v2 endpoints. + * @param param The request object + */ + cancelDowntime(param, options) { + const requestContextPromise = this.requestFactory.cancelDowntime(param.downtimeId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.cancelDowntime(responseContext); + }); + }); + } + /** + * Delete all downtimes that match the scope of `X`. **Note:** This only interacts with Downtimes created using v1 endpoints. This endpoint has been deprecated and will not be replaced. Please use v2 endpoints to find and cancel downtimes. + * @param param The request object + */ + cancelDowntimesByScope(param, options) { + const requestContextPromise = this.requestFactory.cancelDowntimesByScope(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.cancelDowntimesByScope(responseContext); + }); + }); + } + /** + * Schedule a downtime. **Note:** This endpoint has been deprecated. Please use v2 endpoints. + * @param param The request object + */ + createDowntime(param, options) { + const requestContextPromise = this.requestFactory.createDowntime(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createDowntime(responseContext); + }); + }); + } + /** + * Get downtime detail by `downtime_id`. **Note:** This endpoint has been deprecated. Please use v2 endpoints. + * @param param The request object + */ + getDowntime(param, options) { + const requestContextPromise = this.requestFactory.getDowntime(param.downtimeId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getDowntime(responseContext); + }); + }); + } + /** + * Get all scheduled downtimes. **Note:** This endpoint has been deprecated. Please use v2 endpoints. + * @param param The request object + */ + listDowntimes(param = {}, options) { + const requestContextPromise = this.requestFactory.listDowntimes(param.currentOnly, param.withCreator, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listDowntimes(responseContext); + }); + }); + } + /** + * Get all active v1 downtimes for the specified monitor. **Note:** This endpoint has been deprecated. Please use v2 endpoints. + * @param param The request object + */ + listMonitorDowntimes(param, options) { + const requestContextPromise = this.requestFactory.listMonitorDowntimes(param.monitorId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listMonitorDowntimes(responseContext); + }); + }); + } + /** + * Update a single downtime by `downtime_id`. **Note:** This endpoint has been deprecated. Please use v2 endpoints. + * @param param The request object + */ + updateDowntime(param, options) { + const requestContextPromise = this.requestFactory.updateDowntime(param.downtimeId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateDowntime(responseContext); + }); + }); + } +} +exports.DowntimesApi = DowntimesApi; +//# sourceMappingURL=DowntimesApi.js.map + +/***/ }), + +/***/ 72095: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.EventsApi = exports.EventsApiResponseProcessor = exports.EventsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class EventsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createEvent(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createEvent"); + } + // Path Params + const localVarPath = "/api/v1/events"; + // Make Request Context + const requestContext = _config + .getServer("v1.EventsApi.createEvent") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "EventCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, ["apiKeyAuth"]); + return requestContext; + }); + } + getEvent(eventId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'eventId' is not null or undefined + if (eventId === null || eventId === undefined) { + throw new baseapi_1.RequiredError("eventId", "getEvent"); + } + // Path Params + const localVarPath = "/api/v1/events/{event_id}".replace("{event_id}", encodeURIComponent(String(eventId))); + // Make Request Context + const requestContext = _config + .getServer("v1.EventsApi.getEvent") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listEvents(start, end, priority, sources, tags, unaggregated, excludeAggregate, page, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'start' is not null or undefined + if (start === null || start === undefined) { + throw new baseapi_1.RequiredError("start", "listEvents"); + } + // verify required parameter 'end' is not null or undefined + if (end === null || end === undefined) { + throw new baseapi_1.RequiredError("end", "listEvents"); + } + // Path Params + const localVarPath = "/api/v1/events"; + // Make Request Context + const requestContext = _config + .getServer("v1.EventsApi.listEvents") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (start !== undefined) { + requestContext.setQueryParam("start", ObjectSerializer_1.ObjectSerializer.serialize(start, "number", "int64"), ""); + } + if (end !== undefined) { + requestContext.setQueryParam("end", ObjectSerializer_1.ObjectSerializer.serialize(end, "number", "int64"), ""); + } + if (priority !== undefined) { + requestContext.setQueryParam("priority", ObjectSerializer_1.ObjectSerializer.serialize(priority, "EventPriority", ""), ""); + } + if (sources !== undefined) { + requestContext.setQueryParam("sources", ObjectSerializer_1.ObjectSerializer.serialize(sources, "string", ""), ""); + } + if (tags !== undefined) { + requestContext.setQueryParam("tags", ObjectSerializer_1.ObjectSerializer.serialize(tags, "string", ""), ""); + } + if (unaggregated !== undefined) { + requestContext.setQueryParam("unaggregated", ObjectSerializer_1.ObjectSerializer.serialize(unaggregated, "boolean", ""), ""); + } + if (excludeAggregate !== undefined) { + requestContext.setQueryParam("exclude_aggregate", ObjectSerializer_1.ObjectSerializer.serialize(excludeAggregate, "boolean", ""), ""); + } + if (page !== undefined) { + requestContext.setQueryParam("page", ObjectSerializer_1.ObjectSerializer.serialize(page, "number", "int32"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.EventsApiRequestFactory = EventsApiRequestFactory; +class EventsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createEvent + * @throws ApiException if the response code was not in [200, 299] + */ + createEvent(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 202) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "EventCreateResponse"); + return body; + } + if (response.httpStatusCode === 400 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "EventCreateResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getEvent + * @throws ApiException if the response code was not in [200, 299] + */ + getEvent(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "EventResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "EventResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listEvents + * @throws ApiException if the response code was not in [200, 299] + */ + listEvents(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "EventListResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "EventListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.EventsApiResponseProcessor = EventsApiResponseProcessor; +class EventsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new EventsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new EventsApiResponseProcessor(); + } + /** + * This endpoint allows you to post events to the stream. + * Tag them, set priority and event aggregate them with other events. + * @param param The request object + */ + createEvent(param, options) { + const requestContextPromise = this.requestFactory.createEvent(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createEvent(responseContext); + }); + }); + } + /** + * This endpoint allows you to query for event details. + * + * **Note**: If the event you’re querying contains markdown formatting of any kind, + * you may see characters such as `%`,`\`,`n` in your output. + * @param param The request object + */ + getEvent(param, options) { + const requestContextPromise = this.requestFactory.getEvent(param.eventId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getEvent(responseContext); + }); + }); + } + /** + * The event stream can be queried and filtered by time, priority, sources and tags. + * + * **Notes**: + * - If the event you’re querying contains markdown formatting of any kind, + * you may see characters such as `%`,`\`,`n` in your output. + * + * - This endpoint returns a maximum of `1000` most recent results. To return additional results, + * identify the last timestamp of the last result and set that as the `end` query time to + * paginate the results. You can also use the page parameter to specify which set of `1000` results to return. + * @param param The request object + */ + listEvents(param, options) { + const requestContextPromise = this.requestFactory.listEvents(param.start, param.end, param.priority, param.sources, param.tags, param.unaggregated, param.excludeAggregate, param.page, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listEvents(responseContext); + }); + }); + } +} +exports.EventsApi = EventsApi; +//# sourceMappingURL=EventsApi.js.map + +/***/ }), + +/***/ 46688: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.GCPIntegrationApi = exports.GCPIntegrationApiResponseProcessor = exports.GCPIntegrationApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class GCPIntegrationApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createGCPIntegration(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createGCPIntegration"); + } + // Path Params + const localVarPath = "/api/v1/integration/gcp"; + // Make Request Context + const requestContext = _config + .getServer("v1.GCPIntegrationApi.createGCPIntegration") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "GCPAccount", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteGCPIntegration(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "deleteGCPIntegration"); + } + // Path Params + const localVarPath = "/api/v1/integration/gcp"; + // Make Request Context + const requestContext = _config + .getServer("v1.GCPIntegrationApi.deleteGCPIntegration") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "GCPAccount", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listGCPIntegration(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/integration/gcp"; + // Make Request Context + const requestContext = _config + .getServer("v1.GCPIntegrationApi.listGCPIntegration") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateGCPIntegration(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateGCPIntegration"); + } + // Path Params + const localVarPath = "/api/v1/integration/gcp"; + // Make Request Context + const requestContext = _config + .getServer("v1.GCPIntegrationApi.updateGCPIntegration") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "GCPAccount", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.GCPIntegrationApiRequestFactory = GCPIntegrationApiRequestFactory; +class GCPIntegrationApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createGCPIntegration + * @throws ApiException if the response code was not in [200, 299] + */ + createGCPIntegration(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteGCPIntegration + * @throws ApiException if the response code was not in [200, 299] + */ + deleteGCPIntegration(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listGCPIntegration + * @throws ApiException if the response code was not in [200, 299] + */ + listGCPIntegration(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateGCPIntegration + * @throws ApiException if the response code was not in [200, 299] + */ + updateGCPIntegration(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.GCPIntegrationApiResponseProcessor = GCPIntegrationApiResponseProcessor; +class GCPIntegrationApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new GCPIntegrationApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new GCPIntegrationApiResponseProcessor(); + } + /** + * This endpoint is deprecated – use the V2 endpoints instead. Create a Datadog-GCP integration. + * @param param The request object + */ + createGCPIntegration(param, options) { + const requestContextPromise = this.requestFactory.createGCPIntegration(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createGCPIntegration(responseContext); + }); + }); + } + /** + * This endpoint is deprecated – use the V2 endpoints instead. Delete a given Datadog-GCP integration. + * @param param The request object + */ + deleteGCPIntegration(param, options) { + const requestContextPromise = this.requestFactory.deleteGCPIntegration(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteGCPIntegration(responseContext); + }); + }); + } + /** + * This endpoint is deprecated – use the V2 endpoints instead. List all Datadog-GCP integrations configured in your Datadog account. + * @param param The request object + */ + listGCPIntegration(options) { + const requestContextPromise = this.requestFactory.listGCPIntegration(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listGCPIntegration(responseContext); + }); + }); + } + /** + * This endpoint is deprecated – use the V2 endpoints instead. Update a Datadog-GCP integrations host_filters and/or auto-mute. + * Requires a `project_id` and `client_email`, however these fields cannot be updated. + * If you need to update these fields, delete and use the create (`POST`) endpoint. + * The unspecified fields will keep their original values. + * @param param The request object + */ + updateGCPIntegration(param, options) { + const requestContextPromise = this.requestFactory.updateGCPIntegration(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateGCPIntegration(responseContext); + }); + }); + } +} +exports.GCPIntegrationApi = GCPIntegrationApi; +//# sourceMappingURL=GCPIntegrationApi.js.map + +/***/ }), + +/***/ 35407: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.HostsApi = exports.HostsApiResponseProcessor = exports.HostsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class HostsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + getHostTotals(from, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/hosts/totals"; + // Make Request Context + const requestContext = _config + .getServer("v1.HostsApi.getHostTotals") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (from !== undefined) { + requestContext.setQueryParam("from", ObjectSerializer_1.ObjectSerializer.serialize(from, "number", "int64"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listHosts(filter, sortField, sortDir, start, count, from, includeMutedHostsData, includeHostsMetadata, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/hosts"; + // Make Request Context + const requestContext = _config + .getServer("v1.HostsApi.listHosts") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (filter !== undefined) { + requestContext.setQueryParam("filter", ObjectSerializer_1.ObjectSerializer.serialize(filter, "string", ""), ""); + } + if (sortField !== undefined) { + requestContext.setQueryParam("sort_field", ObjectSerializer_1.ObjectSerializer.serialize(sortField, "string", ""), ""); + } + if (sortDir !== undefined) { + requestContext.setQueryParam("sort_dir", ObjectSerializer_1.ObjectSerializer.serialize(sortDir, "string", ""), ""); + } + if (start !== undefined) { + requestContext.setQueryParam("start", ObjectSerializer_1.ObjectSerializer.serialize(start, "number", "int64"), ""); + } + if (count !== undefined) { + requestContext.setQueryParam("count", ObjectSerializer_1.ObjectSerializer.serialize(count, "number", "int64"), ""); + } + if (from !== undefined) { + requestContext.setQueryParam("from", ObjectSerializer_1.ObjectSerializer.serialize(from, "number", "int64"), ""); + } + if (includeMutedHostsData !== undefined) { + requestContext.setQueryParam("include_muted_hosts_data", ObjectSerializer_1.ObjectSerializer.serialize(includeMutedHostsData, "boolean", ""), ""); + } + if (includeHostsMetadata !== undefined) { + requestContext.setQueryParam("include_hosts_metadata", ObjectSerializer_1.ObjectSerializer.serialize(includeHostsMetadata, "boolean", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + muteHost(hostName, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'hostName' is not null or undefined + if (hostName === null || hostName === undefined) { + throw new baseapi_1.RequiredError("hostName", "muteHost"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "muteHost"); + } + // Path Params + const localVarPath = "/api/v1/host/{host_name}/mute".replace("{host_name}", encodeURIComponent(String(hostName))); + // Make Request Context + const requestContext = _config + .getServer("v1.HostsApi.muteHost") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "HostMuteSettings", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + unmuteHost(hostName, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'hostName' is not null or undefined + if (hostName === null || hostName === undefined) { + throw new baseapi_1.RequiredError("hostName", "unmuteHost"); + } + // Path Params + const localVarPath = "/api/v1/host/{host_name}/unmute".replace("{host_name}", encodeURIComponent(String(hostName))); + // Make Request Context + const requestContext = _config + .getServer("v1.HostsApi.unmuteHost") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.HostsApiRequestFactory = HostsApiRequestFactory; +class HostsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getHostTotals + * @throws ApiException if the response code was not in [200, 299] + */ + getHostTotals(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "HostTotals"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "HostTotals", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listHosts + * @throws ApiException if the response code was not in [200, 299] + */ + listHosts(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "HostListResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "HostListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to muteHost + * @throws ApiException if the response code was not in [200, 299] + */ + muteHost(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "HostMuteResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "HostMuteResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to unmuteHost + * @throws ApiException if the response code was not in [200, 299] + */ + unmuteHost(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "HostMuteResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "HostMuteResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.HostsApiResponseProcessor = HostsApiResponseProcessor; +class HostsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new HostsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new HostsApiResponseProcessor(); + } + /** + * This endpoint returns the total number of active and up hosts in your Datadog account. + * Active means the host has reported in the past hour, and up means it has reported in the past two hours. + * @param param The request object + */ + getHostTotals(param = {}, options) { + const requestContextPromise = this.requestFactory.getHostTotals(param.from, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getHostTotals(responseContext); + }); + }); + } + /** + * This endpoint allows searching for hosts by name, alias, or tag. + * Hosts live within the past 3 hours are included by default. + * Retention is 7 days. + * Results are paginated with a max of 1000 results at a time. + * @param param The request object + */ + listHosts(param = {}, options) { + const requestContextPromise = this.requestFactory.listHosts(param.filter, param.sortField, param.sortDir, param.start, param.count, param.from, param.includeMutedHostsData, param.includeHostsMetadata, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listHosts(responseContext); + }); + }); + } + /** + * Mute a host. **Note:** This creates a [Downtime V2](https://docs.datadoghq.com/api/latest/downtimes/#schedule-a-downtime) for the host. + * @param param The request object + */ + muteHost(param, options) { + const requestContextPromise = this.requestFactory.muteHost(param.hostName, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.muteHost(responseContext); + }); + }); + } + /** + * Unmutes a host. This endpoint takes no JSON arguments. + * @param param The request object + */ + unmuteHost(param, options) { + const requestContextPromise = this.requestFactory.unmuteHost(param.hostName, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.unmuteHost(responseContext); + }); + }); + } +} +exports.HostsApi = HostsApi; +//# sourceMappingURL=HostsApi.js.map + +/***/ }), + +/***/ 66305: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.IPRangesApi = exports.IPRangesApiResponseProcessor = exports.IPRangesApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class IPRangesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + getIPRanges(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/"; + // Make Request Context + const requestContext = _config + .getServer("v1.IPRangesApi.getIPRanges") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + return requestContext; + }); + } +} +exports.IPRangesApiRequestFactory = IPRangesApiRequestFactory; +class IPRangesApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getIPRanges + * @throws ApiException if the response code was not in [200, 299] + */ + getIPRanges(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IPRanges"); + return body; + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IPRanges", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.IPRangesApiResponseProcessor = IPRangesApiResponseProcessor; +class IPRangesApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new IPRangesApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new IPRangesApiResponseProcessor(); + } + /** + * Get information about Datadog IP ranges. + * @param param The request object + */ + getIPRanges(options) { + const requestContextPromise = this.requestFactory.getIPRanges(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getIPRanges(responseContext); + }); + }); + } +} +exports.IPRangesApi = IPRangesApi; +//# sourceMappingURL=IPRangesApi.js.map + +/***/ }), + +/***/ 73514: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.KeyManagementApi = exports.KeyManagementApiResponseProcessor = exports.KeyManagementApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class KeyManagementApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createAPIKey(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createAPIKey"); + } + // Path Params + const localVarPath = "/api/v1/api_key"; + // Make Request Context + const requestContext = _config + .getServer("v1.KeyManagementApi.createAPIKey") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ApiKey", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createApplicationKey(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createApplicationKey"); + } + // Path Params + const localVarPath = "/api/v1/application_key"; + // Make Request Context + const requestContext = _config + .getServer("v1.KeyManagementApi.createApplicationKey") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ApplicationKey", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteAPIKey(key, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'key' is not null or undefined + if (key === null || key === undefined) { + throw new baseapi_1.RequiredError("key", "deleteAPIKey"); + } + // Path Params + const localVarPath = "/api/v1/api_key/{key}".replace("{key}", encodeURIComponent(String(key))); + // Make Request Context + const requestContext = _config + .getServer("v1.KeyManagementApi.deleteAPIKey") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteApplicationKey(key, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'key' is not null or undefined + if (key === null || key === undefined) { + throw new baseapi_1.RequiredError("key", "deleteApplicationKey"); + } + // Path Params + const localVarPath = "/api/v1/application_key/{key}".replace("{key}", encodeURIComponent(String(key))); + // Make Request Context + const requestContext = _config + .getServer("v1.KeyManagementApi.deleteApplicationKey") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getAPIKey(key, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'key' is not null or undefined + if (key === null || key === undefined) { + throw new baseapi_1.RequiredError("key", "getAPIKey"); + } + // Path Params + const localVarPath = "/api/v1/api_key/{key}".replace("{key}", encodeURIComponent(String(key))); + // Make Request Context + const requestContext = _config + .getServer("v1.KeyManagementApi.getAPIKey") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getApplicationKey(key, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'key' is not null or undefined + if (key === null || key === undefined) { + throw new baseapi_1.RequiredError("key", "getApplicationKey"); + } + // Path Params + const localVarPath = "/api/v1/application_key/{key}".replace("{key}", encodeURIComponent(String(key))); + // Make Request Context + const requestContext = _config + .getServer("v1.KeyManagementApi.getApplicationKey") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listAPIKeys(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/api_key"; + // Make Request Context + const requestContext = _config + .getServer("v1.KeyManagementApi.listAPIKeys") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listApplicationKeys(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/application_key"; + // Make Request Context + const requestContext = _config + .getServer("v1.KeyManagementApi.listApplicationKeys") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateAPIKey(key, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'key' is not null or undefined + if (key === null || key === undefined) { + throw new baseapi_1.RequiredError("key", "updateAPIKey"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateAPIKey"); + } + // Path Params + const localVarPath = "/api/v1/api_key/{key}".replace("{key}", encodeURIComponent(String(key))); + // Make Request Context + const requestContext = _config + .getServer("v1.KeyManagementApi.updateAPIKey") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ApiKey", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateApplicationKey(key, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'key' is not null or undefined + if (key === null || key === undefined) { + throw new baseapi_1.RequiredError("key", "updateApplicationKey"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateApplicationKey"); + } + // Path Params + const localVarPath = "/api/v1/application_key/{key}".replace("{key}", encodeURIComponent(String(key))); + // Make Request Context + const requestContext = _config + .getServer("v1.KeyManagementApi.updateApplicationKey") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ApplicationKey", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.KeyManagementApiRequestFactory = KeyManagementApiRequestFactory; +class KeyManagementApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createAPIKey + * @throws ApiException if the response code was not in [200, 299] + */ + createAPIKey(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApiKeyResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApiKeyResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createApplicationKey + * @throws ApiException if the response code was not in [200, 299] + */ + createApplicationKey(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApplicationKeyResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApplicationKeyResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteAPIKey + * @throws ApiException if the response code was not in [200, 299] + */ + deleteAPIKey(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApiKeyResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApiKeyResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteApplicationKey + * @throws ApiException if the response code was not in [200, 299] + */ + deleteApplicationKey(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApplicationKeyResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApplicationKeyResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getAPIKey + * @throws ApiException if the response code was not in [200, 299] + */ + getAPIKey(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApiKeyResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApiKeyResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getApplicationKey + * @throws ApiException if the response code was not in [200, 299] + */ + getApplicationKey(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApplicationKeyResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApplicationKeyResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listAPIKeys + * @throws ApiException if the response code was not in [200, 299] + */ + listAPIKeys(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApiKeyListResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApiKeyListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listApplicationKeys + * @throws ApiException if the response code was not in [200, 299] + */ + listApplicationKeys(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApplicationKeyListResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApplicationKeyListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateAPIKey + * @throws ApiException if the response code was not in [200, 299] + */ + updateAPIKey(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApiKeyResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApiKeyResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateApplicationKey + * @throws ApiException if the response code was not in [200, 299] + */ + updateApplicationKey(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApplicationKeyResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApplicationKeyResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.KeyManagementApiResponseProcessor = KeyManagementApiResponseProcessor; +class KeyManagementApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new KeyManagementApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new KeyManagementApiResponseProcessor(); + } + /** + * Creates an API key with a given name. + * @param param The request object + */ + createAPIKey(param, options) { + const requestContextPromise = this.requestFactory.createAPIKey(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createAPIKey(responseContext); + }); + }); + } + /** + * Create an application key with a given name. + * @param param The request object + */ + createApplicationKey(param, options) { + const requestContextPromise = this.requestFactory.createApplicationKey(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createApplicationKey(responseContext); + }); + }); + } + /** + * Delete a given API key. + * @param param The request object + */ + deleteAPIKey(param, options) { + const requestContextPromise = this.requestFactory.deleteAPIKey(param.key, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteAPIKey(responseContext); + }); + }); + } + /** + * Delete a given application key. + * @param param The request object + */ + deleteApplicationKey(param, options) { + const requestContextPromise = this.requestFactory.deleteApplicationKey(param.key, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteApplicationKey(responseContext); + }); + }); + } + /** + * Get a given API key. + * @param param The request object + */ + getAPIKey(param, options) { + const requestContextPromise = this.requestFactory.getAPIKey(param.key, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getAPIKey(responseContext); + }); + }); + } + /** + * Get a given application key. + * @param param The request object + */ + getApplicationKey(param, options) { + const requestContextPromise = this.requestFactory.getApplicationKey(param.key, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getApplicationKey(responseContext); + }); + }); + } + /** + * Get all API keys available for your account. + * @param param The request object + */ + listAPIKeys(options) { + const requestContextPromise = this.requestFactory.listAPIKeys(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listAPIKeys(responseContext); + }); + }); + } + /** + * Get all application keys available for your Datadog account. + * @param param The request object + */ + listApplicationKeys(options) { + const requestContextPromise = this.requestFactory.listApplicationKeys(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listApplicationKeys(responseContext); + }); + }); + } + /** + * Edit an API key name. + * @param param The request object + */ + updateAPIKey(param, options) { + const requestContextPromise = this.requestFactory.updateAPIKey(param.key, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateAPIKey(responseContext); + }); + }); + } + /** + * Edit an application key name. + * @param param The request object + */ + updateApplicationKey(param, options) { + const requestContextPromise = this.requestFactory.updateApplicationKey(param.key, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateApplicationKey(responseContext); + }); + }); + } +} +exports.KeyManagementApi = KeyManagementApi; +//# sourceMappingURL=KeyManagementApi.js.map + +/***/ }), + +/***/ 20913: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.LogsApi = exports.LogsApiResponseProcessor = exports.LogsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class LogsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + listLogs(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "listLogs"); + } + // Path Params + const localVarPath = "/api/v1/logs-queries/list"; + // Make Request Context + const requestContext = _config + .getServer("v1.LogsApi.listLogs") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "LogsListRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + submitLog(body, contentEncoding, ddtags, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "submitLog"); + } + // Path Params + const localVarPath = "/v1/input"; + // Make Request Context + const requestContext = _config + .getServer("v1.LogsApi.submitLog") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (ddtags !== undefined) { + requestContext.setQueryParam("ddtags", ObjectSerializer_1.ObjectSerializer.serialize(ddtags, "string", ""), ""); + } + // Header Params + if (contentEncoding !== undefined) { + requestContext.setHeaderParam("Content-Encoding", ObjectSerializer_1.ObjectSerializer.serialize(contentEncoding, "ContentEncoding", "")); + } + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + "application/json;simple", + "application/logplex-1", + "text/plain", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "Array", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, ["apiKeyAuth"]); + return requestContext; + }); + } +} +exports.LogsApiRequestFactory = LogsApiRequestFactory; +class LogsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listLogs + * @throws ApiException if the response code was not in [200, 299] + */ + listLogs(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsListResponse"); + return body; + } + if (response.httpStatusCode === 400) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "LogsAPIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to submitLog + * @throws ApiException if the response code was not in [200, 299] + */ + submitLog(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any"); + return body; + } + if (response.httpStatusCode === 400) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "HTTPLogError"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.LogsApiResponseProcessor = LogsApiResponseProcessor; +class LogsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new LogsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new LogsApiResponseProcessor(); + } + /** + * List endpoint returns logs that match a log search query. + * [Results are paginated][1]. + * + * **If you are considering archiving logs for your organization, + * consider use of the Datadog archive capabilities instead of the log list API. + * See [Datadog Logs Archive documentation][2].** + * + * [1]: /logs/guide/collect-multiple-logs-with-pagination + * [2]: https://docs.datadoghq.com/logs/archives + * @param param The request object + */ + listLogs(param, options) { + const requestContextPromise = this.requestFactory.listLogs(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listLogs(responseContext); + }); + }); + } + /** + * Send your logs to your Datadog platform over HTTP. Limits per HTTP request are: + * + * - Maximum content size per payload (uncompressed): 5MB + * - Maximum size for a single log: 1MB + * - Maximum array size if sending multiple logs in an array: 1000 entries + * + * Any log exceeding 1MB is accepted and truncated by Datadog: + * - For a single log request, the API truncates the log at 1MB and returns a 2xx. + * - For a multi-logs request, the API processes all logs, truncates only logs larger than 1MB, and returns a 2xx. + * + * Datadog recommends sending your logs compressed. + * Add the `Content-Encoding: gzip` header to the request when sending compressed logs. + * + * The status codes answered by the HTTP API are: + * - 200: OK + * - 400: Bad request (likely an issue in the payload formatting) + * - 403: Permission issue (likely using an invalid API Key) + * - 413: Payload too large (batch is above 5MB uncompressed) + * - 5xx: Internal error, request should be retried after some time + * @param param The request object + */ + submitLog(param, options) { + const requestContextPromise = this.requestFactory.submitLog(param.body, param.contentEncoding, param.ddtags, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.submitLog(responseContext); + }); + }); + } +} +exports.LogsApi = LogsApi; +//# sourceMappingURL=LogsApi.js.map + +/***/ }), + +/***/ 44885: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.LogsIndexesApi = exports.LogsIndexesApiResponseProcessor = exports.LogsIndexesApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class LogsIndexesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createLogsIndex(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createLogsIndex"); + } + // Path Params + const localVarPath = "/api/v1/logs/config/indexes"; + // Make Request Context + const requestContext = _config + .getServer("v1.LogsIndexesApi.createLogsIndex") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "LogsIndex", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getLogsIndex(name, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new baseapi_1.RequiredError("name", "getLogsIndex"); + } + // Path Params + const localVarPath = "/api/v1/logs/config/indexes/{name}".replace("{name}", encodeURIComponent(String(name))); + // Make Request Context + const requestContext = _config + .getServer("v1.LogsIndexesApi.getLogsIndex") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getLogsIndexOrder(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/logs/config/index-order"; + // Make Request Context + const requestContext = _config + .getServer("v1.LogsIndexesApi.getLogsIndexOrder") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listLogIndexes(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/logs/config/indexes"; + // Make Request Context + const requestContext = _config + .getServer("v1.LogsIndexesApi.listLogIndexes") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateLogsIndex(name, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new baseapi_1.RequiredError("name", "updateLogsIndex"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateLogsIndex"); + } + // Path Params + const localVarPath = "/api/v1/logs/config/indexes/{name}".replace("{name}", encodeURIComponent(String(name))); + // Make Request Context + const requestContext = _config + .getServer("v1.LogsIndexesApi.updateLogsIndex") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "LogsIndexUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateLogsIndexOrder(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateLogsIndexOrder"); + } + // Path Params + const localVarPath = "/api/v1/logs/config/index-order"; + // Make Request Context + const requestContext = _config + .getServer("v1.LogsIndexesApi.updateLogsIndexOrder") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "LogsIndexesOrder", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.LogsIndexesApiRequestFactory = LogsIndexesApiRequestFactory; +class LogsIndexesApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createLogsIndex + * @throws ApiException if the response code was not in [200, 299] + */ + createLogsIndex(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsIndex"); + return body; + } + if (response.httpStatusCode === 400) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "LogsAPIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsIndex", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getLogsIndex + * @throws ApiException if the response code was not in [200, 299] + */ + getLogsIndex(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsIndex"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 404) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "LogsAPIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsIndex", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getLogsIndexOrder + * @throws ApiException if the response code was not in [200, 299] + */ + getLogsIndexOrder(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsIndexesOrder"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsIndexesOrder", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listLogIndexes + * @throws ApiException if the response code was not in [200, 299] + */ + listLogIndexes(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsIndexListResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsIndexListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateLogsIndex + * @throws ApiException if the response code was not in [200, 299] + */ + updateLogsIndex(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsIndex"); + return body; + } + if (response.httpStatusCode === 400 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "LogsAPIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 403) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsIndex", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateLogsIndexOrder + * @throws ApiException if the response code was not in [200, 299] + */ + updateLogsIndexOrder(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsIndexesOrder"); + return body; + } + if (response.httpStatusCode === 400) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "LogsAPIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsIndexesOrder", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.LogsIndexesApiResponseProcessor = LogsIndexesApiResponseProcessor; +class LogsIndexesApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new LogsIndexesApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new LogsIndexesApiResponseProcessor(); + } + /** + * Creates a new index. Returns the Index object passed in the request body when the request is successful. + * @param param The request object + */ + createLogsIndex(param, options) { + const requestContextPromise = this.requestFactory.createLogsIndex(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createLogsIndex(responseContext); + }); + }); + } + /** + * Get one log index from your organization. This endpoint takes no JSON arguments. + * @param param The request object + */ + getLogsIndex(param, options) { + const requestContextPromise = this.requestFactory.getLogsIndex(param.name, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getLogsIndex(responseContext); + }); + }); + } + /** + * Get the current order of your log indexes. This endpoint takes no JSON arguments. + * @param param The request object + */ + getLogsIndexOrder(options) { + const requestContextPromise = this.requestFactory.getLogsIndexOrder(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getLogsIndexOrder(responseContext); + }); + }); + } + /** + * The Index object describes the configuration of a log index. + * This endpoint returns an array of the `LogIndex` objects of your organization. + * @param param The request object + */ + listLogIndexes(options) { + const requestContextPromise = this.requestFactory.listLogIndexes(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listLogIndexes(responseContext); + }); + }); + } + /** + * Update an index as identified by its name. + * Returns the Index object passed in the request body when the request is successful. + * + * Using the `PUT` method updates your index’s configuration by **replacing** + * your current configuration with the new one sent to your Datadog organization. + * @param param The request object + */ + updateLogsIndex(param, options) { + const requestContextPromise = this.requestFactory.updateLogsIndex(param.name, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateLogsIndex(responseContext); + }); + }); + } + /** + * This endpoint updates the index order of your organization. + * It returns the index order object passed in the request body when the request is successful. + * @param param The request object + */ + updateLogsIndexOrder(param, options) { + const requestContextPromise = this.requestFactory.updateLogsIndexOrder(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateLogsIndexOrder(responseContext); + }); + }); + } +} +exports.LogsIndexesApi = LogsIndexesApi; +//# sourceMappingURL=LogsIndexesApi.js.map + +/***/ }), + +/***/ 38852: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.LogsPipelinesApi = exports.LogsPipelinesApiResponseProcessor = exports.LogsPipelinesApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class LogsPipelinesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createLogsPipeline(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createLogsPipeline"); + } + // Path Params + const localVarPath = "/api/v1/logs/config/pipelines"; + // Make Request Context + const requestContext = _config + .getServer("v1.LogsPipelinesApi.createLogsPipeline") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "LogsPipeline", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteLogsPipeline(pipelineId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'pipelineId' is not null or undefined + if (pipelineId === null || pipelineId === undefined) { + throw new baseapi_1.RequiredError("pipelineId", "deleteLogsPipeline"); + } + // Path Params + const localVarPath = "/api/v1/logs/config/pipelines/{pipeline_id}".replace("{pipeline_id}", encodeURIComponent(String(pipelineId))); + // Make Request Context + const requestContext = _config + .getServer("v1.LogsPipelinesApi.deleteLogsPipeline") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getLogsPipeline(pipelineId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'pipelineId' is not null or undefined + if (pipelineId === null || pipelineId === undefined) { + throw new baseapi_1.RequiredError("pipelineId", "getLogsPipeline"); + } + // Path Params + const localVarPath = "/api/v1/logs/config/pipelines/{pipeline_id}".replace("{pipeline_id}", encodeURIComponent(String(pipelineId))); + // Make Request Context + const requestContext = _config + .getServer("v1.LogsPipelinesApi.getLogsPipeline") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getLogsPipelineOrder(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/logs/config/pipeline-order"; + // Make Request Context + const requestContext = _config + .getServer("v1.LogsPipelinesApi.getLogsPipelineOrder") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listLogsPipelines(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/logs/config/pipelines"; + // Make Request Context + const requestContext = _config + .getServer("v1.LogsPipelinesApi.listLogsPipelines") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateLogsPipeline(pipelineId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'pipelineId' is not null or undefined + if (pipelineId === null || pipelineId === undefined) { + throw new baseapi_1.RequiredError("pipelineId", "updateLogsPipeline"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateLogsPipeline"); + } + // Path Params + const localVarPath = "/api/v1/logs/config/pipelines/{pipeline_id}".replace("{pipeline_id}", encodeURIComponent(String(pipelineId))); + // Make Request Context + const requestContext = _config + .getServer("v1.LogsPipelinesApi.updateLogsPipeline") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "LogsPipeline", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateLogsPipelineOrder(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateLogsPipelineOrder"); + } + // Path Params + const localVarPath = "/api/v1/logs/config/pipeline-order"; + // Make Request Context + const requestContext = _config + .getServer("v1.LogsPipelinesApi.updateLogsPipelineOrder") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "LogsPipelinesOrder", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.LogsPipelinesApiRequestFactory = LogsPipelinesApiRequestFactory; +class LogsPipelinesApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createLogsPipeline + * @throws ApiException if the response code was not in [200, 299] + */ + createLogsPipeline(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsPipeline"); + return body; + } + if (response.httpStatusCode === 400) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "LogsAPIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsPipeline", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteLogsPipeline + * @throws ApiException if the response code was not in [200, 299] + */ + deleteLogsPipeline(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + return; + } + if (response.httpStatusCode === 400) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "LogsAPIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getLogsPipeline + * @throws ApiException if the response code was not in [200, 299] + */ + getLogsPipeline(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsPipeline"); + return body; + } + if (response.httpStatusCode === 400) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "LogsAPIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsPipeline", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getLogsPipelineOrder + * @throws ApiException if the response code was not in [200, 299] + */ + getLogsPipelineOrder(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsPipelinesOrder"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsPipelinesOrder", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listLogsPipelines + * @throws ApiException if the response code was not in [200, 299] + */ + listLogsPipelines(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateLogsPipeline + * @throws ApiException if the response code was not in [200, 299] + */ + updateLogsPipeline(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsPipeline"); + return body; + } + if (response.httpStatusCode === 400) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "LogsAPIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsPipeline", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateLogsPipelineOrder + * @throws ApiException if the response code was not in [200, 299] + */ + updateLogsPipelineOrder(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsPipelinesOrder"); + return body; + } + if (response.httpStatusCode === 400 || response.httpStatusCode === 422) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "LogsAPIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsPipelinesOrder", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.LogsPipelinesApiResponseProcessor = LogsPipelinesApiResponseProcessor; +class LogsPipelinesApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new LogsPipelinesApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new LogsPipelinesApiResponseProcessor(); + } + /** + * Create a pipeline in your organization. + * @param param The request object + */ + createLogsPipeline(param, options) { + const requestContextPromise = this.requestFactory.createLogsPipeline(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createLogsPipeline(responseContext); + }); + }); + } + /** + * Delete a given pipeline from your organization. + * This endpoint takes no JSON arguments. + * @param param The request object + */ + deleteLogsPipeline(param, options) { + const requestContextPromise = this.requestFactory.deleteLogsPipeline(param.pipelineId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteLogsPipeline(responseContext); + }); + }); + } + /** + * Get a specific pipeline from your organization. + * This endpoint takes no JSON arguments. + * @param param The request object + */ + getLogsPipeline(param, options) { + const requestContextPromise = this.requestFactory.getLogsPipeline(param.pipelineId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getLogsPipeline(responseContext); + }); + }); + } + /** + * Get the current order of your pipelines. + * This endpoint takes no JSON arguments. + * @param param The request object + */ + getLogsPipelineOrder(options) { + const requestContextPromise = this.requestFactory.getLogsPipelineOrder(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getLogsPipelineOrder(responseContext); + }); + }); + } + /** + * Get all pipelines from your organization. + * This endpoint takes no JSON arguments. + * @param param The request object + */ + listLogsPipelines(options) { + const requestContextPromise = this.requestFactory.listLogsPipelines(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listLogsPipelines(responseContext); + }); + }); + } + /** + * Update a given pipeline configuration to change it’s processors or their order. + * + * **Note**: Using this method updates your pipeline configuration by **replacing** + * your current configuration with the new one sent to your Datadog organization. + * @param param The request object + */ + updateLogsPipeline(param, options) { + const requestContextPromise = this.requestFactory.updateLogsPipeline(param.pipelineId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateLogsPipeline(responseContext); + }); + }); + } + /** + * Update the order of your pipelines. Since logs are processed sequentially, reordering a pipeline may change + * the structure and content of the data processed by other pipelines and their processors. + * + * **Note**: Using the `PUT` method updates your pipeline order by replacing your current order + * with the new one sent to your Datadog organization. + * @param param The request object + */ + updateLogsPipelineOrder(param, options) { + const requestContextPromise = this.requestFactory.updateLogsPipelineOrder(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateLogsPipelineOrder(responseContext); + }); + }); + } +} +exports.LogsPipelinesApi = LogsPipelinesApi; +//# sourceMappingURL=LogsPipelinesApi.js.map + +/***/ }), + +/***/ 47649: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.MetricsApi = exports.MetricsApiResponseProcessor = exports.MetricsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class MetricsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + getMetricMetadata(metricName, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'metricName' is not null or undefined + if (metricName === null || metricName === undefined) { + throw new baseapi_1.RequiredError("metricName", "getMetricMetadata"); + } + // Path Params + const localVarPath = "/api/v1/metrics/{metric_name}".replace("{metric_name}", encodeURIComponent(String(metricName))); + // Make Request Context + const requestContext = _config + .getServer("v1.MetricsApi.getMetricMetadata") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listActiveMetrics(from, host, tagFilter, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'from' is not null or undefined + if (from === null || from === undefined) { + throw new baseapi_1.RequiredError("from", "listActiveMetrics"); + } + // Path Params + const localVarPath = "/api/v1/metrics"; + // Make Request Context + const requestContext = _config + .getServer("v1.MetricsApi.listActiveMetrics") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (from !== undefined) { + requestContext.setQueryParam("from", ObjectSerializer_1.ObjectSerializer.serialize(from, "number", "int64"), ""); + } + if (host !== undefined) { + requestContext.setQueryParam("host", ObjectSerializer_1.ObjectSerializer.serialize(host, "string", ""), ""); + } + if (tagFilter !== undefined) { + requestContext.setQueryParam("tag_filter", ObjectSerializer_1.ObjectSerializer.serialize(tagFilter, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listMetrics(q, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'q' is not null or undefined + if (q === null || q === undefined) { + throw new baseapi_1.RequiredError("q", "listMetrics"); + } + // Path Params + const localVarPath = "/api/v1/search"; + // Make Request Context + const requestContext = _config + .getServer("v1.MetricsApi.listMetrics") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (q !== undefined) { + requestContext.setQueryParam("q", ObjectSerializer_1.ObjectSerializer.serialize(q, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + queryMetrics(from, to, query, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'from' is not null or undefined + if (from === null || from === undefined) { + throw new baseapi_1.RequiredError("from", "queryMetrics"); + } + // verify required parameter 'to' is not null or undefined + if (to === null || to === undefined) { + throw new baseapi_1.RequiredError("to", "queryMetrics"); + } + // verify required parameter 'query' is not null or undefined + if (query === null || query === undefined) { + throw new baseapi_1.RequiredError("query", "queryMetrics"); + } + // Path Params + const localVarPath = "/api/v1/query"; + // Make Request Context + const requestContext = _config + .getServer("v1.MetricsApi.queryMetrics") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (from !== undefined) { + requestContext.setQueryParam("from", ObjectSerializer_1.ObjectSerializer.serialize(from, "number", "int64"), ""); + } + if (to !== undefined) { + requestContext.setQueryParam("to", ObjectSerializer_1.ObjectSerializer.serialize(to, "number", "int64"), ""); + } + if (query !== undefined) { + requestContext.setQueryParam("query", ObjectSerializer_1.ObjectSerializer.serialize(query, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + submitDistributionPoints(body, contentEncoding, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "submitDistributionPoints"); + } + // Path Params + const localVarPath = "/api/v1/distribution_points"; + // Make Request Context + const requestContext = _config + .getServer("v1.MetricsApi.submitDistributionPoints") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "text/json, application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Header Params + if (contentEncoding !== undefined) { + requestContext.setHeaderParam("Content-Encoding", ObjectSerializer_1.ObjectSerializer.serialize(contentEncoding, "DistributionPointsContentEncoding", "")); + } + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType(["text/json"]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "DistributionPointsPayload", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, ["apiKeyAuth"]); + return requestContext; + }); + } + submitMetrics(body, contentEncoding, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "submitMetrics"); + } + // Path Params + const localVarPath = "/api/v1/series"; + // Make Request Context + const requestContext = _config + .getServer("v1.MetricsApi.submitMetrics") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "text/json, application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Header Params + if (contentEncoding !== undefined) { + requestContext.setHeaderParam("Content-Encoding", ObjectSerializer_1.ObjectSerializer.serialize(contentEncoding, "MetricContentEncoding", "")); + } + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType(["text/json"]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "MetricsPayload", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, ["apiKeyAuth"]); + return requestContext; + }); + } + updateMetricMetadata(metricName, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'metricName' is not null or undefined + if (metricName === null || metricName === undefined) { + throw new baseapi_1.RequiredError("metricName", "updateMetricMetadata"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateMetricMetadata"); + } + // Path Params + const localVarPath = "/api/v1/metrics/{metric_name}".replace("{metric_name}", encodeURIComponent(String(metricName))); + // Make Request Context + const requestContext = _config + .getServer("v1.MetricsApi.updateMetricMetadata") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "MetricMetadata", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.MetricsApiRequestFactory = MetricsApiRequestFactory; +class MetricsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getMetricMetadata + * @throws ApiException if the response code was not in [200, 299] + */ + getMetricMetadata(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricMetadata"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricMetadata", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listActiveMetrics + * @throws ApiException if the response code was not in [200, 299] + */ + listActiveMetrics(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricsListResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricsListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listMetrics + * @throws ApiException if the response code was not in [200, 299] + */ + listMetrics(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricSearchResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricSearchResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to queryMetrics + * @throws ApiException if the response code was not in [200, 299] + */ + queryMetrics(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricsQueryResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricsQueryResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to submitDistributionPoints + * @throws ApiException if the response code was not in [200, 299] + */ + submitDistributionPoints(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 202) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IntakePayloadAccepted"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 408 || + response.httpStatusCode === 413 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IntakePayloadAccepted", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to submitMetrics + * @throws ApiException if the response code was not in [200, 299] + */ + submitMetrics(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 202) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IntakePayloadAccepted"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 408 || + response.httpStatusCode === 413 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IntakePayloadAccepted", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateMetricMetadata + * @throws ApiException if the response code was not in [200, 299] + */ + updateMetricMetadata(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricMetadata"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricMetadata", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.MetricsApiResponseProcessor = MetricsApiResponseProcessor; +class MetricsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new MetricsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new MetricsApiResponseProcessor(); + } + /** + * Get metadata about a specific metric. + * @param param The request object + */ + getMetricMetadata(param, options) { + const requestContextPromise = this.requestFactory.getMetricMetadata(param.metricName, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getMetricMetadata(responseContext); + }); + }); + } + /** + * Get the list of actively reporting metrics from a given time until now. + * @param param The request object + */ + listActiveMetrics(param, options) { + const requestContextPromise = this.requestFactory.listActiveMetrics(param.from, param.host, param.tagFilter, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listActiveMetrics(responseContext); + }); + }); + } + /** + * Search for metrics from the last 24 hours in Datadog. + * @param param The request object + */ + listMetrics(param, options) { + const requestContextPromise = this.requestFactory.listMetrics(param.q, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listMetrics(responseContext); + }); + }); + } + /** + * Query timeseries points. + * @param param The request object + */ + queryMetrics(param, options) { + const requestContextPromise = this.requestFactory.queryMetrics(param.from, param.to, param.query, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.queryMetrics(responseContext); + }); + }); + } + /** + * The distribution points end-point allows you to post distribution data that can be graphed on Datadog’s dashboards. + * @param param The request object + */ + submitDistributionPoints(param, options) { + const requestContextPromise = this.requestFactory.submitDistributionPoints(param.body, param.contentEncoding, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.submitDistributionPoints(responseContext); + }); + }); + } + /** + * The metrics end-point allows you to post time-series data that can be graphed on Datadog’s dashboards. + * The maximum payload size is 3.2 megabytes (3200000 bytes). Compressed payloads must have a decompressed size of less than 62 megabytes (62914560 bytes). + * + * If you’re submitting metrics directly to the Datadog API without using DogStatsD, expect: + * + * - 64 bits for the timestamp + * - 64 bits for the value + * - 40 bytes for the metric names + * - 50 bytes for the timeseries + * - The full payload is approximately 100 bytes. However, with the DogStatsD API, + * compression is applied, which reduces the payload size. + * @param param The request object + */ + submitMetrics(param, options) { + const requestContextPromise = this.requestFactory.submitMetrics(param.body, param.contentEncoding, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.submitMetrics(responseContext); + }); + }); + } + /** + * Edit metadata of a specific metric. Find out more about [supported types](https://docs.datadoghq.com/developers/metrics). + * @param param The request object + */ + updateMetricMetadata(param, options) { + const requestContextPromise = this.requestFactory.updateMetricMetadata(param.metricName, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateMetricMetadata(responseContext); + }); + }); + } +} +exports.MetricsApi = MetricsApi; +//# sourceMappingURL=MetricsApi.js.map + +/***/ }), + +/***/ 8233: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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 __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonitorsApi = exports.MonitorsApiResponseProcessor = exports.MonitorsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class MonitorsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + checkCanDeleteMonitor(monitorIds, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'monitorIds' is not null or undefined + if (monitorIds === null || monitorIds === undefined) { + throw new baseapi_1.RequiredError("monitorIds", "checkCanDeleteMonitor"); + } + // Path Params + const localVarPath = "/api/v1/monitor/can_delete"; + // Make Request Context + const requestContext = _config + .getServer("v1.MonitorsApi.checkCanDeleteMonitor") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (monitorIds !== undefined) { + requestContext.setQueryParam("monitor_ids", ObjectSerializer_1.ObjectSerializer.serialize(monitorIds, "Array", "int64"), "csv"); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createMonitor(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createMonitor"); + } + // Path Params + const localVarPath = "/api/v1/monitor"; + // Make Request Context + const requestContext = _config + .getServer("v1.MonitorsApi.createMonitor") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "Monitor", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteMonitor(monitorId, force, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'monitorId' is not null or undefined + if (monitorId === null || monitorId === undefined) { + throw new baseapi_1.RequiredError("monitorId", "deleteMonitor"); + } + // Path Params + const localVarPath = "/api/v1/monitor/{monitor_id}".replace("{monitor_id}", encodeURIComponent(String(monitorId))); + // Make Request Context + const requestContext = _config + .getServer("v1.MonitorsApi.deleteMonitor") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer_1.ObjectSerializer.serialize(force, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getMonitor(monitorId, groupStates, withDowntimes, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'monitorId' is not null or undefined + if (monitorId === null || monitorId === undefined) { + throw new baseapi_1.RequiredError("monitorId", "getMonitor"); + } + // Path Params + const localVarPath = "/api/v1/monitor/{monitor_id}".replace("{monitor_id}", encodeURIComponent(String(monitorId))); + // Make Request Context + const requestContext = _config + .getServer("v1.MonitorsApi.getMonitor") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (groupStates !== undefined) { + requestContext.setQueryParam("group_states", ObjectSerializer_1.ObjectSerializer.serialize(groupStates, "string", ""), ""); + } + if (withDowntimes !== undefined) { + requestContext.setQueryParam("with_downtimes", ObjectSerializer_1.ObjectSerializer.serialize(withDowntimes, "boolean", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listMonitors(groupStates, name, tags, monitorTags, withDowntimes, idOffset, page, pageSize, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/monitor"; + // Make Request Context + const requestContext = _config + .getServer("v1.MonitorsApi.listMonitors") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (groupStates !== undefined) { + requestContext.setQueryParam("group_states", ObjectSerializer_1.ObjectSerializer.serialize(groupStates, "string", ""), ""); + } + if (name !== undefined) { + requestContext.setQueryParam("name", ObjectSerializer_1.ObjectSerializer.serialize(name, "string", ""), ""); + } + if (tags !== undefined) { + requestContext.setQueryParam("tags", ObjectSerializer_1.ObjectSerializer.serialize(tags, "string", ""), ""); + } + if (monitorTags !== undefined) { + requestContext.setQueryParam("monitor_tags", ObjectSerializer_1.ObjectSerializer.serialize(monitorTags, "string", ""), ""); + } + if (withDowntimes !== undefined) { + requestContext.setQueryParam("with_downtimes", ObjectSerializer_1.ObjectSerializer.serialize(withDowntimes, "boolean", ""), ""); + } + if (idOffset !== undefined) { + requestContext.setQueryParam("id_offset", ObjectSerializer_1.ObjectSerializer.serialize(idOffset, "number", "int64"), ""); + } + if (page !== undefined) { + requestContext.setQueryParam("page", ObjectSerializer_1.ObjectSerializer.serialize(page, "number", "int64"), ""); + } + if (pageSize !== undefined) { + requestContext.setQueryParam("page_size", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int32"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + searchMonitorGroups(query, page, perPage, sort, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/monitor/groups/search"; + // Make Request Context + const requestContext = _config + .getServer("v1.MonitorsApi.searchMonitorGroups") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (query !== undefined) { + requestContext.setQueryParam("query", ObjectSerializer_1.ObjectSerializer.serialize(query, "string", ""), ""); + } + if (page !== undefined) { + requestContext.setQueryParam("page", ObjectSerializer_1.ObjectSerializer.serialize(page, "number", "int64"), ""); + } + if (perPage !== undefined) { + requestContext.setQueryParam("per_page", ObjectSerializer_1.ObjectSerializer.serialize(perPage, "number", "int64"), ""); + } + if (sort !== undefined) { + requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + searchMonitors(query, page, perPage, sort, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/monitor/search"; + // Make Request Context + const requestContext = _config + .getServer("v1.MonitorsApi.searchMonitors") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (query !== undefined) { + requestContext.setQueryParam("query", ObjectSerializer_1.ObjectSerializer.serialize(query, "string", ""), ""); + } + if (page !== undefined) { + requestContext.setQueryParam("page", ObjectSerializer_1.ObjectSerializer.serialize(page, "number", "int64"), ""); + } + if (perPage !== undefined) { + requestContext.setQueryParam("per_page", ObjectSerializer_1.ObjectSerializer.serialize(perPage, "number", "int64"), ""); + } + if (sort !== undefined) { + requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateMonitor(monitorId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'monitorId' is not null or undefined + if (monitorId === null || monitorId === undefined) { + throw new baseapi_1.RequiredError("monitorId", "updateMonitor"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateMonitor"); + } + // Path Params + const localVarPath = "/api/v1/monitor/{monitor_id}".replace("{monitor_id}", encodeURIComponent(String(monitorId))); + // Make Request Context + const requestContext = _config + .getServer("v1.MonitorsApi.updateMonitor") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "MonitorUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + validateExistingMonitor(monitorId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'monitorId' is not null or undefined + if (monitorId === null || monitorId === undefined) { + throw new baseapi_1.RequiredError("monitorId", "validateExistingMonitor"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "validateExistingMonitor"); + } + // Path Params + const localVarPath = "/api/v1/monitor/{monitor_id}/validate".replace("{monitor_id}", encodeURIComponent(String(monitorId))); + // Make Request Context + const requestContext = _config + .getServer("v1.MonitorsApi.validateExistingMonitor") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "Monitor", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + validateMonitor(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "validateMonitor"); + } + // Path Params + const localVarPath = "/api/v1/monitor/validate"; + // Make Request Context + const requestContext = _config + .getServer("v1.MonitorsApi.validateMonitor") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "Monitor", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.MonitorsApiRequestFactory = MonitorsApiRequestFactory; +class MonitorsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to checkCanDeleteMonitor + * @throws ApiException if the response code was not in [200, 299] + */ + checkCanDeleteMonitor(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200 || response.httpStatusCode === 409) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CheckCanDeleteMonitorResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CheckCanDeleteMonitorResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createMonitor + * @throws ApiException if the response code was not in [200, 299] + */ + createMonitor(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Monitor"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Monitor", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteMonitor + * @throws ApiException if the response code was not in [200, 299] + */ + deleteMonitor(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DeletedMonitor"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DeletedMonitor", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getMonitor + * @throws ApiException if the response code was not in [200, 299] + */ + getMonitor(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Monitor"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Monitor", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listMonitors + * @throws ApiException if the response code was not in [200, 299] + */ + listMonitors(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to searchMonitorGroups + * @throws ApiException if the response code was not in [200, 299] + */ + searchMonitorGroups(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonitorGroupSearchResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonitorGroupSearchResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to searchMonitors + * @throws ApiException if the response code was not in [200, 299] + */ + searchMonitors(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonitorSearchResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonitorSearchResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateMonitor + * @throws ApiException if the response code was not in [200, 299] + */ + updateMonitor(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Monitor"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Monitor", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to validateExistingMonitor + * @throws ApiException if the response code was not in [200, 299] + */ + validateExistingMonitor(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to validateMonitor + * @throws ApiException if the response code was not in [200, 299] + */ + validateMonitor(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.MonitorsApiResponseProcessor = MonitorsApiResponseProcessor; +class MonitorsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new MonitorsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new MonitorsApiResponseProcessor(); + } + /** + * Check if the given monitors can be deleted. + * @param param The request object + */ + checkCanDeleteMonitor(param, options) { + const requestContextPromise = this.requestFactory.checkCanDeleteMonitor(param.monitorIds, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.checkCanDeleteMonitor(responseContext); + }); + }); + } + /** + * Create a monitor using the specified options. + * + * #### Monitor Types + * + * The type of monitor chosen from: + * + * - anomaly: `query alert` + * - APM: `query alert` or `trace-analytics alert` + * - composite: `composite` + * - custom: `service check` + * - forecast: `query alert` + * - host: `service check` + * - integration: `query alert` or `service check` + * - live process: `process alert` + * - logs: `log alert` + * - metric: `query alert` + * - network: `service check` + * - outlier: `query alert` + * - process: `service check` + * - rum: `rum alert` + * - SLO: `slo alert` + * - watchdog: `event-v2 alert` + * - event-v2: `event-v2 alert` + * - audit: `audit alert` + * - error-tracking: `error-tracking alert` + * - database-monitoring: `database-monitoring alert` + * - network-performance: `network-performance alert` + * - cloud cost: `cost alert` + * + * **Notes**: + * - Synthetic monitors are created through the Synthetics API. See the [Synthetics API](https://docs.datadoghq.com/api/latest/synthetics/) documentation for more information. + * - Log monitors require an unscoped App Key. + * + * #### Query Types + * + * ##### Metric Alert Query + * + * Example: `time_aggr(time_window):space_aggr:metric{tags} [by {key}] operator #` + * + * - `time_aggr`: avg, sum, max, min, change, or pct_change + * - `time_window`: `last_#m` (with `#` between 1 and 10080 depending on the monitor type) or `last_#h`(with `#` between 1 and 168 depending on the monitor type) or `last_1d`, or `last_1w` + * - `space_aggr`: avg, sum, min, or max + * - `tags`: one or more tags (comma-separated), or * + * - `key`: a 'key' in key:value tag syntax; defines a separate alert for each tag in the group (multi-alert) + * - `operator`: <, <=, >, >=, ==, or != + * - `#`: an integer or decimal number used to set the threshold + * + * If you are using the `_change_` or `_pct_change_` time aggregator, instead use `change_aggr(time_aggr(time_window), + * timeshift):space_aggr:metric{tags} [by {key}] operator #` with: + * + * - `change_aggr` change, pct_change + * - `time_aggr` avg, sum, max, min [Learn more](https://docs.datadoghq.com/monitors/create/types/#define-the-conditions) + * - `time_window` last\_#m (between 1 and 2880 depending on the monitor type), last\_#h (between 1 and 48 depending on the monitor type), or last_#d (1 or 2) + * - `timeshift` #m_ago (5, 10, 15, or 30), #h_ago (1, 2, or 4), or 1d_ago + * + * Use this to create an outlier monitor using the following query: + * `avg(last_30m):outliers(avg:system.cpu.user{role:es-events-data} by {host}, 'dbscan', 7) > 0` + * + * ##### Service Check Query + * + * Example: `"check".over(tags).last(count).by(group).count_by_status()` + * + * - `check` name of the check, for example `datadog.agent.up` + * - `tags` one or more quoted tags (comma-separated), or "*". for example: `.over("env:prod", "role:db")`; `over` cannot be blank. + * - `count` must be at greater than or equal to your max threshold (defined in the `options`). It is limited to 100. + * For example, if you've specified to notify on 1 critical, 3 ok, and 2 warn statuses, `count` should be at least 3. + * - `group` must be specified for check monitors. Per-check grouping is already explicitly known for some service checks. + * For example, Postgres integration monitors are tagged by `db`, `host`, and `port`, and Network monitors by `host`, `instance`, and `url`. See [Service Checks](https://docs.datadoghq.com/api/latest/service-checks/) documentation for more information. + * + * ##### Event Alert Query + * + * **Note:** The Event Alert Query has been replaced by the Event V2 Alert Query. For more information, see the [Event Migration guide](https://docs.datadoghq.com/service_management/events/guides/migrating_to_new_events_features/). + * + * ##### Event V2 Alert Query + * + * Example: `events(query).rollup(rollup_method[, measure]).last(time_window) operator #` + * + * - `query` The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). + * - `rollup_method` The stats roll-up method - supports `count`, `avg` and `cardinality`. + * - `measure` For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. + * - `time_window` #m (between 1 and 2880), #h (between 1 and 48). + * - `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`. + * - `#` an integer or decimal number used to set the threshold. + * + * ##### Process Alert Query + * + * Example: `processes(search).over(tags).rollup('count').last(timeframe) operator #` + * + * - `search` free text search string for querying processes. + * Matching processes match results on the [Live Processes](https://docs.datadoghq.com/infrastructure/process/?tab=linuxwindows) page. + * - `tags` one or more tags (comma-separated) + * - `timeframe` the timeframe to roll up the counts. Examples: 10m, 4h. Supported timeframes: s, m, h and d + * - `operator` <, <=, >, >=, ==, or != + * - `#` an integer or decimal number used to set the threshold + * + * ##### Logs Alert Query + * + * Example: `logs(query).index(index_name).rollup(rollup_method[, measure]).last(time_window) operator #` + * + * - `query` The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). + * - `index_name` For multi-index organizations, the log index in which the request is performed. + * - `rollup_method` The stats roll-up method - supports `count`, `avg` and `cardinality`. + * - `measure` For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. + * - `time_window` #m (between 1 and 2880), #h (between 1 and 48). + * - `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`. + * - `#` an integer or decimal number used to set the threshold. + * + * ##### Composite Query + * + * Example: `12345 && 67890`, where `12345` and `67890` are the IDs of non-composite monitors + * + * * `name` [*required*, *default* = **dynamic, based on query**]: The name of the alert. + * * `message` [*required*, *default* = **dynamic, based on query**]: A message to include with notifications for this monitor. + * Email notifications can be sent to specific users by using the same '@username' notation as events. + * * `tags` [*optional*, *default* = **empty list**]: A list of tags to associate with your monitor. + * When getting all monitor details via the API, use the `monitor_tags` argument to filter results by these tags. + * It is only available via the API and isn't visible or editable in the Datadog UI. + * + * ##### SLO Alert Query + * + * Example: `error_budget("slo_id").over("time_window") operator #` + * + * - `slo_id`: The alphanumeric SLO ID of the SLO you are configuring the alert for. + * - `time_window`: The time window of the SLO target you wish to alert on. Valid options: `7d`, `30d`, `90d`. + * - `operator`: `>=` or `>` + * + * ##### Audit Alert Query + * + * Example: `audits(query).rollup(rollup_method[, measure]).last(time_window) operator #` + * + * - `query` The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). + * - `rollup_method` The stats roll-up method - supports `count`, `avg` and `cardinality`. + * - `measure` For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. + * - `time_window` #m (between 1 and 2880), #h (between 1 and 48). + * - `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`. + * - `#` an integer or decimal number used to set the threshold. + * + * ##### CI Pipelines Alert Query + * + * Example: `ci-pipelines(query).rollup(rollup_method[, measure]).last(time_window) operator #` + * + * - `query` The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). + * - `rollup_method` The stats roll-up method - supports `count`, `avg`, and `cardinality`. + * - `measure` For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. + * - `time_window` #m (between 1 and 2880), #h (between 1 and 48). + * - `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`. + * - `#` an integer or decimal number used to set the threshold. + * + * ##### CI Tests Alert Query + * + * Example: `ci-tests(query).rollup(rollup_method[, measure]).last(time_window) operator #` + * + * - `query` The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). + * - `rollup_method` The stats roll-up method - supports `count`, `avg`, and `cardinality`. + * - `measure` For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. + * - `time_window` #m (between 1 and 2880), #h (between 1 and 48). + * - `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`. + * - `#` an integer or decimal number used to set the threshold. + * + * ##### Error Tracking Alert Query + * + * "New issue" example: `error-tracking(query).source(issue_source).new().rollup(rollup_method[, measure]).by(group_by).last(time_window) operator #` + * "High impact issue" example: `error-tracking(query).source(issue_source).impact().rollup(rollup_method[, measure]).by(group_by).last(time_window) operator #` + * + * - `query` The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). + * - `issue_source` The issue source - supports `all`, `browser`, `mobile` and `backend` and defaults to `all` if omitted. + * - `rollup_method` The stats roll-up method - supports `count`, `avg`, and `cardinality` and defaults to `count` if omitted. + * - `measure` For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. + * - `group by` Comma-separated list of attributes to group by - should contain at least `issue.id`. + * - `time_window` #m (between 1 and 2880), #h (between 1 and 48). + * - `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`. + * - `#` an integer or decimal number used to set the threshold. + * + * **Database Monitoring Alert Query** + * + * Example: `database-monitoring(query).rollup(rollup_method[, measure]).last(time_window) operator #` + * + * - `query` The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). + * - `rollup_method` The stats roll-up method - supports `count`, `avg`, and `cardinality`. + * - `measure` For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. + * - `time_window` #m (between 1 and 2880), #h (between 1 and 48). + * - `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`. + * - `#` an integer or decimal number used to set the threshold. + * + * **Network Performance Alert Query** + * + * Example: `network-performance(query).rollup(rollup_method[, measure]).last(time_window) operator #` + * + * - `query` The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). + * - `rollup_method` The stats roll-up method - supports `count`, `avg`, and `cardinality`. + * - `measure` For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. + * - `time_window` #m (between 1 and 2880), #h (between 1 and 48). + * - `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`. + * - `#` an integer or decimal number used to set the threshold. + * @param param The request object + */ + createMonitor(param, options) { + const requestContextPromise = this.requestFactory.createMonitor(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createMonitor(responseContext); + }); + }); + } + /** + * Delete the specified monitor + * @param param The request object + */ + deleteMonitor(param, options) { + const requestContextPromise = this.requestFactory.deleteMonitor(param.monitorId, param.force, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteMonitor(responseContext); + }); + }); + } + /** + * Get details about the specified monitor from your organization. + * @param param The request object + */ + getMonitor(param, options) { + const requestContextPromise = this.requestFactory.getMonitor(param.monitorId, param.groupStates, param.withDowntimes, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getMonitor(responseContext); + }); + }); + } + /** + * Get details about the specified monitor from your organization. + * @param param The request object + */ + listMonitors(param = {}, options) { + const requestContextPromise = this.requestFactory.listMonitors(param.groupStates, param.name, param.tags, param.monitorTags, param.withDowntimes, param.idOffset, param.page, param.pageSize, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listMonitors(responseContext); + }); + }); + } + /** + * Provide a paginated version of listMonitors returning a generator with all the items. + */ + listMonitorsWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* listMonitorsWithPagination_1() { + let pageSize = 100; + if (param.pageSize !== undefined) { + pageSize = param.pageSize; + } + param.pageSize = pageSize; + param.page = 0; + while (true) { + const requestContext = yield __await(this.requestFactory.listMonitors(param.groupStates, param.name, param.tags, param.monitorTags, param.withDowntimes, param.idOffset, param.page, param.pageSize, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listMonitors(responseContext)); + const results = response; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + param.page = param.page + 1; + } + }); + } + /** + * Search and filter your monitor groups details. + * @param param The request object + */ + searchMonitorGroups(param = {}, options) { + const requestContextPromise = this.requestFactory.searchMonitorGroups(param.query, param.page, param.perPage, param.sort, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.searchMonitorGroups(responseContext); + }); + }); + } + /** + * Search and filter your monitors details. + * @param param The request object + */ + searchMonitors(param = {}, options) { + const requestContextPromise = this.requestFactory.searchMonitors(param.query, param.page, param.perPage, param.sort, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.searchMonitors(responseContext); + }); + }); + } + /** + * Edit the specified monitor. + * @param param The request object + */ + updateMonitor(param, options) { + const requestContextPromise = this.requestFactory.updateMonitor(param.monitorId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateMonitor(responseContext); + }); + }); + } + /** + * Validate the monitor provided in the request. + * @param param The request object + */ + validateExistingMonitor(param, options) { + const requestContextPromise = this.requestFactory.validateExistingMonitor(param.monitorId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.validateExistingMonitor(responseContext); + }); + }); + } + /** + * Validate the monitor provided in the request. + * + * **Note**: Log monitors require an unscoped App Key. + * @param param The request object + */ + validateMonitor(param, options) { + const requestContextPromise = this.requestFactory.validateMonitor(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.validateMonitor(responseContext); + }); + }); + } +} +exports.MonitorsApi = MonitorsApi; +//# sourceMappingURL=MonitorsApi.js.map + +/***/ }), + +/***/ 53780: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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 __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotebooksApi = exports.NotebooksApiResponseProcessor = exports.NotebooksApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class NotebooksApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createNotebook(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createNotebook"); + } + // Path Params + const localVarPath = "/api/v1/notebooks"; + // Make Request Context + const requestContext = _config + .getServer("v1.NotebooksApi.createNotebook") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "NotebookCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteNotebook(notebookId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'notebookId' is not null or undefined + if (notebookId === null || notebookId === undefined) { + throw new baseapi_1.RequiredError("notebookId", "deleteNotebook"); + } + // Path Params + const localVarPath = "/api/v1/notebooks/{notebook_id}".replace("{notebook_id}", encodeURIComponent(String(notebookId))); + // Make Request Context + const requestContext = _config + .getServer("v1.NotebooksApi.deleteNotebook") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getNotebook(notebookId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'notebookId' is not null or undefined + if (notebookId === null || notebookId === undefined) { + throw new baseapi_1.RequiredError("notebookId", "getNotebook"); + } + // Path Params + const localVarPath = "/api/v1/notebooks/{notebook_id}".replace("{notebook_id}", encodeURIComponent(String(notebookId))); + // Make Request Context + const requestContext = _config + .getServer("v1.NotebooksApi.getNotebook") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listNotebooks(authorHandle, excludeAuthorHandle, start, count, sortField, sortDir, query, includeCells, isTemplate, type, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/notebooks"; + // Make Request Context + const requestContext = _config + .getServer("v1.NotebooksApi.listNotebooks") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (authorHandle !== undefined) { + requestContext.setQueryParam("author_handle", ObjectSerializer_1.ObjectSerializer.serialize(authorHandle, "string", ""), ""); + } + if (excludeAuthorHandle !== undefined) { + requestContext.setQueryParam("exclude_author_handle", ObjectSerializer_1.ObjectSerializer.serialize(excludeAuthorHandle, "string", ""), ""); + } + if (start !== undefined) { + requestContext.setQueryParam("start", ObjectSerializer_1.ObjectSerializer.serialize(start, "number", "int64"), ""); + } + if (count !== undefined) { + requestContext.setQueryParam("count", ObjectSerializer_1.ObjectSerializer.serialize(count, "number", "int64"), ""); + } + if (sortField !== undefined) { + requestContext.setQueryParam("sort_field", ObjectSerializer_1.ObjectSerializer.serialize(sortField, "string", ""), ""); + } + if (sortDir !== undefined) { + requestContext.setQueryParam("sort_dir", ObjectSerializer_1.ObjectSerializer.serialize(sortDir, "string", ""), ""); + } + if (query !== undefined) { + requestContext.setQueryParam("query", ObjectSerializer_1.ObjectSerializer.serialize(query, "string", ""), ""); + } + if (includeCells !== undefined) { + requestContext.setQueryParam("include_cells", ObjectSerializer_1.ObjectSerializer.serialize(includeCells, "boolean", ""), ""); + } + if (isTemplate !== undefined) { + requestContext.setQueryParam("is_template", ObjectSerializer_1.ObjectSerializer.serialize(isTemplate, "boolean", ""), ""); + } + if (type !== undefined) { + requestContext.setQueryParam("type", ObjectSerializer_1.ObjectSerializer.serialize(type, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateNotebook(notebookId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'notebookId' is not null or undefined + if (notebookId === null || notebookId === undefined) { + throw new baseapi_1.RequiredError("notebookId", "updateNotebook"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateNotebook"); + } + // Path Params + const localVarPath = "/api/v1/notebooks/{notebook_id}".replace("{notebook_id}", encodeURIComponent(String(notebookId))); + // Make Request Context + const requestContext = _config + .getServer("v1.NotebooksApi.updateNotebook") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "NotebookUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.NotebooksApiRequestFactory = NotebooksApiRequestFactory; +class NotebooksApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createNotebook + * @throws ApiException if the response code was not in [200, 299] + */ + createNotebook(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "NotebookResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "NotebookResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteNotebook + * @throws ApiException if the response code was not in [200, 299] + */ + deleteNotebook(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getNotebook + * @throws ApiException if the response code was not in [200, 299] + */ + getNotebook(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "NotebookResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "NotebookResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listNotebooks + * @throws ApiException if the response code was not in [200, 299] + */ + listNotebooks(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "NotebooksResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "NotebooksResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateNotebook + * @throws ApiException if the response code was not in [200, 299] + */ + updateNotebook(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "NotebookResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "NotebookResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.NotebooksApiResponseProcessor = NotebooksApiResponseProcessor; +class NotebooksApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new NotebooksApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new NotebooksApiResponseProcessor(); + } + /** + * Create a notebook using the specified options. + * @param param The request object + */ + createNotebook(param, options) { + const requestContextPromise = this.requestFactory.createNotebook(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createNotebook(responseContext); + }); + }); + } + /** + * Delete a notebook using the specified ID. + * @param param The request object + */ + deleteNotebook(param, options) { + const requestContextPromise = this.requestFactory.deleteNotebook(param.notebookId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteNotebook(responseContext); + }); + }); + } + /** + * Get a notebook using the specified notebook ID. + * @param param The request object + */ + getNotebook(param, options) { + const requestContextPromise = this.requestFactory.getNotebook(param.notebookId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getNotebook(responseContext); + }); + }); + } + /** + * Get all notebooks. This can also be used to search for notebooks with a particular `query` in the notebook + * `name` or author `handle`. + * @param param The request object + */ + listNotebooks(param = {}, options) { + const requestContextPromise = this.requestFactory.listNotebooks(param.authorHandle, param.excludeAuthorHandle, param.start, param.count, param.sortField, param.sortDir, param.query, param.includeCells, param.isTemplate, param.type, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listNotebooks(responseContext); + }); + }); + } + /** + * Provide a paginated version of listNotebooks returning a generator with all the items. + */ + listNotebooksWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* listNotebooksWithPagination_1() { + let pageSize = 100; + if (param.count !== undefined) { + pageSize = param.count; + } + param.count = pageSize; + while (true) { + const requestContext = yield __await(this.requestFactory.listNotebooks(param.authorHandle, param.excludeAuthorHandle, param.start, param.count, param.sortField, param.sortDir, param.query, param.includeCells, param.isTemplate, param.type, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listNotebooks(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + if (param.start === undefined) { + param.start = pageSize; + } + else { + param.start = param.start + pageSize; + } + } + }); + } + /** + * Update a notebook using the specified ID. + * @param param The request object + */ + updateNotebook(param, options) { + const requestContextPromise = this.requestFactory.updateNotebook(param.notebookId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateNotebook(responseContext); + }); + }); + } +} +exports.NotebooksApi = NotebooksApi; +//# sourceMappingURL=NotebooksApi.js.map + +/***/ }), + +/***/ 45566: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.OrganizationsApi = exports.OrganizationsApiResponseProcessor = exports.OrganizationsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const form_data_1 = __importDefault(__nccwpck_require__(2691)); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class OrganizationsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createChildOrg(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createChildOrg"); + } + // Path Params + const localVarPath = "/api/v1/org"; + // Make Request Context + const requestContext = _config + .getServer("v1.OrganizationsApi.createChildOrg") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "OrganizationCreateBody", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + downgradeOrg(publicId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'publicId' is not null or undefined + if (publicId === null || publicId === undefined) { + throw new baseapi_1.RequiredError("publicId", "downgradeOrg"); + } + // Path Params + const localVarPath = "/api/v1/org/{public_id}/downgrade".replace("{public_id}", encodeURIComponent(String(publicId))); + // Make Request Context + const requestContext = _config + .getServer("v1.OrganizationsApi.downgradeOrg") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getOrg(publicId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'publicId' is not null or undefined + if (publicId === null || publicId === undefined) { + throw new baseapi_1.RequiredError("publicId", "getOrg"); + } + // Path Params + const localVarPath = "/api/v1/org/{public_id}".replace("{public_id}", encodeURIComponent(String(publicId))); + // Make Request Context + const requestContext = _config + .getServer("v1.OrganizationsApi.getOrg") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listOrgs(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/org"; + // Make Request Context + const requestContext = _config + .getServer("v1.OrganizationsApi.listOrgs") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateOrg(publicId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'publicId' is not null or undefined + if (publicId === null || publicId === undefined) { + throw new baseapi_1.RequiredError("publicId", "updateOrg"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateOrg"); + } + // Path Params + const localVarPath = "/api/v1/org/{public_id}".replace("{public_id}", encodeURIComponent(String(publicId))); + // Make Request Context + const requestContext = _config + .getServer("v1.OrganizationsApi.updateOrg") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "Organization", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + uploadIdPForOrg(publicId, idpFile, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'publicId' is not null or undefined + if (publicId === null || publicId === undefined) { + throw new baseapi_1.RequiredError("publicId", "uploadIdPForOrg"); + } + // verify required parameter 'idpFile' is not null or undefined + if (idpFile === null || idpFile === undefined) { + throw new baseapi_1.RequiredError("idpFile", "uploadIdPForOrg"); + } + // Path Params + const localVarPath = "/api/v1/org/{public_id}/idp_metadata".replace("{public_id}", encodeURIComponent(String(publicId))); + // Make Request Context + const requestContext = _config + .getServer("v1.OrganizationsApi.uploadIdPForOrg") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Form Params + const localVarFormParams = new form_data_1.default(); + if (idpFile !== undefined) { + // TODO: replace .append with .set + localVarFormParams.append("idp_file", idpFile.data, idpFile.name); + } + requestContext.setBody(localVarFormParams); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.OrganizationsApiRequestFactory = OrganizationsApiRequestFactory; +class OrganizationsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createChildOrg + * @throws ApiException if the response code was not in [200, 299] + */ + createChildOrg(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OrganizationCreateResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OrganizationCreateResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to downgradeOrg + * @throws ApiException if the response code was not in [200, 299] + */ + downgradeOrg(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OrgDowngradedResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OrgDowngradedResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getOrg + * @throws ApiException if the response code was not in [200, 299] + */ + getOrg(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OrganizationResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OrganizationResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listOrgs + * @throws ApiException if the response code was not in [200, 299] + */ + listOrgs(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OrganizationListResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OrganizationListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateOrg + * @throws ApiException if the response code was not in [200, 299] + */ + updateOrg(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OrganizationResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OrganizationResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to uploadIdPForOrg + * @throws ApiException if the response code was not in [200, 299] + */ + uploadIdPForOrg(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IdpResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 415 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IdpResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.OrganizationsApiResponseProcessor = OrganizationsApiResponseProcessor; +class OrganizationsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new OrganizationsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new OrganizationsApiResponseProcessor(); + } + /** + * Create a child organization. + * + * This endpoint requires the + * [multi-organization account](https://docs.datadoghq.com/account_management/multi_organization/) + * feature and must be enabled by + * [contacting support](https://docs.datadoghq.com/help/). + * + * Once a new child organization is created, you can interact with it + * by using the `org.public_id`, `api_key.key`, and + * `application_key.hash` provided in the response. + * @param param The request object + */ + createChildOrg(param, options) { + const requestContextPromise = this.requestFactory.createChildOrg(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createChildOrg(responseContext); + }); + }); + } + /** + * Only available for MSP customers. Removes a child organization from the hierarchy of the master organization and places the child organization on a 30-day trial. + * @param param The request object + */ + downgradeOrg(param, options) { + const requestContextPromise = this.requestFactory.downgradeOrg(param.publicId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.downgradeOrg(responseContext); + }); + }); + } + /** + * Get organization information. + * @param param The request object + */ + getOrg(param, options) { + const requestContextPromise = this.requestFactory.getOrg(param.publicId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getOrg(responseContext); + }); + }); + } + /** + * This endpoint returns data on your top-level organization. + * @param param The request object + */ + listOrgs(options) { + const requestContextPromise = this.requestFactory.listOrgs(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listOrgs(responseContext); + }); + }); + } + /** + * Update your organization. + * @param param The request object + */ + updateOrg(param, options) { + const requestContextPromise = this.requestFactory.updateOrg(param.publicId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateOrg(responseContext); + }); + }); + } + /** + * There are a couple of options for updating the Identity Provider (IdP) + * metadata from your SAML IdP. + * + * * **Multipart Form-Data**: Post the IdP metadata file using a form post. + * + * * **XML Body:** Post the IdP metadata file as the body of the request. + * @param param The request object + */ + uploadIdPForOrg(param, options) { + const requestContextPromise = this.requestFactory.uploadIdPForOrg(param.publicId, param.idpFile, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.uploadIdPForOrg(responseContext); + }); + }); + } +} +exports.OrganizationsApi = OrganizationsApi; +//# sourceMappingURL=OrganizationsApi.js.map + +/***/ }), + +/***/ 95933: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.PagerDutyIntegrationApi = exports.PagerDutyIntegrationApiResponseProcessor = exports.PagerDutyIntegrationApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class PagerDutyIntegrationApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createPagerDutyIntegrationService(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createPagerDutyIntegrationService"); + } + // Path Params + const localVarPath = "/api/v1/integration/pagerduty/configuration/services"; + // Make Request Context + const requestContext = _config + .getServer("v1.PagerDutyIntegrationApi.createPagerDutyIntegrationService") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "PagerDutyService", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deletePagerDutyIntegrationService(serviceName, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'serviceName' is not null or undefined + if (serviceName === null || serviceName === undefined) { + throw new baseapi_1.RequiredError("serviceName", "deletePagerDutyIntegrationService"); + } + // Path Params + const localVarPath = "/api/v1/integration/pagerduty/configuration/services/{service_name}".replace("{service_name}", encodeURIComponent(String(serviceName))); + // Make Request Context + const requestContext = _config + .getServer("v1.PagerDutyIntegrationApi.deletePagerDutyIntegrationService") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getPagerDutyIntegrationService(serviceName, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'serviceName' is not null or undefined + if (serviceName === null || serviceName === undefined) { + throw new baseapi_1.RequiredError("serviceName", "getPagerDutyIntegrationService"); + } + // Path Params + const localVarPath = "/api/v1/integration/pagerduty/configuration/services/{service_name}".replace("{service_name}", encodeURIComponent(String(serviceName))); + // Make Request Context + const requestContext = _config + .getServer("v1.PagerDutyIntegrationApi.getPagerDutyIntegrationService") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updatePagerDutyIntegrationService(serviceName, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'serviceName' is not null or undefined + if (serviceName === null || serviceName === undefined) { + throw new baseapi_1.RequiredError("serviceName", "updatePagerDutyIntegrationService"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updatePagerDutyIntegrationService"); + } + // Path Params + const localVarPath = "/api/v1/integration/pagerduty/configuration/services/{service_name}".replace("{service_name}", encodeURIComponent(String(serviceName))); + // Make Request Context + const requestContext = _config + .getServer("v1.PagerDutyIntegrationApi.updatePagerDutyIntegrationService") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "PagerDutyServiceKey", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.PagerDutyIntegrationApiRequestFactory = PagerDutyIntegrationApiRequestFactory; +class PagerDutyIntegrationApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createPagerDutyIntegrationService + * @throws ApiException if the response code was not in [200, 299] + */ + createPagerDutyIntegrationService(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "PagerDutyServiceName"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "PagerDutyServiceName", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deletePagerDutyIntegrationService + * @throws ApiException if the response code was not in [200, 299] + */ + deletePagerDutyIntegrationService(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getPagerDutyIntegrationService + * @throws ApiException if the response code was not in [200, 299] + */ + getPagerDutyIntegrationService(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "PagerDutyServiceName"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "PagerDutyServiceName", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updatePagerDutyIntegrationService + * @throws ApiException if the response code was not in [200, 299] + */ + updatePagerDutyIntegrationService(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.PagerDutyIntegrationApiResponseProcessor = PagerDutyIntegrationApiResponseProcessor; +class PagerDutyIntegrationApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || + new PagerDutyIntegrationApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new PagerDutyIntegrationApiResponseProcessor(); + } + /** + * Create a new service object in the PagerDuty integration. + * @param param The request object + */ + createPagerDutyIntegrationService(param, options) { + const requestContextPromise = this.requestFactory.createPagerDutyIntegrationService(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createPagerDutyIntegrationService(responseContext); + }); + }); + } + /** + * Delete a single service object in the Datadog-PagerDuty integration. + * @param param The request object + */ + deletePagerDutyIntegrationService(param, options) { + const requestContextPromise = this.requestFactory.deletePagerDutyIntegrationService(param.serviceName, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deletePagerDutyIntegrationService(responseContext); + }); + }); + } + /** + * Get service name in the Datadog-PagerDuty integration. + * @param param The request object + */ + getPagerDutyIntegrationService(param, options) { + const requestContextPromise = this.requestFactory.getPagerDutyIntegrationService(param.serviceName, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getPagerDutyIntegrationService(responseContext); + }); + }); + } + /** + * Update a single service object in the Datadog-PagerDuty integration. + * @param param The request object + */ + updatePagerDutyIntegrationService(param, options) { + const requestContextPromise = this.requestFactory.updatePagerDutyIntegrationService(param.serviceName, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updatePagerDutyIntegrationService(responseContext); + }); + }); + } +} +exports.PagerDutyIntegrationApi = PagerDutyIntegrationApi; +//# sourceMappingURL=PagerDutyIntegrationApi.js.map + +/***/ }), + +/***/ 62232: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.SecurityMonitoringApi = exports.SecurityMonitoringApiResponseProcessor = exports.SecurityMonitoringApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class SecurityMonitoringApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + addSecurityMonitoringSignalToIncident(signalId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'signalId' is not null or undefined + if (signalId === null || signalId === undefined) { + throw new baseapi_1.RequiredError("signalId", "addSecurityMonitoringSignalToIncident"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "addSecurityMonitoringSignalToIncident"); + } + // Path Params + const localVarPath = "/api/v1/security_analytics/signals/{signal_id}/add_to_incident".replace("{signal_id}", encodeURIComponent(String(signalId))); + // Make Request Context + const requestContext = _config + .getServer("v1.SecurityMonitoringApi.addSecurityMonitoringSignalToIncident") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "AddSignalToIncidentRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + editSecurityMonitoringSignalAssignee(signalId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'signalId' is not null or undefined + if (signalId === null || signalId === undefined) { + throw new baseapi_1.RequiredError("signalId", "editSecurityMonitoringSignalAssignee"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "editSecurityMonitoringSignalAssignee"); + } + // Path Params + const localVarPath = "/api/v1/security_analytics/signals/{signal_id}/assignee".replace("{signal_id}", encodeURIComponent(String(signalId))); + // Make Request Context + const requestContext = _config + .getServer("v1.SecurityMonitoringApi.editSecurityMonitoringSignalAssignee") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SignalAssigneeUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + editSecurityMonitoringSignalState(signalId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'signalId' is not null or undefined + if (signalId === null || signalId === undefined) { + throw new baseapi_1.RequiredError("signalId", "editSecurityMonitoringSignalState"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "editSecurityMonitoringSignalState"); + } + // Path Params + const localVarPath = "/api/v1/security_analytics/signals/{signal_id}/state".replace("{signal_id}", encodeURIComponent(String(signalId))); + // Make Request Context + const requestContext = _config + .getServer("v1.SecurityMonitoringApi.editSecurityMonitoringSignalState") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SignalStateUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.SecurityMonitoringApiRequestFactory = SecurityMonitoringApiRequestFactory; +class SecurityMonitoringApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to addSecurityMonitoringSignalToIncident + * @throws ApiException if the response code was not in [200, 299] + */ + addSecurityMonitoringSignalToIncident(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SuccessfulSignalUpdateResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SuccessfulSignalUpdateResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to editSecurityMonitoringSignalAssignee + * @throws ApiException if the response code was not in [200, 299] + */ + editSecurityMonitoringSignalAssignee(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SuccessfulSignalUpdateResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SuccessfulSignalUpdateResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to editSecurityMonitoringSignalState + * @throws ApiException if the response code was not in [200, 299] + */ + editSecurityMonitoringSignalState(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SuccessfulSignalUpdateResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SuccessfulSignalUpdateResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.SecurityMonitoringApiResponseProcessor = SecurityMonitoringApiResponseProcessor; +class SecurityMonitoringApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new SecurityMonitoringApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new SecurityMonitoringApiResponseProcessor(); + } + /** + * Add a security signal to an incident. This makes it possible to search for signals by incident within the signal explorer and to view the signals on the incident timeline. + * @param param The request object + */ + addSecurityMonitoringSignalToIncident(param, options) { + const requestContextPromise = this.requestFactory.addSecurityMonitoringSignalToIncident(param.signalId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.addSecurityMonitoringSignalToIncident(responseContext); + }); + }); + } + /** + * Modify the triage assignee of a security signal. + * @param param The request object + */ + editSecurityMonitoringSignalAssignee(param, options) { + const requestContextPromise = this.requestFactory.editSecurityMonitoringSignalAssignee(param.signalId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.editSecurityMonitoringSignalAssignee(responseContext); + }); + }); + } + /** + * Change the triage state of a security signal. + * @param param The request object + */ + editSecurityMonitoringSignalState(param, options) { + const requestContextPromise = this.requestFactory.editSecurityMonitoringSignalState(param.signalId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.editSecurityMonitoringSignalState(responseContext); + }); + }); + } +} +exports.SecurityMonitoringApi = SecurityMonitoringApi; +//# sourceMappingURL=SecurityMonitoringApi.js.map + +/***/ }), + +/***/ 77192: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.ServiceChecksApi = exports.ServiceChecksApiResponseProcessor = exports.ServiceChecksApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class ServiceChecksApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + submitServiceCheck(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "submitServiceCheck"); + } + // Path Params + const localVarPath = "/api/v1/check_run"; + // Make Request Context + const requestContext = _config + .getServer("v1.ServiceChecksApi.submitServiceCheck") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "text/json, application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "Array", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, ["apiKeyAuth"]); + return requestContext; + }); + } +} +exports.ServiceChecksApiRequestFactory = ServiceChecksApiRequestFactory; +class ServiceChecksApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to submitServiceCheck + * @throws ApiException if the response code was not in [200, 299] + */ + submitServiceCheck(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 202) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IntakePayloadAccepted"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 408 || + response.httpStatusCode === 413 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IntakePayloadAccepted", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.ServiceChecksApiResponseProcessor = ServiceChecksApiResponseProcessor; +class ServiceChecksApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new ServiceChecksApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new ServiceChecksApiResponseProcessor(); + } + /** + * Submit a list of Service Checks. + * + * **Notes**: + * - A valid API key is required. + * - Service checks can be submitted up to 10 minutes in the past. + * @param param The request object + */ + submitServiceCheck(param, options) { + const requestContextPromise = this.requestFactory.submitServiceCheck(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.submitServiceCheck(responseContext); + }); + }); + } +} +exports.ServiceChecksApi = ServiceChecksApi; +//# sourceMappingURL=ServiceChecksApi.js.map + +/***/ }), + +/***/ 20905: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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 __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ServiceLevelObjectiveCorrectionsApi = exports.ServiceLevelObjectiveCorrectionsApiResponseProcessor = exports.ServiceLevelObjectiveCorrectionsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class ServiceLevelObjectiveCorrectionsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createSLOCorrection(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createSLOCorrection"); + } + // Path Params + const localVarPath = "/api/v1/slo/correction"; + // Make Request Context + const requestContext = _config + .getServer("v1.ServiceLevelObjectiveCorrectionsApi.createSLOCorrection") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SLOCorrectionCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteSLOCorrection(sloCorrectionId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'sloCorrectionId' is not null or undefined + if (sloCorrectionId === null || sloCorrectionId === undefined) { + throw new baseapi_1.RequiredError("sloCorrectionId", "deleteSLOCorrection"); + } + // Path Params + const localVarPath = "/api/v1/slo/correction/{slo_correction_id}".replace("{slo_correction_id}", encodeURIComponent(String(sloCorrectionId))); + // Make Request Context + const requestContext = _config + .getServer("v1.ServiceLevelObjectiveCorrectionsApi.deleteSLOCorrection") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getSLOCorrection(sloCorrectionId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'sloCorrectionId' is not null or undefined + if (sloCorrectionId === null || sloCorrectionId === undefined) { + throw new baseapi_1.RequiredError("sloCorrectionId", "getSLOCorrection"); + } + // Path Params + const localVarPath = "/api/v1/slo/correction/{slo_correction_id}".replace("{slo_correction_id}", encodeURIComponent(String(sloCorrectionId))); + // Make Request Context + const requestContext = _config + .getServer("v1.ServiceLevelObjectiveCorrectionsApi.getSLOCorrection") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listSLOCorrection(offset, limit, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/slo/correction"; + // Make Request Context + const requestContext = _config + .getServer("v1.ServiceLevelObjectiveCorrectionsApi.listSLOCorrection") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (offset !== undefined) { + requestContext.setQueryParam("offset", ObjectSerializer_1.ObjectSerializer.serialize(offset, "number", "int64"), ""); + } + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", "int64"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateSLOCorrection(sloCorrectionId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'sloCorrectionId' is not null or undefined + if (sloCorrectionId === null || sloCorrectionId === undefined) { + throw new baseapi_1.RequiredError("sloCorrectionId", "updateSLOCorrection"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateSLOCorrection"); + } + // Path Params + const localVarPath = "/api/v1/slo/correction/{slo_correction_id}".replace("{slo_correction_id}", encodeURIComponent(String(sloCorrectionId))); + // Make Request Context + const requestContext = _config + .getServer("v1.ServiceLevelObjectiveCorrectionsApi.updateSLOCorrection") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SLOCorrectionUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.ServiceLevelObjectiveCorrectionsApiRequestFactory = ServiceLevelObjectiveCorrectionsApiRequestFactory; +class ServiceLevelObjectiveCorrectionsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createSLOCorrection + * @throws ApiException if the response code was not in [200, 299] + */ + createSLOCorrection(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SLOCorrectionResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SLOCorrectionResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteSLOCorrection + * @throws ApiException if the response code was not in [200, 299] + */ + deleteSLOCorrection(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getSLOCorrection + * @throws ApiException if the response code was not in [200, 299] + */ + getSLOCorrection(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SLOCorrectionResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SLOCorrectionResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listSLOCorrection + * @throws ApiException if the response code was not in [200, 299] + */ + listSLOCorrection(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SLOCorrectionListResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SLOCorrectionListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateSLOCorrection + * @throws ApiException if the response code was not in [200, 299] + */ + updateSLOCorrection(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SLOCorrectionResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SLOCorrectionResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.ServiceLevelObjectiveCorrectionsApiResponseProcessor = ServiceLevelObjectiveCorrectionsApiResponseProcessor; +class ServiceLevelObjectiveCorrectionsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || + new ServiceLevelObjectiveCorrectionsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || + new ServiceLevelObjectiveCorrectionsApiResponseProcessor(); + } + /** + * Create an SLO Correction. + * @param param The request object + */ + createSLOCorrection(param, options) { + const requestContextPromise = this.requestFactory.createSLOCorrection(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createSLOCorrection(responseContext); + }); + }); + } + /** + * Permanently delete the specified SLO correction object. + * @param param The request object + */ + deleteSLOCorrection(param, options) { + const requestContextPromise = this.requestFactory.deleteSLOCorrection(param.sloCorrectionId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteSLOCorrection(responseContext); + }); + }); + } + /** + * Get an SLO correction. + * @param param The request object + */ + getSLOCorrection(param, options) { + const requestContextPromise = this.requestFactory.getSLOCorrection(param.sloCorrectionId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getSLOCorrection(responseContext); + }); + }); + } + /** + * Get all Service Level Objective corrections. + * @param param The request object + */ + listSLOCorrection(param = {}, options) { + const requestContextPromise = this.requestFactory.listSLOCorrection(param.offset, param.limit, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listSLOCorrection(responseContext); + }); + }); + } + /** + * Provide a paginated version of listSLOCorrection returning a generator with all the items. + */ + listSLOCorrectionWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* listSLOCorrectionWithPagination_1() { + let pageSize = 25; + if (param.limit !== undefined) { + pageSize = param.limit; + } + param.limit = pageSize; + while (true) { + const requestContext = yield __await(this.requestFactory.listSLOCorrection(param.offset, param.limit, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listSLOCorrection(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + if (param.offset === undefined) { + param.offset = pageSize; + } + else { + param.offset = param.offset + pageSize; + } + } + }); + } + /** + * Update the specified SLO correction object. + * @param param The request object + */ + updateSLOCorrection(param, options) { + const requestContextPromise = this.requestFactory.updateSLOCorrection(param.sloCorrectionId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateSLOCorrection(responseContext); + }); + }); + } +} +exports.ServiceLevelObjectiveCorrectionsApi = ServiceLevelObjectiveCorrectionsApi; +//# sourceMappingURL=ServiceLevelObjectiveCorrectionsApi.js.map + +/***/ }), + +/***/ 35013: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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 __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ServiceLevelObjectivesApi = exports.ServiceLevelObjectivesApiResponseProcessor = exports.ServiceLevelObjectivesApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class ServiceLevelObjectivesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + checkCanDeleteSLO(ids, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'ids' is not null or undefined + if (ids === null || ids === undefined) { + throw new baseapi_1.RequiredError("ids", "checkCanDeleteSLO"); + } + // Path Params + const localVarPath = "/api/v1/slo/can_delete"; + // Make Request Context + const requestContext = _config + .getServer("v1.ServiceLevelObjectivesApi.checkCanDeleteSLO") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (ids !== undefined) { + requestContext.setQueryParam("ids", ObjectSerializer_1.ObjectSerializer.serialize(ids, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createSLO(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createSLO"); + } + // Path Params + const localVarPath = "/api/v1/slo"; + // Make Request Context + const requestContext = _config + .getServer("v1.ServiceLevelObjectivesApi.createSLO") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ServiceLevelObjectiveRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteSLO(sloId, force, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'sloId' is not null or undefined + if (sloId === null || sloId === undefined) { + throw new baseapi_1.RequiredError("sloId", "deleteSLO"); + } + // Path Params + const localVarPath = "/api/v1/slo/{slo_id}".replace("{slo_id}", encodeURIComponent(String(sloId))); + // Make Request Context + const requestContext = _config + .getServer("v1.ServiceLevelObjectivesApi.deleteSLO") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer_1.ObjectSerializer.serialize(force, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteSLOTimeframeInBulk(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "deleteSLOTimeframeInBulk"); + } + // Path Params + const localVarPath = "/api/v1/slo/bulk_delete"; + // Make Request Context + const requestContext = _config + .getServer("v1.ServiceLevelObjectivesApi.deleteSLOTimeframeInBulk") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "{ [key: string]: Array; }", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getSLO(sloId, withConfiguredAlertIds, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'sloId' is not null or undefined + if (sloId === null || sloId === undefined) { + throw new baseapi_1.RequiredError("sloId", "getSLO"); + } + // Path Params + const localVarPath = "/api/v1/slo/{slo_id}".replace("{slo_id}", encodeURIComponent(String(sloId))); + // Make Request Context + const requestContext = _config + .getServer("v1.ServiceLevelObjectivesApi.getSLO") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (withConfiguredAlertIds !== undefined) { + requestContext.setQueryParam("with_configured_alert_ids", ObjectSerializer_1.ObjectSerializer.serialize(withConfiguredAlertIds, "boolean", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getSLOCorrections(sloId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'sloId' is not null or undefined + if (sloId === null || sloId === undefined) { + throw new baseapi_1.RequiredError("sloId", "getSLOCorrections"); + } + // Path Params + const localVarPath = "/api/v1/slo/{slo_id}/corrections".replace("{slo_id}", encodeURIComponent(String(sloId))); + // Make Request Context + const requestContext = _config + .getServer("v1.ServiceLevelObjectivesApi.getSLOCorrections") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getSLOHistory(sloId, fromTs, toTs, target, applyCorrection, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'sloId' is not null or undefined + if (sloId === null || sloId === undefined) { + throw new baseapi_1.RequiredError("sloId", "getSLOHistory"); + } + // verify required parameter 'fromTs' is not null or undefined + if (fromTs === null || fromTs === undefined) { + throw new baseapi_1.RequiredError("fromTs", "getSLOHistory"); + } + // verify required parameter 'toTs' is not null or undefined + if (toTs === null || toTs === undefined) { + throw new baseapi_1.RequiredError("toTs", "getSLOHistory"); + } + // Path Params + const localVarPath = "/api/v1/slo/{slo_id}/history".replace("{slo_id}", encodeURIComponent(String(sloId))); + // Make Request Context + const requestContext = _config + .getServer("v1.ServiceLevelObjectivesApi.getSLOHistory") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (fromTs !== undefined) { + requestContext.setQueryParam("from_ts", ObjectSerializer_1.ObjectSerializer.serialize(fromTs, "number", "int64"), ""); + } + if (toTs !== undefined) { + requestContext.setQueryParam("to_ts", ObjectSerializer_1.ObjectSerializer.serialize(toTs, "number", "int64"), ""); + } + if (target !== undefined) { + requestContext.setQueryParam("target", ObjectSerializer_1.ObjectSerializer.serialize(target, "number", "double"), ""); + } + if (applyCorrection !== undefined) { + requestContext.setQueryParam("apply_correction", ObjectSerializer_1.ObjectSerializer.serialize(applyCorrection, "boolean", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listSLOs(ids, query, tagsQuery, metricsQuery, limit, offset, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/slo"; + // Make Request Context + const requestContext = _config + .getServer("v1.ServiceLevelObjectivesApi.listSLOs") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (ids !== undefined) { + requestContext.setQueryParam("ids", ObjectSerializer_1.ObjectSerializer.serialize(ids, "string", ""), ""); + } + if (query !== undefined) { + requestContext.setQueryParam("query", ObjectSerializer_1.ObjectSerializer.serialize(query, "string", ""), ""); + } + if (tagsQuery !== undefined) { + requestContext.setQueryParam("tags_query", ObjectSerializer_1.ObjectSerializer.serialize(tagsQuery, "string", ""), ""); + } + if (metricsQuery !== undefined) { + requestContext.setQueryParam("metrics_query", ObjectSerializer_1.ObjectSerializer.serialize(metricsQuery, "string", ""), ""); + } + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", "int64"), ""); + } + if (offset !== undefined) { + requestContext.setQueryParam("offset", ObjectSerializer_1.ObjectSerializer.serialize(offset, "number", "int64"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + searchSLO(query, pageSize, pageNumber, includeFacets, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/slo/search"; + // Make Request Context + const requestContext = _config + .getServer("v1.ServiceLevelObjectivesApi.searchSLO") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (query !== undefined) { + requestContext.setQueryParam("query", ObjectSerializer_1.ObjectSerializer.serialize(query, "string", ""), ""); + } + if (pageSize !== undefined) { + requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), ""); + } + if (pageNumber !== undefined) { + requestContext.setQueryParam("page[number]", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); + } + if (includeFacets !== undefined) { + requestContext.setQueryParam("include_facets", ObjectSerializer_1.ObjectSerializer.serialize(includeFacets, "boolean", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateSLO(sloId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'sloId' is not null or undefined + if (sloId === null || sloId === undefined) { + throw new baseapi_1.RequiredError("sloId", "updateSLO"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateSLO"); + } + // Path Params + const localVarPath = "/api/v1/slo/{slo_id}".replace("{slo_id}", encodeURIComponent(String(sloId))); + // Make Request Context + const requestContext = _config + .getServer("v1.ServiceLevelObjectivesApi.updateSLO") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ServiceLevelObjective", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.ServiceLevelObjectivesApiRequestFactory = ServiceLevelObjectivesApiRequestFactory; +class ServiceLevelObjectivesApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to checkCanDeleteSLO + * @throws ApiException if the response code was not in [200, 299] + */ + checkCanDeleteSLO(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200 || response.httpStatusCode === 409) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CheckCanDeleteSLOResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CheckCanDeleteSLOResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createSLO + * @throws ApiException if the response code was not in [200, 299] + */ + createSLO(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SLOListResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SLOListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteSLO + * @throws ApiException if the response code was not in [200, 299] + */ + deleteSLO(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200 || response.httpStatusCode === 409) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SLODeleteResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SLODeleteResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteSLOTimeframeInBulk + * @throws ApiException if the response code was not in [200, 299] + */ + deleteSLOTimeframeInBulk(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SLOBulkDeleteResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SLOBulkDeleteResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getSLO + * @throws ApiException if the response code was not in [200, 299] + */ + getSLO(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SLOResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SLOResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getSLOCorrections + * @throws ApiException if the response code was not in [200, 299] + */ + getSLOCorrections(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SLOCorrectionListResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SLOCorrectionListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getSLOHistory + * @throws ApiException if the response code was not in [200, 299] + */ + getSLOHistory(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SLOHistoryResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SLOHistoryResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listSLOs + * @throws ApiException if the response code was not in [200, 299] + */ + listSLOs(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SLOListResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SLOListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to searchSLO + * @throws ApiException if the response code was not in [200, 299] + */ + searchSLO(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SearchSLOResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SearchSLOResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateSLO + * @throws ApiException if the response code was not in [200, 299] + */ + updateSLO(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SLOListResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SLOListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.ServiceLevelObjectivesApiResponseProcessor = ServiceLevelObjectivesApiResponseProcessor; +class ServiceLevelObjectivesApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || + new ServiceLevelObjectivesApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new ServiceLevelObjectivesApiResponseProcessor(); + } + /** + * Check if an SLO can be safely deleted. For example, + * assure an SLO can be deleted without disrupting a dashboard. + * @param param The request object + */ + checkCanDeleteSLO(param, options) { + const requestContextPromise = this.requestFactory.checkCanDeleteSLO(param.ids, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.checkCanDeleteSLO(responseContext); + }); + }); + } + /** + * Create a service level objective object. + * @param param The request object + */ + createSLO(param, options) { + const requestContextPromise = this.requestFactory.createSLO(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createSLO(responseContext); + }); + }); + } + /** + * Permanently delete the specified service level objective object. + * + * If an SLO is used in a dashboard, the `DELETE /v1/slo/` endpoint returns + * a 409 conflict error because the SLO is referenced in a dashboard. + * @param param The request object + */ + deleteSLO(param, options) { + const requestContextPromise = this.requestFactory.deleteSLO(param.sloId, param.force, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteSLO(responseContext); + }); + }); + } + /** + * Delete (or partially delete) multiple service level objective objects. + * + * This endpoint facilitates deletion of one or more thresholds for one or more + * service level objective objects. If all thresholds are deleted, the service level + * objective object is deleted as well. + * @param param The request object + */ + deleteSLOTimeframeInBulk(param, options) { + const requestContextPromise = this.requestFactory.deleteSLOTimeframeInBulk(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteSLOTimeframeInBulk(responseContext); + }); + }); + } + /** + * Get a service level objective object. + * @param param The request object + */ + getSLO(param, options) { + const requestContextPromise = this.requestFactory.getSLO(param.sloId, param.withConfiguredAlertIds, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getSLO(responseContext); + }); + }); + } + /** + * Get corrections applied to an SLO + * @param param The request object + */ + getSLOCorrections(param, options) { + const requestContextPromise = this.requestFactory.getSLOCorrections(param.sloId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getSLOCorrections(responseContext); + }); + }); + } + /** + * Get a specific SLO’s history, regardless of its SLO type. + * + * The detailed history data is structured according to the source data type. + * For example, metric data is included for event SLOs that use + * the metric source, and monitor SLO types include the monitor transition history. + * + * **Note:** There are different response formats for event based and time based SLOs. + * Examples of both are shown. + * @param param The request object + */ + getSLOHistory(param, options) { + const requestContextPromise = this.requestFactory.getSLOHistory(param.sloId, param.fromTs, param.toTs, param.target, param.applyCorrection, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getSLOHistory(responseContext); + }); + }); + } + /** + * Get a list of service level objective objects for your organization. + * @param param The request object + */ + listSLOs(param = {}, options) { + const requestContextPromise = this.requestFactory.listSLOs(param.ids, param.query, param.tagsQuery, param.metricsQuery, param.limit, param.offset, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listSLOs(responseContext); + }); + }); + } + /** + * Provide a paginated version of listSLOs returning a generator with all the items. + */ + listSLOsWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* listSLOsWithPagination_1() { + let pageSize = 1000; + if (param.limit !== undefined) { + pageSize = param.limit; + } + param.limit = pageSize; + while (true) { + const requestContext = yield __await(this.requestFactory.listSLOs(param.ids, param.query, param.tagsQuery, param.metricsQuery, param.limit, param.offset, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listSLOs(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + if (param.offset === undefined) { + param.offset = pageSize; + } + else { + param.offset = param.offset + pageSize; + } + } + }); + } + /** + * Get a list of service level objective objects for your organization. + * @param param The request object + */ + searchSLO(param = {}, options) { + const requestContextPromise = this.requestFactory.searchSLO(param.query, param.pageSize, param.pageNumber, param.includeFacets, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.searchSLO(responseContext); + }); + }); + } + /** + * Update the specified service level objective object. + * @param param The request object + */ + updateSLO(param, options) { + const requestContextPromise = this.requestFactory.updateSLO(param.sloId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateSLO(responseContext); + }); + }); + } +} +exports.ServiceLevelObjectivesApi = ServiceLevelObjectivesApi; +//# sourceMappingURL=ServiceLevelObjectivesApi.js.map + +/***/ }), + +/***/ 83370: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.SlackIntegrationApi = exports.SlackIntegrationApiResponseProcessor = exports.SlackIntegrationApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class SlackIntegrationApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createSlackIntegrationChannel(accountName, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'accountName' is not null or undefined + if (accountName === null || accountName === undefined) { + throw new baseapi_1.RequiredError("accountName", "createSlackIntegrationChannel"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createSlackIntegrationChannel"); + } + // Path Params + const localVarPath = "/api/v1/integration/slack/configuration/accounts/{account_name}/channels".replace("{account_name}", encodeURIComponent(String(accountName))); + // Make Request Context + const requestContext = _config + .getServer("v1.SlackIntegrationApi.createSlackIntegrationChannel") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SlackIntegrationChannel", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getSlackIntegrationChannel(accountName, channelName, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'accountName' is not null or undefined + if (accountName === null || accountName === undefined) { + throw new baseapi_1.RequiredError("accountName", "getSlackIntegrationChannel"); + } + // verify required parameter 'channelName' is not null or undefined + if (channelName === null || channelName === undefined) { + throw new baseapi_1.RequiredError("channelName", "getSlackIntegrationChannel"); + } + // Path Params + const localVarPath = "/api/v1/integration/slack/configuration/accounts/{account_name}/channels/{channel_name}" + .replace("{account_name}", encodeURIComponent(String(accountName))) + .replace("{channel_name}", encodeURIComponent(String(channelName))); + // Make Request Context + const requestContext = _config + .getServer("v1.SlackIntegrationApi.getSlackIntegrationChannel") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getSlackIntegrationChannels(accountName, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'accountName' is not null or undefined + if (accountName === null || accountName === undefined) { + throw new baseapi_1.RequiredError("accountName", "getSlackIntegrationChannels"); + } + // Path Params + const localVarPath = "/api/v1/integration/slack/configuration/accounts/{account_name}/channels".replace("{account_name}", encodeURIComponent(String(accountName))); + // Make Request Context + const requestContext = _config + .getServer("v1.SlackIntegrationApi.getSlackIntegrationChannels") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + removeSlackIntegrationChannel(accountName, channelName, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'accountName' is not null or undefined + if (accountName === null || accountName === undefined) { + throw new baseapi_1.RequiredError("accountName", "removeSlackIntegrationChannel"); + } + // verify required parameter 'channelName' is not null or undefined + if (channelName === null || channelName === undefined) { + throw new baseapi_1.RequiredError("channelName", "removeSlackIntegrationChannel"); + } + // Path Params + const localVarPath = "/api/v1/integration/slack/configuration/accounts/{account_name}/channels/{channel_name}" + .replace("{account_name}", encodeURIComponent(String(accountName))) + .replace("{channel_name}", encodeURIComponent(String(channelName))); + // Make Request Context + const requestContext = _config + .getServer("v1.SlackIntegrationApi.removeSlackIntegrationChannel") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateSlackIntegrationChannel(accountName, channelName, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'accountName' is not null or undefined + if (accountName === null || accountName === undefined) { + throw new baseapi_1.RequiredError("accountName", "updateSlackIntegrationChannel"); + } + // verify required parameter 'channelName' is not null or undefined + if (channelName === null || channelName === undefined) { + throw new baseapi_1.RequiredError("channelName", "updateSlackIntegrationChannel"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateSlackIntegrationChannel"); + } + // Path Params + const localVarPath = "/api/v1/integration/slack/configuration/accounts/{account_name}/channels/{channel_name}" + .replace("{account_name}", encodeURIComponent(String(accountName))) + .replace("{channel_name}", encodeURIComponent(String(channelName))); + // Make Request Context + const requestContext = _config + .getServer("v1.SlackIntegrationApi.updateSlackIntegrationChannel") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SlackIntegrationChannel", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.SlackIntegrationApiRequestFactory = SlackIntegrationApiRequestFactory; +class SlackIntegrationApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createSlackIntegrationChannel + * @throws ApiException if the response code was not in [200, 299] + */ + createSlackIntegrationChannel(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SlackIntegrationChannel"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SlackIntegrationChannel", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getSlackIntegrationChannel + * @throws ApiException if the response code was not in [200, 299] + */ + getSlackIntegrationChannel(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SlackIntegrationChannel"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SlackIntegrationChannel", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getSlackIntegrationChannels + * @throws ApiException if the response code was not in [200, 299] + */ + getSlackIntegrationChannels(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to removeSlackIntegrationChannel + * @throws ApiException if the response code was not in [200, 299] + */ + removeSlackIntegrationChannel(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateSlackIntegrationChannel + * @throws ApiException if the response code was not in [200, 299] + */ + updateSlackIntegrationChannel(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SlackIntegrationChannel"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SlackIntegrationChannel", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.SlackIntegrationApiResponseProcessor = SlackIntegrationApiResponseProcessor; +class SlackIntegrationApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new SlackIntegrationApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new SlackIntegrationApiResponseProcessor(); + } + /** + * Add a channel to your Datadog-Slack integration. + * @param param The request object + */ + createSlackIntegrationChannel(param, options) { + const requestContextPromise = this.requestFactory.createSlackIntegrationChannel(param.accountName, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createSlackIntegrationChannel(responseContext); + }); + }); + } + /** + * Get a channel configured for your Datadog-Slack integration. + * @param param The request object + */ + getSlackIntegrationChannel(param, options) { + const requestContextPromise = this.requestFactory.getSlackIntegrationChannel(param.accountName, param.channelName, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getSlackIntegrationChannel(responseContext); + }); + }); + } + /** + * Get a list of all channels configured for your Datadog-Slack integration. + * @param param The request object + */ + getSlackIntegrationChannels(param, options) { + const requestContextPromise = this.requestFactory.getSlackIntegrationChannels(param.accountName, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getSlackIntegrationChannels(responseContext); + }); + }); + } + /** + * Remove a channel from your Datadog-Slack integration. + * @param param The request object + */ + removeSlackIntegrationChannel(param, options) { + const requestContextPromise = this.requestFactory.removeSlackIntegrationChannel(param.accountName, param.channelName, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.removeSlackIntegrationChannel(responseContext); + }); + }); + } + /** + * Update a channel used in your Datadog-Slack integration. + * @param param The request object + */ + updateSlackIntegrationChannel(param, options) { + const requestContextPromise = this.requestFactory.updateSlackIntegrationChannel(param.accountName, param.channelName, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateSlackIntegrationChannel(responseContext); + }); + }); + } +} +exports.SlackIntegrationApi = SlackIntegrationApi; +//# sourceMappingURL=SlackIntegrationApi.js.map + +/***/ }), + +/***/ 84997: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.SnapshotsApi = exports.SnapshotsApiResponseProcessor = exports.SnapshotsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class SnapshotsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + getGraphSnapshot(start, end, metricQuery, eventQuery, graphDef, title, height, width, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'start' is not null or undefined + if (start === null || start === undefined) { + throw new baseapi_1.RequiredError("start", "getGraphSnapshot"); + } + // verify required parameter 'end' is not null or undefined + if (end === null || end === undefined) { + throw new baseapi_1.RequiredError("end", "getGraphSnapshot"); + } + // Path Params + const localVarPath = "/api/v1/graph/snapshot"; + // Make Request Context + const requestContext = _config + .getServer("v1.SnapshotsApi.getGraphSnapshot") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (metricQuery !== undefined) { + requestContext.setQueryParam("metric_query", ObjectSerializer_1.ObjectSerializer.serialize(metricQuery, "string", ""), ""); + } + if (start !== undefined) { + requestContext.setQueryParam("start", ObjectSerializer_1.ObjectSerializer.serialize(start, "number", "int64"), ""); + } + if (end !== undefined) { + requestContext.setQueryParam("end", ObjectSerializer_1.ObjectSerializer.serialize(end, "number", "int64"), ""); + } + if (eventQuery !== undefined) { + requestContext.setQueryParam("event_query", ObjectSerializer_1.ObjectSerializer.serialize(eventQuery, "string", ""), ""); + } + if (graphDef !== undefined) { + requestContext.setQueryParam("graph_def", ObjectSerializer_1.ObjectSerializer.serialize(graphDef, "string", ""), ""); + } + if (title !== undefined) { + requestContext.setQueryParam("title", ObjectSerializer_1.ObjectSerializer.serialize(title, "string", ""), ""); + } + if (height !== undefined) { + requestContext.setQueryParam("height", ObjectSerializer_1.ObjectSerializer.serialize(height, "number", "int64"), ""); + } + if (width !== undefined) { + requestContext.setQueryParam("width", ObjectSerializer_1.ObjectSerializer.serialize(width, "number", "int64"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.SnapshotsApiRequestFactory = SnapshotsApiRequestFactory; +class SnapshotsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getGraphSnapshot + * @throws ApiException if the response code was not in [200, 299] + */ + getGraphSnapshot(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GraphSnapshot"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GraphSnapshot", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.SnapshotsApiResponseProcessor = SnapshotsApiResponseProcessor; +class SnapshotsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new SnapshotsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new SnapshotsApiResponseProcessor(); + } + /** + * Take graph snapshots. + * **Note**: When a snapshot is created, there is some delay before it is available. + * @param param The request object + */ + getGraphSnapshot(param, options) { + const requestContextPromise = this.requestFactory.getGraphSnapshot(param.start, param.end, param.metricQuery, param.eventQuery, param.graphDef, param.title, param.height, param.width, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getGraphSnapshot(responseContext); + }); + }); + } +} +exports.SnapshotsApi = SnapshotsApi; +//# sourceMappingURL=SnapshotsApi.js.map + +/***/ }), + +/***/ 95484: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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 __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsApi = exports.SyntheticsApiResponseProcessor = exports.SyntheticsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class SyntheticsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createGlobalVariable(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createGlobalVariable"); + } + // Path Params + const localVarPath = "/api/v1/synthetics/variables"; + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.createGlobalVariable") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SyntheticsGlobalVariableRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createPrivateLocation(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createPrivateLocation"); + } + // Path Params + const localVarPath = "/api/v1/synthetics/private-locations"; + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.createPrivateLocation") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SyntheticsPrivateLocation", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createSyntheticsAPITest(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createSyntheticsAPITest"); + } + // Path Params + const localVarPath = "/api/v1/synthetics/tests/api"; + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.createSyntheticsAPITest") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SyntheticsAPITest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createSyntheticsBrowserTest(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createSyntheticsBrowserTest"); + } + // Path Params + const localVarPath = "/api/v1/synthetics/tests/browser"; + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.createSyntheticsBrowserTest") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SyntheticsBrowserTest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createSyntheticsMobileTest(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createSyntheticsMobileTest"); + } + // Path Params + const localVarPath = "/api/v1/synthetics/tests/mobile"; + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.createSyntheticsMobileTest") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SyntheticsMobileTest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteGlobalVariable(variableId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'variableId' is not null or undefined + if (variableId === null || variableId === undefined) { + throw new baseapi_1.RequiredError("variableId", "deleteGlobalVariable"); + } + // Path Params + const localVarPath = "/api/v1/synthetics/variables/{variable_id}".replace("{variable_id}", encodeURIComponent(String(variableId))); + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.deleteGlobalVariable") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deletePrivateLocation(locationId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'locationId' is not null or undefined + if (locationId === null || locationId === undefined) { + throw new baseapi_1.RequiredError("locationId", "deletePrivateLocation"); + } + // Path Params + const localVarPath = "/api/v1/synthetics/private-locations/{location_id}".replace("{location_id}", encodeURIComponent(String(locationId))); + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.deletePrivateLocation") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteTests(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "deleteTests"); + } + // Path Params + const localVarPath = "/api/v1/synthetics/tests/delete"; + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.deleteTests") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SyntheticsDeleteTestsPayload", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + editGlobalVariable(variableId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'variableId' is not null or undefined + if (variableId === null || variableId === undefined) { + throw new baseapi_1.RequiredError("variableId", "editGlobalVariable"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "editGlobalVariable"); + } + // Path Params + const localVarPath = "/api/v1/synthetics/variables/{variable_id}".replace("{variable_id}", encodeURIComponent(String(variableId))); + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.editGlobalVariable") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SyntheticsGlobalVariableRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + fetchUptimes(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "fetchUptimes"); + } + // Path Params + const localVarPath = "/api/v1/synthetics/tests/uptimes"; + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.fetchUptimes") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SyntheticsFetchUptimesPayload", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getAPITest(publicId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'publicId' is not null or undefined + if (publicId === null || publicId === undefined) { + throw new baseapi_1.RequiredError("publicId", "getAPITest"); + } + // Path Params + const localVarPath = "/api/v1/synthetics/tests/api/{public_id}".replace("{public_id}", encodeURIComponent(String(publicId))); + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.getAPITest") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getAPITestLatestResults(publicId, fromTs, toTs, probeDc, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'publicId' is not null or undefined + if (publicId === null || publicId === undefined) { + throw new baseapi_1.RequiredError("publicId", "getAPITestLatestResults"); + } + // Path Params + const localVarPath = "/api/v1/synthetics/tests/{public_id}/results".replace("{public_id}", encodeURIComponent(String(publicId))); + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.getAPITestLatestResults") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (fromTs !== undefined) { + requestContext.setQueryParam("from_ts", ObjectSerializer_1.ObjectSerializer.serialize(fromTs, "number", "int64"), ""); + } + if (toTs !== undefined) { + requestContext.setQueryParam("to_ts", ObjectSerializer_1.ObjectSerializer.serialize(toTs, "number", "int64"), ""); + } + if (probeDc !== undefined) { + requestContext.setQueryParam("probe_dc", ObjectSerializer_1.ObjectSerializer.serialize(probeDc, "Array", ""), "multi"); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getAPITestResult(publicId, resultId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'publicId' is not null or undefined + if (publicId === null || publicId === undefined) { + throw new baseapi_1.RequiredError("publicId", "getAPITestResult"); + } + // verify required parameter 'resultId' is not null or undefined + if (resultId === null || resultId === undefined) { + throw new baseapi_1.RequiredError("resultId", "getAPITestResult"); + } + // Path Params + const localVarPath = "/api/v1/synthetics/tests/{public_id}/results/{result_id}" + .replace("{public_id}", encodeURIComponent(String(publicId))) + .replace("{result_id}", encodeURIComponent(String(resultId))); + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.getAPITestResult") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getBrowserTest(publicId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'publicId' is not null or undefined + if (publicId === null || publicId === undefined) { + throw new baseapi_1.RequiredError("publicId", "getBrowserTest"); + } + // Path Params + const localVarPath = "/api/v1/synthetics/tests/browser/{public_id}".replace("{public_id}", encodeURIComponent(String(publicId))); + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.getBrowserTest") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getBrowserTestLatestResults(publicId, fromTs, toTs, probeDc, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'publicId' is not null or undefined + if (publicId === null || publicId === undefined) { + throw new baseapi_1.RequiredError("publicId", "getBrowserTestLatestResults"); + } + // Path Params + const localVarPath = "/api/v1/synthetics/tests/browser/{public_id}/results".replace("{public_id}", encodeURIComponent(String(publicId))); + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.getBrowserTestLatestResults") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (fromTs !== undefined) { + requestContext.setQueryParam("from_ts", ObjectSerializer_1.ObjectSerializer.serialize(fromTs, "number", "int64"), ""); + } + if (toTs !== undefined) { + requestContext.setQueryParam("to_ts", ObjectSerializer_1.ObjectSerializer.serialize(toTs, "number", "int64"), ""); + } + if (probeDc !== undefined) { + requestContext.setQueryParam("probe_dc", ObjectSerializer_1.ObjectSerializer.serialize(probeDc, "Array", ""), "multi"); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getBrowserTestResult(publicId, resultId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'publicId' is not null or undefined + if (publicId === null || publicId === undefined) { + throw new baseapi_1.RequiredError("publicId", "getBrowserTestResult"); + } + // verify required parameter 'resultId' is not null or undefined + if (resultId === null || resultId === undefined) { + throw new baseapi_1.RequiredError("resultId", "getBrowserTestResult"); + } + // Path Params + const localVarPath = "/api/v1/synthetics/tests/browser/{public_id}/results/{result_id}" + .replace("{public_id}", encodeURIComponent(String(publicId))) + .replace("{result_id}", encodeURIComponent(String(resultId))); + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.getBrowserTestResult") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getGlobalVariable(variableId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'variableId' is not null or undefined + if (variableId === null || variableId === undefined) { + throw new baseapi_1.RequiredError("variableId", "getGlobalVariable"); + } + // Path Params + const localVarPath = "/api/v1/synthetics/variables/{variable_id}".replace("{variable_id}", encodeURIComponent(String(variableId))); + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.getGlobalVariable") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getMobileTest(publicId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'publicId' is not null or undefined + if (publicId === null || publicId === undefined) { + throw new baseapi_1.RequiredError("publicId", "getMobileTest"); + } + // Path Params + const localVarPath = "/api/v1/synthetics/tests/mobile/{public_id}".replace("{public_id}", encodeURIComponent(String(publicId))); + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.getMobileTest") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getPrivateLocation(locationId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'locationId' is not null or undefined + if (locationId === null || locationId === undefined) { + throw new baseapi_1.RequiredError("locationId", "getPrivateLocation"); + } + // Path Params + const localVarPath = "/api/v1/synthetics/private-locations/{location_id}".replace("{location_id}", encodeURIComponent(String(locationId))); + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.getPrivateLocation") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getSyntheticsCIBatch(batchId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'batchId' is not null or undefined + if (batchId === null || batchId === undefined) { + throw new baseapi_1.RequiredError("batchId", "getSyntheticsCIBatch"); + } + // Path Params + const localVarPath = "/api/v1/synthetics/ci/batch/{batch_id}".replace("{batch_id}", encodeURIComponent(String(batchId))); + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.getSyntheticsCIBatch") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getSyntheticsDefaultLocations(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/synthetics/settings/default_locations"; + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.getSyntheticsDefaultLocations") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getTest(publicId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'publicId' is not null or undefined + if (publicId === null || publicId === undefined) { + throw new baseapi_1.RequiredError("publicId", "getTest"); + } + // Path Params + const localVarPath = "/api/v1/synthetics/tests/{public_id}".replace("{public_id}", encodeURIComponent(String(publicId))); + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.getTest") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listGlobalVariables(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/synthetics/variables"; + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.listGlobalVariables") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listLocations(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/synthetics/locations"; + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.listLocations") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listTests(pageSize, pageNumber, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/synthetics/tests"; + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.listTests") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (pageSize !== undefined) { + requestContext.setQueryParam("page_size", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), ""); + } + if (pageNumber !== undefined) { + requestContext.setQueryParam("page_number", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + patchTest(publicId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'publicId' is not null or undefined + if (publicId === null || publicId === undefined) { + throw new baseapi_1.RequiredError("publicId", "patchTest"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "patchTest"); + } + // Path Params + const localVarPath = "/api/v1/synthetics/tests/{public_id}".replace("{public_id}", encodeURIComponent(String(publicId))); + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.patchTest") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SyntheticsPatchTestBody", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + triggerCITests(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "triggerCITests"); + } + // Path Params + const localVarPath = "/api/v1/synthetics/tests/trigger/ci"; + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.triggerCITests") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SyntheticsCITestBody", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + triggerTests(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "triggerTests"); + } + // Path Params + const localVarPath = "/api/v1/synthetics/tests/trigger"; + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.triggerTests") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SyntheticsTriggerBody", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateAPITest(publicId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'publicId' is not null or undefined + if (publicId === null || publicId === undefined) { + throw new baseapi_1.RequiredError("publicId", "updateAPITest"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateAPITest"); + } + // Path Params + const localVarPath = "/api/v1/synthetics/tests/api/{public_id}".replace("{public_id}", encodeURIComponent(String(publicId))); + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.updateAPITest") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SyntheticsAPITest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateBrowserTest(publicId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'publicId' is not null or undefined + if (publicId === null || publicId === undefined) { + throw new baseapi_1.RequiredError("publicId", "updateBrowserTest"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateBrowserTest"); + } + // Path Params + const localVarPath = "/api/v1/synthetics/tests/browser/{public_id}".replace("{public_id}", encodeURIComponent(String(publicId))); + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.updateBrowserTest") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SyntheticsBrowserTest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateMobileTest(publicId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'publicId' is not null or undefined + if (publicId === null || publicId === undefined) { + throw new baseapi_1.RequiredError("publicId", "updateMobileTest"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateMobileTest"); + } + // Path Params + const localVarPath = "/api/v1/synthetics/tests/mobile/{public_id}".replace("{public_id}", encodeURIComponent(String(publicId))); + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.updateMobileTest") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SyntheticsMobileTest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updatePrivateLocation(locationId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'locationId' is not null or undefined + if (locationId === null || locationId === undefined) { + throw new baseapi_1.RequiredError("locationId", "updatePrivateLocation"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updatePrivateLocation"); + } + // Path Params + const localVarPath = "/api/v1/synthetics/private-locations/{location_id}".replace("{location_id}", encodeURIComponent(String(locationId))); + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.updatePrivateLocation") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SyntheticsPrivateLocation", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateTestPauseStatus(publicId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'publicId' is not null or undefined + if (publicId === null || publicId === undefined) { + throw new baseapi_1.RequiredError("publicId", "updateTestPauseStatus"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateTestPauseStatus"); + } + // Path Params + const localVarPath = "/api/v1/synthetics/tests/{public_id}/status".replace("{public_id}", encodeURIComponent(String(publicId))); + // Make Request Context + const requestContext = _config + .getServer("v1.SyntheticsApi.updateTestPauseStatus") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SyntheticsUpdateTestPauseStatusPayload", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.SyntheticsApiRequestFactory = SyntheticsApiRequestFactory; +class SyntheticsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createGlobalVariable + * @throws ApiException if the response code was not in [200, 299] + */ + createGlobalVariable(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsGlobalVariable"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsGlobalVariable", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createPrivateLocation + * @throws ApiException if the response code was not in [200, 299] + */ + createPrivateLocation(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsPrivateLocationCreationResponse"); + return body; + } + if (response.httpStatusCode === 402 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsPrivateLocationCreationResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createSyntheticsAPITest + * @throws ApiException if the response code was not in [200, 299] + */ + createSyntheticsAPITest(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsAPITest"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 402 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsAPITest", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createSyntheticsBrowserTest + * @throws ApiException if the response code was not in [200, 299] + */ + createSyntheticsBrowserTest(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsBrowserTest"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 402 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsBrowserTest", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createSyntheticsMobileTest + * @throws ApiException if the response code was not in [200, 299] + */ + createSyntheticsMobileTest(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsMobileTest"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 402 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsMobileTest", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteGlobalVariable + * @throws ApiException if the response code was not in [200, 299] + */ + deleteGlobalVariable(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deletePrivateLocation + * @throws ApiException if the response code was not in [200, 299] + */ + deletePrivateLocation(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 404 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteTests + * @throws ApiException if the response code was not in [200, 299] + */ + deleteTests(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsDeleteTestsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsDeleteTestsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to editGlobalVariable + * @throws ApiException if the response code was not in [200, 299] + */ + editGlobalVariable(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsGlobalVariable"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsGlobalVariable", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to fetchUptimes + * @throws ApiException if the response code was not in [200, 299] + */ + fetchUptimes(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getAPITest + * @throws ApiException if the response code was not in [200, 299] + */ + getAPITest(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsAPITest"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsAPITest", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getAPITestLatestResults + * @throws ApiException if the response code was not in [200, 299] + */ + getAPITestLatestResults(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsGetAPITestLatestResultsResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsGetAPITestLatestResultsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getAPITestResult + * @throws ApiException if the response code was not in [200, 299] + */ + getAPITestResult(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsAPITestResultFull"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsAPITestResultFull", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getBrowserTest + * @throws ApiException if the response code was not in [200, 299] + */ + getBrowserTest(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsBrowserTest"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsBrowserTest", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getBrowserTestLatestResults + * @throws ApiException if the response code was not in [200, 299] + */ + getBrowserTestLatestResults(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsGetBrowserTestLatestResultsResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsGetBrowserTestLatestResultsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getBrowserTestResult + * @throws ApiException if the response code was not in [200, 299] + */ + getBrowserTestResult(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsBrowserTestResultFull"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsBrowserTestResultFull", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getGlobalVariable + * @throws ApiException if the response code was not in [200, 299] + */ + getGlobalVariable(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsGlobalVariable"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsGlobalVariable", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getMobileTest + * @throws ApiException if the response code was not in [200, 299] + */ + getMobileTest(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsMobileTest"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsMobileTest", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getPrivateLocation + * @throws ApiException if the response code was not in [200, 299] + */ + getPrivateLocation(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsPrivateLocation"); + return body; + } + if (response.httpStatusCode === 404 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsPrivateLocation", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getSyntheticsCIBatch + * @throws ApiException if the response code was not in [200, 299] + */ + getSyntheticsCIBatch(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsBatchDetails"); + return body; + } + if (response.httpStatusCode === 404 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsBatchDetails", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getSyntheticsDefaultLocations + * @throws ApiException if the response code was not in [200, 299] + */ + getSyntheticsDefaultLocations(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array"); + return body; + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getTest + * @throws ApiException if the response code was not in [200, 299] + */ + getTest(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsTestDetails"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsTestDetails", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listGlobalVariables + * @throws ApiException if the response code was not in [200, 299] + */ + listGlobalVariables(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsListGlobalVariablesResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsListGlobalVariablesResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listLocations + * @throws ApiException if the response code was not in [200, 299] + */ + listLocations(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsLocations"); + return body; + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsLocations", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listTests + * @throws ApiException if the response code was not in [200, 299] + */ + listTests(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsListTestsResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsListTestsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchTest + * @throws ApiException if the response code was not in [200, 299] + */ + patchTest(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsTestDetails"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsTestDetails", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to triggerCITests + * @throws ApiException if the response code was not in [200, 299] + */ + triggerCITests(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsTriggerCITestsResponse"); + return body; + } + if (response.httpStatusCode === 400 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsTriggerCITestsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to triggerTests + * @throws ApiException if the response code was not in [200, 299] + */ + triggerTests(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsTriggerCITestsResponse"); + return body; + } + if (response.httpStatusCode === 400 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsTriggerCITestsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateAPITest + * @throws ApiException if the response code was not in [200, 299] + */ + updateAPITest(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsAPITest"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsAPITest", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateBrowserTest + * @throws ApiException if the response code was not in [200, 299] + */ + updateBrowserTest(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsBrowserTest"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsBrowserTest", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateMobileTest + * @throws ApiException if the response code was not in [200, 299] + */ + updateMobileTest(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsMobileTest"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsMobileTest", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updatePrivateLocation + * @throws ApiException if the response code was not in [200, 299] + */ + updatePrivateLocation(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsPrivateLocation"); + return body; + } + if (response.httpStatusCode === 404 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SyntheticsPrivateLocation", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateTestPauseStatus + * @throws ApiException if the response code was not in [200, 299] + */ + updateTestPauseStatus(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "boolean"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "boolean", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.SyntheticsApiResponseProcessor = SyntheticsApiResponseProcessor; +class SyntheticsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new SyntheticsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new SyntheticsApiResponseProcessor(); + } + /** + * Create a Synthetic global variable. + * @param param The request object + */ + createGlobalVariable(param, options) { + const requestContextPromise = this.requestFactory.createGlobalVariable(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createGlobalVariable(responseContext); + }); + }); + } + /** + * Create a new Synthetic private location. + * @param param The request object + */ + createPrivateLocation(param, options) { + const requestContextPromise = this.requestFactory.createPrivateLocation(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createPrivateLocation(responseContext); + }); + }); + } + /** + * Create a Synthetic API test. + * @param param The request object + */ + createSyntheticsAPITest(param, options) { + const requestContextPromise = this.requestFactory.createSyntheticsAPITest(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createSyntheticsAPITest(responseContext); + }); + }); + } + /** + * Create a Synthetic browser test. + * @param param The request object + */ + createSyntheticsBrowserTest(param, options) { + const requestContextPromise = this.requestFactory.createSyntheticsBrowserTest(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createSyntheticsBrowserTest(responseContext); + }); + }); + } + /** + * Create a Synthetic mobile test. + * @param param The request object + */ + createSyntheticsMobileTest(param, options) { + const requestContextPromise = this.requestFactory.createSyntheticsMobileTest(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createSyntheticsMobileTest(responseContext); + }); + }); + } + /** + * Delete a Synthetic global variable. + * @param param The request object + */ + deleteGlobalVariable(param, options) { + const requestContextPromise = this.requestFactory.deleteGlobalVariable(param.variableId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteGlobalVariable(responseContext); + }); + }); + } + /** + * Delete a Synthetic private location. + * @param param The request object + */ + deletePrivateLocation(param, options) { + const requestContextPromise = this.requestFactory.deletePrivateLocation(param.locationId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deletePrivateLocation(responseContext); + }); + }); + } + /** + * Delete multiple Synthetic tests by ID. + * @param param The request object + */ + deleteTests(param, options) { + const requestContextPromise = this.requestFactory.deleteTests(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteTests(responseContext); + }); + }); + } + /** + * Edit a Synthetic global variable. + * @param param The request object + */ + editGlobalVariable(param, options) { + const requestContextPromise = this.requestFactory.editGlobalVariable(param.variableId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.editGlobalVariable(responseContext); + }); + }); + } + /** + * Fetch uptime for multiple Synthetic tests by ID. + * @param param The request object + */ + fetchUptimes(param, options) { + const requestContextPromise = this.requestFactory.fetchUptimes(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.fetchUptimes(responseContext); + }); + }); + } + /** + * Get the detailed configuration associated with + * a Synthetic API test. + * @param param The request object + */ + getAPITest(param, options) { + const requestContextPromise = this.requestFactory.getAPITest(param.publicId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getAPITest(responseContext); + }); + }); + } + /** + * Get the last 150 test results summaries for a given Synthetic API test. + * @param param The request object + */ + getAPITestLatestResults(param, options) { + const requestContextPromise = this.requestFactory.getAPITestLatestResults(param.publicId, param.fromTs, param.toTs, param.probeDc, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getAPITestLatestResults(responseContext); + }); + }); + } + /** + * Get a specific full result from a given Synthetic API test. + * @param param The request object + */ + getAPITestResult(param, options) { + const requestContextPromise = this.requestFactory.getAPITestResult(param.publicId, param.resultId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getAPITestResult(responseContext); + }); + }); + } + /** + * Get the detailed configuration (including steps) associated with + * a Synthetic browser test. + * @param param The request object + */ + getBrowserTest(param, options) { + const requestContextPromise = this.requestFactory.getBrowserTest(param.publicId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getBrowserTest(responseContext); + }); + }); + } + /** + * Get the last 150 test results summaries for a given Synthetic browser test. + * @param param The request object + */ + getBrowserTestLatestResults(param, options) { + const requestContextPromise = this.requestFactory.getBrowserTestLatestResults(param.publicId, param.fromTs, param.toTs, param.probeDc, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getBrowserTestLatestResults(responseContext); + }); + }); + } + /** + * Get a specific full result from a given Synthetic browser test. + * @param param The request object + */ + getBrowserTestResult(param, options) { + const requestContextPromise = this.requestFactory.getBrowserTestResult(param.publicId, param.resultId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getBrowserTestResult(responseContext); + }); + }); + } + /** + * Get the detailed configuration of a global variable. + * @param param The request object + */ + getGlobalVariable(param, options) { + const requestContextPromise = this.requestFactory.getGlobalVariable(param.variableId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getGlobalVariable(responseContext); + }); + }); + } + /** + * Get the detailed configuration associated with + * a Synthetic Mobile test. + * @param param The request object + */ + getMobileTest(param, options) { + const requestContextPromise = this.requestFactory.getMobileTest(param.publicId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getMobileTest(responseContext); + }); + }); + } + /** + * Get a Synthetic private location. + * @param param The request object + */ + getPrivateLocation(param, options) { + const requestContextPromise = this.requestFactory.getPrivateLocation(param.locationId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getPrivateLocation(responseContext); + }); + }); + } + /** + * Get a batch's updated details. + * @param param The request object + */ + getSyntheticsCIBatch(param, options) { + const requestContextPromise = this.requestFactory.getSyntheticsCIBatch(param.batchId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getSyntheticsCIBatch(responseContext); + }); + }); + } + /** + * Get the default locations settings. + * @param param The request object + */ + getSyntheticsDefaultLocations(options) { + const requestContextPromise = this.requestFactory.getSyntheticsDefaultLocations(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getSyntheticsDefaultLocations(responseContext); + }); + }); + } + /** + * Get the detailed configuration associated with a Synthetic test. + * @param param The request object + */ + getTest(param, options) { + const requestContextPromise = this.requestFactory.getTest(param.publicId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getTest(responseContext); + }); + }); + } + /** + * Get the list of all Synthetic global variables. + * @param param The request object + */ + listGlobalVariables(options) { + const requestContextPromise = this.requestFactory.listGlobalVariables(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listGlobalVariables(responseContext); + }); + }); + } + /** + * Get the list of public and private locations available for Synthetic + * tests. No arguments required. + * @param param The request object + */ + listLocations(options) { + const requestContextPromise = this.requestFactory.listLocations(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listLocations(responseContext); + }); + }); + } + /** + * Get the list of all Synthetic tests. + * @param param The request object + */ + listTests(param = {}, options) { + const requestContextPromise = this.requestFactory.listTests(param.pageSize, param.pageNumber, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listTests(responseContext); + }); + }); + } + /** + * Provide a paginated version of listTests returning a generator with all the items. + */ + listTestsWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* listTestsWithPagination_1() { + let pageSize = 100; + if (param.pageSize !== undefined) { + pageSize = param.pageSize; + } + param.pageSize = pageSize; + param.pageNumber = 0; + while (true) { + const requestContext = yield __await(this.requestFactory.listTests(param.pageSize, param.pageNumber, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listTests(responseContext)); + const responseTests = response.tests; + if (responseTests === undefined) { + break; + } + const results = responseTests; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + param.pageNumber = param.pageNumber + 1; + } + }); + } + /** + * Patch the configuration of a Synthetic test with partial data. + * @param param The request object + */ + patchTest(param, options) { + const requestContextPromise = this.requestFactory.patchTest(param.publicId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.patchTest(responseContext); + }); + }); + } + /** + * Trigger a set of Synthetic tests for continuous integration. + * @param param The request object + */ + triggerCITests(param, options) { + const requestContextPromise = this.requestFactory.triggerCITests(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.triggerCITests(responseContext); + }); + }); + } + /** + * Trigger a set of Synthetic tests. + * @param param The request object + */ + triggerTests(param, options) { + const requestContextPromise = this.requestFactory.triggerTests(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.triggerTests(responseContext); + }); + }); + } + /** + * Edit the configuration of a Synthetic API test. + * @param param The request object + */ + updateAPITest(param, options) { + const requestContextPromise = this.requestFactory.updateAPITest(param.publicId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateAPITest(responseContext); + }); + }); + } + /** + * Edit the configuration of a Synthetic browser test. + * @param param The request object + */ + updateBrowserTest(param, options) { + const requestContextPromise = this.requestFactory.updateBrowserTest(param.publicId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateBrowserTest(responseContext); + }); + }); + } + /** + * Edit the configuration of a Synthetic Mobile test. + * @param param The request object + */ + updateMobileTest(param, options) { + const requestContextPromise = this.requestFactory.updateMobileTest(param.publicId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateMobileTest(responseContext); + }); + }); + } + /** + * Edit a Synthetic private location. + * @param param The request object + */ + updatePrivateLocation(param, options) { + const requestContextPromise = this.requestFactory.updatePrivateLocation(param.locationId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updatePrivateLocation(responseContext); + }); + }); + } + /** + * Pause or start a Synthetic test by changing the status. + * @param param The request object + */ + updateTestPauseStatus(param, options) { + const requestContextPromise = this.requestFactory.updateTestPauseStatus(param.publicId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateTestPauseStatus(responseContext); + }); + }); + } +} +exports.SyntheticsApi = SyntheticsApi; +//# sourceMappingURL=SyntheticsApi.js.map + +/***/ }), + +/***/ 97371: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.TagsApi = exports.TagsApiResponseProcessor = exports.TagsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class TagsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createHostTags(hostName, body, source, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'hostName' is not null or undefined + if (hostName === null || hostName === undefined) { + throw new baseapi_1.RequiredError("hostName", "createHostTags"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createHostTags"); + } + // Path Params + const localVarPath = "/api/v1/tags/hosts/{host_name}".replace("{host_name}", encodeURIComponent(String(hostName))); + // Make Request Context + const requestContext = _config + .getServer("v1.TagsApi.createHostTags") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (source !== undefined) { + requestContext.setQueryParam("source", ObjectSerializer_1.ObjectSerializer.serialize(source, "string", ""), ""); + } + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "HostTags", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteHostTags(hostName, source, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'hostName' is not null or undefined + if (hostName === null || hostName === undefined) { + throw new baseapi_1.RequiredError("hostName", "deleteHostTags"); + } + // Path Params + const localVarPath = "/api/v1/tags/hosts/{host_name}".replace("{host_name}", encodeURIComponent(String(hostName))); + // Make Request Context + const requestContext = _config + .getServer("v1.TagsApi.deleteHostTags") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (source !== undefined) { + requestContext.setQueryParam("source", ObjectSerializer_1.ObjectSerializer.serialize(source, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getHostTags(hostName, source, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'hostName' is not null or undefined + if (hostName === null || hostName === undefined) { + throw new baseapi_1.RequiredError("hostName", "getHostTags"); + } + // Path Params + const localVarPath = "/api/v1/tags/hosts/{host_name}".replace("{host_name}", encodeURIComponent(String(hostName))); + // Make Request Context + const requestContext = _config + .getServer("v1.TagsApi.getHostTags") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (source !== undefined) { + requestContext.setQueryParam("source", ObjectSerializer_1.ObjectSerializer.serialize(source, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listHostTags(source, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/tags/hosts"; + // Make Request Context + const requestContext = _config + .getServer("v1.TagsApi.listHostTags") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (source !== undefined) { + requestContext.setQueryParam("source", ObjectSerializer_1.ObjectSerializer.serialize(source, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateHostTags(hostName, body, source, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'hostName' is not null or undefined + if (hostName === null || hostName === undefined) { + throw new baseapi_1.RequiredError("hostName", "updateHostTags"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateHostTags"); + } + // Path Params + const localVarPath = "/api/v1/tags/hosts/{host_name}".replace("{host_name}", encodeURIComponent(String(hostName))); + // Make Request Context + const requestContext = _config + .getServer("v1.TagsApi.updateHostTags") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (source !== undefined) { + requestContext.setQueryParam("source", ObjectSerializer_1.ObjectSerializer.serialize(source, "string", ""), ""); + } + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "HostTags", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.TagsApiRequestFactory = TagsApiRequestFactory; +class TagsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createHostTags + * @throws ApiException if the response code was not in [200, 299] + */ + createHostTags(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "HostTags"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "HostTags", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteHostTags + * @throws ApiException if the response code was not in [200, 299] + */ + deleteHostTags(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getHostTags + * @throws ApiException if the response code was not in [200, 299] + */ + getHostTags(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "HostTags"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "HostTags", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listHostTags + * @throws ApiException if the response code was not in [200, 299] + */ + listHostTags(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TagToHosts"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TagToHosts", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateHostTags + * @throws ApiException if the response code was not in [200, 299] + */ + updateHostTags(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "HostTags"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "HostTags", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.TagsApiResponseProcessor = TagsApiResponseProcessor; +class TagsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new TagsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new TagsApiResponseProcessor(); + } + /** + * This endpoint allows you to add new tags to a host, + * optionally specifying where these tags come from. + * @param param The request object + */ + createHostTags(param, options) { + const requestContextPromise = this.requestFactory.createHostTags(param.hostName, param.body, param.source, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createHostTags(responseContext); + }); + }); + } + /** + * This endpoint allows you to remove all user-assigned tags + * for a single host. + * @param param The request object + */ + deleteHostTags(param, options) { + const requestContextPromise = this.requestFactory.deleteHostTags(param.hostName, param.source, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteHostTags(responseContext); + }); + }); + } + /** + * Return the list of tags that apply to a given host. + * @param param The request object + */ + getHostTags(param, options) { + const requestContextPromise = this.requestFactory.getHostTags(param.hostName, param.source, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getHostTags(responseContext); + }); + }); + } + /** + * Return a mapping of tags to hosts for your whole infrastructure. + * @param param The request object + */ + listHostTags(param = {}, options) { + const requestContextPromise = this.requestFactory.listHostTags(param.source, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listHostTags(responseContext); + }); + }); + } + /** + * This endpoint allows you to update/replace all tags in + * an integration source with those supplied in the request. + * @param param The request object + */ + updateHostTags(param, options) { + const requestContextPromise = this.requestFactory.updateHostTags(param.hostName, param.body, param.source, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateHostTags(responseContext); + }); + }); + } +} +exports.TagsApi = TagsApi; +//# sourceMappingURL=TagsApi.js.map + +/***/ }), + +/***/ 39706: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.UsageMeteringApi = exports.UsageMeteringApiResponseProcessor = exports.UsageMeteringApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class UsageMeteringApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + getDailyCustomReports(pageSize, pageNumber, sortDir, sort, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/daily_custom_reports"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getDailyCustomReports") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (pageSize !== undefined) { + requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), ""); + } + if (pageNumber !== undefined) { + requestContext.setQueryParam("page[number]", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); + } + if (sortDir !== undefined) { + requestContext.setQueryParam("sort_dir", ObjectSerializer_1.ObjectSerializer.serialize(sortDir, "UsageSortDirection", ""), ""); + } + if (sort !== undefined) { + requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "UsageSort", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getHourlyUsageAttribution(startHr, usageType, endHr, nextRecordId, tagBreakdownKeys, includeDescendants, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getHourlyUsageAttribution"); + } + // verify required parameter 'usageType' is not null or undefined + if (usageType === null || usageType === undefined) { + throw new baseapi_1.RequiredError("usageType", "getHourlyUsageAttribution"); + } + // Path Params + const localVarPath = "/api/v1/usage/hourly-attribution"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getHourlyUsageAttribution") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + if (usageType !== undefined) { + requestContext.setQueryParam("usage_type", ObjectSerializer_1.ObjectSerializer.serialize(usageType, "HourlyUsageAttributionUsageType", ""), ""); + } + if (nextRecordId !== undefined) { + requestContext.setQueryParam("next_record_id", ObjectSerializer_1.ObjectSerializer.serialize(nextRecordId, "string", ""), ""); + } + if (tagBreakdownKeys !== undefined) { + requestContext.setQueryParam("tag_breakdown_keys", ObjectSerializer_1.ObjectSerializer.serialize(tagBreakdownKeys, "string", ""), ""); + } + if (includeDescendants !== undefined) { + requestContext.setQueryParam("include_descendants", ObjectSerializer_1.ObjectSerializer.serialize(includeDescendants, "boolean", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getIncidentManagement(startHr, endHr, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getIncidentManagement"); + } + // Path Params + const localVarPath = "/api/v1/usage/incident-management"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getIncidentManagement") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getIngestedSpans(startHr, endHr, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getIngestedSpans"); + } + // Path Params + const localVarPath = "/api/v1/usage/ingested-spans"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getIngestedSpans") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getMonthlyCustomReports(pageSize, pageNumber, sortDir, sort, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/monthly_custom_reports"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getMonthlyCustomReports") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (pageSize !== undefined) { + requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), ""); + } + if (pageNumber !== undefined) { + requestContext.setQueryParam("page[number]", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); + } + if (sortDir !== undefined) { + requestContext.setQueryParam("sort_dir", ObjectSerializer_1.ObjectSerializer.serialize(sortDir, "UsageSortDirection", ""), ""); + } + if (sort !== undefined) { + requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "UsageSort", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getMonthlyUsageAttribution(startMonth, fields, endMonth, sortDirection, sortName, tagBreakdownKeys, nextRecordId, includeDescendants, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startMonth' is not null or undefined + if (startMonth === null || startMonth === undefined) { + throw new baseapi_1.RequiredError("startMonth", "getMonthlyUsageAttribution"); + } + // verify required parameter 'fields' is not null or undefined + if (fields === null || fields === undefined) { + throw new baseapi_1.RequiredError("fields", "getMonthlyUsageAttribution"); + } + // Path Params + const localVarPath = "/api/v1/usage/monthly-attribution"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getMonthlyUsageAttribution") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startMonth !== undefined) { + requestContext.setQueryParam("start_month", ObjectSerializer_1.ObjectSerializer.serialize(startMonth, "Date", "date-time"), ""); + } + if (endMonth !== undefined) { + requestContext.setQueryParam("end_month", ObjectSerializer_1.ObjectSerializer.serialize(endMonth, "Date", "date-time"), ""); + } + if (fields !== undefined) { + requestContext.setQueryParam("fields", ObjectSerializer_1.ObjectSerializer.serialize(fields, "MonthlyUsageAttributionSupportedMetrics", ""), ""); + } + if (sortDirection !== undefined) { + requestContext.setQueryParam("sort_direction", ObjectSerializer_1.ObjectSerializer.serialize(sortDirection, "UsageSortDirection", ""), ""); + } + if (sortName !== undefined) { + requestContext.setQueryParam("sort_name", ObjectSerializer_1.ObjectSerializer.serialize(sortName, "MonthlyUsageAttributionSupportedMetrics", ""), ""); + } + if (tagBreakdownKeys !== undefined) { + requestContext.setQueryParam("tag_breakdown_keys", ObjectSerializer_1.ObjectSerializer.serialize(tagBreakdownKeys, "string", ""), ""); + } + if (nextRecordId !== undefined) { + requestContext.setQueryParam("next_record_id", ObjectSerializer_1.ObjectSerializer.serialize(nextRecordId, "string", ""), ""); + } + if (includeDescendants !== undefined) { + requestContext.setQueryParam("include_descendants", ObjectSerializer_1.ObjectSerializer.serialize(includeDescendants, "boolean", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getSpecifiedDailyCustomReports(reportId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'reportId' is not null or undefined + if (reportId === null || reportId === undefined) { + throw new baseapi_1.RequiredError("reportId", "getSpecifiedDailyCustomReports"); + } + // Path Params + const localVarPath = "/api/v1/daily_custom_reports/{report_id}".replace("{report_id}", encodeURIComponent(String(reportId))); + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getSpecifiedDailyCustomReports") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getSpecifiedMonthlyCustomReports(reportId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'reportId' is not null or undefined + if (reportId === null || reportId === undefined) { + throw new baseapi_1.RequiredError("reportId", "getSpecifiedMonthlyCustomReports"); + } + // Path Params + const localVarPath = "/api/v1/monthly_custom_reports/{report_id}".replace("{report_id}", encodeURIComponent(String(reportId))); + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getSpecifiedMonthlyCustomReports") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageAnalyzedLogs(startHr, endHr, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getUsageAnalyzedLogs"); + } + // Path Params + const localVarPath = "/api/v1/usage/analyzed_logs"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getUsageAnalyzedLogs") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageAuditLogs(startHr, endHr, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getUsageAuditLogs"); + } + // Path Params + const localVarPath = "/api/v1/usage/audit_logs"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getUsageAuditLogs") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageBillableSummary(month, includeConnectedAccounts, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/usage/billable-summary"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getUsageBillableSummary") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (month !== undefined) { + requestContext.setQueryParam("month", ObjectSerializer_1.ObjectSerializer.serialize(month, "Date", "date-time"), ""); + } + if (includeConnectedAccounts !== undefined) { + requestContext.setQueryParam("include_connected_accounts", ObjectSerializer_1.ObjectSerializer.serialize(includeConnectedAccounts, "boolean", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageCIApp(startHr, endHr, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getUsageCIApp"); + } + // Path Params + const localVarPath = "/api/v1/usage/ci-app"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getUsageCIApp") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageCloudSecurityPostureManagement(startHr, endHr, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getUsageCloudSecurityPostureManagement"); + } + // Path Params + const localVarPath = "/api/v1/usage/cspm"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getUsageCloudSecurityPostureManagement") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageCWS(startHr, endHr, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getUsageCWS"); + } + // Path Params + const localVarPath = "/api/v1/usage/cws"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getUsageCWS") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageDBM(startHr, endHr, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getUsageDBM"); + } + // Path Params + const localVarPath = "/api/v1/usage/dbm"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getUsageDBM") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageFargate(startHr, endHr, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getUsageFargate"); + } + // Path Params + const localVarPath = "/api/v1/usage/fargate"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getUsageFargate") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageHosts(startHr, endHr, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getUsageHosts"); + } + // Path Params + const localVarPath = "/api/v1/usage/hosts"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getUsageHosts") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageIndexedSpans(startHr, endHr, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getUsageIndexedSpans"); + } + // Path Params + const localVarPath = "/api/v1/usage/indexed-spans"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getUsageIndexedSpans") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageInternetOfThings(startHr, endHr, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getUsageInternetOfThings"); + } + // Path Params + const localVarPath = "/api/v1/usage/iot"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getUsageInternetOfThings") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageLambda(startHr, endHr, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getUsageLambda"); + } + // Path Params + const localVarPath = "/api/v1/usage/aws_lambda"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getUsageLambda") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageLogs(startHr, endHr, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getUsageLogs"); + } + // Path Params + const localVarPath = "/api/v1/usage/logs"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getUsageLogs") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageLogsByIndex(startHr, endHr, indexName, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getUsageLogsByIndex"); + } + // Path Params + const localVarPath = "/api/v1/usage/logs_by_index"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getUsageLogsByIndex") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + if (indexName !== undefined) { + requestContext.setQueryParam("index_name", ObjectSerializer_1.ObjectSerializer.serialize(indexName, "Array", ""), "multi"); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageLogsByRetention(startHr, endHr, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getUsageLogsByRetention"); + } + // Path Params + const localVarPath = "/api/v1/usage/logs-by-retention"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getUsageLogsByRetention") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageNetworkFlows(startHr, endHr, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getUsageNetworkFlows"); + } + // Path Params + const localVarPath = "/api/v1/usage/network_flows"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getUsageNetworkFlows") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageNetworkHosts(startHr, endHr, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getUsageNetworkHosts"); + } + // Path Params + const localVarPath = "/api/v1/usage/network_hosts"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getUsageNetworkHosts") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageOnlineArchive(startHr, endHr, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getUsageOnlineArchive"); + } + // Path Params + const localVarPath = "/api/v1/usage/online-archive"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getUsageOnlineArchive") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageProfiling(startHr, endHr, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getUsageProfiling"); + } + // Path Params + const localVarPath = "/api/v1/usage/profiling"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getUsageProfiling") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageRumSessions(startHr, endHr, type, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getUsageRumSessions"); + } + // Path Params + const localVarPath = "/api/v1/usage/rum_sessions"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getUsageRumSessions") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + if (type !== undefined) { + requestContext.setQueryParam("type", ObjectSerializer_1.ObjectSerializer.serialize(type, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageRumUnits(startHr, endHr, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getUsageRumUnits"); + } + // Path Params + const localVarPath = "/api/v1/usage/rum"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getUsageRumUnits") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageSDS(startHr, endHr, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getUsageSDS"); + } + // Path Params + const localVarPath = "/api/v1/usage/sds"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getUsageSDS") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageSNMP(startHr, endHr, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getUsageSNMP"); + } + // Path Params + const localVarPath = "/api/v1/usage/snmp"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getUsageSNMP") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageSummary(startMonth, endMonth, includeOrgDetails, includeConnectedAccounts, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startMonth' is not null or undefined + if (startMonth === null || startMonth === undefined) { + throw new baseapi_1.RequiredError("startMonth", "getUsageSummary"); + } + // Path Params + const localVarPath = "/api/v1/usage/summary"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getUsageSummary") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startMonth !== undefined) { + requestContext.setQueryParam("start_month", ObjectSerializer_1.ObjectSerializer.serialize(startMonth, "Date", "date-time"), ""); + } + if (endMonth !== undefined) { + requestContext.setQueryParam("end_month", ObjectSerializer_1.ObjectSerializer.serialize(endMonth, "Date", "date-time"), ""); + } + if (includeOrgDetails !== undefined) { + requestContext.setQueryParam("include_org_details", ObjectSerializer_1.ObjectSerializer.serialize(includeOrgDetails, "boolean", ""), ""); + } + if (includeConnectedAccounts !== undefined) { + requestContext.setQueryParam("include_connected_accounts", ObjectSerializer_1.ObjectSerializer.serialize(includeConnectedAccounts, "boolean", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageSynthetics(startHr, endHr, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getUsageSynthetics"); + } + // Path Params + const localVarPath = "/api/v1/usage/synthetics"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getUsageSynthetics") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageSyntheticsAPI(startHr, endHr, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getUsageSyntheticsAPI"); + } + // Path Params + const localVarPath = "/api/v1/usage/synthetics_api"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getUsageSyntheticsAPI") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageSyntheticsBrowser(startHr, endHr, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getUsageSyntheticsBrowser"); + } + // Path Params + const localVarPath = "/api/v1/usage/synthetics_browser"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getUsageSyntheticsBrowser") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageTimeseries(startHr, endHr, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getUsageTimeseries"); + } + // Path Params + const localVarPath = "/api/v1/usage/timeseries"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getUsageTimeseries") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageTopAvgMetrics(month, day, names, limit, nextRecordId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/usage/top_avg_metrics"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsageMeteringApi.getUsageTopAvgMetrics") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (month !== undefined) { + requestContext.setQueryParam("month", ObjectSerializer_1.ObjectSerializer.serialize(month, "Date", "date-time"), ""); + } + if (day !== undefined) { + requestContext.setQueryParam("day", ObjectSerializer_1.ObjectSerializer.serialize(day, "Date", "date-time"), ""); + } + if (names !== undefined) { + requestContext.setQueryParam("names", ObjectSerializer_1.ObjectSerializer.serialize(names, "Array", ""), "multi"); + } + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", "int32"), ""); + } + if (nextRecordId !== undefined) { + requestContext.setQueryParam("next_record_id", ObjectSerializer_1.ObjectSerializer.serialize(nextRecordId, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.UsageMeteringApiRequestFactory = UsageMeteringApiRequestFactory; +class UsageMeteringApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getDailyCustomReports + * @throws ApiException if the response code was not in [200, 299] + */ + getDailyCustomReports(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageCustomReportsResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageCustomReportsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getHourlyUsageAttribution + * @throws ApiException if the response code was not in [200, 299] + */ + getHourlyUsageAttribution(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "HourlyUsageAttributionResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "HourlyUsageAttributionResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getIncidentManagement + * @throws ApiException if the response code was not in [200, 299] + */ + getIncidentManagement(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageIncidentManagementResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageIncidentManagementResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getIngestedSpans + * @throws ApiException if the response code was not in [200, 299] + */ + getIngestedSpans(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageIngestedSpansResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageIngestedSpansResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getMonthlyCustomReports + * @throws ApiException if the response code was not in [200, 299] + */ + getMonthlyCustomReports(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageCustomReportsResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageCustomReportsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getMonthlyUsageAttribution + * @throws ApiException if the response code was not in [200, 299] + */ + getMonthlyUsageAttribution(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonthlyUsageAttributionResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonthlyUsageAttributionResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getSpecifiedDailyCustomReports + * @throws ApiException if the response code was not in [200, 299] + */ + getSpecifiedDailyCustomReports(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageSpecifiedCustomReportsResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageSpecifiedCustomReportsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getSpecifiedMonthlyCustomReports + * @throws ApiException if the response code was not in [200, 299] + */ + getSpecifiedMonthlyCustomReports(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageSpecifiedCustomReportsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageSpecifiedCustomReportsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageAnalyzedLogs + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageAnalyzedLogs(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageAnalyzedLogsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageAnalyzedLogsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageAuditLogs + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageAuditLogs(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageAuditLogsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageAuditLogsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageBillableSummary + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageBillableSummary(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageBillableSummaryResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageBillableSummaryResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageCIApp + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageCIApp(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageCIVisibilityResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageCIVisibilityResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageCloudSecurityPostureManagement + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageCloudSecurityPostureManagement(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageCloudSecurityPostureManagementResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageCloudSecurityPostureManagementResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageCWS + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageCWS(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageCWSResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageCWSResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageDBM + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageDBM(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageDBMResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageDBMResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageFargate + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageFargate(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageFargateResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageFargateResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageHosts + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageHosts(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageHostsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageHostsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageIndexedSpans + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageIndexedSpans(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageIndexedSpansResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageIndexedSpansResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageInternetOfThings + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageInternetOfThings(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageIoTResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageIoTResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageLambda + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageLambda(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageLambdaResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageLambdaResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageLogs + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageLogs(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageLogsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageLogsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageLogsByIndex + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageLogsByIndex(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageLogsByIndexResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageLogsByIndexResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageLogsByRetention + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageLogsByRetention(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageLogsByRetentionResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageLogsByRetentionResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageNetworkFlows + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageNetworkFlows(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageNetworkFlowsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageNetworkFlowsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageNetworkHosts + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageNetworkHosts(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageNetworkHostsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageNetworkHostsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageOnlineArchive + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageOnlineArchive(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageOnlineArchiveResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageOnlineArchiveResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageProfiling + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageProfiling(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageProfilingResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageProfilingResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageRumSessions + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageRumSessions(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageRumSessionsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageRumSessionsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageRumUnits + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageRumUnits(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageRumUnitsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageRumUnitsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageSDS + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageSDS(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageSDSResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageSDSResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageSNMP + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageSNMP(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageSNMPResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageSNMPResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageSummary + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageSummary(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageSummaryResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageSummaryResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageSynthetics + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageSynthetics(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageSyntheticsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageSyntheticsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageSyntheticsAPI + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageSyntheticsAPI(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageSyntheticsAPIResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageSyntheticsAPIResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageSyntheticsBrowser + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageSyntheticsBrowser(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageSyntheticsBrowserResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageSyntheticsBrowserResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageTimeseries + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageTimeseries(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageTimeseriesResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageTimeseriesResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageTopAvgMetrics + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageTopAvgMetrics(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageTopAvgMetricsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageTopAvgMetricsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.UsageMeteringApiResponseProcessor = UsageMeteringApiResponseProcessor; +class UsageMeteringApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new UsageMeteringApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new UsageMeteringApiResponseProcessor(); + } + /** + * Get daily custom reports. + * **Note:** This endpoint will be fully deprecated on December 1, 2022. + * Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide. + * @param param The request object + */ + getDailyCustomReports(param = {}, options) { + const requestContextPromise = this.requestFactory.getDailyCustomReports(param.pageSize, param.pageNumber, param.sortDir, param.sort, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getDailyCustomReports(responseContext); + }); + }); + } + /** + * Get hourly usage attribution. Multi-region data is available starting March 1, 2023. + * + * This API endpoint is paginated. To make sure you receive all records, check if the value of `next_record_id` is + * set in the response. If it is, make another request and pass `next_record_id` as a parameter. + * Pseudo code example: + * + * ``` + * response := GetHourlyUsageAttribution(start_month) + * cursor := response.metadata.pagination.next_record_id + * WHILE cursor != null BEGIN + * sleep(5 seconds) # Avoid running into rate limit + * response := GetHourlyUsageAttribution(start_month, next_record_id=cursor) + * cursor := response.metadata.pagination.next_record_id + * END + * ``` + * @param param The request object + */ + getHourlyUsageAttribution(param, options) { + const requestContextPromise = this.requestFactory.getHourlyUsageAttribution(param.startHr, param.usageType, param.endHr, param.nextRecordId, param.tagBreakdownKeys, param.includeDescendants, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getHourlyUsageAttribution(responseContext); + }); + }); + } + /** + * Get hourly usage for incident management. + * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. + * @param param The request object + */ + getIncidentManagement(param, options) { + const requestContextPromise = this.requestFactory.getIncidentManagement(param.startHr, param.endHr, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getIncidentManagement(responseContext); + }); + }); + } + /** + * Get hourly usage for ingested spans. + * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. + * @param param The request object + */ + getIngestedSpans(param, options) { + const requestContextPromise = this.requestFactory.getIngestedSpans(param.startHr, param.endHr, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getIngestedSpans(responseContext); + }); + }); + } + /** + * Get monthly custom reports. + * **Note:** This endpoint will be fully deprecated on December 1, 2022. + * Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide. + * @param param The request object + */ + getMonthlyCustomReports(param = {}, options) { + const requestContextPromise = this.requestFactory.getMonthlyCustomReports(param.pageSize, param.pageNumber, param.sortDir, param.sort, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getMonthlyCustomReports(responseContext); + }); + }); + } + /** + * Get monthly usage attribution. Multi-region data is available starting March 1, 2023. + * + * This API endpoint is paginated. To make sure you receive all records, check if the value of `next_record_id` is + * set in the response. If it is, make another request and pass `next_record_id` as a parameter. + * Pseudo code example: + * + * ``` + * response := GetMonthlyUsageAttribution(start_month) + * cursor := response.metadata.pagination.next_record_id + * WHILE cursor != null BEGIN + * sleep(5 seconds) # Avoid running into rate limit + * response := GetMonthlyUsageAttribution(start_month, next_record_id=cursor) + * cursor := response.metadata.pagination.next_record_id + * END + * ``` + * @param param The request object + */ + getMonthlyUsageAttribution(param, options) { + const requestContextPromise = this.requestFactory.getMonthlyUsageAttribution(param.startMonth, param.fields, param.endMonth, param.sortDirection, param.sortName, param.tagBreakdownKeys, param.nextRecordId, param.includeDescendants, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getMonthlyUsageAttribution(responseContext); + }); + }); + } + /** + * Get specified daily custom reports. + * **Note:** This endpoint will be fully deprecated on December 1, 2022. + * Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide. + * @param param The request object + */ + getSpecifiedDailyCustomReports(param, options) { + const requestContextPromise = this.requestFactory.getSpecifiedDailyCustomReports(param.reportId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getSpecifiedDailyCustomReports(responseContext); + }); + }); + } + /** + * Get specified monthly custom reports. + * **Note:** This endpoint will be fully deprecated on December 1, 2022. + * Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide. + * @param param The request object + */ + getSpecifiedMonthlyCustomReports(param, options) { + const requestContextPromise = this.requestFactory.getSpecifiedMonthlyCustomReports(param.reportId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getSpecifiedMonthlyCustomReports(responseContext); + }); + }); + } + /** + * Get hourly usage for analyzed logs (Security Monitoring). + * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. + * @param param The request object + */ + getUsageAnalyzedLogs(param, options) { + const requestContextPromise = this.requestFactory.getUsageAnalyzedLogs(param.startHr, param.endHr, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageAnalyzedLogs(responseContext); + }); + }); + } + /** + * Get hourly usage for audit logs. + * **Note:** This endpoint has been deprecated. + * @param param The request object + */ + getUsageAuditLogs(param, options) { + const requestContextPromise = this.requestFactory.getUsageAuditLogs(param.startHr, param.endHr, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageAuditLogs(responseContext); + }); + }); + } + /** + * Get billable usage across your account. + * + * This endpoint is only accessible for [parent-level organizations](https://docs.datadoghq.com/account_management/multi_organization/). + * @param param The request object + */ + getUsageBillableSummary(param = {}, options) { + const requestContextPromise = this.requestFactory.getUsageBillableSummary(param.month, param.includeConnectedAccounts, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageBillableSummary(responseContext); + }); + }); + } + /** + * Get hourly usage for CI visibility (tests, pipeline, and spans). + * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. + * @param param The request object + */ + getUsageCIApp(param, options) { + const requestContextPromise = this.requestFactory.getUsageCIApp(param.startHr, param.endHr, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageCIApp(responseContext); + }); + }); + } + /** + * Get hourly usage for cloud security management (CSM) pro. + * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. + * @param param The request object + */ + getUsageCloudSecurityPostureManagement(param, options) { + const requestContextPromise = this.requestFactory.getUsageCloudSecurityPostureManagement(param.startHr, param.endHr, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageCloudSecurityPostureManagement(responseContext); + }); + }); + } + /** + * Get hourly usage for cloud workload security. + * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. + * @param param The request object + */ + getUsageCWS(param, options) { + const requestContextPromise = this.requestFactory.getUsageCWS(param.startHr, param.endHr, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageCWS(responseContext); + }); + }); + } + /** + * Get hourly usage for database monitoring + * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. + * @param param The request object + */ + getUsageDBM(param, options) { + const requestContextPromise = this.requestFactory.getUsageDBM(param.startHr, param.endHr, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageDBM(responseContext); + }); + }); + } + /** + * Get hourly usage for [Fargate](https://docs.datadoghq.com/integrations/ecs_fargate/). + * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. + * @param param The request object + */ + getUsageFargate(param, options) { + const requestContextPromise = this.requestFactory.getUsageFargate(param.startHr, param.endHr, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageFargate(responseContext); + }); + }); + } + /** + * Get hourly usage for hosts and containers. + * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. + * @param param The request object + */ + getUsageHosts(param, options) { + const requestContextPromise = this.requestFactory.getUsageHosts(param.startHr, param.endHr, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageHosts(responseContext); + }); + }); + } + /** + * Get hourly usage for indexed spans. + * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. + * @param param The request object + */ + getUsageIndexedSpans(param, options) { + const requestContextPromise = this.requestFactory.getUsageIndexedSpans(param.startHr, param.endHr, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageIndexedSpans(responseContext); + }); + }); + } + /** + * Get hourly usage for IoT. + * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. + * @param param The request object + */ + getUsageInternetOfThings(param, options) { + const requestContextPromise = this.requestFactory.getUsageInternetOfThings(param.startHr, param.endHr, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageInternetOfThings(responseContext); + }); + }); + } + /** + * Get hourly usage for Lambda. + * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. + * @param param The request object + */ + getUsageLambda(param, options) { + const requestContextPromise = this.requestFactory.getUsageLambda(param.startHr, param.endHr, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageLambda(responseContext); + }); + }); + } + /** + * Get hourly usage for logs. + * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. + * @param param The request object + */ + getUsageLogs(param, options) { + const requestContextPromise = this.requestFactory.getUsageLogs(param.startHr, param.endHr, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageLogs(responseContext); + }); + }); + } + /** + * Get hourly usage for logs by index. + * @param param The request object + */ + getUsageLogsByIndex(param, options) { + const requestContextPromise = this.requestFactory.getUsageLogsByIndex(param.startHr, param.endHr, param.indexName, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageLogsByIndex(responseContext); + }); + }); + } + /** + * Get hourly usage for indexed logs by retention period. + * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. + * @param param The request object + */ + getUsageLogsByRetention(param, options) { + const requestContextPromise = this.requestFactory.getUsageLogsByRetention(param.startHr, param.endHr, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageLogsByRetention(responseContext); + }); + }); + } + /** + * Get hourly usage for network flows. + * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. + * @param param The request object + */ + getUsageNetworkFlows(param, options) { + const requestContextPromise = this.requestFactory.getUsageNetworkFlows(param.startHr, param.endHr, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageNetworkFlows(responseContext); + }); + }); + } + /** + * Get hourly usage for network hosts. + * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. + * @param param The request object + */ + getUsageNetworkHosts(param, options) { + const requestContextPromise = this.requestFactory.getUsageNetworkHosts(param.startHr, param.endHr, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageNetworkHosts(responseContext); + }); + }); + } + /** + * Get hourly usage for online archive. + * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. + * @param param The request object + */ + getUsageOnlineArchive(param, options) { + const requestContextPromise = this.requestFactory.getUsageOnlineArchive(param.startHr, param.endHr, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageOnlineArchive(responseContext); + }); + }); + } + /** + * Get hourly usage for profiled hosts. + * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. + * @param param The request object + */ + getUsageProfiling(param, options) { + const requestContextPromise = this.requestFactory.getUsageProfiling(param.startHr, param.endHr, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageProfiling(responseContext); + }); + }); + } + /** + * Get hourly usage for [RUM](https://docs.datadoghq.com/real_user_monitoring/) Sessions. + * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. + * @param param The request object + */ + getUsageRumSessions(param, options) { + const requestContextPromise = this.requestFactory.getUsageRumSessions(param.startHr, param.endHr, param.type, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageRumSessions(responseContext); + }); + }); + } + /** + * Get hourly usage for [RUM](https://docs.datadoghq.com/real_user_monitoring/) Units. + * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. + * @param param The request object + */ + getUsageRumUnits(param, options) { + const requestContextPromise = this.requestFactory.getUsageRumUnits(param.startHr, param.endHr, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageRumUnits(responseContext); + }); + }); + } + /** + * Get hourly usage for sensitive data scanner. + * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. + * @param param The request object + */ + getUsageSDS(param, options) { + const requestContextPromise = this.requestFactory.getUsageSDS(param.startHr, param.endHr, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageSDS(responseContext); + }); + }); + } + /** + * Get hourly usage for SNMP devices. + * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. + * @param param The request object + */ + getUsageSNMP(param, options) { + const requestContextPromise = this.requestFactory.getUsageSNMP(param.startHr, param.endHr, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageSNMP(responseContext); + }); + }); + } + /** + * Get all usage across your account. + * + * This endpoint is only accessible for [parent-level organizations](https://docs.datadoghq.com/account_management/multi_organization/). + * @param param The request object + */ + getUsageSummary(param, options) { + const requestContextPromise = this.requestFactory.getUsageSummary(param.startMonth, param.endMonth, param.includeOrgDetails, param.includeConnectedAccounts, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageSummary(responseContext); + }); + }); + } + /** + * Get hourly usage for [synthetics checks](https://docs.datadoghq.com/synthetics/). + * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. + * @param param The request object + */ + getUsageSynthetics(param, options) { + const requestContextPromise = this.requestFactory.getUsageSynthetics(param.startHr, param.endHr, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageSynthetics(responseContext); + }); + }); + } + /** + * Get hourly usage for [synthetics API checks](https://docs.datadoghq.com/synthetics/). + * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. + * @param param The request object + */ + getUsageSyntheticsAPI(param, options) { + const requestContextPromise = this.requestFactory.getUsageSyntheticsAPI(param.startHr, param.endHr, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageSyntheticsAPI(responseContext); + }); + }); + } + /** + * Get hourly usage for synthetics browser checks. + * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. + * @param param The request object + */ + getUsageSyntheticsBrowser(param, options) { + const requestContextPromise = this.requestFactory.getUsageSyntheticsBrowser(param.startHr, param.endHr, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageSyntheticsBrowser(responseContext); + }); + }); + } + /** + * Get hourly usage for [custom metrics](https://docs.datadoghq.com/developers/metrics/custom_metrics/). + * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide. + * @param param The request object + */ + getUsageTimeseries(param, options) { + const requestContextPromise = this.requestFactory.getUsageTimeseries(param.startHr, param.endHr, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageTimeseries(responseContext); + }); + }); + } + /** + * Get all [custom metrics](https://docs.datadoghq.com/developers/metrics/custom_metrics/) by hourly average. Use the month parameter to get a month-to-date data resolution or use the day parameter to get a daily resolution. One of the two is required, and only one of the two is allowed. + * @param param The request object + */ + getUsageTopAvgMetrics(param = {}, options) { + const requestContextPromise = this.requestFactory.getUsageTopAvgMetrics(param.month, param.day, param.names, param.limit, param.nextRecordId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageTopAvgMetrics(responseContext); + }); + }); + } +} +exports.UsageMeteringApi = UsageMeteringApi; +//# sourceMappingURL=UsageMeteringApi.js.map + +/***/ }), + +/***/ 23094: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.UsersApi = exports.UsersApiResponseProcessor = exports.UsersApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class UsersApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createUser(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createUser"); + } + // Path Params + const localVarPath = "/api/v1/user"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsersApi.createUser") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "User", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + disableUser(userHandle, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'userHandle' is not null or undefined + if (userHandle === null || userHandle === undefined) { + throw new baseapi_1.RequiredError("userHandle", "disableUser"); + } + // Path Params + const localVarPath = "/api/v1/user/{user_handle}".replace("{user_handle}", encodeURIComponent(String(userHandle))); + // Make Request Context + const requestContext = _config + .getServer("v1.UsersApi.disableUser") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUser(userHandle, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'userHandle' is not null or undefined + if (userHandle === null || userHandle === undefined) { + throw new baseapi_1.RequiredError("userHandle", "getUser"); + } + // Path Params + const localVarPath = "/api/v1/user/{user_handle}".replace("{user_handle}", encodeURIComponent(String(userHandle))); + // Make Request Context + const requestContext = _config + .getServer("v1.UsersApi.getUser") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listUsers(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v1/user"; + // Make Request Context + const requestContext = _config + .getServer("v1.UsersApi.listUsers") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateUser(userHandle, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'userHandle' is not null or undefined + if (userHandle === null || userHandle === undefined) { + throw new baseapi_1.RequiredError("userHandle", "updateUser"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateUser"); + } + // Path Params + const localVarPath = "/api/v1/user/{user_handle}".replace("{user_handle}", encodeURIComponent(String(userHandle))); + // Make Request Context + const requestContext = _config + .getServer("v1.UsersApi.updateUser") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "User", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.UsersApiRequestFactory = UsersApiRequestFactory; +class UsersApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createUser + * @throws ApiException if the response code was not in [200, 299] + */ + createUser(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to disableUser + * @throws ApiException if the response code was not in [200, 299] + */ + disableUser(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserDisableResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserDisableResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUser + * @throws ApiException if the response code was not in [200, 299] + */ + getUser(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listUsers + * @throws ApiException if the response code was not in [200, 299] + */ + listUsers(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserListResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateUser + * @throws ApiException if the response code was not in [200, 299] + */ + updateUser(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.UsersApiResponseProcessor = UsersApiResponseProcessor; +class UsersApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new UsersApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new UsersApiResponseProcessor(); + } + /** + * Create a user for your organization. + * + * **Note**: Users can only be created with the admin access role + * if application keys belong to administrators. + * @param param The request object + */ + createUser(param, options) { + const requestContextPromise = this.requestFactory.createUser(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createUser(responseContext); + }); + }); + } + /** + * Delete a user from an organization. + * + * **Note**: This endpoint can only be used with application keys belonging to + * administrators. + * @param param The request object + */ + disableUser(param, options) { + const requestContextPromise = this.requestFactory.disableUser(param.userHandle, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.disableUser(responseContext); + }); + }); + } + /** + * Get a user's details. + * @param param The request object + */ + getUser(param, options) { + const requestContextPromise = this.requestFactory.getUser(param.userHandle, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUser(responseContext); + }); + }); + } + /** + * List all users for your organization. + * @param param The request object + */ + listUsers(options) { + const requestContextPromise = this.requestFactory.listUsers(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listUsers(responseContext); + }); + }); + } + /** + * Update a user information. + * + * **Note**: It can only be used with application keys belonging to administrators. + * @param param The request object + */ + updateUser(param, options) { + const requestContextPromise = this.requestFactory.updateUser(param.userHandle, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateUser(responseContext); + }); + }); + } +} +exports.UsersApi = UsersApi; +//# sourceMappingURL=UsersApi.js.map + +/***/ }), + +/***/ 13522: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.WebhooksIntegrationApi = exports.WebhooksIntegrationApiResponseProcessor = exports.WebhooksIntegrationApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(78052); +const exception_1 = __nccwpck_require__(77701); +class WebhooksIntegrationApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createWebhooksIntegration(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createWebhooksIntegration"); + } + // Path Params + const localVarPath = "/api/v1/integration/webhooks/configuration/webhooks"; + // Make Request Context + const requestContext = _config + .getServer("v1.WebhooksIntegrationApi.createWebhooksIntegration") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "WebhooksIntegration", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createWebhooksIntegrationCustomVariable(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createWebhooksIntegrationCustomVariable"); + } + // Path Params + const localVarPath = "/api/v1/integration/webhooks/configuration/custom-variables"; + // Make Request Context + const requestContext = _config + .getServer("v1.WebhooksIntegrationApi.createWebhooksIntegrationCustomVariable") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "WebhooksIntegrationCustomVariable", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteWebhooksIntegration(webhookName, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'webhookName' is not null or undefined + if (webhookName === null || webhookName === undefined) { + throw new baseapi_1.RequiredError("webhookName", "deleteWebhooksIntegration"); + } + // Path Params + const localVarPath = "/api/v1/integration/webhooks/configuration/webhooks/{webhook_name}".replace("{webhook_name}", encodeURIComponent(String(webhookName))); + // Make Request Context + const requestContext = _config + .getServer("v1.WebhooksIntegrationApi.deleteWebhooksIntegration") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteWebhooksIntegrationCustomVariable(customVariableName, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'customVariableName' is not null or undefined + if (customVariableName === null || customVariableName === undefined) { + throw new baseapi_1.RequiredError("customVariableName", "deleteWebhooksIntegrationCustomVariable"); + } + // Path Params + const localVarPath = "/api/v1/integration/webhooks/configuration/custom-variables/{custom_variable_name}".replace("{custom_variable_name}", encodeURIComponent(String(customVariableName))); + // Make Request Context + const requestContext = _config + .getServer("v1.WebhooksIntegrationApi.deleteWebhooksIntegrationCustomVariable") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getWebhooksIntegration(webhookName, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'webhookName' is not null or undefined + if (webhookName === null || webhookName === undefined) { + throw new baseapi_1.RequiredError("webhookName", "getWebhooksIntegration"); + } + // Path Params + const localVarPath = "/api/v1/integration/webhooks/configuration/webhooks/{webhook_name}".replace("{webhook_name}", encodeURIComponent(String(webhookName))); + // Make Request Context + const requestContext = _config + .getServer("v1.WebhooksIntegrationApi.getWebhooksIntegration") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getWebhooksIntegrationCustomVariable(customVariableName, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'customVariableName' is not null or undefined + if (customVariableName === null || customVariableName === undefined) { + throw new baseapi_1.RequiredError("customVariableName", "getWebhooksIntegrationCustomVariable"); + } + // Path Params + const localVarPath = "/api/v1/integration/webhooks/configuration/custom-variables/{custom_variable_name}".replace("{custom_variable_name}", encodeURIComponent(String(customVariableName))); + // Make Request Context + const requestContext = _config + .getServer("v1.WebhooksIntegrationApi.getWebhooksIntegrationCustomVariable") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateWebhooksIntegration(webhookName, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'webhookName' is not null or undefined + if (webhookName === null || webhookName === undefined) { + throw new baseapi_1.RequiredError("webhookName", "updateWebhooksIntegration"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateWebhooksIntegration"); + } + // Path Params + const localVarPath = "/api/v1/integration/webhooks/configuration/webhooks/{webhook_name}".replace("{webhook_name}", encodeURIComponent(String(webhookName))); + // Make Request Context + const requestContext = _config + .getServer("v1.WebhooksIntegrationApi.updateWebhooksIntegration") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "WebhooksIntegrationUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateWebhooksIntegrationCustomVariable(customVariableName, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'customVariableName' is not null or undefined + if (customVariableName === null || customVariableName === undefined) { + throw new baseapi_1.RequiredError("customVariableName", "updateWebhooksIntegrationCustomVariable"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateWebhooksIntegrationCustomVariable"); + } + // Path Params + const localVarPath = "/api/v1/integration/webhooks/configuration/custom-variables/{custom_variable_name}".replace("{custom_variable_name}", encodeURIComponent(String(customVariableName))); + // Make Request Context + const requestContext = _config + .getServer("v1.WebhooksIntegrationApi.updateWebhooksIntegrationCustomVariable") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "WebhooksIntegrationCustomVariableUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.WebhooksIntegrationApiRequestFactory = WebhooksIntegrationApiRequestFactory; +class WebhooksIntegrationApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createWebhooksIntegration + * @throws ApiException if the response code was not in [200, 299] + */ + createWebhooksIntegration(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "WebhooksIntegration"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "WebhooksIntegration", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createWebhooksIntegrationCustomVariable + * @throws ApiException if the response code was not in [200, 299] + */ + createWebhooksIntegrationCustomVariable(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "WebhooksIntegrationCustomVariableResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "WebhooksIntegrationCustomVariableResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteWebhooksIntegration + * @throws ApiException if the response code was not in [200, 299] + */ + deleteWebhooksIntegration(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + return; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteWebhooksIntegrationCustomVariable + * @throws ApiException if the response code was not in [200, 299] + */ + deleteWebhooksIntegrationCustomVariable(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + return; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getWebhooksIntegration + * @throws ApiException if the response code was not in [200, 299] + */ + getWebhooksIntegration(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "WebhooksIntegration"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "WebhooksIntegration", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getWebhooksIntegrationCustomVariable + * @throws ApiException if the response code was not in [200, 299] + */ + getWebhooksIntegrationCustomVariable(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "WebhooksIntegrationCustomVariableResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "WebhooksIntegrationCustomVariableResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateWebhooksIntegration + * @throws ApiException if the response code was not in [200, 299] + */ + updateWebhooksIntegration(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "WebhooksIntegration"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "WebhooksIntegration", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateWebhooksIntegrationCustomVariable + * @throws ApiException if the response code was not in [200, 299] + */ + updateWebhooksIntegrationCustomVariable(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "WebhooksIntegrationCustomVariableResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "WebhooksIntegrationCustomVariableResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.WebhooksIntegrationApiResponseProcessor = WebhooksIntegrationApiResponseProcessor; +class WebhooksIntegrationApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new WebhooksIntegrationApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new WebhooksIntegrationApiResponseProcessor(); + } + /** + * Creates an endpoint with the name ``. + * @param param The request object + */ + createWebhooksIntegration(param, options) { + const requestContextPromise = this.requestFactory.createWebhooksIntegration(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createWebhooksIntegration(responseContext); + }); + }); + } + /** + * Creates an endpoint with the name ``. + * @param param The request object + */ + createWebhooksIntegrationCustomVariable(param, options) { + const requestContextPromise = this.requestFactory.createWebhooksIntegrationCustomVariable(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createWebhooksIntegrationCustomVariable(responseContext); + }); + }); + } + /** + * Deletes the endpoint with the name ``. + * @param param The request object + */ + deleteWebhooksIntegration(param, options) { + const requestContextPromise = this.requestFactory.deleteWebhooksIntegration(param.webhookName, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteWebhooksIntegration(responseContext); + }); + }); + } + /** + * Deletes the endpoint with the name ``. + * @param param The request object + */ + deleteWebhooksIntegrationCustomVariable(param, options) { + const requestContextPromise = this.requestFactory.deleteWebhooksIntegrationCustomVariable(param.customVariableName, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteWebhooksIntegrationCustomVariable(responseContext); + }); + }); + } + /** + * Gets the content of the webhook with the name ``. + * @param param The request object + */ + getWebhooksIntegration(param, options) { + const requestContextPromise = this.requestFactory.getWebhooksIntegration(param.webhookName, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getWebhooksIntegration(responseContext); + }); + }); + } + /** + * Shows the content of the custom variable with the name ``. + * + * If the custom variable is secret, the value does not return in the + * response payload. + * @param param The request object + */ + getWebhooksIntegrationCustomVariable(param, options) { + const requestContextPromise = this.requestFactory.getWebhooksIntegrationCustomVariable(param.customVariableName, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getWebhooksIntegrationCustomVariable(responseContext); + }); + }); + } + /** + * Updates the endpoint with the name ``. + * @param param The request object + */ + updateWebhooksIntegration(param, options) { + const requestContextPromise = this.requestFactory.updateWebhooksIntegration(param.webhookName, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateWebhooksIntegration(responseContext); + }); + }); + } + /** + * Updates the endpoint with the name ``. + * @param param The request object + */ + updateWebhooksIntegrationCustomVariable(param, options) { + const requestContextPromise = this.requestFactory.updateWebhooksIntegrationCustomVariable(param.customVariableName, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateWebhooksIntegrationCustomVariable(responseContext); + }); + }); + } +} +exports.WebhooksIntegrationApi = WebhooksIntegrationApi; +//# sourceMappingURL=WebhooksIntegrationApi.js.map + +/***/ }), + +/***/ 1408: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSEventBridgeAccountConfiguration = exports.AWSAccountListResponse = exports.AWSAccountDeleteRequest = exports.AWSAccountCreateResponse = exports.AWSAccountAndLambdaRequest = exports.AWSAccount = exports.AuthenticationValidationResponse = exports.ApplicationKeyResponse = exports.ApplicationKeyListResponse = exports.ApplicationKey = exports.ApmStatsQueryDefinition = exports.ApmStatsQueryColumnType = exports.ApiKeyResponse = exports.ApiKeyListResponse = exports.ApiKey = exports.APIErrorResponse = exports.AlertValueWidgetDefinition = exports.AlertGraphWidgetDefinition = exports.AddSignalToIncidentRequest = exports.WebhooksIntegrationApi = exports.UsersApi = exports.UsageMeteringApi = exports.TagsApi = exports.SyntheticsApi = exports.SnapshotsApi = exports.SlackIntegrationApi = exports.ServiceLevelObjectivesApi = exports.ServiceLevelObjectiveCorrectionsApi = exports.ServiceChecksApi = exports.SecurityMonitoringApi = exports.PagerDutyIntegrationApi = exports.OrganizationsApi = exports.NotebooksApi = exports.MonitorsApi = exports.MetricsApi = exports.LogsPipelinesApi = exports.LogsIndexesApi = exports.LogsApi = exports.KeyManagementApi = exports.IPRangesApi = exports.HostsApi = exports.GCPIntegrationApi = exports.EventsApi = exports.DowntimesApi = exports.DashboardsApi = exports.DashboardListsApi = exports.AzureIntegrationApi = exports.AuthenticationApi = exports.AWSLogsIntegrationApi = exports.AWSIntegrationApi = void 0; +exports.DistributionWidgetYAxis = exports.DistributionWidgetXAxis = exports.DistributionWidgetRequest = exports.DistributionWidgetDefinition = exports.DistributionPointsSeries = exports.DistributionPointsPayload = exports.DeleteSharedDashboardResponse = exports.DeletedMonitor = exports.DashboardTemplateVariablePresetValue = exports.DashboardTemplateVariablePreset = exports.DashboardTemplateVariable = exports.DashboardSummaryDefinition = exports.DashboardSummary = exports.DashboardRestoreRequest = exports.DashboardListListResponse = exports.DashboardListDeleteResponse = exports.DashboardList = exports.DashboardGlobalTime = exports.DashboardDeleteResponse = exports.DashboardBulkDeleteRequest = exports.DashboardBulkActionData = exports.Dashboard = exports.Creator = exports.CheckStatusWidgetDefinition = exports.CheckCanDeleteSLOResponseData = exports.CheckCanDeleteSLOResponse = exports.CheckCanDeleteMonitorResponseData = exports.CheckCanDeleteMonitorResponse = exports.ChangeWidgetRequest = exports.ChangeWidgetDefinition = exports.CanceledDowntimesIds = exports.CancelDowntimesByScopeRequest = exports.AzureAccountMetricsConfig = exports.AzureAccount = exports.AWSTagFilterListResponse = exports.AWSTagFilterDeleteRequest = exports.AWSTagFilterCreateRequest = exports.AWSTagFilter = exports.AWSLogsServicesRequest = exports.AWSLogsListServicesResponse = exports.AWSLogsListResponse = exports.AWSLogsLambda = exports.AWSLogsAsyncResponse = exports.AWSLogsAsyncError = exports.AWSEventBridgeSource = exports.AWSEventBridgeListResponse = exports.AWSEventBridgeDeleteResponse = exports.AWSEventBridgeDeleteRequest = exports.AWSEventBridgeCreateResponse = exports.AWSEventBridgeCreateRequest = void 0; +exports.HourlyUsageAttributionBody = exports.HostTotals = exports.HostTags = exports.HostMuteSettings = exports.HostMuteResponse = exports.HostMetrics = exports.HostMetaInstallMethod = exports.HostMeta = exports.HostMapWidgetDefinitionStyle = exports.HostMapWidgetDefinitionRequests = exports.HostMapWidgetDefinition = exports.HostMapRequest = exports.HostListResponse = exports.Host = exports.HeatMapWidgetRequest = exports.HeatMapWidgetDefinition = exports.GroupWidgetDefinition = exports.GraphSnapshot = exports.GeomapWidgetRequest = exports.GeomapWidgetDefinitionView = exports.GeomapWidgetDefinitionStyle = exports.GeomapWidgetDefinition = exports.GCPAccount = exports.FunnelWidgetRequest = exports.FunnelWidgetDefinition = exports.FunnelStep = exports.FunnelQuery = exports.FreeTextWidgetDefinition = exports.FormulaAndFunctionSLOQueryDefinition = exports.FormulaAndFunctionProcessQueryDefinition = exports.FormulaAndFunctionMetricQueryDefinition = exports.FormulaAndFunctionEventQueryGroupBySort = exports.FormulaAndFunctionEventQueryGroupBy = exports.FormulaAndFunctionEventQueryDefinitionSearch = exports.FormulaAndFunctionEventQueryDefinitionCompute = exports.FormulaAndFunctionEventQueryDefinition = exports.FormulaAndFunctionCloudCostQueryDefinition = exports.FormulaAndFunctionApmResourceStatsQueryDefinition = exports.FormulaAndFunctionApmDependencyStatsQueryDefinition = exports.EventTimelineWidgetDefinition = exports.EventStreamWidgetDefinition = exports.EventResponse = exports.EventQueryDefinition = exports.EventListResponse = exports.EventCreateResponse = exports.EventCreateRequest = exports.Event = exports.DowntimeRecurrence = exports.DowntimeChild = exports.Downtime = void 0; +exports.LogsGeoIPParser = exports.LogsFilter = exports.LogsExclusionFilter = exports.LogsExclusion = exports.LogsDateRemapper = exports.LogsDailyLimitReset = exports.LogsCategoryProcessorCategory = exports.LogsCategoryProcessor = exports.LogsByRetentionOrgUsage = exports.LogsByRetentionOrgs = exports.LogsByRetentionMonthlyUsage = exports.LogsByRetention = exports.LogsAttributeRemapper = exports.LogsArithmeticProcessor = exports.LogsAPIErrorResponse = exports.LogsAPIError = exports.LogQueryDefinitionSearch = exports.LogQueryDefinitionGroupBySort = exports.LogQueryDefinitionGroupBy = exports.LogQueryDefinition = exports.LogContent = exports.Log = exports.ListStreamWidgetRequest = exports.ListStreamWidgetDefinition = exports.ListStreamQuery = exports.ListStreamGroupByItems = exports.ListStreamComputeItems = exports.ListStreamColumn = exports.IPRanges = exports.IPPrefixesWebhooks = exports.IPPrefixesSyntheticsPrivateLocations = exports.IPPrefixesSynthetics = exports.IPPrefixesRemoteConfiguration = exports.IPPrefixesProcess = exports.IPPrefixesOrchestrator = exports.IPPrefixesLogs = exports.IPPrefixesGlobal = exports.IPPrefixesAPM = exports.IPPrefixesAPI = exports.IPPrefixesAgents = exports.IntakePayloadAccepted = exports.ImageWidgetDefinition = exports.IFrameWidgetDefinition = exports.IdpResponse = exports.IdpFormData = exports.HTTPLogItem = exports.HTTPLogError = exports.HourlyUsageAttributionResponse = exports.HourlyUsageAttributionPagination = exports.HourlyUsageAttributionMetadata = void 0; +exports.MonitorSearchResponse = exports.MonitorSearchCountItem = exports.MonitorOptionsSchedulingOptionsEvaluationWindow = exports.MonitorOptionsSchedulingOptions = exports.MonitorOptionsCustomScheduleRecurrence = exports.MonitorOptionsCustomSchedule = exports.MonitorOptionsAggregation = exports.MonitorOptions = exports.MonitorGroupSearchResult = exports.MonitorGroupSearchResponseCounts = exports.MonitorGroupSearchResponse = exports.MonitorFormulaAndFunctionEventQueryGroupBySort = exports.MonitorFormulaAndFunctionEventQueryGroupBy = exports.MonitorFormulaAndFunctionEventQueryDefinitionSearch = exports.MonitorFormulaAndFunctionEventQueryDefinitionCompute = exports.MonitorFormulaAndFunctionEventQueryDefinition = exports.Monitor = exports.MetricsQueryUnit = exports.MetricsQueryResponse = exports.MetricsQueryMetadata = exports.MetricsPayload = exports.MetricsListResponse = exports.MetricSearchResponseResults = exports.MetricSearchResponse = exports.MetricMetadata = exports.MatchingDowntime = exports.LogsUserAgentParser = exports.LogsURLParser = exports.LogStreamWidgetDefinition = exports.LogsTraceRemapper = exports.LogsStringBuilderProcessor = exports.LogsStatusRemapper = exports.LogsServiceRemapper = exports.LogsRetentionSumUsage = exports.LogsRetentionAggSumUsage = exports.LogsQueryCompute = exports.LogsPipelinesOrder = exports.LogsPipelineProcessor = exports.LogsPipeline = exports.LogsMessageRemapper = exports.LogsLookupProcessor = exports.LogsListResponse = exports.LogsListRequestTime = exports.LogsListRequest = exports.LogsIndexUpdateRequest = exports.LogsIndexListResponse = exports.LogsIndexesOrder = exports.LogsIndex = exports.LogsGrokParserRules = exports.LogsGrokParser = void 0; +exports.OrganizationListResponse = exports.OrganizationCreateResponse = exports.OrganizationCreateBody = exports.OrganizationBilling = exports.Organization = exports.NoteWidgetDefinition = exports.NotebookUpdateRequest = exports.NotebookUpdateDataAttributes = exports.NotebookUpdateData = exports.NotebookToplistCellAttributes = exports.NotebookTimeseriesCellAttributes = exports.NotebooksResponsePage = exports.NotebooksResponseMeta = exports.NotebooksResponseDataAttributes = exports.NotebooksResponseData = exports.NotebooksResponse = exports.NotebookSplitBy = exports.NotebookResponseDataAttributes = exports.NotebookResponseData = exports.NotebookResponse = exports.NotebookRelativeTime = exports.NotebookMetadata = exports.NotebookMarkdownCellDefinition = exports.NotebookMarkdownCellAttributes = exports.NotebookLogStreamCellAttributes = exports.NotebookHeatMapCellAttributes = exports.NotebookDistributionCellAttributes = exports.NotebookCreateRequest = exports.NotebookCreateDataAttributes = exports.NotebookCreateData = exports.NotebookCellUpdateRequest = exports.NotebookCellResponse = exports.NotebookCellCreateRequest = exports.NotebookAuthor = exports.NotebookAbsoluteTime = exports.MonthlyUsageAttributionValues = exports.MonthlyUsageAttributionResponse = exports.MonthlyUsageAttributionPagination = exports.MonthlyUsageAttributionMetadata = exports.MonthlyUsageAttributionBody = exports.MonitorUpdateRequest = exports.MonitorThresholdWindowOptions = exports.MonitorThresholds = exports.MonitorSummaryWidgetDefinition = exports.MonitorStateGroup = exports.MonitorState = exports.MonitorSearchResultNotification = exports.MonitorSearchResult = exports.MonitorSearchResponseMetadata = exports.MonitorSearchResponseCounts = void 0; +exports.SharedDashboard = exports.ServiceSummaryWidgetDefinition = exports.ServiceMapWidgetDefinition = exports.ServiceLevelObjectiveRequest = exports.ServiceLevelObjectiveQuery = exports.ServiceLevelObjective = exports.ServiceCheck = exports.Series = exports.SelectableTemplateVariableItems = exports.SearchSLOThreshold = exports.SearchSLOResponseMetaPage = exports.SearchSLOResponseMeta = exports.SearchSLOResponseLinks = exports.SearchSLOResponseDataAttributesFacetsObjectString = exports.SearchSLOResponseDataAttributesFacetsObjectInt = exports.SearchSLOResponseDataAttributesFacets = exports.SearchSLOResponseDataAttributes = exports.SearchSLOResponseData = exports.SearchSLOResponse = exports.SearchSLOQuery = exports.SearchServiceLevelObjectiveData = exports.SearchServiceLevelObjectiveAttributes = exports.SearchServiceLevelObjective = exports.ScatterplotWidgetFormula = exports.ScatterPlotWidgetDefinitionRequests = exports.ScatterPlotWidgetDefinition = exports.ScatterplotTableRequest = exports.ScatterPlotRequest = exports.RunWorkflowWidgetInput = exports.RunWorkflowWidgetDefinition = exports.ResponseMetaAttributes = exports.ReferenceTableLogsLookupProcessor = exports.QueryValueWidgetRequest = exports.QueryValueWidgetDefinition = exports.ProcessQueryDefinition = exports.PowerpackWidgetDefinition = exports.PowerpackTemplateVariables = exports.PowerpackTemplateVariableContents = exports.Pagination = exports.PagerDutyServiceName = exports.PagerDutyServiceKey = exports.PagerDutyService = exports.OrgDowngradedResponse = exports.OrganizationSubscription = exports.OrganizationSettingsSamlStrictMode = exports.OrganizationSettingsSamlIdpInitiatedLogin = exports.OrganizationSettingsSamlAutocreateUsersDomains = exports.OrganizationSettingsSaml = exports.OrganizationSettings = exports.OrganizationResponse = void 0; +exports.SLOStatus = exports.SLOResponseData = exports.SLOResponse = exports.SLORawErrorBudgetRemaining = exports.SLOOverallStatuses = exports.SLOListWidgetRequest = exports.SLOListWidgetQuery = exports.SLOListWidgetDefinition = exports.SLOListResponseMetadataPage = exports.SLOListResponseMetadata = exports.SLOListResponse = exports.SLOHistorySLIData = exports.SLOHistoryResponseErrorWithType = exports.SLOHistoryResponseError = exports.SLOHistoryResponseData = exports.SLOHistoryResponse = exports.SLOHistoryMonitor = exports.SLOHistoryMetricsSeriesMetadataUnit = exports.SLOHistoryMetricsSeriesMetadata = exports.SLOHistoryMetricsSeries = exports.SLOHistoryMetrics = exports.SLOFormula = exports.SLODeleteResponse = exports.SLOCreator = exports.SLOCorrectionUpdateRequestAttributes = exports.SLOCorrectionUpdateRequest = exports.SLOCorrectionUpdateData = exports.SLOCorrectionResponseAttributesModifier = exports.SLOCorrectionResponseAttributes = exports.SLOCorrectionResponse = exports.SLOCorrectionListResponse = exports.SLOCorrectionCreateRequestAttributes = exports.SLOCorrectionCreateRequest = exports.SLOCorrectionCreateData = exports.SLOCorrection = exports.SLOBulkDeleteResponseData = exports.SLOBulkDeleteResponse = exports.SLOBulkDeleteError = exports.SlackIntegrationChannelDisplay = exports.SlackIntegrationChannel = exports.SignalStateUpdateRequest = exports.SignalAssigneeUpdateRequest = exports.SharedDashboardUpdateRequestGlobalTime = exports.SharedDashboardUpdateRequest = exports.SharedDashboardInvitesMetaPage = exports.SharedDashboardInvitesMeta = exports.SharedDashboardInvitesDataObjectAttributes = exports.SharedDashboardInvitesDataObject = exports.SharedDashboardInvites = exports.SharedDashboardAuthor = void 0; +exports.SyntheticsBrowserTestResultFull = exports.SyntheticsBrowserTestResultFailure = exports.SyntheticsBrowserTestResultData = exports.SyntheticsBrowserTestConfig = exports.SyntheticsBrowserTest = exports.SyntheticsBrowserError = exports.SyntheticsBatchResult = exports.SyntheticsBatchDetailsData = exports.SyntheticsBatchDetails = exports.SyntheticsBasicAuthWeb = exports.SyntheticsBasicAuthSigv4 = exports.SyntheticsBasicAuthOauthROP = exports.SyntheticsBasicAuthOauthClient = exports.SyntheticsBasicAuthNTLM = exports.SyntheticsBasicAuthDigest = exports.SyntheticsAssertionXPathTargetTarget = exports.SyntheticsAssertionXPathTarget = exports.SyntheticsAssertionTarget = exports.SyntheticsAssertionJSONSchemaTargetTarget = exports.SyntheticsAssertionJSONSchemaTarget = exports.SyntheticsAssertionJSONPathTargetTarget = exports.SyntheticsAssertionJSONPathTarget = exports.SyntheticsAssertionJavascript = exports.SyntheticsAssertionBodyHashTarget = exports.SyntheticsAPIWaitStep = exports.SyntheticsAPITestStep = exports.SyntheticsAPITestResultShortResult = exports.SyntheticsAPITestResultShort = exports.SyntheticsAPITestResultFullCheck = exports.SyntheticsAPITestResultFull = exports.SyntheticsApiTestResultFailure = exports.SyntheticsAPITestResultData = exports.SyntheticsAPITestConfig = exports.SyntheticsAPITest = exports.SunburstWidgetRequest = exports.SunburstWidgetLegendTable = exports.SunburstWidgetLegendInlineAutomatic = exports.SunburstWidgetDefinition = exports.SuccessfulSignalUpdateResponse = exports.SplitVectorEntryItem = exports.SplitSort = exports.SplitGraphWidgetDefinition = exports.SplitDimension = exports.SplitConfigSortCompute = exports.SplitConfig = exports.SLOWidgetDefinition = exports.SLOTimeSliceSpec = exports.SLOTimeSliceQuery = exports.SLOTimeSliceCondition = exports.SLOThreshold = void 0; +exports.SyntheticsPrivateLocationCreationResponseResultEncryption = exports.SyntheticsPrivateLocationCreationResponse = exports.SyntheticsPrivateLocation = exports.SyntheticsPatchTestOperation = exports.SyntheticsPatchTestBody = exports.SyntheticsParsingOptions = exports.SyntheticsMobileTestsMobileApplication = exports.SyntheticsMobileTestOptions = exports.SyntheticsMobileTestConfig = exports.SyntheticsMobileTest = exports.SyntheticsMobileStepParamsVariable = exports.SyntheticsMobileStepParamsPositionsItems = exports.SyntheticsMobileStepParamsElementUserLocatorValuesItems = exports.SyntheticsMobileStepParamsElementUserLocator = exports.SyntheticsMobileStepParamsElementRelativePosition = exports.SyntheticsMobileStepParamsElement = exports.SyntheticsMobileStepParams = exports.SyntheticsMobileStep = exports.SyntheticsLocations = exports.SyntheticsLocation = exports.SyntheticsListTestsResponse = exports.SyntheticsListGlobalVariablesResponse = exports.SyntheticsGlobalVariableValue = exports.SyntheticsGlobalVariableTOTPParameters = exports.SyntheticsGlobalVariableRequest = exports.SyntheticsGlobalVariableParseTestOptions = exports.SyntheticsGlobalVariableOptions = exports.SyntheticsGlobalVariableAttributes = exports.SyntheticsGlobalVariable = exports.SyntheticsGetBrowserTestLatestResultsResponse = exports.SyntheticsGetAPITestLatestResultsResponse = exports.SyntheticsFetchUptimesPayload = exports.SyntheticsDevice = exports.SyntheticsDeleteTestsResponse = exports.SyntheticsDeleteTestsPayload = exports.SyntheticsDeletedTest = exports.SyntheticsCoreWebVitals = exports.SyntheticsConfigVariable = exports.SyntheticsCITestBody = exports.SyntheticsCITest = exports.SyntheticsCIBatchMetadataProvider = exports.SyntheticsCIBatchMetadataPipeline = exports.SyntheticsCIBatchMetadataGit = exports.SyntheticsCIBatchMetadataCI = exports.SyntheticsCIBatchMetadata = exports.SyntheticsBrowserVariable = exports.SyntheticsBrowserTestRumSettings = exports.SyntheticsBrowserTestResultShortResult = exports.SyntheticsBrowserTestResultShort = exports.SyntheticsBrowserTestResultFullCheck = void 0; +exports.ToplistWidgetStyle = exports.ToplistWidgetStacked = exports.ToplistWidgetRequest = exports.ToplistWidgetFlat = exports.ToplistWidgetDefinition = exports.TimeseriesWidgetRequest = exports.TimeseriesWidgetExpressionAlias = exports.TimeseriesWidgetDefinition = exports.TimeseriesBackground = exports.TagToHosts = exports.TableWidgetTextFormatRule = exports.TableWidgetTextFormatReplaceSubstring = exports.TableWidgetTextFormatReplaceAll = exports.TableWidgetTextFormatMatch = exports.TableWidgetRequest = exports.TableWidgetDefinition = exports.SyntheticsVariableParser = exports.SyntheticsUptime = exports.SyntheticsUpdateTestPauseStatusPayload = exports.SyntheticsTriggerTest = exports.SyntheticsTriggerCITestsResponse = exports.SyntheticsTriggerCITestRunResult = exports.SyntheticsTriggerCITestLocation = exports.SyntheticsTriggerBody = exports.SyntheticsTiming = exports.SyntheticsTestUptime = exports.SyntheticsTestRestrictionPolicyBinding = exports.SyntheticsTestRequestProxy = exports.SyntheticsTestRequestCertificateItem = exports.SyntheticsTestRequestCertificate = exports.SyntheticsTestRequestBodyFile = exports.SyntheticsTestRequest = exports.SyntheticsTestOptionsSchedulingTimeframe = exports.SyntheticsTestOptionsScheduling = exports.SyntheticsTestOptionsRetry = exports.SyntheticsTestOptionsMonitorOptions = exports.SyntheticsTestOptions = exports.SyntheticsTestDetails = exports.SyntheticsTestConfig = exports.SyntheticsTestCiOptions = exports.SyntheticsStepDetailWarning = exports.SyntheticsStepDetail = exports.SyntheticsStep = exports.SyntheticsSSLCertificateSubject = exports.SyntheticsSSLCertificateIssuer = exports.SyntheticsSSLCertificate = exports.SyntheticsPrivateLocationSecretsConfigDecryption = exports.SyntheticsPrivateLocationSecretsAuthentication = exports.SyntheticsPrivateLocationSecrets = exports.SyntheticsPrivateLocationMetadata = void 0; +exports.UsageNetworkHostsHour = exports.UsageNetworkFlowsResponse = exports.UsageNetworkFlowsHour = exports.UsageLogsResponse = exports.UsageLogsHour = exports.UsageLogsByRetentionResponse = exports.UsageLogsByRetentionHour = exports.UsageLogsByIndexResponse = exports.UsageLogsByIndexHour = exports.UsageLambdaResponse = exports.UsageLambdaHour = exports.UsageIoTResponse = exports.UsageIoTHour = exports.UsageIngestedSpansResponse = exports.UsageIngestedSpansHour = exports.UsageIndexedSpansResponse = exports.UsageIndexedSpansHour = exports.UsageIncidentManagementResponse = exports.UsageIncidentManagementHour = exports.UsageHostsResponse = exports.UsageHostHour = exports.UsageFargateResponse = exports.UsageFargateHour = exports.UsageDBMResponse = exports.UsageDBMHour = exports.UsageCWSResponse = exports.UsageCWSHour = exports.UsageCustomReportsResponse = exports.UsageCustomReportsPage = exports.UsageCustomReportsMeta = exports.UsageCustomReportsData = exports.UsageCustomReportsAttributes = exports.UsageCloudSecurityPostureManagementResponse = exports.UsageCloudSecurityPostureManagementHour = exports.UsageCIVisibilityResponse = exports.UsageCIVisibilityHour = exports.UsageBillableSummaryResponse = exports.UsageBillableSummaryKeys = exports.UsageBillableSummaryHour = exports.UsageBillableSummaryBody = exports.UsageAuditLogsResponse = exports.UsageAuditLogsHour = exports.UsageAttributionAggregatesBody = exports.UsageAnalyzedLogsResponse = exports.UsageAnalyzedLogsHour = exports.TreeMapWidgetRequest = exports.TreeMapWidgetDefinition = exports.TopologyRequest = exports.TopologyQuery = exports.TopologyMapWidgetDefinition = void 0; +exports.WidgetFormulaLimit = exports.WidgetFormula = exports.WidgetFieldSort = exports.WidgetEvent = exports.WidgetCustomLink = exports.WidgetConditionalFormat = exports.WidgetAxis = exports.Widget = exports.WebhooksIntegrationUpdateRequest = exports.WebhooksIntegrationCustomVariableUpdateRequest = exports.WebhooksIntegrationCustomVariableResponse = exports.WebhooksIntegrationCustomVariable = exports.WebhooksIntegration = exports.UserResponse = exports.UserListResponse = exports.UserDisableResponse = exports.User = exports.UsageTopAvgMetricsResponse = exports.UsageTopAvgMetricsPagination = exports.UsageTopAvgMetricsMetadata = exports.UsageTopAvgMetricsHour = exports.UsageTimeseriesResponse = exports.UsageTimeseriesHour = exports.UsageSyntheticsResponse = exports.UsageSyntheticsHour = exports.UsageSyntheticsBrowserResponse = exports.UsageSyntheticsBrowserHour = exports.UsageSyntheticsAPIResponse = exports.UsageSyntheticsAPIHour = exports.UsageSummaryResponse = exports.UsageSummaryDateOrg = exports.UsageSummaryDate = exports.UsageSpecifiedCustomReportsResponse = exports.UsageSpecifiedCustomReportsPage = exports.UsageSpecifiedCustomReportsMeta = exports.UsageSpecifiedCustomReportsData = exports.UsageSpecifiedCustomReportsAttributes = exports.UsageSNMPResponse = exports.UsageSNMPHour = exports.UsageSDSResponse = exports.UsageSDSHour = exports.UsageRumUnitsResponse = exports.UsageRumUnitsHour = exports.UsageRumSessionsResponse = exports.UsageRumSessionsHour = exports.UsageProfilingResponse = exports.UsageProfilingHour = exports.UsageOnlineArchiveResponse = exports.UsageOnlineArchiveHour = exports.UsageNetworkHostsResponse = void 0; +exports.ObjectSerializer = exports.WidgetStyle = exports.WidgetSortBy = exports.WidgetRequestStyle = exports.WidgetNewLiveSpan = exports.WidgetNewFixedSpan = exports.WidgetMarker = exports.WidgetLegacyLiveSpan = exports.WidgetLayout = exports.WidgetGroupSort = exports.WidgetFormulaStyle = exports.WidgetFormulaSort = void 0; +var AWSIntegrationApi_1 = __nccwpck_require__(93203); +Object.defineProperty(exports, "AWSIntegrationApi", ({ enumerable: true, get: function () { return AWSIntegrationApi_1.AWSIntegrationApi; } })); +var AWSLogsIntegrationApi_1 = __nccwpck_require__(55776); +Object.defineProperty(exports, "AWSLogsIntegrationApi", ({ enumerable: true, get: function () { return AWSLogsIntegrationApi_1.AWSLogsIntegrationApi; } })); +var AuthenticationApi_1 = __nccwpck_require__(73548); +Object.defineProperty(exports, "AuthenticationApi", ({ enumerable: true, get: function () { return AuthenticationApi_1.AuthenticationApi; } })); +var AzureIntegrationApi_1 = __nccwpck_require__(87101); +Object.defineProperty(exports, "AzureIntegrationApi", ({ enumerable: true, get: function () { return AzureIntegrationApi_1.AzureIntegrationApi; } })); +var DashboardListsApi_1 = __nccwpck_require__(43115); +Object.defineProperty(exports, "DashboardListsApi", ({ enumerable: true, get: function () { return DashboardListsApi_1.DashboardListsApi; } })); +var DashboardsApi_1 = __nccwpck_require__(95443); +Object.defineProperty(exports, "DashboardsApi", ({ enumerable: true, get: function () { return DashboardsApi_1.DashboardsApi; } })); +var DowntimesApi_1 = __nccwpck_require__(92416); +Object.defineProperty(exports, "DowntimesApi", ({ enumerable: true, get: function () { return DowntimesApi_1.DowntimesApi; } })); +var EventsApi_1 = __nccwpck_require__(72095); +Object.defineProperty(exports, "EventsApi", ({ enumerable: true, get: function () { return EventsApi_1.EventsApi; } })); +var GCPIntegrationApi_1 = __nccwpck_require__(46688); +Object.defineProperty(exports, "GCPIntegrationApi", ({ enumerable: true, get: function () { return GCPIntegrationApi_1.GCPIntegrationApi; } })); +var HostsApi_1 = __nccwpck_require__(35407); +Object.defineProperty(exports, "HostsApi", ({ enumerable: true, get: function () { return HostsApi_1.HostsApi; } })); +var IPRangesApi_1 = __nccwpck_require__(66305); +Object.defineProperty(exports, "IPRangesApi", ({ enumerable: true, get: function () { return IPRangesApi_1.IPRangesApi; } })); +var KeyManagementApi_1 = __nccwpck_require__(73514); +Object.defineProperty(exports, "KeyManagementApi", ({ enumerable: true, get: function () { return KeyManagementApi_1.KeyManagementApi; } })); +var LogsApi_1 = __nccwpck_require__(20913); +Object.defineProperty(exports, "LogsApi", ({ enumerable: true, get: function () { return LogsApi_1.LogsApi; } })); +var LogsIndexesApi_1 = __nccwpck_require__(44885); +Object.defineProperty(exports, "LogsIndexesApi", ({ enumerable: true, get: function () { return LogsIndexesApi_1.LogsIndexesApi; } })); +var LogsPipelinesApi_1 = __nccwpck_require__(38852); +Object.defineProperty(exports, "LogsPipelinesApi", ({ enumerable: true, get: function () { return LogsPipelinesApi_1.LogsPipelinesApi; } })); +var MetricsApi_1 = __nccwpck_require__(47649); +Object.defineProperty(exports, "MetricsApi", ({ enumerable: true, get: function () { return MetricsApi_1.MetricsApi; } })); +var MonitorsApi_1 = __nccwpck_require__(8233); +Object.defineProperty(exports, "MonitorsApi", ({ enumerable: true, get: function () { return MonitorsApi_1.MonitorsApi; } })); +var NotebooksApi_1 = __nccwpck_require__(53780); +Object.defineProperty(exports, "NotebooksApi", ({ enumerable: true, get: function () { return NotebooksApi_1.NotebooksApi; } })); +var OrganizationsApi_1 = __nccwpck_require__(45566); +Object.defineProperty(exports, "OrganizationsApi", ({ enumerable: true, get: function () { return OrganizationsApi_1.OrganizationsApi; } })); +var PagerDutyIntegrationApi_1 = __nccwpck_require__(95933); +Object.defineProperty(exports, "PagerDutyIntegrationApi", ({ enumerable: true, get: function () { return PagerDutyIntegrationApi_1.PagerDutyIntegrationApi; } })); +var SecurityMonitoringApi_1 = __nccwpck_require__(62232); +Object.defineProperty(exports, "SecurityMonitoringApi", ({ enumerable: true, get: function () { return SecurityMonitoringApi_1.SecurityMonitoringApi; } })); +var ServiceChecksApi_1 = __nccwpck_require__(77192); +Object.defineProperty(exports, "ServiceChecksApi", ({ enumerable: true, get: function () { return ServiceChecksApi_1.ServiceChecksApi; } })); +var ServiceLevelObjectiveCorrectionsApi_1 = __nccwpck_require__(20905); +Object.defineProperty(exports, "ServiceLevelObjectiveCorrectionsApi", ({ enumerable: true, get: function () { return ServiceLevelObjectiveCorrectionsApi_1.ServiceLevelObjectiveCorrectionsApi; } })); +var ServiceLevelObjectivesApi_1 = __nccwpck_require__(35013); +Object.defineProperty(exports, "ServiceLevelObjectivesApi", ({ enumerable: true, get: function () { return ServiceLevelObjectivesApi_1.ServiceLevelObjectivesApi; } })); +var SlackIntegrationApi_1 = __nccwpck_require__(83370); +Object.defineProperty(exports, "SlackIntegrationApi", ({ enumerable: true, get: function () { return SlackIntegrationApi_1.SlackIntegrationApi; } })); +var SnapshotsApi_1 = __nccwpck_require__(84997); +Object.defineProperty(exports, "SnapshotsApi", ({ enumerable: true, get: function () { return SnapshotsApi_1.SnapshotsApi; } })); +var SyntheticsApi_1 = __nccwpck_require__(95484); +Object.defineProperty(exports, "SyntheticsApi", ({ enumerable: true, get: function () { return SyntheticsApi_1.SyntheticsApi; } })); +var TagsApi_1 = __nccwpck_require__(97371); +Object.defineProperty(exports, "TagsApi", ({ enumerable: true, get: function () { return TagsApi_1.TagsApi; } })); +var UsageMeteringApi_1 = __nccwpck_require__(39706); +Object.defineProperty(exports, "UsageMeteringApi", ({ enumerable: true, get: function () { return UsageMeteringApi_1.UsageMeteringApi; } })); +var UsersApi_1 = __nccwpck_require__(23094); +Object.defineProperty(exports, "UsersApi", ({ enumerable: true, get: function () { return UsersApi_1.UsersApi; } })); +var WebhooksIntegrationApi_1 = __nccwpck_require__(13522); +Object.defineProperty(exports, "WebhooksIntegrationApi", ({ enumerable: true, get: function () { return WebhooksIntegrationApi_1.WebhooksIntegrationApi; } })); +var AddSignalToIncidentRequest_1 = __nccwpck_require__(90478); +Object.defineProperty(exports, "AddSignalToIncidentRequest", ({ enumerable: true, get: function () { return AddSignalToIncidentRequest_1.AddSignalToIncidentRequest; } })); +var AlertGraphWidgetDefinition_1 = __nccwpck_require__(61052); +Object.defineProperty(exports, "AlertGraphWidgetDefinition", ({ enumerable: true, get: function () { return AlertGraphWidgetDefinition_1.AlertGraphWidgetDefinition; } })); +var AlertValueWidgetDefinition_1 = __nccwpck_require__(29833); +Object.defineProperty(exports, "AlertValueWidgetDefinition", ({ enumerable: true, get: function () { return AlertValueWidgetDefinition_1.AlertValueWidgetDefinition; } })); +var APIErrorResponse_1 = __nccwpck_require__(1038); +Object.defineProperty(exports, "APIErrorResponse", ({ enumerable: true, get: function () { return APIErrorResponse_1.APIErrorResponse; } })); +var ApiKey_1 = __nccwpck_require__(99816); +Object.defineProperty(exports, "ApiKey", ({ enumerable: true, get: function () { return ApiKey_1.ApiKey; } })); +var ApiKeyListResponse_1 = __nccwpck_require__(26919); +Object.defineProperty(exports, "ApiKeyListResponse", ({ enumerable: true, get: function () { return ApiKeyListResponse_1.ApiKeyListResponse; } })); +var ApiKeyResponse_1 = __nccwpck_require__(43839); +Object.defineProperty(exports, "ApiKeyResponse", ({ enumerable: true, get: function () { return ApiKeyResponse_1.ApiKeyResponse; } })); +var ApmStatsQueryColumnType_1 = __nccwpck_require__(49152); +Object.defineProperty(exports, "ApmStatsQueryColumnType", ({ enumerable: true, get: function () { return ApmStatsQueryColumnType_1.ApmStatsQueryColumnType; } })); +var ApmStatsQueryDefinition_1 = __nccwpck_require__(84995); +Object.defineProperty(exports, "ApmStatsQueryDefinition", ({ enumerable: true, get: function () { return ApmStatsQueryDefinition_1.ApmStatsQueryDefinition; } })); +var ApplicationKey_1 = __nccwpck_require__(57554); +Object.defineProperty(exports, "ApplicationKey", ({ enumerable: true, get: function () { return ApplicationKey_1.ApplicationKey; } })); +var ApplicationKeyListResponse_1 = __nccwpck_require__(27161); +Object.defineProperty(exports, "ApplicationKeyListResponse", ({ enumerable: true, get: function () { return ApplicationKeyListResponse_1.ApplicationKeyListResponse; } })); +var ApplicationKeyResponse_1 = __nccwpck_require__(54485); +Object.defineProperty(exports, "ApplicationKeyResponse", ({ enumerable: true, get: function () { return ApplicationKeyResponse_1.ApplicationKeyResponse; } })); +var AuthenticationValidationResponse_1 = __nccwpck_require__(48807); +Object.defineProperty(exports, "AuthenticationValidationResponse", ({ enumerable: true, get: function () { return AuthenticationValidationResponse_1.AuthenticationValidationResponse; } })); +var AWSAccount_1 = __nccwpck_require__(77719); +Object.defineProperty(exports, "AWSAccount", ({ enumerable: true, get: function () { return AWSAccount_1.AWSAccount; } })); +var AWSAccountAndLambdaRequest_1 = __nccwpck_require__(18288); +Object.defineProperty(exports, "AWSAccountAndLambdaRequest", ({ enumerable: true, get: function () { return AWSAccountAndLambdaRequest_1.AWSAccountAndLambdaRequest; } })); +var AWSAccountCreateResponse_1 = __nccwpck_require__(30136); +Object.defineProperty(exports, "AWSAccountCreateResponse", ({ enumerable: true, get: function () { return AWSAccountCreateResponse_1.AWSAccountCreateResponse; } })); +var AWSAccountDeleteRequest_1 = __nccwpck_require__(3947); +Object.defineProperty(exports, "AWSAccountDeleteRequest", ({ enumerable: true, get: function () { return AWSAccountDeleteRequest_1.AWSAccountDeleteRequest; } })); +var AWSAccountListResponse_1 = __nccwpck_require__(30060); +Object.defineProperty(exports, "AWSAccountListResponse", ({ enumerable: true, get: function () { return AWSAccountListResponse_1.AWSAccountListResponse; } })); +var AWSEventBridgeAccountConfiguration_1 = __nccwpck_require__(92322); +Object.defineProperty(exports, "AWSEventBridgeAccountConfiguration", ({ enumerable: true, get: function () { return AWSEventBridgeAccountConfiguration_1.AWSEventBridgeAccountConfiguration; } })); +var AWSEventBridgeCreateRequest_1 = __nccwpck_require__(8392); +Object.defineProperty(exports, "AWSEventBridgeCreateRequest", ({ enumerable: true, get: function () { return AWSEventBridgeCreateRequest_1.AWSEventBridgeCreateRequest; } })); +var AWSEventBridgeCreateResponse_1 = __nccwpck_require__(27634); +Object.defineProperty(exports, "AWSEventBridgeCreateResponse", ({ enumerable: true, get: function () { return AWSEventBridgeCreateResponse_1.AWSEventBridgeCreateResponse; } })); +var AWSEventBridgeDeleteRequest_1 = __nccwpck_require__(72925); +Object.defineProperty(exports, "AWSEventBridgeDeleteRequest", ({ enumerable: true, get: function () { return AWSEventBridgeDeleteRequest_1.AWSEventBridgeDeleteRequest; } })); +var AWSEventBridgeDeleteResponse_1 = __nccwpck_require__(49065); +Object.defineProperty(exports, "AWSEventBridgeDeleteResponse", ({ enumerable: true, get: function () { return AWSEventBridgeDeleteResponse_1.AWSEventBridgeDeleteResponse; } })); +var AWSEventBridgeListResponse_1 = __nccwpck_require__(41954); +Object.defineProperty(exports, "AWSEventBridgeListResponse", ({ enumerable: true, get: function () { return AWSEventBridgeListResponse_1.AWSEventBridgeListResponse; } })); +var AWSEventBridgeSource_1 = __nccwpck_require__(93500); +Object.defineProperty(exports, "AWSEventBridgeSource", ({ enumerable: true, get: function () { return AWSEventBridgeSource_1.AWSEventBridgeSource; } })); +var AWSLogsAsyncError_1 = __nccwpck_require__(93719); +Object.defineProperty(exports, "AWSLogsAsyncError", ({ enumerable: true, get: function () { return AWSLogsAsyncError_1.AWSLogsAsyncError; } })); +var AWSLogsAsyncResponse_1 = __nccwpck_require__(50722); +Object.defineProperty(exports, "AWSLogsAsyncResponse", ({ enumerable: true, get: function () { return AWSLogsAsyncResponse_1.AWSLogsAsyncResponse; } })); +var AWSLogsLambda_1 = __nccwpck_require__(60970); +Object.defineProperty(exports, "AWSLogsLambda", ({ enumerable: true, get: function () { return AWSLogsLambda_1.AWSLogsLambda; } })); +var AWSLogsListResponse_1 = __nccwpck_require__(52714); +Object.defineProperty(exports, "AWSLogsListResponse", ({ enumerable: true, get: function () { return AWSLogsListResponse_1.AWSLogsListResponse; } })); +var AWSLogsListServicesResponse_1 = __nccwpck_require__(85038); +Object.defineProperty(exports, "AWSLogsListServicesResponse", ({ enumerable: true, get: function () { return AWSLogsListServicesResponse_1.AWSLogsListServicesResponse; } })); +var AWSLogsServicesRequest_1 = __nccwpck_require__(66600); +Object.defineProperty(exports, "AWSLogsServicesRequest", ({ enumerable: true, get: function () { return AWSLogsServicesRequest_1.AWSLogsServicesRequest; } })); +var AWSTagFilter_1 = __nccwpck_require__(36818); +Object.defineProperty(exports, "AWSTagFilter", ({ enumerable: true, get: function () { return AWSTagFilter_1.AWSTagFilter; } })); +var AWSTagFilterCreateRequest_1 = __nccwpck_require__(5865); +Object.defineProperty(exports, "AWSTagFilterCreateRequest", ({ enumerable: true, get: function () { return AWSTagFilterCreateRequest_1.AWSTagFilterCreateRequest; } })); +var AWSTagFilterDeleteRequest_1 = __nccwpck_require__(62032); +Object.defineProperty(exports, "AWSTagFilterDeleteRequest", ({ enumerable: true, get: function () { return AWSTagFilterDeleteRequest_1.AWSTagFilterDeleteRequest; } })); +var AWSTagFilterListResponse_1 = __nccwpck_require__(43961); +Object.defineProperty(exports, "AWSTagFilterListResponse", ({ enumerable: true, get: function () { return AWSTagFilterListResponse_1.AWSTagFilterListResponse; } })); +var AzureAccount_1 = __nccwpck_require__(2881); +Object.defineProperty(exports, "AzureAccount", ({ enumerable: true, get: function () { return AzureAccount_1.AzureAccount; } })); +var AzureAccountMetricsConfig_1 = __nccwpck_require__(22330); +Object.defineProperty(exports, "AzureAccountMetricsConfig", ({ enumerable: true, get: function () { return AzureAccountMetricsConfig_1.AzureAccountMetricsConfig; } })); +var CancelDowntimesByScopeRequest_1 = __nccwpck_require__(34831); +Object.defineProperty(exports, "CancelDowntimesByScopeRequest", ({ enumerable: true, get: function () { return CancelDowntimesByScopeRequest_1.CancelDowntimesByScopeRequest; } })); +var CanceledDowntimesIds_1 = __nccwpck_require__(17668); +Object.defineProperty(exports, "CanceledDowntimesIds", ({ enumerable: true, get: function () { return CanceledDowntimesIds_1.CanceledDowntimesIds; } })); +var ChangeWidgetDefinition_1 = __nccwpck_require__(72762); +Object.defineProperty(exports, "ChangeWidgetDefinition", ({ enumerable: true, get: function () { return ChangeWidgetDefinition_1.ChangeWidgetDefinition; } })); +var ChangeWidgetRequest_1 = __nccwpck_require__(95114); +Object.defineProperty(exports, "ChangeWidgetRequest", ({ enumerable: true, get: function () { return ChangeWidgetRequest_1.ChangeWidgetRequest; } })); +var CheckCanDeleteMonitorResponse_1 = __nccwpck_require__(64145); +Object.defineProperty(exports, "CheckCanDeleteMonitorResponse", ({ enumerable: true, get: function () { return CheckCanDeleteMonitorResponse_1.CheckCanDeleteMonitorResponse; } })); +var CheckCanDeleteMonitorResponseData_1 = __nccwpck_require__(2529); +Object.defineProperty(exports, "CheckCanDeleteMonitorResponseData", ({ enumerable: true, get: function () { return CheckCanDeleteMonitorResponseData_1.CheckCanDeleteMonitorResponseData; } })); +var CheckCanDeleteSLOResponse_1 = __nccwpck_require__(37823); +Object.defineProperty(exports, "CheckCanDeleteSLOResponse", ({ enumerable: true, get: function () { return CheckCanDeleteSLOResponse_1.CheckCanDeleteSLOResponse; } })); +var CheckCanDeleteSLOResponseData_1 = __nccwpck_require__(71687); +Object.defineProperty(exports, "CheckCanDeleteSLOResponseData", ({ enumerable: true, get: function () { return CheckCanDeleteSLOResponseData_1.CheckCanDeleteSLOResponseData; } })); +var CheckStatusWidgetDefinition_1 = __nccwpck_require__(77352); +Object.defineProperty(exports, "CheckStatusWidgetDefinition", ({ enumerable: true, get: function () { return CheckStatusWidgetDefinition_1.CheckStatusWidgetDefinition; } })); +var Creator_1 = __nccwpck_require__(85131); +Object.defineProperty(exports, "Creator", ({ enumerable: true, get: function () { return Creator_1.Creator; } })); +var Dashboard_1 = __nccwpck_require__(61271); +Object.defineProperty(exports, "Dashboard", ({ enumerable: true, get: function () { return Dashboard_1.Dashboard; } })); +var DashboardBulkActionData_1 = __nccwpck_require__(87641); +Object.defineProperty(exports, "DashboardBulkActionData", ({ enumerable: true, get: function () { return DashboardBulkActionData_1.DashboardBulkActionData; } })); +var DashboardBulkDeleteRequest_1 = __nccwpck_require__(47991); +Object.defineProperty(exports, "DashboardBulkDeleteRequest", ({ enumerable: true, get: function () { return DashboardBulkDeleteRequest_1.DashboardBulkDeleteRequest; } })); +var DashboardDeleteResponse_1 = __nccwpck_require__(82639); +Object.defineProperty(exports, "DashboardDeleteResponse", ({ enumerable: true, get: function () { return DashboardDeleteResponse_1.DashboardDeleteResponse; } })); +var DashboardGlobalTime_1 = __nccwpck_require__(88433); +Object.defineProperty(exports, "DashboardGlobalTime", ({ enumerable: true, get: function () { return DashboardGlobalTime_1.DashboardGlobalTime; } })); +var DashboardList_1 = __nccwpck_require__(31007); +Object.defineProperty(exports, "DashboardList", ({ enumerable: true, get: function () { return DashboardList_1.DashboardList; } })); +var DashboardListDeleteResponse_1 = __nccwpck_require__(76231); +Object.defineProperty(exports, "DashboardListDeleteResponse", ({ enumerable: true, get: function () { return DashboardListDeleteResponse_1.DashboardListDeleteResponse; } })); +var DashboardListListResponse_1 = __nccwpck_require__(62964); +Object.defineProperty(exports, "DashboardListListResponse", ({ enumerable: true, get: function () { return DashboardListListResponse_1.DashboardListListResponse; } })); +var DashboardRestoreRequest_1 = __nccwpck_require__(65476); +Object.defineProperty(exports, "DashboardRestoreRequest", ({ enumerable: true, get: function () { return DashboardRestoreRequest_1.DashboardRestoreRequest; } })); +var DashboardSummary_1 = __nccwpck_require__(9183); +Object.defineProperty(exports, "DashboardSummary", ({ enumerable: true, get: function () { return DashboardSummary_1.DashboardSummary; } })); +var DashboardSummaryDefinition_1 = __nccwpck_require__(98402); +Object.defineProperty(exports, "DashboardSummaryDefinition", ({ enumerable: true, get: function () { return DashboardSummaryDefinition_1.DashboardSummaryDefinition; } })); +var DashboardTemplateVariable_1 = __nccwpck_require__(24169); +Object.defineProperty(exports, "DashboardTemplateVariable", ({ enumerable: true, get: function () { return DashboardTemplateVariable_1.DashboardTemplateVariable; } })); +var DashboardTemplateVariablePreset_1 = __nccwpck_require__(48950); +Object.defineProperty(exports, "DashboardTemplateVariablePreset", ({ enumerable: true, get: function () { return DashboardTemplateVariablePreset_1.DashboardTemplateVariablePreset; } })); +var DashboardTemplateVariablePresetValue_1 = __nccwpck_require__(9877); +Object.defineProperty(exports, "DashboardTemplateVariablePresetValue", ({ enumerable: true, get: function () { return DashboardTemplateVariablePresetValue_1.DashboardTemplateVariablePresetValue; } })); +var DeletedMonitor_1 = __nccwpck_require__(32502); +Object.defineProperty(exports, "DeletedMonitor", ({ enumerable: true, get: function () { return DeletedMonitor_1.DeletedMonitor; } })); +var DeleteSharedDashboardResponse_1 = __nccwpck_require__(16066); +Object.defineProperty(exports, "DeleteSharedDashboardResponse", ({ enumerable: true, get: function () { return DeleteSharedDashboardResponse_1.DeleteSharedDashboardResponse; } })); +var DistributionPointsPayload_1 = __nccwpck_require__(2242); +Object.defineProperty(exports, "DistributionPointsPayload", ({ enumerable: true, get: function () { return DistributionPointsPayload_1.DistributionPointsPayload; } })); +var DistributionPointsSeries_1 = __nccwpck_require__(33403); +Object.defineProperty(exports, "DistributionPointsSeries", ({ enumerable: true, get: function () { return DistributionPointsSeries_1.DistributionPointsSeries; } })); +var DistributionWidgetDefinition_1 = __nccwpck_require__(76064); +Object.defineProperty(exports, "DistributionWidgetDefinition", ({ enumerable: true, get: function () { return DistributionWidgetDefinition_1.DistributionWidgetDefinition; } })); +var DistributionWidgetRequest_1 = __nccwpck_require__(10484); +Object.defineProperty(exports, "DistributionWidgetRequest", ({ enumerable: true, get: function () { return DistributionWidgetRequest_1.DistributionWidgetRequest; } })); +var DistributionWidgetXAxis_1 = __nccwpck_require__(13568); +Object.defineProperty(exports, "DistributionWidgetXAxis", ({ enumerable: true, get: function () { return DistributionWidgetXAxis_1.DistributionWidgetXAxis; } })); +var DistributionWidgetYAxis_1 = __nccwpck_require__(92263); +Object.defineProperty(exports, "DistributionWidgetYAxis", ({ enumerable: true, get: function () { return DistributionWidgetYAxis_1.DistributionWidgetYAxis; } })); +var Downtime_1 = __nccwpck_require__(45706); +Object.defineProperty(exports, "Downtime", ({ enumerable: true, get: function () { return Downtime_1.Downtime; } })); +var DowntimeChild_1 = __nccwpck_require__(17346); +Object.defineProperty(exports, "DowntimeChild", ({ enumerable: true, get: function () { return DowntimeChild_1.DowntimeChild; } })); +var DowntimeRecurrence_1 = __nccwpck_require__(25872); +Object.defineProperty(exports, "DowntimeRecurrence", ({ enumerable: true, get: function () { return DowntimeRecurrence_1.DowntimeRecurrence; } })); +var Event_1 = __nccwpck_require__(50003); +Object.defineProperty(exports, "Event", ({ enumerable: true, get: function () { return Event_1.Event; } })); +var EventCreateRequest_1 = __nccwpck_require__(2866); +Object.defineProperty(exports, "EventCreateRequest", ({ enumerable: true, get: function () { return EventCreateRequest_1.EventCreateRequest; } })); +var EventCreateResponse_1 = __nccwpck_require__(39228); +Object.defineProperty(exports, "EventCreateResponse", ({ enumerable: true, get: function () { return EventCreateResponse_1.EventCreateResponse; } })); +var EventListResponse_1 = __nccwpck_require__(73000); +Object.defineProperty(exports, "EventListResponse", ({ enumerable: true, get: function () { return EventListResponse_1.EventListResponse; } })); +var EventQueryDefinition_1 = __nccwpck_require__(23186); +Object.defineProperty(exports, "EventQueryDefinition", ({ enumerable: true, get: function () { return EventQueryDefinition_1.EventQueryDefinition; } })); +var EventResponse_1 = __nccwpck_require__(92864); +Object.defineProperty(exports, "EventResponse", ({ enumerable: true, get: function () { return EventResponse_1.EventResponse; } })); +var EventStreamWidgetDefinition_1 = __nccwpck_require__(46650); +Object.defineProperty(exports, "EventStreamWidgetDefinition", ({ enumerable: true, get: function () { return EventStreamWidgetDefinition_1.EventStreamWidgetDefinition; } })); +var EventTimelineWidgetDefinition_1 = __nccwpck_require__(94138); +Object.defineProperty(exports, "EventTimelineWidgetDefinition", ({ enumerable: true, get: function () { return EventTimelineWidgetDefinition_1.EventTimelineWidgetDefinition; } })); +var FormulaAndFunctionApmDependencyStatsQueryDefinition_1 = __nccwpck_require__(63675); +Object.defineProperty(exports, "FormulaAndFunctionApmDependencyStatsQueryDefinition", ({ enumerable: true, get: function () { return FormulaAndFunctionApmDependencyStatsQueryDefinition_1.FormulaAndFunctionApmDependencyStatsQueryDefinition; } })); +var FormulaAndFunctionApmResourceStatsQueryDefinition_1 = __nccwpck_require__(86366); +Object.defineProperty(exports, "FormulaAndFunctionApmResourceStatsQueryDefinition", ({ enumerable: true, get: function () { return FormulaAndFunctionApmResourceStatsQueryDefinition_1.FormulaAndFunctionApmResourceStatsQueryDefinition; } })); +var FormulaAndFunctionCloudCostQueryDefinition_1 = __nccwpck_require__(3061); +Object.defineProperty(exports, "FormulaAndFunctionCloudCostQueryDefinition", ({ enumerable: true, get: function () { return FormulaAndFunctionCloudCostQueryDefinition_1.FormulaAndFunctionCloudCostQueryDefinition; } })); +var FormulaAndFunctionEventQueryDefinition_1 = __nccwpck_require__(42833); +Object.defineProperty(exports, "FormulaAndFunctionEventQueryDefinition", ({ enumerable: true, get: function () { return FormulaAndFunctionEventQueryDefinition_1.FormulaAndFunctionEventQueryDefinition; } })); +var FormulaAndFunctionEventQueryDefinitionCompute_1 = __nccwpck_require__(39584); +Object.defineProperty(exports, "FormulaAndFunctionEventQueryDefinitionCompute", ({ enumerable: true, get: function () { return FormulaAndFunctionEventQueryDefinitionCompute_1.FormulaAndFunctionEventQueryDefinitionCompute; } })); +var FormulaAndFunctionEventQueryDefinitionSearch_1 = __nccwpck_require__(55897); +Object.defineProperty(exports, "FormulaAndFunctionEventQueryDefinitionSearch", ({ enumerable: true, get: function () { return FormulaAndFunctionEventQueryDefinitionSearch_1.FormulaAndFunctionEventQueryDefinitionSearch; } })); +var FormulaAndFunctionEventQueryGroupBy_1 = __nccwpck_require__(14536); +Object.defineProperty(exports, "FormulaAndFunctionEventQueryGroupBy", ({ enumerable: true, get: function () { return FormulaAndFunctionEventQueryGroupBy_1.FormulaAndFunctionEventQueryGroupBy; } })); +var FormulaAndFunctionEventQueryGroupBySort_1 = __nccwpck_require__(88608); +Object.defineProperty(exports, "FormulaAndFunctionEventQueryGroupBySort", ({ enumerable: true, get: function () { return FormulaAndFunctionEventQueryGroupBySort_1.FormulaAndFunctionEventQueryGroupBySort; } })); +var FormulaAndFunctionMetricQueryDefinition_1 = __nccwpck_require__(27411); +Object.defineProperty(exports, "FormulaAndFunctionMetricQueryDefinition", ({ enumerable: true, get: function () { return FormulaAndFunctionMetricQueryDefinition_1.FormulaAndFunctionMetricQueryDefinition; } })); +var FormulaAndFunctionProcessQueryDefinition_1 = __nccwpck_require__(66394); +Object.defineProperty(exports, "FormulaAndFunctionProcessQueryDefinition", ({ enumerable: true, get: function () { return FormulaAndFunctionProcessQueryDefinition_1.FormulaAndFunctionProcessQueryDefinition; } })); +var FormulaAndFunctionSLOQueryDefinition_1 = __nccwpck_require__(99505); +Object.defineProperty(exports, "FormulaAndFunctionSLOQueryDefinition", ({ enumerable: true, get: function () { return FormulaAndFunctionSLOQueryDefinition_1.FormulaAndFunctionSLOQueryDefinition; } })); +var FreeTextWidgetDefinition_1 = __nccwpck_require__(92163); +Object.defineProperty(exports, "FreeTextWidgetDefinition", ({ enumerable: true, get: function () { return FreeTextWidgetDefinition_1.FreeTextWidgetDefinition; } })); +var FunnelQuery_1 = __nccwpck_require__(95075); +Object.defineProperty(exports, "FunnelQuery", ({ enumerable: true, get: function () { return FunnelQuery_1.FunnelQuery; } })); +var FunnelStep_1 = __nccwpck_require__(33269); +Object.defineProperty(exports, "FunnelStep", ({ enumerable: true, get: function () { return FunnelStep_1.FunnelStep; } })); +var FunnelWidgetDefinition_1 = __nccwpck_require__(12886); +Object.defineProperty(exports, "FunnelWidgetDefinition", ({ enumerable: true, get: function () { return FunnelWidgetDefinition_1.FunnelWidgetDefinition; } })); +var FunnelWidgetRequest_1 = __nccwpck_require__(66102); +Object.defineProperty(exports, "FunnelWidgetRequest", ({ enumerable: true, get: function () { return FunnelWidgetRequest_1.FunnelWidgetRequest; } })); +var GCPAccount_1 = __nccwpck_require__(45134); +Object.defineProperty(exports, "GCPAccount", ({ enumerable: true, get: function () { return GCPAccount_1.GCPAccount; } })); +var GeomapWidgetDefinition_1 = __nccwpck_require__(10855); +Object.defineProperty(exports, "GeomapWidgetDefinition", ({ enumerable: true, get: function () { return GeomapWidgetDefinition_1.GeomapWidgetDefinition; } })); +var GeomapWidgetDefinitionStyle_1 = __nccwpck_require__(60254); +Object.defineProperty(exports, "GeomapWidgetDefinitionStyle", ({ enumerable: true, get: function () { return GeomapWidgetDefinitionStyle_1.GeomapWidgetDefinitionStyle; } })); +var GeomapWidgetDefinitionView_1 = __nccwpck_require__(1882); +Object.defineProperty(exports, "GeomapWidgetDefinitionView", ({ enumerable: true, get: function () { return GeomapWidgetDefinitionView_1.GeomapWidgetDefinitionView; } })); +var GeomapWidgetRequest_1 = __nccwpck_require__(6333); +Object.defineProperty(exports, "GeomapWidgetRequest", ({ enumerable: true, get: function () { return GeomapWidgetRequest_1.GeomapWidgetRequest; } })); +var GraphSnapshot_1 = __nccwpck_require__(10907); +Object.defineProperty(exports, "GraphSnapshot", ({ enumerable: true, get: function () { return GraphSnapshot_1.GraphSnapshot; } })); +var GroupWidgetDefinition_1 = __nccwpck_require__(86757); +Object.defineProperty(exports, "GroupWidgetDefinition", ({ enumerable: true, get: function () { return GroupWidgetDefinition_1.GroupWidgetDefinition; } })); +var HeatMapWidgetDefinition_1 = __nccwpck_require__(37398); +Object.defineProperty(exports, "HeatMapWidgetDefinition", ({ enumerable: true, get: function () { return HeatMapWidgetDefinition_1.HeatMapWidgetDefinition; } })); +var HeatMapWidgetRequest_1 = __nccwpck_require__(49846); +Object.defineProperty(exports, "HeatMapWidgetRequest", ({ enumerable: true, get: function () { return HeatMapWidgetRequest_1.HeatMapWidgetRequest; } })); +var Host_1 = __nccwpck_require__(37585); +Object.defineProperty(exports, "Host", ({ enumerable: true, get: function () { return Host_1.Host; } })); +var HostListResponse_1 = __nccwpck_require__(91494); +Object.defineProperty(exports, "HostListResponse", ({ enumerable: true, get: function () { return HostListResponse_1.HostListResponse; } })); +var HostMapRequest_1 = __nccwpck_require__(6402); +Object.defineProperty(exports, "HostMapRequest", ({ enumerable: true, get: function () { return HostMapRequest_1.HostMapRequest; } })); +var HostMapWidgetDefinition_1 = __nccwpck_require__(6326); +Object.defineProperty(exports, "HostMapWidgetDefinition", ({ enumerable: true, get: function () { return HostMapWidgetDefinition_1.HostMapWidgetDefinition; } })); +var HostMapWidgetDefinitionRequests_1 = __nccwpck_require__(91608); +Object.defineProperty(exports, "HostMapWidgetDefinitionRequests", ({ enumerable: true, get: function () { return HostMapWidgetDefinitionRequests_1.HostMapWidgetDefinitionRequests; } })); +var HostMapWidgetDefinitionStyle_1 = __nccwpck_require__(6177); +Object.defineProperty(exports, "HostMapWidgetDefinitionStyle", ({ enumerable: true, get: function () { return HostMapWidgetDefinitionStyle_1.HostMapWidgetDefinitionStyle; } })); +var HostMeta_1 = __nccwpck_require__(34168); +Object.defineProperty(exports, "HostMeta", ({ enumerable: true, get: function () { return HostMeta_1.HostMeta; } })); +var HostMetaInstallMethod_1 = __nccwpck_require__(20188); +Object.defineProperty(exports, "HostMetaInstallMethod", ({ enumerable: true, get: function () { return HostMetaInstallMethod_1.HostMetaInstallMethod; } })); +var HostMetrics_1 = __nccwpck_require__(65528); +Object.defineProperty(exports, "HostMetrics", ({ enumerable: true, get: function () { return HostMetrics_1.HostMetrics; } })); +var HostMuteResponse_1 = __nccwpck_require__(69787); +Object.defineProperty(exports, "HostMuteResponse", ({ enumerable: true, get: function () { return HostMuteResponse_1.HostMuteResponse; } })); +var HostMuteSettings_1 = __nccwpck_require__(70293); +Object.defineProperty(exports, "HostMuteSettings", ({ enumerable: true, get: function () { return HostMuteSettings_1.HostMuteSettings; } })); +var HostTags_1 = __nccwpck_require__(7436); +Object.defineProperty(exports, "HostTags", ({ enumerable: true, get: function () { return HostTags_1.HostTags; } })); +var HostTotals_1 = __nccwpck_require__(5210); +Object.defineProperty(exports, "HostTotals", ({ enumerable: true, get: function () { return HostTotals_1.HostTotals; } })); +var HourlyUsageAttributionBody_1 = __nccwpck_require__(32354); +Object.defineProperty(exports, "HourlyUsageAttributionBody", ({ enumerable: true, get: function () { return HourlyUsageAttributionBody_1.HourlyUsageAttributionBody; } })); +var HourlyUsageAttributionMetadata_1 = __nccwpck_require__(77915); +Object.defineProperty(exports, "HourlyUsageAttributionMetadata", ({ enumerable: true, get: function () { return HourlyUsageAttributionMetadata_1.HourlyUsageAttributionMetadata; } })); +var HourlyUsageAttributionPagination_1 = __nccwpck_require__(35054); +Object.defineProperty(exports, "HourlyUsageAttributionPagination", ({ enumerable: true, get: function () { return HourlyUsageAttributionPagination_1.HourlyUsageAttributionPagination; } })); +var HourlyUsageAttributionResponse_1 = __nccwpck_require__(89525); +Object.defineProperty(exports, "HourlyUsageAttributionResponse", ({ enumerable: true, get: function () { return HourlyUsageAttributionResponse_1.HourlyUsageAttributionResponse; } })); +var HTTPLogError_1 = __nccwpck_require__(86791); +Object.defineProperty(exports, "HTTPLogError", ({ enumerable: true, get: function () { return HTTPLogError_1.HTTPLogError; } })); +var HTTPLogItem_1 = __nccwpck_require__(7790); +Object.defineProperty(exports, "HTTPLogItem", ({ enumerable: true, get: function () { return HTTPLogItem_1.HTTPLogItem; } })); +var IdpFormData_1 = __nccwpck_require__(57690); +Object.defineProperty(exports, "IdpFormData", ({ enumerable: true, get: function () { return IdpFormData_1.IdpFormData; } })); +var IdpResponse_1 = __nccwpck_require__(79335); +Object.defineProperty(exports, "IdpResponse", ({ enumerable: true, get: function () { return IdpResponse_1.IdpResponse; } })); +var IFrameWidgetDefinition_1 = __nccwpck_require__(41698); +Object.defineProperty(exports, "IFrameWidgetDefinition", ({ enumerable: true, get: function () { return IFrameWidgetDefinition_1.IFrameWidgetDefinition; } })); +var ImageWidgetDefinition_1 = __nccwpck_require__(60275); +Object.defineProperty(exports, "ImageWidgetDefinition", ({ enumerable: true, get: function () { return ImageWidgetDefinition_1.ImageWidgetDefinition; } })); +var IntakePayloadAccepted_1 = __nccwpck_require__(41196); +Object.defineProperty(exports, "IntakePayloadAccepted", ({ enumerable: true, get: function () { return IntakePayloadAccepted_1.IntakePayloadAccepted; } })); +var IPPrefixesAgents_1 = __nccwpck_require__(87908); +Object.defineProperty(exports, "IPPrefixesAgents", ({ enumerable: true, get: function () { return IPPrefixesAgents_1.IPPrefixesAgents; } })); +var IPPrefixesAPI_1 = __nccwpck_require__(22500); +Object.defineProperty(exports, "IPPrefixesAPI", ({ enumerable: true, get: function () { return IPPrefixesAPI_1.IPPrefixesAPI; } })); +var IPPrefixesAPM_1 = __nccwpck_require__(89880); +Object.defineProperty(exports, "IPPrefixesAPM", ({ enumerable: true, get: function () { return IPPrefixesAPM_1.IPPrefixesAPM; } })); +var IPPrefixesGlobal_1 = __nccwpck_require__(21553); +Object.defineProperty(exports, "IPPrefixesGlobal", ({ enumerable: true, get: function () { return IPPrefixesGlobal_1.IPPrefixesGlobal; } })); +var IPPrefixesLogs_1 = __nccwpck_require__(65857); +Object.defineProperty(exports, "IPPrefixesLogs", ({ enumerable: true, get: function () { return IPPrefixesLogs_1.IPPrefixesLogs; } })); +var IPPrefixesOrchestrator_1 = __nccwpck_require__(94962); +Object.defineProperty(exports, "IPPrefixesOrchestrator", ({ enumerable: true, get: function () { return IPPrefixesOrchestrator_1.IPPrefixesOrchestrator; } })); +var IPPrefixesProcess_1 = __nccwpck_require__(83181); +Object.defineProperty(exports, "IPPrefixesProcess", ({ enumerable: true, get: function () { return IPPrefixesProcess_1.IPPrefixesProcess; } })); +var IPPrefixesRemoteConfiguration_1 = __nccwpck_require__(85064); +Object.defineProperty(exports, "IPPrefixesRemoteConfiguration", ({ enumerable: true, get: function () { return IPPrefixesRemoteConfiguration_1.IPPrefixesRemoteConfiguration; } })); +var IPPrefixesSynthetics_1 = __nccwpck_require__(61442); +Object.defineProperty(exports, "IPPrefixesSynthetics", ({ enumerable: true, get: function () { return IPPrefixesSynthetics_1.IPPrefixesSynthetics; } })); +var IPPrefixesSyntheticsPrivateLocations_1 = __nccwpck_require__(55411); +Object.defineProperty(exports, "IPPrefixesSyntheticsPrivateLocations", ({ enumerable: true, get: function () { return IPPrefixesSyntheticsPrivateLocations_1.IPPrefixesSyntheticsPrivateLocations; } })); +var IPPrefixesWebhooks_1 = __nccwpck_require__(75876); +Object.defineProperty(exports, "IPPrefixesWebhooks", ({ enumerable: true, get: function () { return IPPrefixesWebhooks_1.IPPrefixesWebhooks; } })); +var IPRanges_1 = __nccwpck_require__(78560); +Object.defineProperty(exports, "IPRanges", ({ enumerable: true, get: function () { return IPRanges_1.IPRanges; } })); +var ListStreamColumn_1 = __nccwpck_require__(57985); +Object.defineProperty(exports, "ListStreamColumn", ({ enumerable: true, get: function () { return ListStreamColumn_1.ListStreamColumn; } })); +var ListStreamComputeItems_1 = __nccwpck_require__(63980); +Object.defineProperty(exports, "ListStreamComputeItems", ({ enumerable: true, get: function () { return ListStreamComputeItems_1.ListStreamComputeItems; } })); +var ListStreamGroupByItems_1 = __nccwpck_require__(92737); +Object.defineProperty(exports, "ListStreamGroupByItems", ({ enumerable: true, get: function () { return ListStreamGroupByItems_1.ListStreamGroupByItems; } })); +var ListStreamQuery_1 = __nccwpck_require__(67039); +Object.defineProperty(exports, "ListStreamQuery", ({ enumerable: true, get: function () { return ListStreamQuery_1.ListStreamQuery; } })); +var ListStreamWidgetDefinition_1 = __nccwpck_require__(41306); +Object.defineProperty(exports, "ListStreamWidgetDefinition", ({ enumerable: true, get: function () { return ListStreamWidgetDefinition_1.ListStreamWidgetDefinition; } })); +var ListStreamWidgetRequest_1 = __nccwpck_require__(52202); +Object.defineProperty(exports, "ListStreamWidgetRequest", ({ enumerable: true, get: function () { return ListStreamWidgetRequest_1.ListStreamWidgetRequest; } })); +var Log_1 = __nccwpck_require__(23137); +Object.defineProperty(exports, "Log", ({ enumerable: true, get: function () { return Log_1.Log; } })); +var LogContent_1 = __nccwpck_require__(90700); +Object.defineProperty(exports, "LogContent", ({ enumerable: true, get: function () { return LogContent_1.LogContent; } })); +var LogQueryDefinition_1 = __nccwpck_require__(90432); +Object.defineProperty(exports, "LogQueryDefinition", ({ enumerable: true, get: function () { return LogQueryDefinition_1.LogQueryDefinition; } })); +var LogQueryDefinitionGroupBy_1 = __nccwpck_require__(7200); +Object.defineProperty(exports, "LogQueryDefinitionGroupBy", ({ enumerable: true, get: function () { return LogQueryDefinitionGroupBy_1.LogQueryDefinitionGroupBy; } })); +var LogQueryDefinitionGroupBySort_1 = __nccwpck_require__(52776); +Object.defineProperty(exports, "LogQueryDefinitionGroupBySort", ({ enumerable: true, get: function () { return LogQueryDefinitionGroupBySort_1.LogQueryDefinitionGroupBySort; } })); +var LogQueryDefinitionSearch_1 = __nccwpck_require__(85824); +Object.defineProperty(exports, "LogQueryDefinitionSearch", ({ enumerable: true, get: function () { return LogQueryDefinitionSearch_1.LogQueryDefinitionSearch; } })); +var LogsAPIError_1 = __nccwpck_require__(48050); +Object.defineProperty(exports, "LogsAPIError", ({ enumerable: true, get: function () { return LogsAPIError_1.LogsAPIError; } })); +var LogsAPIErrorResponse_1 = __nccwpck_require__(75989); +Object.defineProperty(exports, "LogsAPIErrorResponse", ({ enumerable: true, get: function () { return LogsAPIErrorResponse_1.LogsAPIErrorResponse; } })); +var LogsArithmeticProcessor_1 = __nccwpck_require__(35982); +Object.defineProperty(exports, "LogsArithmeticProcessor", ({ enumerable: true, get: function () { return LogsArithmeticProcessor_1.LogsArithmeticProcessor; } })); +var LogsAttributeRemapper_1 = __nccwpck_require__(13478); +Object.defineProperty(exports, "LogsAttributeRemapper", ({ enumerable: true, get: function () { return LogsAttributeRemapper_1.LogsAttributeRemapper; } })); +var LogsByRetention_1 = __nccwpck_require__(37687); +Object.defineProperty(exports, "LogsByRetention", ({ enumerable: true, get: function () { return LogsByRetention_1.LogsByRetention; } })); +var LogsByRetentionMonthlyUsage_1 = __nccwpck_require__(28023); +Object.defineProperty(exports, "LogsByRetentionMonthlyUsage", ({ enumerable: true, get: function () { return LogsByRetentionMonthlyUsage_1.LogsByRetentionMonthlyUsage; } })); +var LogsByRetentionOrgs_1 = __nccwpck_require__(95532); +Object.defineProperty(exports, "LogsByRetentionOrgs", ({ enumerable: true, get: function () { return LogsByRetentionOrgs_1.LogsByRetentionOrgs; } })); +var LogsByRetentionOrgUsage_1 = __nccwpck_require__(22642); +Object.defineProperty(exports, "LogsByRetentionOrgUsage", ({ enumerable: true, get: function () { return LogsByRetentionOrgUsage_1.LogsByRetentionOrgUsage; } })); +var LogsCategoryProcessor_1 = __nccwpck_require__(56126); +Object.defineProperty(exports, "LogsCategoryProcessor", ({ enumerable: true, get: function () { return LogsCategoryProcessor_1.LogsCategoryProcessor; } })); +var LogsCategoryProcessorCategory_1 = __nccwpck_require__(92642); +Object.defineProperty(exports, "LogsCategoryProcessorCategory", ({ enumerable: true, get: function () { return LogsCategoryProcessorCategory_1.LogsCategoryProcessorCategory; } })); +var LogsDailyLimitReset_1 = __nccwpck_require__(54353); +Object.defineProperty(exports, "LogsDailyLimitReset", ({ enumerable: true, get: function () { return LogsDailyLimitReset_1.LogsDailyLimitReset; } })); +var LogsDateRemapper_1 = __nccwpck_require__(91096); +Object.defineProperty(exports, "LogsDateRemapper", ({ enumerable: true, get: function () { return LogsDateRemapper_1.LogsDateRemapper; } })); +var LogsExclusion_1 = __nccwpck_require__(28818); +Object.defineProperty(exports, "LogsExclusion", ({ enumerable: true, get: function () { return LogsExclusion_1.LogsExclusion; } })); +var LogsExclusionFilter_1 = __nccwpck_require__(35200); +Object.defineProperty(exports, "LogsExclusionFilter", ({ enumerable: true, get: function () { return LogsExclusionFilter_1.LogsExclusionFilter; } })); +var LogsFilter_1 = __nccwpck_require__(7466); +Object.defineProperty(exports, "LogsFilter", ({ enumerable: true, get: function () { return LogsFilter_1.LogsFilter; } })); +var LogsGeoIPParser_1 = __nccwpck_require__(93457); +Object.defineProperty(exports, "LogsGeoIPParser", ({ enumerable: true, get: function () { return LogsGeoIPParser_1.LogsGeoIPParser; } })); +var LogsGrokParser_1 = __nccwpck_require__(796); +Object.defineProperty(exports, "LogsGrokParser", ({ enumerable: true, get: function () { return LogsGrokParser_1.LogsGrokParser; } })); +var LogsGrokParserRules_1 = __nccwpck_require__(72849); +Object.defineProperty(exports, "LogsGrokParserRules", ({ enumerable: true, get: function () { return LogsGrokParserRules_1.LogsGrokParserRules; } })); +var LogsIndex_1 = __nccwpck_require__(39182); +Object.defineProperty(exports, "LogsIndex", ({ enumerable: true, get: function () { return LogsIndex_1.LogsIndex; } })); +var LogsIndexesOrder_1 = __nccwpck_require__(98128); +Object.defineProperty(exports, "LogsIndexesOrder", ({ enumerable: true, get: function () { return LogsIndexesOrder_1.LogsIndexesOrder; } })); +var LogsIndexListResponse_1 = __nccwpck_require__(80005); +Object.defineProperty(exports, "LogsIndexListResponse", ({ enumerable: true, get: function () { return LogsIndexListResponse_1.LogsIndexListResponse; } })); +var LogsIndexUpdateRequest_1 = __nccwpck_require__(77406); +Object.defineProperty(exports, "LogsIndexUpdateRequest", ({ enumerable: true, get: function () { return LogsIndexUpdateRequest_1.LogsIndexUpdateRequest; } })); +var LogsListRequest_1 = __nccwpck_require__(91287); +Object.defineProperty(exports, "LogsListRequest", ({ enumerable: true, get: function () { return LogsListRequest_1.LogsListRequest; } })); +var LogsListRequestTime_1 = __nccwpck_require__(58066); +Object.defineProperty(exports, "LogsListRequestTime", ({ enumerable: true, get: function () { return LogsListRequestTime_1.LogsListRequestTime; } })); +var LogsListResponse_1 = __nccwpck_require__(46627); +Object.defineProperty(exports, "LogsListResponse", ({ enumerable: true, get: function () { return LogsListResponse_1.LogsListResponse; } })); +var LogsLookupProcessor_1 = __nccwpck_require__(14568); +Object.defineProperty(exports, "LogsLookupProcessor", ({ enumerable: true, get: function () { return LogsLookupProcessor_1.LogsLookupProcessor; } })); +var LogsMessageRemapper_1 = __nccwpck_require__(65597); +Object.defineProperty(exports, "LogsMessageRemapper", ({ enumerable: true, get: function () { return LogsMessageRemapper_1.LogsMessageRemapper; } })); +var LogsPipeline_1 = __nccwpck_require__(22250); +Object.defineProperty(exports, "LogsPipeline", ({ enumerable: true, get: function () { return LogsPipeline_1.LogsPipeline; } })); +var LogsPipelineProcessor_1 = __nccwpck_require__(85848); +Object.defineProperty(exports, "LogsPipelineProcessor", ({ enumerable: true, get: function () { return LogsPipelineProcessor_1.LogsPipelineProcessor; } })); +var LogsPipelinesOrder_1 = __nccwpck_require__(87121); +Object.defineProperty(exports, "LogsPipelinesOrder", ({ enumerable: true, get: function () { return LogsPipelinesOrder_1.LogsPipelinesOrder; } })); +var LogsQueryCompute_1 = __nccwpck_require__(22653); +Object.defineProperty(exports, "LogsQueryCompute", ({ enumerable: true, get: function () { return LogsQueryCompute_1.LogsQueryCompute; } })); +var LogsRetentionAggSumUsage_1 = __nccwpck_require__(59725); +Object.defineProperty(exports, "LogsRetentionAggSumUsage", ({ enumerable: true, get: function () { return LogsRetentionAggSumUsage_1.LogsRetentionAggSumUsage; } })); +var LogsRetentionSumUsage_1 = __nccwpck_require__(36430); +Object.defineProperty(exports, "LogsRetentionSumUsage", ({ enumerable: true, get: function () { return LogsRetentionSumUsage_1.LogsRetentionSumUsage; } })); +var LogsServiceRemapper_1 = __nccwpck_require__(30713); +Object.defineProperty(exports, "LogsServiceRemapper", ({ enumerable: true, get: function () { return LogsServiceRemapper_1.LogsServiceRemapper; } })); +var LogsStatusRemapper_1 = __nccwpck_require__(63906); +Object.defineProperty(exports, "LogsStatusRemapper", ({ enumerable: true, get: function () { return LogsStatusRemapper_1.LogsStatusRemapper; } })); +var LogsStringBuilderProcessor_1 = __nccwpck_require__(68060); +Object.defineProperty(exports, "LogsStringBuilderProcessor", ({ enumerable: true, get: function () { return LogsStringBuilderProcessor_1.LogsStringBuilderProcessor; } })); +var LogsTraceRemapper_1 = __nccwpck_require__(45791); +Object.defineProperty(exports, "LogsTraceRemapper", ({ enumerable: true, get: function () { return LogsTraceRemapper_1.LogsTraceRemapper; } })); +var LogStreamWidgetDefinition_1 = __nccwpck_require__(71016); +Object.defineProperty(exports, "LogStreamWidgetDefinition", ({ enumerable: true, get: function () { return LogStreamWidgetDefinition_1.LogStreamWidgetDefinition; } })); +var LogsURLParser_1 = __nccwpck_require__(70308); +Object.defineProperty(exports, "LogsURLParser", ({ enumerable: true, get: function () { return LogsURLParser_1.LogsURLParser; } })); +var LogsUserAgentParser_1 = __nccwpck_require__(65013); +Object.defineProperty(exports, "LogsUserAgentParser", ({ enumerable: true, get: function () { return LogsUserAgentParser_1.LogsUserAgentParser; } })); +var MatchingDowntime_1 = __nccwpck_require__(36705); +Object.defineProperty(exports, "MatchingDowntime", ({ enumerable: true, get: function () { return MatchingDowntime_1.MatchingDowntime; } })); +var MetricMetadata_1 = __nccwpck_require__(7942); +Object.defineProperty(exports, "MetricMetadata", ({ enumerable: true, get: function () { return MetricMetadata_1.MetricMetadata; } })); +var MetricSearchResponse_1 = __nccwpck_require__(24752); +Object.defineProperty(exports, "MetricSearchResponse", ({ enumerable: true, get: function () { return MetricSearchResponse_1.MetricSearchResponse; } })); +var MetricSearchResponseResults_1 = __nccwpck_require__(44800); +Object.defineProperty(exports, "MetricSearchResponseResults", ({ enumerable: true, get: function () { return MetricSearchResponseResults_1.MetricSearchResponseResults; } })); +var MetricsListResponse_1 = __nccwpck_require__(6297); +Object.defineProperty(exports, "MetricsListResponse", ({ enumerable: true, get: function () { return MetricsListResponse_1.MetricsListResponse; } })); +var MetricsPayload_1 = __nccwpck_require__(36690); +Object.defineProperty(exports, "MetricsPayload", ({ enumerable: true, get: function () { return MetricsPayload_1.MetricsPayload; } })); +var MetricsQueryMetadata_1 = __nccwpck_require__(57493); +Object.defineProperty(exports, "MetricsQueryMetadata", ({ enumerable: true, get: function () { return MetricsQueryMetadata_1.MetricsQueryMetadata; } })); +var MetricsQueryResponse_1 = __nccwpck_require__(48235); +Object.defineProperty(exports, "MetricsQueryResponse", ({ enumerable: true, get: function () { return MetricsQueryResponse_1.MetricsQueryResponse; } })); +var MetricsQueryUnit_1 = __nccwpck_require__(82974); +Object.defineProperty(exports, "MetricsQueryUnit", ({ enumerable: true, get: function () { return MetricsQueryUnit_1.MetricsQueryUnit; } })); +var Monitor_1 = __nccwpck_require__(41245); +Object.defineProperty(exports, "Monitor", ({ enumerable: true, get: function () { return Monitor_1.Monitor; } })); +var MonitorFormulaAndFunctionEventQueryDefinition_1 = __nccwpck_require__(45643); +Object.defineProperty(exports, "MonitorFormulaAndFunctionEventQueryDefinition", ({ enumerable: true, get: function () { return MonitorFormulaAndFunctionEventQueryDefinition_1.MonitorFormulaAndFunctionEventQueryDefinition; } })); +var MonitorFormulaAndFunctionEventQueryDefinitionCompute_1 = __nccwpck_require__(7486); +Object.defineProperty(exports, "MonitorFormulaAndFunctionEventQueryDefinitionCompute", ({ enumerable: true, get: function () { return MonitorFormulaAndFunctionEventQueryDefinitionCompute_1.MonitorFormulaAndFunctionEventQueryDefinitionCompute; } })); +var MonitorFormulaAndFunctionEventQueryDefinitionSearch_1 = __nccwpck_require__(70975); +Object.defineProperty(exports, "MonitorFormulaAndFunctionEventQueryDefinitionSearch", ({ enumerable: true, get: function () { return MonitorFormulaAndFunctionEventQueryDefinitionSearch_1.MonitorFormulaAndFunctionEventQueryDefinitionSearch; } })); +var MonitorFormulaAndFunctionEventQueryGroupBy_1 = __nccwpck_require__(53246); +Object.defineProperty(exports, "MonitorFormulaAndFunctionEventQueryGroupBy", ({ enumerable: true, get: function () { return MonitorFormulaAndFunctionEventQueryGroupBy_1.MonitorFormulaAndFunctionEventQueryGroupBy; } })); +var MonitorFormulaAndFunctionEventQueryGroupBySort_1 = __nccwpck_require__(28578); +Object.defineProperty(exports, "MonitorFormulaAndFunctionEventQueryGroupBySort", ({ enumerable: true, get: function () { return MonitorFormulaAndFunctionEventQueryGroupBySort_1.MonitorFormulaAndFunctionEventQueryGroupBySort; } })); +var MonitorGroupSearchResponse_1 = __nccwpck_require__(97525); +Object.defineProperty(exports, "MonitorGroupSearchResponse", ({ enumerable: true, get: function () { return MonitorGroupSearchResponse_1.MonitorGroupSearchResponse; } })); +var MonitorGroupSearchResponseCounts_1 = __nccwpck_require__(75833); +Object.defineProperty(exports, "MonitorGroupSearchResponseCounts", ({ enumerable: true, get: function () { return MonitorGroupSearchResponseCounts_1.MonitorGroupSearchResponseCounts; } })); +var MonitorGroupSearchResult_1 = __nccwpck_require__(72407); +Object.defineProperty(exports, "MonitorGroupSearchResult", ({ enumerable: true, get: function () { return MonitorGroupSearchResult_1.MonitorGroupSearchResult; } })); +var MonitorOptions_1 = __nccwpck_require__(92067); +Object.defineProperty(exports, "MonitorOptions", ({ enumerable: true, get: function () { return MonitorOptions_1.MonitorOptions; } })); +var MonitorOptionsAggregation_1 = __nccwpck_require__(55033); +Object.defineProperty(exports, "MonitorOptionsAggregation", ({ enumerable: true, get: function () { return MonitorOptionsAggregation_1.MonitorOptionsAggregation; } })); +var MonitorOptionsCustomSchedule_1 = __nccwpck_require__(34873); +Object.defineProperty(exports, "MonitorOptionsCustomSchedule", ({ enumerable: true, get: function () { return MonitorOptionsCustomSchedule_1.MonitorOptionsCustomSchedule; } })); +var MonitorOptionsCustomScheduleRecurrence_1 = __nccwpck_require__(48067); +Object.defineProperty(exports, "MonitorOptionsCustomScheduleRecurrence", ({ enumerable: true, get: function () { return MonitorOptionsCustomScheduleRecurrence_1.MonitorOptionsCustomScheduleRecurrence; } })); +var MonitorOptionsSchedulingOptions_1 = __nccwpck_require__(10235); +Object.defineProperty(exports, "MonitorOptionsSchedulingOptions", ({ enumerable: true, get: function () { return MonitorOptionsSchedulingOptions_1.MonitorOptionsSchedulingOptions; } })); +var MonitorOptionsSchedulingOptionsEvaluationWindow_1 = __nccwpck_require__(71205); +Object.defineProperty(exports, "MonitorOptionsSchedulingOptionsEvaluationWindow", ({ enumerable: true, get: function () { return MonitorOptionsSchedulingOptionsEvaluationWindow_1.MonitorOptionsSchedulingOptionsEvaluationWindow; } })); +var MonitorSearchCountItem_1 = __nccwpck_require__(12749); +Object.defineProperty(exports, "MonitorSearchCountItem", ({ enumerable: true, get: function () { return MonitorSearchCountItem_1.MonitorSearchCountItem; } })); +var MonitorSearchResponse_1 = __nccwpck_require__(15790); +Object.defineProperty(exports, "MonitorSearchResponse", ({ enumerable: true, get: function () { return MonitorSearchResponse_1.MonitorSearchResponse; } })); +var MonitorSearchResponseCounts_1 = __nccwpck_require__(2942); +Object.defineProperty(exports, "MonitorSearchResponseCounts", ({ enumerable: true, get: function () { return MonitorSearchResponseCounts_1.MonitorSearchResponseCounts; } })); +var MonitorSearchResponseMetadata_1 = __nccwpck_require__(51711); +Object.defineProperty(exports, "MonitorSearchResponseMetadata", ({ enumerable: true, get: function () { return MonitorSearchResponseMetadata_1.MonitorSearchResponseMetadata; } })); +var MonitorSearchResult_1 = __nccwpck_require__(35288); +Object.defineProperty(exports, "MonitorSearchResult", ({ enumerable: true, get: function () { return MonitorSearchResult_1.MonitorSearchResult; } })); +var MonitorSearchResultNotification_1 = __nccwpck_require__(86411); +Object.defineProperty(exports, "MonitorSearchResultNotification", ({ enumerable: true, get: function () { return MonitorSearchResultNotification_1.MonitorSearchResultNotification; } })); +var MonitorState_1 = __nccwpck_require__(2716); +Object.defineProperty(exports, "MonitorState", ({ enumerable: true, get: function () { return MonitorState_1.MonitorState; } })); +var MonitorStateGroup_1 = __nccwpck_require__(61121); +Object.defineProperty(exports, "MonitorStateGroup", ({ enumerable: true, get: function () { return MonitorStateGroup_1.MonitorStateGroup; } })); +var MonitorSummaryWidgetDefinition_1 = __nccwpck_require__(73040); +Object.defineProperty(exports, "MonitorSummaryWidgetDefinition", ({ enumerable: true, get: function () { return MonitorSummaryWidgetDefinition_1.MonitorSummaryWidgetDefinition; } })); +var MonitorThresholds_1 = __nccwpck_require__(88653); +Object.defineProperty(exports, "MonitorThresholds", ({ enumerable: true, get: function () { return MonitorThresholds_1.MonitorThresholds; } })); +var MonitorThresholdWindowOptions_1 = __nccwpck_require__(12734); +Object.defineProperty(exports, "MonitorThresholdWindowOptions", ({ enumerable: true, get: function () { return MonitorThresholdWindowOptions_1.MonitorThresholdWindowOptions; } })); +var MonitorUpdateRequest_1 = __nccwpck_require__(40459); +Object.defineProperty(exports, "MonitorUpdateRequest", ({ enumerable: true, get: function () { return MonitorUpdateRequest_1.MonitorUpdateRequest; } })); +var MonthlyUsageAttributionBody_1 = __nccwpck_require__(41274); +Object.defineProperty(exports, "MonthlyUsageAttributionBody", ({ enumerable: true, get: function () { return MonthlyUsageAttributionBody_1.MonthlyUsageAttributionBody; } })); +var MonthlyUsageAttributionMetadata_1 = __nccwpck_require__(74019); +Object.defineProperty(exports, "MonthlyUsageAttributionMetadata", ({ enumerable: true, get: function () { return MonthlyUsageAttributionMetadata_1.MonthlyUsageAttributionMetadata; } })); +var MonthlyUsageAttributionPagination_1 = __nccwpck_require__(33142); +Object.defineProperty(exports, "MonthlyUsageAttributionPagination", ({ enumerable: true, get: function () { return MonthlyUsageAttributionPagination_1.MonthlyUsageAttributionPagination; } })); +var MonthlyUsageAttributionResponse_1 = __nccwpck_require__(2445); +Object.defineProperty(exports, "MonthlyUsageAttributionResponse", ({ enumerable: true, get: function () { return MonthlyUsageAttributionResponse_1.MonthlyUsageAttributionResponse; } })); +var MonthlyUsageAttributionValues_1 = __nccwpck_require__(27876); +Object.defineProperty(exports, "MonthlyUsageAttributionValues", ({ enumerable: true, get: function () { return MonthlyUsageAttributionValues_1.MonthlyUsageAttributionValues; } })); +var NotebookAbsoluteTime_1 = __nccwpck_require__(81294); +Object.defineProperty(exports, "NotebookAbsoluteTime", ({ enumerable: true, get: function () { return NotebookAbsoluteTime_1.NotebookAbsoluteTime; } })); +var NotebookAuthor_1 = __nccwpck_require__(20393); +Object.defineProperty(exports, "NotebookAuthor", ({ enumerable: true, get: function () { return NotebookAuthor_1.NotebookAuthor; } })); +var NotebookCellCreateRequest_1 = __nccwpck_require__(23237); +Object.defineProperty(exports, "NotebookCellCreateRequest", ({ enumerable: true, get: function () { return NotebookCellCreateRequest_1.NotebookCellCreateRequest; } })); +var NotebookCellResponse_1 = __nccwpck_require__(91601); +Object.defineProperty(exports, "NotebookCellResponse", ({ enumerable: true, get: function () { return NotebookCellResponse_1.NotebookCellResponse; } })); +var NotebookCellUpdateRequest_1 = __nccwpck_require__(57134); +Object.defineProperty(exports, "NotebookCellUpdateRequest", ({ enumerable: true, get: function () { return NotebookCellUpdateRequest_1.NotebookCellUpdateRequest; } })); +var NotebookCreateData_1 = __nccwpck_require__(26694); +Object.defineProperty(exports, "NotebookCreateData", ({ enumerable: true, get: function () { return NotebookCreateData_1.NotebookCreateData; } })); +var NotebookCreateDataAttributes_1 = __nccwpck_require__(12979); +Object.defineProperty(exports, "NotebookCreateDataAttributes", ({ enumerable: true, get: function () { return NotebookCreateDataAttributes_1.NotebookCreateDataAttributes; } })); +var NotebookCreateRequest_1 = __nccwpck_require__(67133); +Object.defineProperty(exports, "NotebookCreateRequest", ({ enumerable: true, get: function () { return NotebookCreateRequest_1.NotebookCreateRequest; } })); +var NotebookDistributionCellAttributes_1 = __nccwpck_require__(71629); +Object.defineProperty(exports, "NotebookDistributionCellAttributes", ({ enumerable: true, get: function () { return NotebookDistributionCellAttributes_1.NotebookDistributionCellAttributes; } })); +var NotebookHeatMapCellAttributes_1 = __nccwpck_require__(93413); +Object.defineProperty(exports, "NotebookHeatMapCellAttributes", ({ enumerable: true, get: function () { return NotebookHeatMapCellAttributes_1.NotebookHeatMapCellAttributes; } })); +var NotebookLogStreamCellAttributes_1 = __nccwpck_require__(15599); +Object.defineProperty(exports, "NotebookLogStreamCellAttributes", ({ enumerable: true, get: function () { return NotebookLogStreamCellAttributes_1.NotebookLogStreamCellAttributes; } })); +var NotebookMarkdownCellAttributes_1 = __nccwpck_require__(8538); +Object.defineProperty(exports, "NotebookMarkdownCellAttributes", ({ enumerable: true, get: function () { return NotebookMarkdownCellAttributes_1.NotebookMarkdownCellAttributes; } })); +var NotebookMarkdownCellDefinition_1 = __nccwpck_require__(96930); +Object.defineProperty(exports, "NotebookMarkdownCellDefinition", ({ enumerable: true, get: function () { return NotebookMarkdownCellDefinition_1.NotebookMarkdownCellDefinition; } })); +var NotebookMetadata_1 = __nccwpck_require__(58695); +Object.defineProperty(exports, "NotebookMetadata", ({ enumerable: true, get: function () { return NotebookMetadata_1.NotebookMetadata; } })); +var NotebookRelativeTime_1 = __nccwpck_require__(55731); +Object.defineProperty(exports, "NotebookRelativeTime", ({ enumerable: true, get: function () { return NotebookRelativeTime_1.NotebookRelativeTime; } })); +var NotebookResponse_1 = __nccwpck_require__(13945); +Object.defineProperty(exports, "NotebookResponse", ({ enumerable: true, get: function () { return NotebookResponse_1.NotebookResponse; } })); +var NotebookResponseData_1 = __nccwpck_require__(45353); +Object.defineProperty(exports, "NotebookResponseData", ({ enumerable: true, get: function () { return NotebookResponseData_1.NotebookResponseData; } })); +var NotebookResponseDataAttributes_1 = __nccwpck_require__(32312); +Object.defineProperty(exports, "NotebookResponseDataAttributes", ({ enumerable: true, get: function () { return NotebookResponseDataAttributes_1.NotebookResponseDataAttributes; } })); +var NotebookSplitBy_1 = __nccwpck_require__(52161); +Object.defineProperty(exports, "NotebookSplitBy", ({ enumerable: true, get: function () { return NotebookSplitBy_1.NotebookSplitBy; } })); +var NotebooksResponse_1 = __nccwpck_require__(58590); +Object.defineProperty(exports, "NotebooksResponse", ({ enumerable: true, get: function () { return NotebooksResponse_1.NotebooksResponse; } })); +var NotebooksResponseData_1 = __nccwpck_require__(97646); +Object.defineProperty(exports, "NotebooksResponseData", ({ enumerable: true, get: function () { return NotebooksResponseData_1.NotebooksResponseData; } })); +var NotebooksResponseDataAttributes_1 = __nccwpck_require__(22091); +Object.defineProperty(exports, "NotebooksResponseDataAttributes", ({ enumerable: true, get: function () { return NotebooksResponseDataAttributes_1.NotebooksResponseDataAttributes; } })); +var NotebooksResponseMeta_1 = __nccwpck_require__(34759); +Object.defineProperty(exports, "NotebooksResponseMeta", ({ enumerable: true, get: function () { return NotebooksResponseMeta_1.NotebooksResponseMeta; } })); +var NotebooksResponsePage_1 = __nccwpck_require__(12553); +Object.defineProperty(exports, "NotebooksResponsePage", ({ enumerable: true, get: function () { return NotebooksResponsePage_1.NotebooksResponsePage; } })); +var NotebookTimeseriesCellAttributes_1 = __nccwpck_require__(86711); +Object.defineProperty(exports, "NotebookTimeseriesCellAttributes", ({ enumerable: true, get: function () { return NotebookTimeseriesCellAttributes_1.NotebookTimeseriesCellAttributes; } })); +var NotebookToplistCellAttributes_1 = __nccwpck_require__(18274); +Object.defineProperty(exports, "NotebookToplistCellAttributes", ({ enumerable: true, get: function () { return NotebookToplistCellAttributes_1.NotebookToplistCellAttributes; } })); +var NotebookUpdateData_1 = __nccwpck_require__(29251); +Object.defineProperty(exports, "NotebookUpdateData", ({ enumerable: true, get: function () { return NotebookUpdateData_1.NotebookUpdateData; } })); +var NotebookUpdateDataAttributes_1 = __nccwpck_require__(41894); +Object.defineProperty(exports, "NotebookUpdateDataAttributes", ({ enumerable: true, get: function () { return NotebookUpdateDataAttributes_1.NotebookUpdateDataAttributes; } })); +var NotebookUpdateRequest_1 = __nccwpck_require__(69190); +Object.defineProperty(exports, "NotebookUpdateRequest", ({ enumerable: true, get: function () { return NotebookUpdateRequest_1.NotebookUpdateRequest; } })); +var NoteWidgetDefinition_1 = __nccwpck_require__(74006); +Object.defineProperty(exports, "NoteWidgetDefinition", ({ enumerable: true, get: function () { return NoteWidgetDefinition_1.NoteWidgetDefinition; } })); +var Organization_1 = __nccwpck_require__(90264); +Object.defineProperty(exports, "Organization", ({ enumerable: true, get: function () { return Organization_1.Organization; } })); +var OrganizationBilling_1 = __nccwpck_require__(99181); +Object.defineProperty(exports, "OrganizationBilling", ({ enumerable: true, get: function () { return OrganizationBilling_1.OrganizationBilling; } })); +var OrganizationCreateBody_1 = __nccwpck_require__(89080); +Object.defineProperty(exports, "OrganizationCreateBody", ({ enumerable: true, get: function () { return OrganizationCreateBody_1.OrganizationCreateBody; } })); +var OrganizationCreateResponse_1 = __nccwpck_require__(63831); +Object.defineProperty(exports, "OrganizationCreateResponse", ({ enumerable: true, get: function () { return OrganizationCreateResponse_1.OrganizationCreateResponse; } })); +var OrganizationListResponse_1 = __nccwpck_require__(50487); +Object.defineProperty(exports, "OrganizationListResponse", ({ enumerable: true, get: function () { return OrganizationListResponse_1.OrganizationListResponse; } })); +var OrganizationResponse_1 = __nccwpck_require__(41999); +Object.defineProperty(exports, "OrganizationResponse", ({ enumerable: true, get: function () { return OrganizationResponse_1.OrganizationResponse; } })); +var OrganizationSettings_1 = __nccwpck_require__(79057); +Object.defineProperty(exports, "OrganizationSettings", ({ enumerable: true, get: function () { return OrganizationSettings_1.OrganizationSettings; } })); +var OrganizationSettingsSaml_1 = __nccwpck_require__(72528); +Object.defineProperty(exports, "OrganizationSettingsSaml", ({ enumerable: true, get: function () { return OrganizationSettingsSaml_1.OrganizationSettingsSaml; } })); +var OrganizationSettingsSamlAutocreateUsersDomains_1 = __nccwpck_require__(94810); +Object.defineProperty(exports, "OrganizationSettingsSamlAutocreateUsersDomains", ({ enumerable: true, get: function () { return OrganizationSettingsSamlAutocreateUsersDomains_1.OrganizationSettingsSamlAutocreateUsersDomains; } })); +var OrganizationSettingsSamlIdpInitiatedLogin_1 = __nccwpck_require__(85867); +Object.defineProperty(exports, "OrganizationSettingsSamlIdpInitiatedLogin", ({ enumerable: true, get: function () { return OrganizationSettingsSamlIdpInitiatedLogin_1.OrganizationSettingsSamlIdpInitiatedLogin; } })); +var OrganizationSettingsSamlStrictMode_1 = __nccwpck_require__(37710); +Object.defineProperty(exports, "OrganizationSettingsSamlStrictMode", ({ enumerable: true, get: function () { return OrganizationSettingsSamlStrictMode_1.OrganizationSettingsSamlStrictMode; } })); +var OrganizationSubscription_1 = __nccwpck_require__(97921); +Object.defineProperty(exports, "OrganizationSubscription", ({ enumerable: true, get: function () { return OrganizationSubscription_1.OrganizationSubscription; } })); +var OrgDowngradedResponse_1 = __nccwpck_require__(61367); +Object.defineProperty(exports, "OrgDowngradedResponse", ({ enumerable: true, get: function () { return OrgDowngradedResponse_1.OrgDowngradedResponse; } })); +var PagerDutyService_1 = __nccwpck_require__(29209); +Object.defineProperty(exports, "PagerDutyService", ({ enumerable: true, get: function () { return PagerDutyService_1.PagerDutyService; } })); +var PagerDutyServiceKey_1 = __nccwpck_require__(1862); +Object.defineProperty(exports, "PagerDutyServiceKey", ({ enumerable: true, get: function () { return PagerDutyServiceKey_1.PagerDutyServiceKey; } })); +var PagerDutyServiceName_1 = __nccwpck_require__(75766); +Object.defineProperty(exports, "PagerDutyServiceName", ({ enumerable: true, get: function () { return PagerDutyServiceName_1.PagerDutyServiceName; } })); +var Pagination_1 = __nccwpck_require__(61155); +Object.defineProperty(exports, "Pagination", ({ enumerable: true, get: function () { return Pagination_1.Pagination; } })); +var PowerpackTemplateVariableContents_1 = __nccwpck_require__(66251); +Object.defineProperty(exports, "PowerpackTemplateVariableContents", ({ enumerable: true, get: function () { return PowerpackTemplateVariableContents_1.PowerpackTemplateVariableContents; } })); +var PowerpackTemplateVariables_1 = __nccwpck_require__(38524); +Object.defineProperty(exports, "PowerpackTemplateVariables", ({ enumerable: true, get: function () { return PowerpackTemplateVariables_1.PowerpackTemplateVariables; } })); +var PowerpackWidgetDefinition_1 = __nccwpck_require__(50734); +Object.defineProperty(exports, "PowerpackWidgetDefinition", ({ enumerable: true, get: function () { return PowerpackWidgetDefinition_1.PowerpackWidgetDefinition; } })); +var ProcessQueryDefinition_1 = __nccwpck_require__(21949); +Object.defineProperty(exports, "ProcessQueryDefinition", ({ enumerable: true, get: function () { return ProcessQueryDefinition_1.ProcessQueryDefinition; } })); +var QueryValueWidgetDefinition_1 = __nccwpck_require__(92467); +Object.defineProperty(exports, "QueryValueWidgetDefinition", ({ enumerable: true, get: function () { return QueryValueWidgetDefinition_1.QueryValueWidgetDefinition; } })); +var QueryValueWidgetRequest_1 = __nccwpck_require__(57769); +Object.defineProperty(exports, "QueryValueWidgetRequest", ({ enumerable: true, get: function () { return QueryValueWidgetRequest_1.QueryValueWidgetRequest; } })); +var ReferenceTableLogsLookupProcessor_1 = __nccwpck_require__(14157); +Object.defineProperty(exports, "ReferenceTableLogsLookupProcessor", ({ enumerable: true, get: function () { return ReferenceTableLogsLookupProcessor_1.ReferenceTableLogsLookupProcessor; } })); +var ResponseMetaAttributes_1 = __nccwpck_require__(50416); +Object.defineProperty(exports, "ResponseMetaAttributes", ({ enumerable: true, get: function () { return ResponseMetaAttributes_1.ResponseMetaAttributes; } })); +var RunWorkflowWidgetDefinition_1 = __nccwpck_require__(42074); +Object.defineProperty(exports, "RunWorkflowWidgetDefinition", ({ enumerable: true, get: function () { return RunWorkflowWidgetDefinition_1.RunWorkflowWidgetDefinition; } })); +var RunWorkflowWidgetInput_1 = __nccwpck_require__(77027); +Object.defineProperty(exports, "RunWorkflowWidgetInput", ({ enumerable: true, get: function () { return RunWorkflowWidgetInput_1.RunWorkflowWidgetInput; } })); +var ScatterPlotRequest_1 = __nccwpck_require__(82405); +Object.defineProperty(exports, "ScatterPlotRequest", ({ enumerable: true, get: function () { return ScatterPlotRequest_1.ScatterPlotRequest; } })); +var ScatterplotTableRequest_1 = __nccwpck_require__(95503); +Object.defineProperty(exports, "ScatterplotTableRequest", ({ enumerable: true, get: function () { return ScatterplotTableRequest_1.ScatterplotTableRequest; } })); +var ScatterPlotWidgetDefinition_1 = __nccwpck_require__(83127); +Object.defineProperty(exports, "ScatterPlotWidgetDefinition", ({ enumerable: true, get: function () { return ScatterPlotWidgetDefinition_1.ScatterPlotWidgetDefinition; } })); +var ScatterPlotWidgetDefinitionRequests_1 = __nccwpck_require__(70457); +Object.defineProperty(exports, "ScatterPlotWidgetDefinitionRequests", ({ enumerable: true, get: function () { return ScatterPlotWidgetDefinitionRequests_1.ScatterPlotWidgetDefinitionRequests; } })); +var ScatterplotWidgetFormula_1 = __nccwpck_require__(51838); +Object.defineProperty(exports, "ScatterplotWidgetFormula", ({ enumerable: true, get: function () { return ScatterplotWidgetFormula_1.ScatterplotWidgetFormula; } })); +var SearchServiceLevelObjective_1 = __nccwpck_require__(72809); +Object.defineProperty(exports, "SearchServiceLevelObjective", ({ enumerable: true, get: function () { return SearchServiceLevelObjective_1.SearchServiceLevelObjective; } })); +var SearchServiceLevelObjectiveAttributes_1 = __nccwpck_require__(67883); +Object.defineProperty(exports, "SearchServiceLevelObjectiveAttributes", ({ enumerable: true, get: function () { return SearchServiceLevelObjectiveAttributes_1.SearchServiceLevelObjectiveAttributes; } })); +var SearchServiceLevelObjectiveData_1 = __nccwpck_require__(98937); +Object.defineProperty(exports, "SearchServiceLevelObjectiveData", ({ enumerable: true, get: function () { return SearchServiceLevelObjectiveData_1.SearchServiceLevelObjectiveData; } })); +var SearchSLOQuery_1 = __nccwpck_require__(6219); +Object.defineProperty(exports, "SearchSLOQuery", ({ enumerable: true, get: function () { return SearchSLOQuery_1.SearchSLOQuery; } })); +var SearchSLOResponse_1 = __nccwpck_require__(19540); +Object.defineProperty(exports, "SearchSLOResponse", ({ enumerable: true, get: function () { return SearchSLOResponse_1.SearchSLOResponse; } })); +var SearchSLOResponseData_1 = __nccwpck_require__(15772); +Object.defineProperty(exports, "SearchSLOResponseData", ({ enumerable: true, get: function () { return SearchSLOResponseData_1.SearchSLOResponseData; } })); +var SearchSLOResponseDataAttributes_1 = __nccwpck_require__(72557); +Object.defineProperty(exports, "SearchSLOResponseDataAttributes", ({ enumerable: true, get: function () { return SearchSLOResponseDataAttributes_1.SearchSLOResponseDataAttributes; } })); +var SearchSLOResponseDataAttributesFacets_1 = __nccwpck_require__(97725); +Object.defineProperty(exports, "SearchSLOResponseDataAttributesFacets", ({ enumerable: true, get: function () { return SearchSLOResponseDataAttributesFacets_1.SearchSLOResponseDataAttributesFacets; } })); +var SearchSLOResponseDataAttributesFacetsObjectInt_1 = __nccwpck_require__(72757); +Object.defineProperty(exports, "SearchSLOResponseDataAttributesFacetsObjectInt", ({ enumerable: true, get: function () { return SearchSLOResponseDataAttributesFacetsObjectInt_1.SearchSLOResponseDataAttributesFacetsObjectInt; } })); +var SearchSLOResponseDataAttributesFacetsObjectString_1 = __nccwpck_require__(61619); +Object.defineProperty(exports, "SearchSLOResponseDataAttributesFacetsObjectString", ({ enumerable: true, get: function () { return SearchSLOResponseDataAttributesFacetsObjectString_1.SearchSLOResponseDataAttributesFacetsObjectString; } })); +var SearchSLOResponseLinks_1 = __nccwpck_require__(92607); +Object.defineProperty(exports, "SearchSLOResponseLinks", ({ enumerable: true, get: function () { return SearchSLOResponseLinks_1.SearchSLOResponseLinks; } })); +var SearchSLOResponseMeta_1 = __nccwpck_require__(34021); +Object.defineProperty(exports, "SearchSLOResponseMeta", ({ enumerable: true, get: function () { return SearchSLOResponseMeta_1.SearchSLOResponseMeta; } })); +var SearchSLOResponseMetaPage_1 = __nccwpck_require__(73442); +Object.defineProperty(exports, "SearchSLOResponseMetaPage", ({ enumerable: true, get: function () { return SearchSLOResponseMetaPage_1.SearchSLOResponseMetaPage; } })); +var SearchSLOThreshold_1 = __nccwpck_require__(46224); +Object.defineProperty(exports, "SearchSLOThreshold", ({ enumerable: true, get: function () { return SearchSLOThreshold_1.SearchSLOThreshold; } })); +var SelectableTemplateVariableItems_1 = __nccwpck_require__(66617); +Object.defineProperty(exports, "SelectableTemplateVariableItems", ({ enumerable: true, get: function () { return SelectableTemplateVariableItems_1.SelectableTemplateVariableItems; } })); +var Series_1 = __nccwpck_require__(72698); +Object.defineProperty(exports, "Series", ({ enumerable: true, get: function () { return Series_1.Series; } })); +var ServiceCheck_1 = __nccwpck_require__(59794); +Object.defineProperty(exports, "ServiceCheck", ({ enumerable: true, get: function () { return ServiceCheck_1.ServiceCheck; } })); +var ServiceLevelObjective_1 = __nccwpck_require__(81925); +Object.defineProperty(exports, "ServiceLevelObjective", ({ enumerable: true, get: function () { return ServiceLevelObjective_1.ServiceLevelObjective; } })); +var ServiceLevelObjectiveQuery_1 = __nccwpck_require__(18369); +Object.defineProperty(exports, "ServiceLevelObjectiveQuery", ({ enumerable: true, get: function () { return ServiceLevelObjectiveQuery_1.ServiceLevelObjectiveQuery; } })); +var ServiceLevelObjectiveRequest_1 = __nccwpck_require__(89028); +Object.defineProperty(exports, "ServiceLevelObjectiveRequest", ({ enumerable: true, get: function () { return ServiceLevelObjectiveRequest_1.ServiceLevelObjectiveRequest; } })); +var ServiceMapWidgetDefinition_1 = __nccwpck_require__(46245); +Object.defineProperty(exports, "ServiceMapWidgetDefinition", ({ enumerable: true, get: function () { return ServiceMapWidgetDefinition_1.ServiceMapWidgetDefinition; } })); +var ServiceSummaryWidgetDefinition_1 = __nccwpck_require__(71779); +Object.defineProperty(exports, "ServiceSummaryWidgetDefinition", ({ enumerable: true, get: function () { return ServiceSummaryWidgetDefinition_1.ServiceSummaryWidgetDefinition; } })); +var SharedDashboard_1 = __nccwpck_require__(40692); +Object.defineProperty(exports, "SharedDashboard", ({ enumerable: true, get: function () { return SharedDashboard_1.SharedDashboard; } })); +var SharedDashboardAuthor_1 = __nccwpck_require__(60655); +Object.defineProperty(exports, "SharedDashboardAuthor", ({ enumerable: true, get: function () { return SharedDashboardAuthor_1.SharedDashboardAuthor; } })); +var SharedDashboardInvites_1 = __nccwpck_require__(8784); +Object.defineProperty(exports, "SharedDashboardInvites", ({ enumerable: true, get: function () { return SharedDashboardInvites_1.SharedDashboardInvites; } })); +var SharedDashboardInvitesDataObject_1 = __nccwpck_require__(88703); +Object.defineProperty(exports, "SharedDashboardInvitesDataObject", ({ enumerable: true, get: function () { return SharedDashboardInvitesDataObject_1.SharedDashboardInvitesDataObject; } })); +var SharedDashboardInvitesDataObjectAttributes_1 = __nccwpck_require__(61210); +Object.defineProperty(exports, "SharedDashboardInvitesDataObjectAttributes", ({ enumerable: true, get: function () { return SharedDashboardInvitesDataObjectAttributes_1.SharedDashboardInvitesDataObjectAttributes; } })); +var SharedDashboardInvitesMeta_1 = __nccwpck_require__(51449); +Object.defineProperty(exports, "SharedDashboardInvitesMeta", ({ enumerable: true, get: function () { return SharedDashboardInvitesMeta_1.SharedDashboardInvitesMeta; } })); +var SharedDashboardInvitesMetaPage_1 = __nccwpck_require__(51446); +Object.defineProperty(exports, "SharedDashboardInvitesMetaPage", ({ enumerable: true, get: function () { return SharedDashboardInvitesMetaPage_1.SharedDashboardInvitesMetaPage; } })); +var SharedDashboardUpdateRequest_1 = __nccwpck_require__(28008); +Object.defineProperty(exports, "SharedDashboardUpdateRequest", ({ enumerable: true, get: function () { return SharedDashboardUpdateRequest_1.SharedDashboardUpdateRequest; } })); +var SharedDashboardUpdateRequestGlobalTime_1 = __nccwpck_require__(30610); +Object.defineProperty(exports, "SharedDashboardUpdateRequestGlobalTime", ({ enumerable: true, get: function () { return SharedDashboardUpdateRequestGlobalTime_1.SharedDashboardUpdateRequestGlobalTime; } })); +var SignalAssigneeUpdateRequest_1 = __nccwpck_require__(38948); +Object.defineProperty(exports, "SignalAssigneeUpdateRequest", ({ enumerable: true, get: function () { return SignalAssigneeUpdateRequest_1.SignalAssigneeUpdateRequest; } })); +var SignalStateUpdateRequest_1 = __nccwpck_require__(78862); +Object.defineProperty(exports, "SignalStateUpdateRequest", ({ enumerable: true, get: function () { return SignalStateUpdateRequest_1.SignalStateUpdateRequest; } })); +var SlackIntegrationChannel_1 = __nccwpck_require__(82082); +Object.defineProperty(exports, "SlackIntegrationChannel", ({ enumerable: true, get: function () { return SlackIntegrationChannel_1.SlackIntegrationChannel; } })); +var SlackIntegrationChannelDisplay_1 = __nccwpck_require__(27122); +Object.defineProperty(exports, "SlackIntegrationChannelDisplay", ({ enumerable: true, get: function () { return SlackIntegrationChannelDisplay_1.SlackIntegrationChannelDisplay; } })); +var SLOBulkDeleteError_1 = __nccwpck_require__(17488); +Object.defineProperty(exports, "SLOBulkDeleteError", ({ enumerable: true, get: function () { return SLOBulkDeleteError_1.SLOBulkDeleteError; } })); +var SLOBulkDeleteResponse_1 = __nccwpck_require__(66199); +Object.defineProperty(exports, "SLOBulkDeleteResponse", ({ enumerable: true, get: function () { return SLOBulkDeleteResponse_1.SLOBulkDeleteResponse; } })); +var SLOBulkDeleteResponseData_1 = __nccwpck_require__(23327); +Object.defineProperty(exports, "SLOBulkDeleteResponseData", ({ enumerable: true, get: function () { return SLOBulkDeleteResponseData_1.SLOBulkDeleteResponseData; } })); +var SLOCorrection_1 = __nccwpck_require__(62283); +Object.defineProperty(exports, "SLOCorrection", ({ enumerable: true, get: function () { return SLOCorrection_1.SLOCorrection; } })); +var SLOCorrectionCreateData_1 = __nccwpck_require__(11055); +Object.defineProperty(exports, "SLOCorrectionCreateData", ({ enumerable: true, get: function () { return SLOCorrectionCreateData_1.SLOCorrectionCreateData; } })); +var SLOCorrectionCreateRequest_1 = __nccwpck_require__(25594); +Object.defineProperty(exports, "SLOCorrectionCreateRequest", ({ enumerable: true, get: function () { return SLOCorrectionCreateRequest_1.SLOCorrectionCreateRequest; } })); +var SLOCorrectionCreateRequestAttributes_1 = __nccwpck_require__(22015); +Object.defineProperty(exports, "SLOCorrectionCreateRequestAttributes", ({ enumerable: true, get: function () { return SLOCorrectionCreateRequestAttributes_1.SLOCorrectionCreateRequestAttributes; } })); +var SLOCorrectionListResponse_1 = __nccwpck_require__(30656); +Object.defineProperty(exports, "SLOCorrectionListResponse", ({ enumerable: true, get: function () { return SLOCorrectionListResponse_1.SLOCorrectionListResponse; } })); +var SLOCorrectionResponse_1 = __nccwpck_require__(30904); +Object.defineProperty(exports, "SLOCorrectionResponse", ({ enumerable: true, get: function () { return SLOCorrectionResponse_1.SLOCorrectionResponse; } })); +var SLOCorrectionResponseAttributes_1 = __nccwpck_require__(82033); +Object.defineProperty(exports, "SLOCorrectionResponseAttributes", ({ enumerable: true, get: function () { return SLOCorrectionResponseAttributes_1.SLOCorrectionResponseAttributes; } })); +var SLOCorrectionResponseAttributesModifier_1 = __nccwpck_require__(5448); +Object.defineProperty(exports, "SLOCorrectionResponseAttributesModifier", ({ enumerable: true, get: function () { return SLOCorrectionResponseAttributesModifier_1.SLOCorrectionResponseAttributesModifier; } })); +var SLOCorrectionUpdateData_1 = __nccwpck_require__(74374); +Object.defineProperty(exports, "SLOCorrectionUpdateData", ({ enumerable: true, get: function () { return SLOCorrectionUpdateData_1.SLOCorrectionUpdateData; } })); +var SLOCorrectionUpdateRequest_1 = __nccwpck_require__(3933); +Object.defineProperty(exports, "SLOCorrectionUpdateRequest", ({ enumerable: true, get: function () { return SLOCorrectionUpdateRequest_1.SLOCorrectionUpdateRequest; } })); +var SLOCorrectionUpdateRequestAttributes_1 = __nccwpck_require__(75348); +Object.defineProperty(exports, "SLOCorrectionUpdateRequestAttributes", ({ enumerable: true, get: function () { return SLOCorrectionUpdateRequestAttributes_1.SLOCorrectionUpdateRequestAttributes; } })); +var SLOCreator_1 = __nccwpck_require__(20507); +Object.defineProperty(exports, "SLOCreator", ({ enumerable: true, get: function () { return SLOCreator_1.SLOCreator; } })); +var SLODeleteResponse_1 = __nccwpck_require__(54083); +Object.defineProperty(exports, "SLODeleteResponse", ({ enumerable: true, get: function () { return SLODeleteResponse_1.SLODeleteResponse; } })); +var SLOFormula_1 = __nccwpck_require__(7753); +Object.defineProperty(exports, "SLOFormula", ({ enumerable: true, get: function () { return SLOFormula_1.SLOFormula; } })); +var SLOHistoryMetrics_1 = __nccwpck_require__(20746); +Object.defineProperty(exports, "SLOHistoryMetrics", ({ enumerable: true, get: function () { return SLOHistoryMetrics_1.SLOHistoryMetrics; } })); +var SLOHistoryMetricsSeries_1 = __nccwpck_require__(78483); +Object.defineProperty(exports, "SLOHistoryMetricsSeries", ({ enumerable: true, get: function () { return SLOHistoryMetricsSeries_1.SLOHistoryMetricsSeries; } })); +var SLOHistoryMetricsSeriesMetadata_1 = __nccwpck_require__(84858); +Object.defineProperty(exports, "SLOHistoryMetricsSeriesMetadata", ({ enumerable: true, get: function () { return SLOHistoryMetricsSeriesMetadata_1.SLOHistoryMetricsSeriesMetadata; } })); +var SLOHistoryMetricsSeriesMetadataUnit_1 = __nccwpck_require__(81912); +Object.defineProperty(exports, "SLOHistoryMetricsSeriesMetadataUnit", ({ enumerable: true, get: function () { return SLOHistoryMetricsSeriesMetadataUnit_1.SLOHistoryMetricsSeriesMetadataUnit; } })); +var SLOHistoryMonitor_1 = __nccwpck_require__(54565); +Object.defineProperty(exports, "SLOHistoryMonitor", ({ enumerable: true, get: function () { return SLOHistoryMonitor_1.SLOHistoryMonitor; } })); +var SLOHistoryResponse_1 = __nccwpck_require__(47360); +Object.defineProperty(exports, "SLOHistoryResponse", ({ enumerable: true, get: function () { return SLOHistoryResponse_1.SLOHistoryResponse; } })); +var SLOHistoryResponseData_1 = __nccwpck_require__(60264); +Object.defineProperty(exports, "SLOHistoryResponseData", ({ enumerable: true, get: function () { return SLOHistoryResponseData_1.SLOHistoryResponseData; } })); +var SLOHistoryResponseError_1 = __nccwpck_require__(53872); +Object.defineProperty(exports, "SLOHistoryResponseError", ({ enumerable: true, get: function () { return SLOHistoryResponseError_1.SLOHistoryResponseError; } })); +var SLOHistoryResponseErrorWithType_1 = __nccwpck_require__(15584); +Object.defineProperty(exports, "SLOHistoryResponseErrorWithType", ({ enumerable: true, get: function () { return SLOHistoryResponseErrorWithType_1.SLOHistoryResponseErrorWithType; } })); +var SLOHistorySLIData_1 = __nccwpck_require__(76521); +Object.defineProperty(exports, "SLOHistorySLIData", ({ enumerable: true, get: function () { return SLOHistorySLIData_1.SLOHistorySLIData; } })); +var SLOListResponse_1 = __nccwpck_require__(66160); +Object.defineProperty(exports, "SLOListResponse", ({ enumerable: true, get: function () { return SLOListResponse_1.SLOListResponse; } })); +var SLOListResponseMetadata_1 = __nccwpck_require__(87497); +Object.defineProperty(exports, "SLOListResponseMetadata", ({ enumerable: true, get: function () { return SLOListResponseMetadata_1.SLOListResponseMetadata; } })); +var SLOListResponseMetadataPage_1 = __nccwpck_require__(78406); +Object.defineProperty(exports, "SLOListResponseMetadataPage", ({ enumerable: true, get: function () { return SLOListResponseMetadataPage_1.SLOListResponseMetadataPage; } })); +var SLOListWidgetDefinition_1 = __nccwpck_require__(23834); +Object.defineProperty(exports, "SLOListWidgetDefinition", ({ enumerable: true, get: function () { return SLOListWidgetDefinition_1.SLOListWidgetDefinition; } })); +var SLOListWidgetQuery_1 = __nccwpck_require__(45435); +Object.defineProperty(exports, "SLOListWidgetQuery", ({ enumerable: true, get: function () { return SLOListWidgetQuery_1.SLOListWidgetQuery; } })); +var SLOListWidgetRequest_1 = __nccwpck_require__(8746); +Object.defineProperty(exports, "SLOListWidgetRequest", ({ enumerable: true, get: function () { return SLOListWidgetRequest_1.SLOListWidgetRequest; } })); +var SLOOverallStatuses_1 = __nccwpck_require__(28804); +Object.defineProperty(exports, "SLOOverallStatuses", ({ enumerable: true, get: function () { return SLOOverallStatuses_1.SLOOverallStatuses; } })); +var SLORawErrorBudgetRemaining_1 = __nccwpck_require__(96440); +Object.defineProperty(exports, "SLORawErrorBudgetRemaining", ({ enumerable: true, get: function () { return SLORawErrorBudgetRemaining_1.SLORawErrorBudgetRemaining; } })); +var SLOResponse_1 = __nccwpck_require__(3560); +Object.defineProperty(exports, "SLOResponse", ({ enumerable: true, get: function () { return SLOResponse_1.SLOResponse; } })); +var SLOResponseData_1 = __nccwpck_require__(60848); +Object.defineProperty(exports, "SLOResponseData", ({ enumerable: true, get: function () { return SLOResponseData_1.SLOResponseData; } })); +var SLOStatus_1 = __nccwpck_require__(41137); +Object.defineProperty(exports, "SLOStatus", ({ enumerable: true, get: function () { return SLOStatus_1.SLOStatus; } })); +var SLOThreshold_1 = __nccwpck_require__(84084); +Object.defineProperty(exports, "SLOThreshold", ({ enumerable: true, get: function () { return SLOThreshold_1.SLOThreshold; } })); +var SLOTimeSliceCondition_1 = __nccwpck_require__(69757); +Object.defineProperty(exports, "SLOTimeSliceCondition", ({ enumerable: true, get: function () { return SLOTimeSliceCondition_1.SLOTimeSliceCondition; } })); +var SLOTimeSliceQuery_1 = __nccwpck_require__(2396); +Object.defineProperty(exports, "SLOTimeSliceQuery", ({ enumerable: true, get: function () { return SLOTimeSliceQuery_1.SLOTimeSliceQuery; } })); +var SLOTimeSliceSpec_1 = __nccwpck_require__(14605); +Object.defineProperty(exports, "SLOTimeSliceSpec", ({ enumerable: true, get: function () { return SLOTimeSliceSpec_1.SLOTimeSliceSpec; } })); +var SLOWidgetDefinition_1 = __nccwpck_require__(32578); +Object.defineProperty(exports, "SLOWidgetDefinition", ({ enumerable: true, get: function () { return SLOWidgetDefinition_1.SLOWidgetDefinition; } })); +var SplitConfig_1 = __nccwpck_require__(49749); +Object.defineProperty(exports, "SplitConfig", ({ enumerable: true, get: function () { return SplitConfig_1.SplitConfig; } })); +var SplitConfigSortCompute_1 = __nccwpck_require__(1012); +Object.defineProperty(exports, "SplitConfigSortCompute", ({ enumerable: true, get: function () { return SplitConfigSortCompute_1.SplitConfigSortCompute; } })); +var SplitDimension_1 = __nccwpck_require__(58623); +Object.defineProperty(exports, "SplitDimension", ({ enumerable: true, get: function () { return SplitDimension_1.SplitDimension; } })); +var SplitGraphWidgetDefinition_1 = __nccwpck_require__(62478); +Object.defineProperty(exports, "SplitGraphWidgetDefinition", ({ enumerable: true, get: function () { return SplitGraphWidgetDefinition_1.SplitGraphWidgetDefinition; } })); +var SplitSort_1 = __nccwpck_require__(33119); +Object.defineProperty(exports, "SplitSort", ({ enumerable: true, get: function () { return SplitSort_1.SplitSort; } })); +var SplitVectorEntryItem_1 = __nccwpck_require__(90225); +Object.defineProperty(exports, "SplitVectorEntryItem", ({ enumerable: true, get: function () { return SplitVectorEntryItem_1.SplitVectorEntryItem; } })); +var SuccessfulSignalUpdateResponse_1 = __nccwpck_require__(2487); +Object.defineProperty(exports, "SuccessfulSignalUpdateResponse", ({ enumerable: true, get: function () { return SuccessfulSignalUpdateResponse_1.SuccessfulSignalUpdateResponse; } })); +var SunburstWidgetDefinition_1 = __nccwpck_require__(74406); +Object.defineProperty(exports, "SunburstWidgetDefinition", ({ enumerable: true, get: function () { return SunburstWidgetDefinition_1.SunburstWidgetDefinition; } })); +var SunburstWidgetLegendInlineAutomatic_1 = __nccwpck_require__(63288); +Object.defineProperty(exports, "SunburstWidgetLegendInlineAutomatic", ({ enumerable: true, get: function () { return SunburstWidgetLegendInlineAutomatic_1.SunburstWidgetLegendInlineAutomatic; } })); +var SunburstWidgetLegendTable_1 = __nccwpck_require__(18956); +Object.defineProperty(exports, "SunburstWidgetLegendTable", ({ enumerable: true, get: function () { return SunburstWidgetLegendTable_1.SunburstWidgetLegendTable; } })); +var SunburstWidgetRequest_1 = __nccwpck_require__(43526); +Object.defineProperty(exports, "SunburstWidgetRequest", ({ enumerable: true, get: function () { return SunburstWidgetRequest_1.SunburstWidgetRequest; } })); +var SyntheticsAPITest_1 = __nccwpck_require__(45711); +Object.defineProperty(exports, "SyntheticsAPITest", ({ enumerable: true, get: function () { return SyntheticsAPITest_1.SyntheticsAPITest; } })); +var SyntheticsAPITestConfig_1 = __nccwpck_require__(793); +Object.defineProperty(exports, "SyntheticsAPITestConfig", ({ enumerable: true, get: function () { return SyntheticsAPITestConfig_1.SyntheticsAPITestConfig; } })); +var SyntheticsAPITestResultData_1 = __nccwpck_require__(50034); +Object.defineProperty(exports, "SyntheticsAPITestResultData", ({ enumerable: true, get: function () { return SyntheticsAPITestResultData_1.SyntheticsAPITestResultData; } })); +var SyntheticsApiTestResultFailure_1 = __nccwpck_require__(1526); +Object.defineProperty(exports, "SyntheticsApiTestResultFailure", ({ enumerable: true, get: function () { return SyntheticsApiTestResultFailure_1.SyntheticsApiTestResultFailure; } })); +var SyntheticsAPITestResultFull_1 = __nccwpck_require__(72015); +Object.defineProperty(exports, "SyntheticsAPITestResultFull", ({ enumerable: true, get: function () { return SyntheticsAPITestResultFull_1.SyntheticsAPITestResultFull; } })); +var SyntheticsAPITestResultFullCheck_1 = __nccwpck_require__(63335); +Object.defineProperty(exports, "SyntheticsAPITestResultFullCheck", ({ enumerable: true, get: function () { return SyntheticsAPITestResultFullCheck_1.SyntheticsAPITestResultFullCheck; } })); +var SyntheticsAPITestResultShort_1 = __nccwpck_require__(52834); +Object.defineProperty(exports, "SyntheticsAPITestResultShort", ({ enumerable: true, get: function () { return SyntheticsAPITestResultShort_1.SyntheticsAPITestResultShort; } })); +var SyntheticsAPITestResultShortResult_1 = __nccwpck_require__(14215); +Object.defineProperty(exports, "SyntheticsAPITestResultShortResult", ({ enumerable: true, get: function () { return SyntheticsAPITestResultShortResult_1.SyntheticsAPITestResultShortResult; } })); +var SyntheticsAPITestStep_1 = __nccwpck_require__(5285); +Object.defineProperty(exports, "SyntheticsAPITestStep", ({ enumerable: true, get: function () { return SyntheticsAPITestStep_1.SyntheticsAPITestStep; } })); +var SyntheticsAPIWaitStep_1 = __nccwpck_require__(88244); +Object.defineProperty(exports, "SyntheticsAPIWaitStep", ({ enumerable: true, get: function () { return SyntheticsAPIWaitStep_1.SyntheticsAPIWaitStep; } })); +var SyntheticsAssertionBodyHashTarget_1 = __nccwpck_require__(62014); +Object.defineProperty(exports, "SyntheticsAssertionBodyHashTarget", ({ enumerable: true, get: function () { return SyntheticsAssertionBodyHashTarget_1.SyntheticsAssertionBodyHashTarget; } })); +var SyntheticsAssertionJavascript_1 = __nccwpck_require__(21760); +Object.defineProperty(exports, "SyntheticsAssertionJavascript", ({ enumerable: true, get: function () { return SyntheticsAssertionJavascript_1.SyntheticsAssertionJavascript; } })); +var SyntheticsAssertionJSONPathTarget_1 = __nccwpck_require__(43995); +Object.defineProperty(exports, "SyntheticsAssertionJSONPathTarget", ({ enumerable: true, get: function () { return SyntheticsAssertionJSONPathTarget_1.SyntheticsAssertionJSONPathTarget; } })); +var SyntheticsAssertionJSONPathTargetTarget_1 = __nccwpck_require__(91534); +Object.defineProperty(exports, "SyntheticsAssertionJSONPathTargetTarget", ({ enumerable: true, get: function () { return SyntheticsAssertionJSONPathTargetTarget_1.SyntheticsAssertionJSONPathTargetTarget; } })); +var SyntheticsAssertionJSONSchemaTarget_1 = __nccwpck_require__(38103); +Object.defineProperty(exports, "SyntheticsAssertionJSONSchemaTarget", ({ enumerable: true, get: function () { return SyntheticsAssertionJSONSchemaTarget_1.SyntheticsAssertionJSONSchemaTarget; } })); +var SyntheticsAssertionJSONSchemaTargetTarget_1 = __nccwpck_require__(97658); +Object.defineProperty(exports, "SyntheticsAssertionJSONSchemaTargetTarget", ({ enumerable: true, get: function () { return SyntheticsAssertionJSONSchemaTargetTarget_1.SyntheticsAssertionJSONSchemaTargetTarget; } })); +var SyntheticsAssertionTarget_1 = __nccwpck_require__(35309); +Object.defineProperty(exports, "SyntheticsAssertionTarget", ({ enumerable: true, get: function () { return SyntheticsAssertionTarget_1.SyntheticsAssertionTarget; } })); +var SyntheticsAssertionXPathTarget_1 = __nccwpck_require__(52733); +Object.defineProperty(exports, "SyntheticsAssertionXPathTarget", ({ enumerable: true, get: function () { return SyntheticsAssertionXPathTarget_1.SyntheticsAssertionXPathTarget; } })); +var SyntheticsAssertionXPathTargetTarget_1 = __nccwpck_require__(40864); +Object.defineProperty(exports, "SyntheticsAssertionXPathTargetTarget", ({ enumerable: true, get: function () { return SyntheticsAssertionXPathTargetTarget_1.SyntheticsAssertionXPathTargetTarget; } })); +var SyntheticsBasicAuthDigest_1 = __nccwpck_require__(21247); +Object.defineProperty(exports, "SyntheticsBasicAuthDigest", ({ enumerable: true, get: function () { return SyntheticsBasicAuthDigest_1.SyntheticsBasicAuthDigest; } })); +var SyntheticsBasicAuthNTLM_1 = __nccwpck_require__(13558); +Object.defineProperty(exports, "SyntheticsBasicAuthNTLM", ({ enumerable: true, get: function () { return SyntheticsBasicAuthNTLM_1.SyntheticsBasicAuthNTLM; } })); +var SyntheticsBasicAuthOauthClient_1 = __nccwpck_require__(91327); +Object.defineProperty(exports, "SyntheticsBasicAuthOauthClient", ({ enumerable: true, get: function () { return SyntheticsBasicAuthOauthClient_1.SyntheticsBasicAuthOauthClient; } })); +var SyntheticsBasicAuthOauthROP_1 = __nccwpck_require__(99671); +Object.defineProperty(exports, "SyntheticsBasicAuthOauthROP", ({ enumerable: true, get: function () { return SyntheticsBasicAuthOauthROP_1.SyntheticsBasicAuthOauthROP; } })); +var SyntheticsBasicAuthSigv4_1 = __nccwpck_require__(41599); +Object.defineProperty(exports, "SyntheticsBasicAuthSigv4", ({ enumerable: true, get: function () { return SyntheticsBasicAuthSigv4_1.SyntheticsBasicAuthSigv4; } })); +var SyntheticsBasicAuthWeb_1 = __nccwpck_require__(5361); +Object.defineProperty(exports, "SyntheticsBasicAuthWeb", ({ enumerable: true, get: function () { return SyntheticsBasicAuthWeb_1.SyntheticsBasicAuthWeb; } })); +var SyntheticsBatchDetails_1 = __nccwpck_require__(58426); +Object.defineProperty(exports, "SyntheticsBatchDetails", ({ enumerable: true, get: function () { return SyntheticsBatchDetails_1.SyntheticsBatchDetails; } })); +var SyntheticsBatchDetailsData_1 = __nccwpck_require__(28013); +Object.defineProperty(exports, "SyntheticsBatchDetailsData", ({ enumerable: true, get: function () { return SyntheticsBatchDetailsData_1.SyntheticsBatchDetailsData; } })); +var SyntheticsBatchResult_1 = __nccwpck_require__(82846); +Object.defineProperty(exports, "SyntheticsBatchResult", ({ enumerable: true, get: function () { return SyntheticsBatchResult_1.SyntheticsBatchResult; } })); +var SyntheticsBrowserError_1 = __nccwpck_require__(52333); +Object.defineProperty(exports, "SyntheticsBrowserError", ({ enumerable: true, get: function () { return SyntheticsBrowserError_1.SyntheticsBrowserError; } })); +var SyntheticsBrowserTest_1 = __nccwpck_require__(8551); +Object.defineProperty(exports, "SyntheticsBrowserTest", ({ enumerable: true, get: function () { return SyntheticsBrowserTest_1.SyntheticsBrowserTest; } })); +var SyntheticsBrowserTestConfig_1 = __nccwpck_require__(5793); +Object.defineProperty(exports, "SyntheticsBrowserTestConfig", ({ enumerable: true, get: function () { return SyntheticsBrowserTestConfig_1.SyntheticsBrowserTestConfig; } })); +var SyntheticsBrowserTestResultData_1 = __nccwpck_require__(91226); +Object.defineProperty(exports, "SyntheticsBrowserTestResultData", ({ enumerable: true, get: function () { return SyntheticsBrowserTestResultData_1.SyntheticsBrowserTestResultData; } })); +var SyntheticsBrowserTestResultFailure_1 = __nccwpck_require__(56110); +Object.defineProperty(exports, "SyntheticsBrowserTestResultFailure", ({ enumerable: true, get: function () { return SyntheticsBrowserTestResultFailure_1.SyntheticsBrowserTestResultFailure; } })); +var SyntheticsBrowserTestResultFull_1 = __nccwpck_require__(56567); +Object.defineProperty(exports, "SyntheticsBrowserTestResultFull", ({ enumerable: true, get: function () { return SyntheticsBrowserTestResultFull_1.SyntheticsBrowserTestResultFull; } })); +var SyntheticsBrowserTestResultFullCheck_1 = __nccwpck_require__(17343); +Object.defineProperty(exports, "SyntheticsBrowserTestResultFullCheck", ({ enumerable: true, get: function () { return SyntheticsBrowserTestResultFullCheck_1.SyntheticsBrowserTestResultFullCheck; } })); +var SyntheticsBrowserTestResultShort_1 = __nccwpck_require__(14458); +Object.defineProperty(exports, "SyntheticsBrowserTestResultShort", ({ enumerable: true, get: function () { return SyntheticsBrowserTestResultShort_1.SyntheticsBrowserTestResultShort; } })); +var SyntheticsBrowserTestResultShortResult_1 = __nccwpck_require__(92175); +Object.defineProperty(exports, "SyntheticsBrowserTestResultShortResult", ({ enumerable: true, get: function () { return SyntheticsBrowserTestResultShortResult_1.SyntheticsBrowserTestResultShortResult; } })); +var SyntheticsBrowserTestRumSettings_1 = __nccwpck_require__(50098); +Object.defineProperty(exports, "SyntheticsBrowserTestRumSettings", ({ enumerable: true, get: function () { return SyntheticsBrowserTestRumSettings_1.SyntheticsBrowserTestRumSettings; } })); +var SyntheticsBrowserVariable_1 = __nccwpck_require__(51979); +Object.defineProperty(exports, "SyntheticsBrowserVariable", ({ enumerable: true, get: function () { return SyntheticsBrowserVariable_1.SyntheticsBrowserVariable; } })); +var SyntheticsCIBatchMetadata_1 = __nccwpck_require__(51250); +Object.defineProperty(exports, "SyntheticsCIBatchMetadata", ({ enumerable: true, get: function () { return SyntheticsCIBatchMetadata_1.SyntheticsCIBatchMetadata; } })); +var SyntheticsCIBatchMetadataCI_1 = __nccwpck_require__(12838); +Object.defineProperty(exports, "SyntheticsCIBatchMetadataCI", ({ enumerable: true, get: function () { return SyntheticsCIBatchMetadataCI_1.SyntheticsCIBatchMetadataCI; } })); +var SyntheticsCIBatchMetadataGit_1 = __nccwpck_require__(41855); +Object.defineProperty(exports, "SyntheticsCIBatchMetadataGit", ({ enumerable: true, get: function () { return SyntheticsCIBatchMetadataGit_1.SyntheticsCIBatchMetadataGit; } })); +var SyntheticsCIBatchMetadataPipeline_1 = __nccwpck_require__(74532); +Object.defineProperty(exports, "SyntheticsCIBatchMetadataPipeline", ({ enumerable: true, get: function () { return SyntheticsCIBatchMetadataPipeline_1.SyntheticsCIBatchMetadataPipeline; } })); +var SyntheticsCIBatchMetadataProvider_1 = __nccwpck_require__(4111); +Object.defineProperty(exports, "SyntheticsCIBatchMetadataProvider", ({ enumerable: true, get: function () { return SyntheticsCIBatchMetadataProvider_1.SyntheticsCIBatchMetadataProvider; } })); +var SyntheticsCITest_1 = __nccwpck_require__(10527); +Object.defineProperty(exports, "SyntheticsCITest", ({ enumerable: true, get: function () { return SyntheticsCITest_1.SyntheticsCITest; } })); +var SyntheticsCITestBody_1 = __nccwpck_require__(33379); +Object.defineProperty(exports, "SyntheticsCITestBody", ({ enumerable: true, get: function () { return SyntheticsCITestBody_1.SyntheticsCITestBody; } })); +var SyntheticsConfigVariable_1 = __nccwpck_require__(69633); +Object.defineProperty(exports, "SyntheticsConfigVariable", ({ enumerable: true, get: function () { return SyntheticsConfigVariable_1.SyntheticsConfigVariable; } })); +var SyntheticsCoreWebVitals_1 = __nccwpck_require__(61867); +Object.defineProperty(exports, "SyntheticsCoreWebVitals", ({ enumerable: true, get: function () { return SyntheticsCoreWebVitals_1.SyntheticsCoreWebVitals; } })); +var SyntheticsDeletedTest_1 = __nccwpck_require__(34914); +Object.defineProperty(exports, "SyntheticsDeletedTest", ({ enumerable: true, get: function () { return SyntheticsDeletedTest_1.SyntheticsDeletedTest; } })); +var SyntheticsDeleteTestsPayload_1 = __nccwpck_require__(61689); +Object.defineProperty(exports, "SyntheticsDeleteTestsPayload", ({ enumerable: true, get: function () { return SyntheticsDeleteTestsPayload_1.SyntheticsDeleteTestsPayload; } })); +var SyntheticsDeleteTestsResponse_1 = __nccwpck_require__(2940); +Object.defineProperty(exports, "SyntheticsDeleteTestsResponse", ({ enumerable: true, get: function () { return SyntheticsDeleteTestsResponse_1.SyntheticsDeleteTestsResponse; } })); +var SyntheticsDevice_1 = __nccwpck_require__(29585); +Object.defineProperty(exports, "SyntheticsDevice", ({ enumerable: true, get: function () { return SyntheticsDevice_1.SyntheticsDevice; } })); +var SyntheticsFetchUptimesPayload_1 = __nccwpck_require__(69642); +Object.defineProperty(exports, "SyntheticsFetchUptimesPayload", ({ enumerable: true, get: function () { return SyntheticsFetchUptimesPayload_1.SyntheticsFetchUptimesPayload; } })); +var SyntheticsGetAPITestLatestResultsResponse_1 = __nccwpck_require__(15747); +Object.defineProperty(exports, "SyntheticsGetAPITestLatestResultsResponse", ({ enumerable: true, get: function () { return SyntheticsGetAPITestLatestResultsResponse_1.SyntheticsGetAPITestLatestResultsResponse; } })); +var SyntheticsGetBrowserTestLatestResultsResponse_1 = __nccwpck_require__(47763); +Object.defineProperty(exports, "SyntheticsGetBrowserTestLatestResultsResponse", ({ enumerable: true, get: function () { return SyntheticsGetBrowserTestLatestResultsResponse_1.SyntheticsGetBrowserTestLatestResultsResponse; } })); +var SyntheticsGlobalVariable_1 = __nccwpck_require__(71956); +Object.defineProperty(exports, "SyntheticsGlobalVariable", ({ enumerable: true, get: function () { return SyntheticsGlobalVariable_1.SyntheticsGlobalVariable; } })); +var SyntheticsGlobalVariableAttributes_1 = __nccwpck_require__(43605); +Object.defineProperty(exports, "SyntheticsGlobalVariableAttributes", ({ enumerable: true, get: function () { return SyntheticsGlobalVariableAttributes_1.SyntheticsGlobalVariableAttributes; } })); +var SyntheticsGlobalVariableOptions_1 = __nccwpck_require__(52464); +Object.defineProperty(exports, "SyntheticsGlobalVariableOptions", ({ enumerable: true, get: function () { return SyntheticsGlobalVariableOptions_1.SyntheticsGlobalVariableOptions; } })); +var SyntheticsGlobalVariableParseTestOptions_1 = __nccwpck_require__(5115); +Object.defineProperty(exports, "SyntheticsGlobalVariableParseTestOptions", ({ enumerable: true, get: function () { return SyntheticsGlobalVariableParseTestOptions_1.SyntheticsGlobalVariableParseTestOptions; } })); +var SyntheticsGlobalVariableRequest_1 = __nccwpck_require__(76863); +Object.defineProperty(exports, "SyntheticsGlobalVariableRequest", ({ enumerable: true, get: function () { return SyntheticsGlobalVariableRequest_1.SyntheticsGlobalVariableRequest; } })); +var SyntheticsGlobalVariableTOTPParameters_1 = __nccwpck_require__(17529); +Object.defineProperty(exports, "SyntheticsGlobalVariableTOTPParameters", ({ enumerable: true, get: function () { return SyntheticsGlobalVariableTOTPParameters_1.SyntheticsGlobalVariableTOTPParameters; } })); +var SyntheticsGlobalVariableValue_1 = __nccwpck_require__(84235); +Object.defineProperty(exports, "SyntheticsGlobalVariableValue", ({ enumerable: true, get: function () { return SyntheticsGlobalVariableValue_1.SyntheticsGlobalVariableValue; } })); +var SyntheticsListGlobalVariablesResponse_1 = __nccwpck_require__(29936); +Object.defineProperty(exports, "SyntheticsListGlobalVariablesResponse", ({ enumerable: true, get: function () { return SyntheticsListGlobalVariablesResponse_1.SyntheticsListGlobalVariablesResponse; } })); +var SyntheticsListTestsResponse_1 = __nccwpck_require__(98869); +Object.defineProperty(exports, "SyntheticsListTestsResponse", ({ enumerable: true, get: function () { return SyntheticsListTestsResponse_1.SyntheticsListTestsResponse; } })); +var SyntheticsLocation_1 = __nccwpck_require__(48808); +Object.defineProperty(exports, "SyntheticsLocation", ({ enumerable: true, get: function () { return SyntheticsLocation_1.SyntheticsLocation; } })); +var SyntheticsLocations_1 = __nccwpck_require__(60311); +Object.defineProperty(exports, "SyntheticsLocations", ({ enumerable: true, get: function () { return SyntheticsLocations_1.SyntheticsLocations; } })); +var SyntheticsMobileStep_1 = __nccwpck_require__(29339); +Object.defineProperty(exports, "SyntheticsMobileStep", ({ enumerable: true, get: function () { return SyntheticsMobileStep_1.SyntheticsMobileStep; } })); +var SyntheticsMobileStepParams_1 = __nccwpck_require__(88637); +Object.defineProperty(exports, "SyntheticsMobileStepParams", ({ enumerable: true, get: function () { return SyntheticsMobileStepParams_1.SyntheticsMobileStepParams; } })); +var SyntheticsMobileStepParamsElement_1 = __nccwpck_require__(41301); +Object.defineProperty(exports, "SyntheticsMobileStepParamsElement", ({ enumerable: true, get: function () { return SyntheticsMobileStepParamsElement_1.SyntheticsMobileStepParamsElement; } })); +var SyntheticsMobileStepParamsElementRelativePosition_1 = __nccwpck_require__(76550); +Object.defineProperty(exports, "SyntheticsMobileStepParamsElementRelativePosition", ({ enumerable: true, get: function () { return SyntheticsMobileStepParamsElementRelativePosition_1.SyntheticsMobileStepParamsElementRelativePosition; } })); +var SyntheticsMobileStepParamsElementUserLocator_1 = __nccwpck_require__(36934); +Object.defineProperty(exports, "SyntheticsMobileStepParamsElementUserLocator", ({ enumerable: true, get: function () { return SyntheticsMobileStepParamsElementUserLocator_1.SyntheticsMobileStepParamsElementUserLocator; } })); +var SyntheticsMobileStepParamsElementUserLocatorValuesItems_1 = __nccwpck_require__(76750); +Object.defineProperty(exports, "SyntheticsMobileStepParamsElementUserLocatorValuesItems", ({ enumerable: true, get: function () { return SyntheticsMobileStepParamsElementUserLocatorValuesItems_1.SyntheticsMobileStepParamsElementUserLocatorValuesItems; } })); +var SyntheticsMobileStepParamsPositionsItems_1 = __nccwpck_require__(77873); +Object.defineProperty(exports, "SyntheticsMobileStepParamsPositionsItems", ({ enumerable: true, get: function () { return SyntheticsMobileStepParamsPositionsItems_1.SyntheticsMobileStepParamsPositionsItems; } })); +var SyntheticsMobileStepParamsVariable_1 = __nccwpck_require__(11617); +Object.defineProperty(exports, "SyntheticsMobileStepParamsVariable", ({ enumerable: true, get: function () { return SyntheticsMobileStepParamsVariable_1.SyntheticsMobileStepParamsVariable; } })); +var SyntheticsMobileTest_1 = __nccwpck_require__(26705); +Object.defineProperty(exports, "SyntheticsMobileTest", ({ enumerable: true, get: function () { return SyntheticsMobileTest_1.SyntheticsMobileTest; } })); +var SyntheticsMobileTestConfig_1 = __nccwpck_require__(20223); +Object.defineProperty(exports, "SyntheticsMobileTestConfig", ({ enumerable: true, get: function () { return SyntheticsMobileTestConfig_1.SyntheticsMobileTestConfig; } })); +var SyntheticsMobileTestOptions_1 = __nccwpck_require__(13407); +Object.defineProperty(exports, "SyntheticsMobileTestOptions", ({ enumerable: true, get: function () { return SyntheticsMobileTestOptions_1.SyntheticsMobileTestOptions; } })); +var SyntheticsMobileTestsMobileApplication_1 = __nccwpck_require__(25634); +Object.defineProperty(exports, "SyntheticsMobileTestsMobileApplication", ({ enumerable: true, get: function () { return SyntheticsMobileTestsMobileApplication_1.SyntheticsMobileTestsMobileApplication; } })); +var SyntheticsParsingOptions_1 = __nccwpck_require__(44261); +Object.defineProperty(exports, "SyntheticsParsingOptions", ({ enumerable: true, get: function () { return SyntheticsParsingOptions_1.SyntheticsParsingOptions; } })); +var SyntheticsPatchTestBody_1 = __nccwpck_require__(95665); +Object.defineProperty(exports, "SyntheticsPatchTestBody", ({ enumerable: true, get: function () { return SyntheticsPatchTestBody_1.SyntheticsPatchTestBody; } })); +var SyntheticsPatchTestOperation_1 = __nccwpck_require__(78180); +Object.defineProperty(exports, "SyntheticsPatchTestOperation", ({ enumerable: true, get: function () { return SyntheticsPatchTestOperation_1.SyntheticsPatchTestOperation; } })); +var SyntheticsPrivateLocation_1 = __nccwpck_require__(81143); +Object.defineProperty(exports, "SyntheticsPrivateLocation", ({ enumerable: true, get: function () { return SyntheticsPrivateLocation_1.SyntheticsPrivateLocation; } })); +var SyntheticsPrivateLocationCreationResponse_1 = __nccwpck_require__(63149); +Object.defineProperty(exports, "SyntheticsPrivateLocationCreationResponse", ({ enumerable: true, get: function () { return SyntheticsPrivateLocationCreationResponse_1.SyntheticsPrivateLocationCreationResponse; } })); +var SyntheticsPrivateLocationCreationResponseResultEncryption_1 = __nccwpck_require__(6209); +Object.defineProperty(exports, "SyntheticsPrivateLocationCreationResponseResultEncryption", ({ enumerable: true, get: function () { return SyntheticsPrivateLocationCreationResponseResultEncryption_1.SyntheticsPrivateLocationCreationResponseResultEncryption; } })); +var SyntheticsPrivateLocationMetadata_1 = __nccwpck_require__(93590); +Object.defineProperty(exports, "SyntheticsPrivateLocationMetadata", ({ enumerable: true, get: function () { return SyntheticsPrivateLocationMetadata_1.SyntheticsPrivateLocationMetadata; } })); +var SyntheticsPrivateLocationSecrets_1 = __nccwpck_require__(30086); +Object.defineProperty(exports, "SyntheticsPrivateLocationSecrets", ({ enumerable: true, get: function () { return SyntheticsPrivateLocationSecrets_1.SyntheticsPrivateLocationSecrets; } })); +var SyntheticsPrivateLocationSecretsAuthentication_1 = __nccwpck_require__(85930); +Object.defineProperty(exports, "SyntheticsPrivateLocationSecretsAuthentication", ({ enumerable: true, get: function () { return SyntheticsPrivateLocationSecretsAuthentication_1.SyntheticsPrivateLocationSecretsAuthentication; } })); +var SyntheticsPrivateLocationSecretsConfigDecryption_1 = __nccwpck_require__(15329); +Object.defineProperty(exports, "SyntheticsPrivateLocationSecretsConfigDecryption", ({ enumerable: true, get: function () { return SyntheticsPrivateLocationSecretsConfigDecryption_1.SyntheticsPrivateLocationSecretsConfigDecryption; } })); +var SyntheticsSSLCertificate_1 = __nccwpck_require__(89518); +Object.defineProperty(exports, "SyntheticsSSLCertificate", ({ enumerable: true, get: function () { return SyntheticsSSLCertificate_1.SyntheticsSSLCertificate; } })); +var SyntheticsSSLCertificateIssuer_1 = __nccwpck_require__(27625); +Object.defineProperty(exports, "SyntheticsSSLCertificateIssuer", ({ enumerable: true, get: function () { return SyntheticsSSLCertificateIssuer_1.SyntheticsSSLCertificateIssuer; } })); +var SyntheticsSSLCertificateSubject_1 = __nccwpck_require__(59140); +Object.defineProperty(exports, "SyntheticsSSLCertificateSubject", ({ enumerable: true, get: function () { return SyntheticsSSLCertificateSubject_1.SyntheticsSSLCertificateSubject; } })); +var SyntheticsStep_1 = __nccwpck_require__(18521); +Object.defineProperty(exports, "SyntheticsStep", ({ enumerable: true, get: function () { return SyntheticsStep_1.SyntheticsStep; } })); +var SyntheticsStepDetail_1 = __nccwpck_require__(43516); +Object.defineProperty(exports, "SyntheticsStepDetail", ({ enumerable: true, get: function () { return SyntheticsStepDetail_1.SyntheticsStepDetail; } })); +var SyntheticsStepDetailWarning_1 = __nccwpck_require__(15882); +Object.defineProperty(exports, "SyntheticsStepDetailWarning", ({ enumerable: true, get: function () { return SyntheticsStepDetailWarning_1.SyntheticsStepDetailWarning; } })); +var SyntheticsTestCiOptions_1 = __nccwpck_require__(84849); +Object.defineProperty(exports, "SyntheticsTestCiOptions", ({ enumerable: true, get: function () { return SyntheticsTestCiOptions_1.SyntheticsTestCiOptions; } })); +var SyntheticsTestConfig_1 = __nccwpck_require__(81897); +Object.defineProperty(exports, "SyntheticsTestConfig", ({ enumerable: true, get: function () { return SyntheticsTestConfig_1.SyntheticsTestConfig; } })); +var SyntheticsTestDetails_1 = __nccwpck_require__(54201); +Object.defineProperty(exports, "SyntheticsTestDetails", ({ enumerable: true, get: function () { return SyntheticsTestDetails_1.SyntheticsTestDetails; } })); +var SyntheticsTestOptions_1 = __nccwpck_require__(46177); +Object.defineProperty(exports, "SyntheticsTestOptions", ({ enumerable: true, get: function () { return SyntheticsTestOptions_1.SyntheticsTestOptions; } })); +var SyntheticsTestOptionsMonitorOptions_1 = __nccwpck_require__(67129); +Object.defineProperty(exports, "SyntheticsTestOptionsMonitorOptions", ({ enumerable: true, get: function () { return SyntheticsTestOptionsMonitorOptions_1.SyntheticsTestOptionsMonitorOptions; } })); +var SyntheticsTestOptionsRetry_1 = __nccwpck_require__(93819); +Object.defineProperty(exports, "SyntheticsTestOptionsRetry", ({ enumerable: true, get: function () { return SyntheticsTestOptionsRetry_1.SyntheticsTestOptionsRetry; } })); +var SyntheticsTestOptionsScheduling_1 = __nccwpck_require__(99995); +Object.defineProperty(exports, "SyntheticsTestOptionsScheduling", ({ enumerable: true, get: function () { return SyntheticsTestOptionsScheduling_1.SyntheticsTestOptionsScheduling; } })); +var SyntheticsTestOptionsSchedulingTimeframe_1 = __nccwpck_require__(51993); +Object.defineProperty(exports, "SyntheticsTestOptionsSchedulingTimeframe", ({ enumerable: true, get: function () { return SyntheticsTestOptionsSchedulingTimeframe_1.SyntheticsTestOptionsSchedulingTimeframe; } })); +var SyntheticsTestRequest_1 = __nccwpck_require__(60770); +Object.defineProperty(exports, "SyntheticsTestRequest", ({ enumerable: true, get: function () { return SyntheticsTestRequest_1.SyntheticsTestRequest; } })); +var SyntheticsTestRequestBodyFile_1 = __nccwpck_require__(21220); +Object.defineProperty(exports, "SyntheticsTestRequestBodyFile", ({ enumerable: true, get: function () { return SyntheticsTestRequestBodyFile_1.SyntheticsTestRequestBodyFile; } })); +var SyntheticsTestRequestCertificate_1 = __nccwpck_require__(83803); +Object.defineProperty(exports, "SyntheticsTestRequestCertificate", ({ enumerable: true, get: function () { return SyntheticsTestRequestCertificate_1.SyntheticsTestRequestCertificate; } })); +var SyntheticsTestRequestCertificateItem_1 = __nccwpck_require__(55448); +Object.defineProperty(exports, "SyntheticsTestRequestCertificateItem", ({ enumerable: true, get: function () { return SyntheticsTestRequestCertificateItem_1.SyntheticsTestRequestCertificateItem; } })); +var SyntheticsTestRequestProxy_1 = __nccwpck_require__(18380); +Object.defineProperty(exports, "SyntheticsTestRequestProxy", ({ enumerable: true, get: function () { return SyntheticsTestRequestProxy_1.SyntheticsTestRequestProxy; } })); +var SyntheticsTestRestrictionPolicyBinding_1 = __nccwpck_require__(7698); +Object.defineProperty(exports, "SyntheticsTestRestrictionPolicyBinding", ({ enumerable: true, get: function () { return SyntheticsTestRestrictionPolicyBinding_1.SyntheticsTestRestrictionPolicyBinding; } })); +var SyntheticsTestUptime_1 = __nccwpck_require__(5187); +Object.defineProperty(exports, "SyntheticsTestUptime", ({ enumerable: true, get: function () { return SyntheticsTestUptime_1.SyntheticsTestUptime; } })); +var SyntheticsTiming_1 = __nccwpck_require__(91297); +Object.defineProperty(exports, "SyntheticsTiming", ({ enumerable: true, get: function () { return SyntheticsTiming_1.SyntheticsTiming; } })); +var SyntheticsTriggerBody_1 = __nccwpck_require__(12123); +Object.defineProperty(exports, "SyntheticsTriggerBody", ({ enumerable: true, get: function () { return SyntheticsTriggerBody_1.SyntheticsTriggerBody; } })); +var SyntheticsTriggerCITestLocation_1 = __nccwpck_require__(19664); +Object.defineProperty(exports, "SyntheticsTriggerCITestLocation", ({ enumerable: true, get: function () { return SyntheticsTriggerCITestLocation_1.SyntheticsTriggerCITestLocation; } })); +var SyntheticsTriggerCITestRunResult_1 = __nccwpck_require__(91623); +Object.defineProperty(exports, "SyntheticsTriggerCITestRunResult", ({ enumerable: true, get: function () { return SyntheticsTriggerCITestRunResult_1.SyntheticsTriggerCITestRunResult; } })); +var SyntheticsTriggerCITestsResponse_1 = __nccwpck_require__(80193); +Object.defineProperty(exports, "SyntheticsTriggerCITestsResponse", ({ enumerable: true, get: function () { return SyntheticsTriggerCITestsResponse_1.SyntheticsTriggerCITestsResponse; } })); +var SyntheticsTriggerTest_1 = __nccwpck_require__(77563); +Object.defineProperty(exports, "SyntheticsTriggerTest", ({ enumerable: true, get: function () { return SyntheticsTriggerTest_1.SyntheticsTriggerTest; } })); +var SyntheticsUpdateTestPauseStatusPayload_1 = __nccwpck_require__(37220); +Object.defineProperty(exports, "SyntheticsUpdateTestPauseStatusPayload", ({ enumerable: true, get: function () { return SyntheticsUpdateTestPauseStatusPayload_1.SyntheticsUpdateTestPauseStatusPayload; } })); +var SyntheticsUptime_1 = __nccwpck_require__(15815); +Object.defineProperty(exports, "SyntheticsUptime", ({ enumerable: true, get: function () { return SyntheticsUptime_1.SyntheticsUptime; } })); +var SyntheticsVariableParser_1 = __nccwpck_require__(27992); +Object.defineProperty(exports, "SyntheticsVariableParser", ({ enumerable: true, get: function () { return SyntheticsVariableParser_1.SyntheticsVariableParser; } })); +var TableWidgetDefinition_1 = __nccwpck_require__(30606); +Object.defineProperty(exports, "TableWidgetDefinition", ({ enumerable: true, get: function () { return TableWidgetDefinition_1.TableWidgetDefinition; } })); +var TableWidgetRequest_1 = __nccwpck_require__(91774); +Object.defineProperty(exports, "TableWidgetRequest", ({ enumerable: true, get: function () { return TableWidgetRequest_1.TableWidgetRequest; } })); +var TableWidgetTextFormatMatch_1 = __nccwpck_require__(74830); +Object.defineProperty(exports, "TableWidgetTextFormatMatch", ({ enumerable: true, get: function () { return TableWidgetTextFormatMatch_1.TableWidgetTextFormatMatch; } })); +var TableWidgetTextFormatReplaceAll_1 = __nccwpck_require__(57604); +Object.defineProperty(exports, "TableWidgetTextFormatReplaceAll", ({ enumerable: true, get: function () { return TableWidgetTextFormatReplaceAll_1.TableWidgetTextFormatReplaceAll; } })); +var TableWidgetTextFormatReplaceSubstring_1 = __nccwpck_require__(620); +Object.defineProperty(exports, "TableWidgetTextFormatReplaceSubstring", ({ enumerable: true, get: function () { return TableWidgetTextFormatReplaceSubstring_1.TableWidgetTextFormatReplaceSubstring; } })); +var TableWidgetTextFormatRule_1 = __nccwpck_require__(29597); +Object.defineProperty(exports, "TableWidgetTextFormatRule", ({ enumerable: true, get: function () { return TableWidgetTextFormatRule_1.TableWidgetTextFormatRule; } })); +var TagToHosts_1 = __nccwpck_require__(45595); +Object.defineProperty(exports, "TagToHosts", ({ enumerable: true, get: function () { return TagToHosts_1.TagToHosts; } })); +var TimeseriesBackground_1 = __nccwpck_require__(88107); +Object.defineProperty(exports, "TimeseriesBackground", ({ enumerable: true, get: function () { return TimeseriesBackground_1.TimeseriesBackground; } })); +var TimeseriesWidgetDefinition_1 = __nccwpck_require__(12910); +Object.defineProperty(exports, "TimeseriesWidgetDefinition", ({ enumerable: true, get: function () { return TimeseriesWidgetDefinition_1.TimeseriesWidgetDefinition; } })); +var TimeseriesWidgetExpressionAlias_1 = __nccwpck_require__(99581); +Object.defineProperty(exports, "TimeseriesWidgetExpressionAlias", ({ enumerable: true, get: function () { return TimeseriesWidgetExpressionAlias_1.TimeseriesWidgetExpressionAlias; } })); +var TimeseriesWidgetRequest_1 = __nccwpck_require__(6014); +Object.defineProperty(exports, "TimeseriesWidgetRequest", ({ enumerable: true, get: function () { return TimeseriesWidgetRequest_1.TimeseriesWidgetRequest; } })); +var ToplistWidgetDefinition_1 = __nccwpck_require__(15397); +Object.defineProperty(exports, "ToplistWidgetDefinition", ({ enumerable: true, get: function () { return ToplistWidgetDefinition_1.ToplistWidgetDefinition; } })); +var ToplistWidgetFlat_1 = __nccwpck_require__(9383); +Object.defineProperty(exports, "ToplistWidgetFlat", ({ enumerable: true, get: function () { return ToplistWidgetFlat_1.ToplistWidgetFlat; } })); +var ToplistWidgetRequest_1 = __nccwpck_require__(75647); +Object.defineProperty(exports, "ToplistWidgetRequest", ({ enumerable: true, get: function () { return ToplistWidgetRequest_1.ToplistWidgetRequest; } })); +var ToplistWidgetStacked_1 = __nccwpck_require__(37695); +Object.defineProperty(exports, "ToplistWidgetStacked", ({ enumerable: true, get: function () { return ToplistWidgetStacked_1.ToplistWidgetStacked; } })); +var ToplistWidgetStyle_1 = __nccwpck_require__(76663); +Object.defineProperty(exports, "ToplistWidgetStyle", ({ enumerable: true, get: function () { return ToplistWidgetStyle_1.ToplistWidgetStyle; } })); +var TopologyMapWidgetDefinition_1 = __nccwpck_require__(52511); +Object.defineProperty(exports, "TopologyMapWidgetDefinition", ({ enumerable: true, get: function () { return TopologyMapWidgetDefinition_1.TopologyMapWidgetDefinition; } })); +var TopologyQuery_1 = __nccwpck_require__(44468); +Object.defineProperty(exports, "TopologyQuery", ({ enumerable: true, get: function () { return TopologyQuery_1.TopologyQuery; } })); +var TopologyRequest_1 = __nccwpck_require__(52913); +Object.defineProperty(exports, "TopologyRequest", ({ enumerable: true, get: function () { return TopologyRequest_1.TopologyRequest; } })); +var TreeMapWidgetDefinition_1 = __nccwpck_require__(49988); +Object.defineProperty(exports, "TreeMapWidgetDefinition", ({ enumerable: true, get: function () { return TreeMapWidgetDefinition_1.TreeMapWidgetDefinition; } })); +var TreeMapWidgetRequest_1 = __nccwpck_require__(93000); +Object.defineProperty(exports, "TreeMapWidgetRequest", ({ enumerable: true, get: function () { return TreeMapWidgetRequest_1.TreeMapWidgetRequest; } })); +var UsageAnalyzedLogsHour_1 = __nccwpck_require__(23001); +Object.defineProperty(exports, "UsageAnalyzedLogsHour", ({ enumerable: true, get: function () { return UsageAnalyzedLogsHour_1.UsageAnalyzedLogsHour; } })); +var UsageAnalyzedLogsResponse_1 = __nccwpck_require__(24884); +Object.defineProperty(exports, "UsageAnalyzedLogsResponse", ({ enumerable: true, get: function () { return UsageAnalyzedLogsResponse_1.UsageAnalyzedLogsResponse; } })); +var UsageAttributionAggregatesBody_1 = __nccwpck_require__(5419); +Object.defineProperty(exports, "UsageAttributionAggregatesBody", ({ enumerable: true, get: function () { return UsageAttributionAggregatesBody_1.UsageAttributionAggregatesBody; } })); +var UsageAuditLogsHour_1 = __nccwpck_require__(6328); +Object.defineProperty(exports, "UsageAuditLogsHour", ({ enumerable: true, get: function () { return UsageAuditLogsHour_1.UsageAuditLogsHour; } })); +var UsageAuditLogsResponse_1 = __nccwpck_require__(4597); +Object.defineProperty(exports, "UsageAuditLogsResponse", ({ enumerable: true, get: function () { return UsageAuditLogsResponse_1.UsageAuditLogsResponse; } })); +var UsageBillableSummaryBody_1 = __nccwpck_require__(37005); +Object.defineProperty(exports, "UsageBillableSummaryBody", ({ enumerable: true, get: function () { return UsageBillableSummaryBody_1.UsageBillableSummaryBody; } })); +var UsageBillableSummaryHour_1 = __nccwpck_require__(34427); +Object.defineProperty(exports, "UsageBillableSummaryHour", ({ enumerable: true, get: function () { return UsageBillableSummaryHour_1.UsageBillableSummaryHour; } })); +var UsageBillableSummaryKeys_1 = __nccwpck_require__(99157); +Object.defineProperty(exports, "UsageBillableSummaryKeys", ({ enumerable: true, get: function () { return UsageBillableSummaryKeys_1.UsageBillableSummaryKeys; } })); +var UsageBillableSummaryResponse_1 = __nccwpck_require__(72402); +Object.defineProperty(exports, "UsageBillableSummaryResponse", ({ enumerable: true, get: function () { return UsageBillableSummaryResponse_1.UsageBillableSummaryResponse; } })); +var UsageCIVisibilityHour_1 = __nccwpck_require__(82834); +Object.defineProperty(exports, "UsageCIVisibilityHour", ({ enumerable: true, get: function () { return UsageCIVisibilityHour_1.UsageCIVisibilityHour; } })); +var UsageCIVisibilityResponse_1 = __nccwpck_require__(96403); +Object.defineProperty(exports, "UsageCIVisibilityResponse", ({ enumerable: true, get: function () { return UsageCIVisibilityResponse_1.UsageCIVisibilityResponse; } })); +var UsageCloudSecurityPostureManagementHour_1 = __nccwpck_require__(90004); +Object.defineProperty(exports, "UsageCloudSecurityPostureManagementHour", ({ enumerable: true, get: function () { return UsageCloudSecurityPostureManagementHour_1.UsageCloudSecurityPostureManagementHour; } })); +var UsageCloudSecurityPostureManagementResponse_1 = __nccwpck_require__(67585); +Object.defineProperty(exports, "UsageCloudSecurityPostureManagementResponse", ({ enumerable: true, get: function () { return UsageCloudSecurityPostureManagementResponse_1.UsageCloudSecurityPostureManagementResponse; } })); +var UsageCustomReportsAttributes_1 = __nccwpck_require__(13553); +Object.defineProperty(exports, "UsageCustomReportsAttributes", ({ enumerable: true, get: function () { return UsageCustomReportsAttributes_1.UsageCustomReportsAttributes; } })); +var UsageCustomReportsData_1 = __nccwpck_require__(31488); +Object.defineProperty(exports, "UsageCustomReportsData", ({ enumerable: true, get: function () { return UsageCustomReportsData_1.UsageCustomReportsData; } })); +var UsageCustomReportsMeta_1 = __nccwpck_require__(63793); +Object.defineProperty(exports, "UsageCustomReportsMeta", ({ enumerable: true, get: function () { return UsageCustomReportsMeta_1.UsageCustomReportsMeta; } })); +var UsageCustomReportsPage_1 = __nccwpck_require__(46055); +Object.defineProperty(exports, "UsageCustomReportsPage", ({ enumerable: true, get: function () { return UsageCustomReportsPage_1.UsageCustomReportsPage; } })); +var UsageCustomReportsResponse_1 = __nccwpck_require__(63503); +Object.defineProperty(exports, "UsageCustomReportsResponse", ({ enumerable: true, get: function () { return UsageCustomReportsResponse_1.UsageCustomReportsResponse; } })); +var UsageCWSHour_1 = __nccwpck_require__(41111); +Object.defineProperty(exports, "UsageCWSHour", ({ enumerable: true, get: function () { return UsageCWSHour_1.UsageCWSHour; } })); +var UsageCWSResponse_1 = __nccwpck_require__(76206); +Object.defineProperty(exports, "UsageCWSResponse", ({ enumerable: true, get: function () { return UsageCWSResponse_1.UsageCWSResponse; } })); +var UsageDBMHour_1 = __nccwpck_require__(95033); +Object.defineProperty(exports, "UsageDBMHour", ({ enumerable: true, get: function () { return UsageDBMHour_1.UsageDBMHour; } })); +var UsageDBMResponse_1 = __nccwpck_require__(67700); +Object.defineProperty(exports, "UsageDBMResponse", ({ enumerable: true, get: function () { return UsageDBMResponse_1.UsageDBMResponse; } })); +var UsageFargateHour_1 = __nccwpck_require__(20578); +Object.defineProperty(exports, "UsageFargateHour", ({ enumerable: true, get: function () { return UsageFargateHour_1.UsageFargateHour; } })); +var UsageFargateResponse_1 = __nccwpck_require__(48131); +Object.defineProperty(exports, "UsageFargateResponse", ({ enumerable: true, get: function () { return UsageFargateResponse_1.UsageFargateResponse; } })); +var UsageHostHour_1 = __nccwpck_require__(41068); +Object.defineProperty(exports, "UsageHostHour", ({ enumerable: true, get: function () { return UsageHostHour_1.UsageHostHour; } })); +var UsageHostsResponse_1 = __nccwpck_require__(10846); +Object.defineProperty(exports, "UsageHostsResponse", ({ enumerable: true, get: function () { return UsageHostsResponse_1.UsageHostsResponse; } })); +var UsageIncidentManagementHour_1 = __nccwpck_require__(19759); +Object.defineProperty(exports, "UsageIncidentManagementHour", ({ enumerable: true, get: function () { return UsageIncidentManagementHour_1.UsageIncidentManagementHour; } })); +var UsageIncidentManagementResponse_1 = __nccwpck_require__(87430); +Object.defineProperty(exports, "UsageIncidentManagementResponse", ({ enumerable: true, get: function () { return UsageIncidentManagementResponse_1.UsageIncidentManagementResponse; } })); +var UsageIndexedSpansHour_1 = __nccwpck_require__(68016); +Object.defineProperty(exports, "UsageIndexedSpansHour", ({ enumerable: true, get: function () { return UsageIndexedSpansHour_1.UsageIndexedSpansHour; } })); +var UsageIndexedSpansResponse_1 = __nccwpck_require__(18189); +Object.defineProperty(exports, "UsageIndexedSpansResponse", ({ enumerable: true, get: function () { return UsageIndexedSpansResponse_1.UsageIndexedSpansResponse; } })); +var UsageIngestedSpansHour_1 = __nccwpck_require__(28386); +Object.defineProperty(exports, "UsageIngestedSpansHour", ({ enumerable: true, get: function () { return UsageIngestedSpansHour_1.UsageIngestedSpansHour; } })); +var UsageIngestedSpansResponse_1 = __nccwpck_require__(34627); +Object.defineProperty(exports, "UsageIngestedSpansResponse", ({ enumerable: true, get: function () { return UsageIngestedSpansResponse_1.UsageIngestedSpansResponse; } })); +var UsageIoTHour_1 = __nccwpck_require__(30380); +Object.defineProperty(exports, "UsageIoTHour", ({ enumerable: true, get: function () { return UsageIoTHour_1.UsageIoTHour; } })); +var UsageIoTResponse_1 = __nccwpck_require__(30937); +Object.defineProperty(exports, "UsageIoTResponse", ({ enumerable: true, get: function () { return UsageIoTResponse_1.UsageIoTResponse; } })); +var UsageLambdaHour_1 = __nccwpck_require__(86845); +Object.defineProperty(exports, "UsageLambdaHour", ({ enumerable: true, get: function () { return UsageLambdaHour_1.UsageLambdaHour; } })); +var UsageLambdaResponse_1 = __nccwpck_require__(71896); +Object.defineProperty(exports, "UsageLambdaResponse", ({ enumerable: true, get: function () { return UsageLambdaResponse_1.UsageLambdaResponse; } })); +var UsageLogsByIndexHour_1 = __nccwpck_require__(95598); +Object.defineProperty(exports, "UsageLogsByIndexHour", ({ enumerable: true, get: function () { return UsageLogsByIndexHour_1.UsageLogsByIndexHour; } })); +var UsageLogsByIndexResponse_1 = __nccwpck_require__(43711); +Object.defineProperty(exports, "UsageLogsByIndexResponse", ({ enumerable: true, get: function () { return UsageLogsByIndexResponse_1.UsageLogsByIndexResponse; } })); +var UsageLogsByRetentionHour_1 = __nccwpck_require__(14968); +Object.defineProperty(exports, "UsageLogsByRetentionHour", ({ enumerable: true, get: function () { return UsageLogsByRetentionHour_1.UsageLogsByRetentionHour; } })); +var UsageLogsByRetentionResponse_1 = __nccwpck_require__(65077); +Object.defineProperty(exports, "UsageLogsByRetentionResponse", ({ enumerable: true, get: function () { return UsageLogsByRetentionResponse_1.UsageLogsByRetentionResponse; } })); +var UsageLogsHour_1 = __nccwpck_require__(61777); +Object.defineProperty(exports, "UsageLogsHour", ({ enumerable: true, get: function () { return UsageLogsHour_1.UsageLogsHour; } })); +var UsageLogsResponse_1 = __nccwpck_require__(97740); +Object.defineProperty(exports, "UsageLogsResponse", ({ enumerable: true, get: function () { return UsageLogsResponse_1.UsageLogsResponse; } })); +var UsageNetworkFlowsHour_1 = __nccwpck_require__(46997); +Object.defineProperty(exports, "UsageNetworkFlowsHour", ({ enumerable: true, get: function () { return UsageNetworkFlowsHour_1.UsageNetworkFlowsHour; } })); +var UsageNetworkFlowsResponse_1 = __nccwpck_require__(38416); +Object.defineProperty(exports, "UsageNetworkFlowsResponse", ({ enumerable: true, get: function () { return UsageNetworkFlowsResponse_1.UsageNetworkFlowsResponse; } })); +var UsageNetworkHostsHour_1 = __nccwpck_require__(37519); +Object.defineProperty(exports, "UsageNetworkHostsHour", ({ enumerable: true, get: function () { return UsageNetworkHostsHour_1.UsageNetworkHostsHour; } })); +var UsageNetworkHostsResponse_1 = __nccwpck_require__(95238); +Object.defineProperty(exports, "UsageNetworkHostsResponse", ({ enumerable: true, get: function () { return UsageNetworkHostsResponse_1.UsageNetworkHostsResponse; } })); +var UsageOnlineArchiveHour_1 = __nccwpck_require__(94207); +Object.defineProperty(exports, "UsageOnlineArchiveHour", ({ enumerable: true, get: function () { return UsageOnlineArchiveHour_1.UsageOnlineArchiveHour; } })); +var UsageOnlineArchiveResponse_1 = __nccwpck_require__(53014); +Object.defineProperty(exports, "UsageOnlineArchiveResponse", ({ enumerable: true, get: function () { return UsageOnlineArchiveResponse_1.UsageOnlineArchiveResponse; } })); +var UsageProfilingHour_1 = __nccwpck_require__(63370); +Object.defineProperty(exports, "UsageProfilingHour", ({ enumerable: true, get: function () { return UsageProfilingHour_1.UsageProfilingHour; } })); +var UsageProfilingResponse_1 = __nccwpck_require__(23819); +Object.defineProperty(exports, "UsageProfilingResponse", ({ enumerable: true, get: function () { return UsageProfilingResponse_1.UsageProfilingResponse; } })); +var UsageRumSessionsHour_1 = __nccwpck_require__(73621); +Object.defineProperty(exports, "UsageRumSessionsHour", ({ enumerable: true, get: function () { return UsageRumSessionsHour_1.UsageRumSessionsHour; } })); +var UsageRumSessionsResponse_1 = __nccwpck_require__(54448); +Object.defineProperty(exports, "UsageRumSessionsResponse", ({ enumerable: true, get: function () { return UsageRumSessionsResponse_1.UsageRumSessionsResponse; } })); +var UsageRumUnitsHour_1 = __nccwpck_require__(56093); +Object.defineProperty(exports, "UsageRumUnitsHour", ({ enumerable: true, get: function () { return UsageRumUnitsHour_1.UsageRumUnitsHour; } })); +var UsageRumUnitsResponse_1 = __nccwpck_require__(99608); +Object.defineProperty(exports, "UsageRumUnitsResponse", ({ enumerable: true, get: function () { return UsageRumUnitsResponse_1.UsageRumUnitsResponse; } })); +var UsageSDSHour_1 = __nccwpck_require__(2428); +Object.defineProperty(exports, "UsageSDSHour", ({ enumerable: true, get: function () { return UsageSDSHour_1.UsageSDSHour; } })); +var UsageSDSResponse_1 = __nccwpck_require__(93929); +Object.defineProperty(exports, "UsageSDSResponse", ({ enumerable: true, get: function () { return UsageSDSResponse_1.UsageSDSResponse; } })); +var UsageSNMPHour_1 = __nccwpck_require__(12698); +Object.defineProperty(exports, "UsageSNMPHour", ({ enumerable: true, get: function () { return UsageSNMPHour_1.UsageSNMPHour; } })); +var UsageSNMPResponse_1 = __nccwpck_require__(1563); +Object.defineProperty(exports, "UsageSNMPResponse", ({ enumerable: true, get: function () { return UsageSNMPResponse_1.UsageSNMPResponse; } })); +var UsageSpecifiedCustomReportsAttributes_1 = __nccwpck_require__(12517); +Object.defineProperty(exports, "UsageSpecifiedCustomReportsAttributes", ({ enumerable: true, get: function () { return UsageSpecifiedCustomReportsAttributes_1.UsageSpecifiedCustomReportsAttributes; } })); +var UsageSpecifiedCustomReportsData_1 = __nccwpck_require__(86924); +Object.defineProperty(exports, "UsageSpecifiedCustomReportsData", ({ enumerable: true, get: function () { return UsageSpecifiedCustomReportsData_1.UsageSpecifiedCustomReportsData; } })); +var UsageSpecifiedCustomReportsMeta_1 = __nccwpck_require__(89077); +Object.defineProperty(exports, "UsageSpecifiedCustomReportsMeta", ({ enumerable: true, get: function () { return UsageSpecifiedCustomReportsMeta_1.UsageSpecifiedCustomReportsMeta; } })); +var UsageSpecifiedCustomReportsPage_1 = __nccwpck_require__(33427); +Object.defineProperty(exports, "UsageSpecifiedCustomReportsPage", ({ enumerable: true, get: function () { return UsageSpecifiedCustomReportsPage_1.UsageSpecifiedCustomReportsPage; } })); +var UsageSpecifiedCustomReportsResponse_1 = __nccwpck_require__(18507); +Object.defineProperty(exports, "UsageSpecifiedCustomReportsResponse", ({ enumerable: true, get: function () { return UsageSpecifiedCustomReportsResponse_1.UsageSpecifiedCustomReportsResponse; } })); +var UsageSummaryDate_1 = __nccwpck_require__(1434); +Object.defineProperty(exports, "UsageSummaryDate", ({ enumerable: true, get: function () { return UsageSummaryDate_1.UsageSummaryDate; } })); +var UsageSummaryDateOrg_1 = __nccwpck_require__(38054); +Object.defineProperty(exports, "UsageSummaryDateOrg", ({ enumerable: true, get: function () { return UsageSummaryDateOrg_1.UsageSummaryDateOrg; } })); +var UsageSummaryResponse_1 = __nccwpck_require__(17097); +Object.defineProperty(exports, "UsageSummaryResponse", ({ enumerable: true, get: function () { return UsageSummaryResponse_1.UsageSummaryResponse; } })); +var UsageSyntheticsAPIHour_1 = __nccwpck_require__(44452); +Object.defineProperty(exports, "UsageSyntheticsAPIHour", ({ enumerable: true, get: function () { return UsageSyntheticsAPIHour_1.UsageSyntheticsAPIHour; } })); +var UsageSyntheticsAPIResponse_1 = __nccwpck_require__(24913); +Object.defineProperty(exports, "UsageSyntheticsAPIResponse", ({ enumerable: true, get: function () { return UsageSyntheticsAPIResponse_1.UsageSyntheticsAPIResponse; } })); +var UsageSyntheticsBrowserHour_1 = __nccwpck_require__(89308); +Object.defineProperty(exports, "UsageSyntheticsBrowserHour", ({ enumerable: true, get: function () { return UsageSyntheticsBrowserHour_1.UsageSyntheticsBrowserHour; } })); +var UsageSyntheticsBrowserResponse_1 = __nccwpck_require__(60489); +Object.defineProperty(exports, "UsageSyntheticsBrowserResponse", ({ enumerable: true, get: function () { return UsageSyntheticsBrowserResponse_1.UsageSyntheticsBrowserResponse; } })); +var UsageSyntheticsHour_1 = __nccwpck_require__(30002); +Object.defineProperty(exports, "UsageSyntheticsHour", ({ enumerable: true, get: function () { return UsageSyntheticsHour_1.UsageSyntheticsHour; } })); +var UsageSyntheticsResponse_1 = __nccwpck_require__(53043); +Object.defineProperty(exports, "UsageSyntheticsResponse", ({ enumerable: true, get: function () { return UsageSyntheticsResponse_1.UsageSyntheticsResponse; } })); +var UsageTimeseriesHour_1 = __nccwpck_require__(27566); +Object.defineProperty(exports, "UsageTimeseriesHour", ({ enumerable: true, get: function () { return UsageTimeseriesHour_1.UsageTimeseriesHour; } })); +var UsageTimeseriesResponse_1 = __nccwpck_require__(36383); +Object.defineProperty(exports, "UsageTimeseriesResponse", ({ enumerable: true, get: function () { return UsageTimeseriesResponse_1.UsageTimeseriesResponse; } })); +var UsageTopAvgMetricsHour_1 = __nccwpck_require__(84166); +Object.defineProperty(exports, "UsageTopAvgMetricsHour", ({ enumerable: true, get: function () { return UsageTopAvgMetricsHour_1.UsageTopAvgMetricsHour; } })); +var UsageTopAvgMetricsMetadata_1 = __nccwpck_require__(40793); +Object.defineProperty(exports, "UsageTopAvgMetricsMetadata", ({ enumerable: true, get: function () { return UsageTopAvgMetricsMetadata_1.UsageTopAvgMetricsMetadata; } })); +var UsageTopAvgMetricsPagination_1 = __nccwpck_require__(99556); +Object.defineProperty(exports, "UsageTopAvgMetricsPagination", ({ enumerable: true, get: function () { return UsageTopAvgMetricsPagination_1.UsageTopAvgMetricsPagination; } })); +var UsageTopAvgMetricsResponse_1 = __nccwpck_require__(95095); +Object.defineProperty(exports, "UsageTopAvgMetricsResponse", ({ enumerable: true, get: function () { return UsageTopAvgMetricsResponse_1.UsageTopAvgMetricsResponse; } })); +var User_1 = __nccwpck_require__(24948); +Object.defineProperty(exports, "User", ({ enumerable: true, get: function () { return User_1.User; } })); +var UserDisableResponse_1 = __nccwpck_require__(22373); +Object.defineProperty(exports, "UserDisableResponse", ({ enumerable: true, get: function () { return UserDisableResponse_1.UserDisableResponse; } })); +var UserListResponse_1 = __nccwpck_require__(6403); +Object.defineProperty(exports, "UserListResponse", ({ enumerable: true, get: function () { return UserListResponse_1.UserListResponse; } })); +var UserResponse_1 = __nccwpck_require__(89659); +Object.defineProperty(exports, "UserResponse", ({ enumerable: true, get: function () { return UserResponse_1.UserResponse; } })); +var WebhooksIntegration_1 = __nccwpck_require__(13075); +Object.defineProperty(exports, "WebhooksIntegration", ({ enumerable: true, get: function () { return WebhooksIntegration_1.WebhooksIntegration; } })); +var WebhooksIntegrationCustomVariable_1 = __nccwpck_require__(13096); +Object.defineProperty(exports, "WebhooksIntegrationCustomVariable", ({ enumerable: true, get: function () { return WebhooksIntegrationCustomVariable_1.WebhooksIntegrationCustomVariable; } })); +var WebhooksIntegrationCustomVariableResponse_1 = __nccwpck_require__(48351); +Object.defineProperty(exports, "WebhooksIntegrationCustomVariableResponse", ({ enumerable: true, get: function () { return WebhooksIntegrationCustomVariableResponse_1.WebhooksIntegrationCustomVariableResponse; } })); +var WebhooksIntegrationCustomVariableUpdateRequest_1 = __nccwpck_require__(94500); +Object.defineProperty(exports, "WebhooksIntegrationCustomVariableUpdateRequest", ({ enumerable: true, get: function () { return WebhooksIntegrationCustomVariableUpdateRequest_1.WebhooksIntegrationCustomVariableUpdateRequest; } })); +var WebhooksIntegrationUpdateRequest_1 = __nccwpck_require__(32341); +Object.defineProperty(exports, "WebhooksIntegrationUpdateRequest", ({ enumerable: true, get: function () { return WebhooksIntegrationUpdateRequest_1.WebhooksIntegrationUpdateRequest; } })); +var Widget_1 = __nccwpck_require__(10895); +Object.defineProperty(exports, "Widget", ({ enumerable: true, get: function () { return Widget_1.Widget; } })); +var WidgetAxis_1 = __nccwpck_require__(78426); +Object.defineProperty(exports, "WidgetAxis", ({ enumerable: true, get: function () { return WidgetAxis_1.WidgetAxis; } })); +var WidgetConditionalFormat_1 = __nccwpck_require__(57848); +Object.defineProperty(exports, "WidgetConditionalFormat", ({ enumerable: true, get: function () { return WidgetConditionalFormat_1.WidgetConditionalFormat; } })); +var WidgetCustomLink_1 = __nccwpck_require__(90412); +Object.defineProperty(exports, "WidgetCustomLink", ({ enumerable: true, get: function () { return WidgetCustomLink_1.WidgetCustomLink; } })); +var WidgetEvent_1 = __nccwpck_require__(93799); +Object.defineProperty(exports, "WidgetEvent", ({ enumerable: true, get: function () { return WidgetEvent_1.WidgetEvent; } })); +var WidgetFieldSort_1 = __nccwpck_require__(33743); +Object.defineProperty(exports, "WidgetFieldSort", ({ enumerable: true, get: function () { return WidgetFieldSort_1.WidgetFieldSort; } })); +var WidgetFormula_1 = __nccwpck_require__(62557); +Object.defineProperty(exports, "WidgetFormula", ({ enumerable: true, get: function () { return WidgetFormula_1.WidgetFormula; } })); +var WidgetFormulaLimit_1 = __nccwpck_require__(68818); +Object.defineProperty(exports, "WidgetFormulaLimit", ({ enumerable: true, get: function () { return WidgetFormulaLimit_1.WidgetFormulaLimit; } })); +var WidgetFormulaSort_1 = __nccwpck_require__(3709); +Object.defineProperty(exports, "WidgetFormulaSort", ({ enumerable: true, get: function () { return WidgetFormulaSort_1.WidgetFormulaSort; } })); +var WidgetFormulaStyle_1 = __nccwpck_require__(67692); +Object.defineProperty(exports, "WidgetFormulaStyle", ({ enumerable: true, get: function () { return WidgetFormulaStyle_1.WidgetFormulaStyle; } })); +var WidgetGroupSort_1 = __nccwpck_require__(99376); +Object.defineProperty(exports, "WidgetGroupSort", ({ enumerable: true, get: function () { return WidgetGroupSort_1.WidgetGroupSort; } })); +var WidgetLayout_1 = __nccwpck_require__(55073); +Object.defineProperty(exports, "WidgetLayout", ({ enumerable: true, get: function () { return WidgetLayout_1.WidgetLayout; } })); +var WidgetLegacyLiveSpan_1 = __nccwpck_require__(21106); +Object.defineProperty(exports, "WidgetLegacyLiveSpan", ({ enumerable: true, get: function () { return WidgetLegacyLiveSpan_1.WidgetLegacyLiveSpan; } })); +var WidgetMarker_1 = __nccwpck_require__(45085); +Object.defineProperty(exports, "WidgetMarker", ({ enumerable: true, get: function () { return WidgetMarker_1.WidgetMarker; } })); +var WidgetNewFixedSpan_1 = __nccwpck_require__(84319); +Object.defineProperty(exports, "WidgetNewFixedSpan", ({ enumerable: true, get: function () { return WidgetNewFixedSpan_1.WidgetNewFixedSpan; } })); +var WidgetNewLiveSpan_1 = __nccwpck_require__(96155); +Object.defineProperty(exports, "WidgetNewLiveSpan", ({ enumerable: true, get: function () { return WidgetNewLiveSpan_1.WidgetNewLiveSpan; } })); +var WidgetRequestStyle_1 = __nccwpck_require__(31597); +Object.defineProperty(exports, "WidgetRequestStyle", ({ enumerable: true, get: function () { return WidgetRequestStyle_1.WidgetRequestStyle; } })); +var WidgetSortBy_1 = __nccwpck_require__(42610); +Object.defineProperty(exports, "WidgetSortBy", ({ enumerable: true, get: function () { return WidgetSortBy_1.WidgetSortBy; } })); +var WidgetStyle_1 = __nccwpck_require__(60150); +Object.defineProperty(exports, "WidgetStyle", ({ enumerable: true, get: function () { return WidgetStyle_1.WidgetStyle; } })); +var ObjectSerializer_1 = __nccwpck_require__(78052); +Object.defineProperty(exports, "ObjectSerializer", ({ enumerable: true, get: function () { return ObjectSerializer_1.ObjectSerializer; } })); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 1038: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.APIErrorResponse = void 0; +/** + * Error response object. + */ +class APIErrorResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return APIErrorResponse.attributeTypeMap; + } +} +exports.APIErrorResponse = APIErrorResponse; +/** + * @ignore + */ +APIErrorResponse.attributeTypeMap = { + errors: { + baseName: "errors", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=APIErrorResponse.js.map + +/***/ }), + +/***/ 77719: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSAccount = void 0; +/** + * Returns the AWS account associated with this integration. + */ +class AWSAccount { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSAccount.attributeTypeMap; + } +} +exports.AWSAccount = AWSAccount; +/** + * @ignore + */ +AWSAccount.attributeTypeMap = { + accessKeyId: { + baseName: "access_key_id", + type: "string", + }, + accountId: { + baseName: "account_id", + type: "string", + }, + accountSpecificNamespaceRules: { + baseName: "account_specific_namespace_rules", + type: "{ [key: string]: boolean; }", + }, + cspmResourceCollectionEnabled: { + baseName: "cspm_resource_collection_enabled", + type: "boolean", + }, + excludedRegions: { + baseName: "excluded_regions", + type: "Array", + }, + extendedResourceCollectionEnabled: { + baseName: "extended_resource_collection_enabled", + type: "boolean", + }, + filterTags: { + baseName: "filter_tags", + type: "Array", + }, + hostTags: { + baseName: "host_tags", + type: "Array", + }, + metricsCollectionEnabled: { + baseName: "metrics_collection_enabled", + type: "boolean", + }, + resourceCollectionEnabled: { + baseName: "resource_collection_enabled", + type: "boolean", + }, + roleName: { + baseName: "role_name", + type: "string", + }, + secretAccessKey: { + baseName: "secret_access_key", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSAccount.js.map + +/***/ }), + +/***/ 18288: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSAccountAndLambdaRequest = void 0; +/** + * AWS account ID and Lambda ARN. + */ +class AWSAccountAndLambdaRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSAccountAndLambdaRequest.attributeTypeMap; + } +} +exports.AWSAccountAndLambdaRequest = AWSAccountAndLambdaRequest; +/** + * @ignore + */ +AWSAccountAndLambdaRequest.attributeTypeMap = { + accountId: { + baseName: "account_id", + type: "string", + required: true, + }, + lambdaArn: { + baseName: "lambda_arn", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSAccountAndLambdaRequest.js.map + +/***/ }), + +/***/ 30136: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSAccountCreateResponse = void 0; +/** + * The Response returned by the AWS Create Account call. + */ +class AWSAccountCreateResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSAccountCreateResponse.attributeTypeMap; + } +} +exports.AWSAccountCreateResponse = AWSAccountCreateResponse; +/** + * @ignore + */ +AWSAccountCreateResponse.attributeTypeMap = { + externalId: { + baseName: "external_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSAccountCreateResponse.js.map + +/***/ }), + +/***/ 3947: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSAccountDeleteRequest = void 0; +/** + * List of AWS accounts to delete. + */ +class AWSAccountDeleteRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSAccountDeleteRequest.attributeTypeMap; + } +} +exports.AWSAccountDeleteRequest = AWSAccountDeleteRequest; +/** + * @ignore + */ +AWSAccountDeleteRequest.attributeTypeMap = { + accessKeyId: { + baseName: "access_key_id", + type: "string", + }, + accountId: { + baseName: "account_id", + type: "string", + }, + roleName: { + baseName: "role_name", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSAccountDeleteRequest.js.map + +/***/ }), + +/***/ 30060: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSAccountListResponse = void 0; +/** + * List of enabled AWS accounts. + */ +class AWSAccountListResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSAccountListResponse.attributeTypeMap; + } +} +exports.AWSAccountListResponse = AWSAccountListResponse; +/** + * @ignore + */ +AWSAccountListResponse.attributeTypeMap = { + accounts: { + baseName: "accounts", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSAccountListResponse.js.map + +/***/ }), + +/***/ 92322: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSEventBridgeAccountConfiguration = void 0; +/** + * The EventBridge configuration for one AWS account. + */ +class AWSEventBridgeAccountConfiguration { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSEventBridgeAccountConfiguration.attributeTypeMap; + } +} +exports.AWSEventBridgeAccountConfiguration = AWSEventBridgeAccountConfiguration; +/** + * @ignore + */ +AWSEventBridgeAccountConfiguration.attributeTypeMap = { + accountId: { + baseName: "accountId", + type: "string", + }, + eventHubs: { + baseName: "eventHubs", + type: "Array", + }, + tags: { + baseName: "tags", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSEventBridgeAccountConfiguration.js.map + +/***/ }), + +/***/ 8392: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSEventBridgeCreateRequest = void 0; +/** + * An object used to create an EventBridge source. + */ +class AWSEventBridgeCreateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSEventBridgeCreateRequest.attributeTypeMap; + } +} +exports.AWSEventBridgeCreateRequest = AWSEventBridgeCreateRequest; +/** + * @ignore + */ +AWSEventBridgeCreateRequest.attributeTypeMap = { + accountId: { + baseName: "account_id", + type: "string", + }, + createEventBus: { + baseName: "create_event_bus", + type: "boolean", + }, + eventGeneratorName: { + baseName: "event_generator_name", + type: "string", + }, + region: { + baseName: "region", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSEventBridgeCreateRequest.js.map + +/***/ }), + +/***/ 27634: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSEventBridgeCreateResponse = void 0; +/** + * A created EventBridge source. + */ +class AWSEventBridgeCreateResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSEventBridgeCreateResponse.attributeTypeMap; + } +} +exports.AWSEventBridgeCreateResponse = AWSEventBridgeCreateResponse; +/** + * @ignore + */ +AWSEventBridgeCreateResponse.attributeTypeMap = { + eventSourceName: { + baseName: "event_source_name", + type: "string", + }, + hasBus: { + baseName: "has_bus", + type: "boolean", + }, + region: { + baseName: "region", + type: "string", + }, + status: { + baseName: "status", + type: "AWSEventBridgeCreateStatus", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSEventBridgeCreateResponse.js.map + +/***/ }), + +/***/ 72925: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSEventBridgeDeleteRequest = void 0; +/** + * An object used to delete an EventBridge source. + */ +class AWSEventBridgeDeleteRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSEventBridgeDeleteRequest.attributeTypeMap; + } +} +exports.AWSEventBridgeDeleteRequest = AWSEventBridgeDeleteRequest; +/** + * @ignore + */ +AWSEventBridgeDeleteRequest.attributeTypeMap = { + accountId: { + baseName: "account_id", + type: "string", + }, + eventGeneratorName: { + baseName: "event_generator_name", + type: "string", + }, + region: { + baseName: "region", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSEventBridgeDeleteRequest.js.map + +/***/ }), + +/***/ 49065: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSEventBridgeDeleteResponse = void 0; +/** + * An indicator of the successful deletion of an EventBridge source. + */ +class AWSEventBridgeDeleteResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSEventBridgeDeleteResponse.attributeTypeMap; + } +} +exports.AWSEventBridgeDeleteResponse = AWSEventBridgeDeleteResponse; +/** + * @ignore + */ +AWSEventBridgeDeleteResponse.attributeTypeMap = { + status: { + baseName: "status", + type: "AWSEventBridgeDeleteStatus", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSEventBridgeDeleteResponse.js.map + +/***/ }), + +/***/ 41954: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSEventBridgeListResponse = void 0; +/** + * An object describing the EventBridge configuration for multiple accounts. + */ +class AWSEventBridgeListResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSEventBridgeListResponse.attributeTypeMap; + } +} +exports.AWSEventBridgeListResponse = AWSEventBridgeListResponse; +/** + * @ignore + */ +AWSEventBridgeListResponse.attributeTypeMap = { + accounts: { + baseName: "accounts", + type: "Array", + }, + isInstalled: { + baseName: "isInstalled", + type: "boolean", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSEventBridgeListResponse.js.map + +/***/ }), + +/***/ 93500: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSEventBridgeSource = void 0; +/** + * An EventBridge source. + */ +class AWSEventBridgeSource { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSEventBridgeSource.attributeTypeMap; + } +} +exports.AWSEventBridgeSource = AWSEventBridgeSource; +/** + * @ignore + */ +AWSEventBridgeSource.attributeTypeMap = { + name: { + baseName: "name", + type: "string", + }, + region: { + baseName: "region", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSEventBridgeSource.js.map + +/***/ }), + +/***/ 93719: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSLogsAsyncError = void 0; +/** + * Description of errors. + */ +class AWSLogsAsyncError { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSLogsAsyncError.attributeTypeMap; + } +} +exports.AWSLogsAsyncError = AWSLogsAsyncError; +/** + * @ignore + */ +AWSLogsAsyncError.attributeTypeMap = { + code: { + baseName: "code", + type: "string", + }, + message: { + baseName: "message", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSLogsAsyncError.js.map + +/***/ }), + +/***/ 50722: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSLogsAsyncResponse = void 0; +/** + * A list of all Datadog-AWS logs integrations available in your Datadog organization. + */ +class AWSLogsAsyncResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSLogsAsyncResponse.attributeTypeMap; + } +} +exports.AWSLogsAsyncResponse = AWSLogsAsyncResponse; +/** + * @ignore + */ +AWSLogsAsyncResponse.attributeTypeMap = { + errors: { + baseName: "errors", + type: "Array", + }, + status: { + baseName: "status", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSLogsAsyncResponse.js.map + +/***/ }), + +/***/ 60970: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSLogsLambda = void 0; +/** + * Description of the Lambdas. + */ +class AWSLogsLambda { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSLogsLambda.attributeTypeMap; + } +} +exports.AWSLogsLambda = AWSLogsLambda; +/** + * @ignore + */ +AWSLogsLambda.attributeTypeMap = { + arn: { + baseName: "arn", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSLogsLambda.js.map + +/***/ }), + +/***/ 52714: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSLogsListResponse = void 0; +/** + * A list of all Datadog-AWS logs integrations available in your Datadog organization. + */ +class AWSLogsListResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSLogsListResponse.attributeTypeMap; + } +} +exports.AWSLogsListResponse = AWSLogsListResponse; +/** + * @ignore + */ +AWSLogsListResponse.attributeTypeMap = { + accountId: { + baseName: "account_id", + type: "string", + }, + lambdas: { + baseName: "lambdas", + type: "Array", + }, + services: { + baseName: "services", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSLogsListResponse.js.map + +/***/ }), + +/***/ 85038: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSLogsListServicesResponse = void 0; +/** + * The list of current AWS services for which Datadog offers automatic log collection. + */ +class AWSLogsListServicesResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSLogsListServicesResponse.attributeTypeMap; + } +} +exports.AWSLogsListServicesResponse = AWSLogsListServicesResponse; +/** + * @ignore + */ +AWSLogsListServicesResponse.attributeTypeMap = { + id: { + baseName: "id", + type: "string", + }, + label: { + baseName: "label", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSLogsListServicesResponse.js.map + +/***/ }), + +/***/ 66600: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSLogsServicesRequest = void 0; +/** + * A list of current AWS services for which Datadog offers automatic log collection. + */ +class AWSLogsServicesRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSLogsServicesRequest.attributeTypeMap; + } +} +exports.AWSLogsServicesRequest = AWSLogsServicesRequest; +/** + * @ignore + */ +AWSLogsServicesRequest.attributeTypeMap = { + accountId: { + baseName: "account_id", + type: "string", + required: true, + }, + services: { + baseName: "services", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSLogsServicesRequest.js.map + +/***/ }), + +/***/ 36818: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSTagFilter = void 0; +/** + * A tag filter. + */ +class AWSTagFilter { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSTagFilter.attributeTypeMap; + } +} +exports.AWSTagFilter = AWSTagFilter; +/** + * @ignore + */ +AWSTagFilter.attributeTypeMap = { + namespace: { + baseName: "namespace", + type: "AWSNamespace", + }, + tagFilterStr: { + baseName: "tag_filter_str", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSTagFilter.js.map + +/***/ }), + +/***/ 5865: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSTagFilterCreateRequest = void 0; +/** + * The objects used to set an AWS tag filter. + */ +class AWSTagFilterCreateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSTagFilterCreateRequest.attributeTypeMap; + } +} +exports.AWSTagFilterCreateRequest = AWSTagFilterCreateRequest; +/** + * @ignore + */ +AWSTagFilterCreateRequest.attributeTypeMap = { + accountId: { + baseName: "account_id", + type: "string", + }, + namespace: { + baseName: "namespace", + type: "AWSNamespace", + }, + tagFilterStr: { + baseName: "tag_filter_str", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSTagFilterCreateRequest.js.map + +/***/ }), + +/***/ 62032: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSTagFilterDeleteRequest = void 0; +/** + * The objects used to delete an AWS tag filter entry. + */ +class AWSTagFilterDeleteRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSTagFilterDeleteRequest.attributeTypeMap; + } +} +exports.AWSTagFilterDeleteRequest = AWSTagFilterDeleteRequest; +/** + * @ignore + */ +AWSTagFilterDeleteRequest.attributeTypeMap = { + accountId: { + baseName: "account_id", + type: "string", + }, + namespace: { + baseName: "namespace", + type: "AWSNamespace", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSTagFilterDeleteRequest.js.map + +/***/ }), + +/***/ 43961: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSTagFilterListResponse = void 0; +/** + * An array of tag filter rules by `namespace` and tag filter string. + */ +class AWSTagFilterListResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSTagFilterListResponse.attributeTypeMap; + } +} +exports.AWSTagFilterListResponse = AWSTagFilterListResponse; +/** + * @ignore + */ +AWSTagFilterListResponse.attributeTypeMap = { + filters: { + baseName: "filters", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSTagFilterListResponse.js.map + +/***/ }), + +/***/ 90478: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AddSignalToIncidentRequest = void 0; +/** + * Attributes describing which incident to add the signal to. + */ +class AddSignalToIncidentRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AddSignalToIncidentRequest.attributeTypeMap; + } +} +exports.AddSignalToIncidentRequest = AddSignalToIncidentRequest; +/** + * @ignore + */ +AddSignalToIncidentRequest.attributeTypeMap = { + addToSignalTimeline: { + baseName: "add_to_signal_timeline", + type: "boolean", + }, + incidentId: { + baseName: "incident_id", + type: "number", + required: true, + format: "int64", + }, + version: { + baseName: "version", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AddSignalToIncidentRequest.js.map + +/***/ }), + +/***/ 61052: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AlertGraphWidgetDefinition = void 0; +/** + * Alert graphs are timeseries graphs showing the current status of any monitor defined on your system. + */ +class AlertGraphWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AlertGraphWidgetDefinition.attributeTypeMap; + } +} +exports.AlertGraphWidgetDefinition = AlertGraphWidgetDefinition; +/** + * @ignore + */ +AlertGraphWidgetDefinition.attributeTypeMap = { + alertId: { + baseName: "alert_id", + type: "string", + required: true, + }, + time: { + baseName: "time", + type: "WidgetTime", + }, + title: { + baseName: "title", + type: "string", + }, + titleAlign: { + baseName: "title_align", + type: "WidgetTextAlign", + }, + titleSize: { + baseName: "title_size", + type: "string", + }, + type: { + baseName: "type", + type: "AlertGraphWidgetDefinitionType", + required: true, + }, + vizType: { + baseName: "viz_type", + type: "WidgetVizType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AlertGraphWidgetDefinition.js.map + +/***/ }), + +/***/ 29833: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AlertValueWidgetDefinition = void 0; +/** + * Alert values are query values showing the current value of the metric in any monitor defined on your system. + */ +class AlertValueWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AlertValueWidgetDefinition.attributeTypeMap; + } +} +exports.AlertValueWidgetDefinition = AlertValueWidgetDefinition; +/** + * @ignore + */ +AlertValueWidgetDefinition.attributeTypeMap = { + alertId: { + baseName: "alert_id", + type: "string", + required: true, + }, + precision: { + baseName: "precision", + type: "number", + format: "int64", + }, + textAlign: { + baseName: "text_align", + type: "WidgetTextAlign", + }, + title: { + baseName: "title", + type: "string", + }, + titleAlign: { + baseName: "title_align", + type: "WidgetTextAlign", + }, + titleSize: { + baseName: "title_size", + type: "string", + }, + type: { + baseName: "type", + type: "AlertValueWidgetDefinitionType", + required: true, + }, + unit: { + baseName: "unit", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AlertValueWidgetDefinition.js.map + +/***/ }), + +/***/ 99816: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ApiKey = void 0; +/** + * Datadog API key. + */ +class ApiKey { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ApiKey.attributeTypeMap; + } +} +exports.ApiKey = ApiKey; +/** + * @ignore + */ +ApiKey.attributeTypeMap = { + created: { + baseName: "created", + type: "string", + }, + createdBy: { + baseName: "created_by", + type: "string", + }, + key: { + baseName: "key", + type: "string", + }, + name: { + baseName: "name", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ApiKey.js.map + +/***/ }), + +/***/ 26919: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ApiKeyListResponse = void 0; +/** + * List of API and application keys available for a given organization. + */ +class ApiKeyListResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ApiKeyListResponse.attributeTypeMap; + } +} +exports.ApiKeyListResponse = ApiKeyListResponse; +/** + * @ignore + */ +ApiKeyListResponse.attributeTypeMap = { + apiKeys: { + baseName: "api_keys", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ApiKeyListResponse.js.map + +/***/ }), + +/***/ 43839: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ApiKeyResponse = void 0; +/** + * An API key with its associated metadata. + */ +class ApiKeyResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ApiKeyResponse.attributeTypeMap; + } +} +exports.ApiKeyResponse = ApiKeyResponse; +/** + * @ignore + */ +ApiKeyResponse.attributeTypeMap = { + apiKey: { + baseName: "api_key", + type: "ApiKey", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ApiKeyResponse.js.map + +/***/ }), + +/***/ 49152: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ApmStatsQueryColumnType = void 0; +/** + * Column properties. + */ +class ApmStatsQueryColumnType { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ApmStatsQueryColumnType.attributeTypeMap; + } +} +exports.ApmStatsQueryColumnType = ApmStatsQueryColumnType; +/** + * @ignore + */ +ApmStatsQueryColumnType.attributeTypeMap = { + alias: { + baseName: "alias", + type: "string", + }, + cellDisplayMode: { + baseName: "cell_display_mode", + type: "TableWidgetCellDisplayMode", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + order: { + baseName: "order", + type: "WidgetSort", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ApmStatsQueryColumnType.js.map + +/***/ }), + +/***/ 84995: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ApmStatsQueryDefinition = void 0; +/** + * The APM stats query for table and distributions widgets. + */ +class ApmStatsQueryDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ApmStatsQueryDefinition.attributeTypeMap; + } +} +exports.ApmStatsQueryDefinition = ApmStatsQueryDefinition; +/** + * @ignore + */ +ApmStatsQueryDefinition.attributeTypeMap = { + columns: { + baseName: "columns", + type: "Array", + }, + env: { + baseName: "env", + type: "string", + required: true, + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + primaryTag: { + baseName: "primary_tag", + type: "string", + required: true, + }, + resource: { + baseName: "resource", + type: "string", + }, + rowType: { + baseName: "row_type", + type: "ApmStatsQueryRowType", + required: true, + }, + service: { + baseName: "service", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ApmStatsQueryDefinition.js.map + +/***/ }), + +/***/ 57554: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ApplicationKey = void 0; +/** + * An application key with its associated metadata. + */ +class ApplicationKey { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ApplicationKey.attributeTypeMap; + } +} +exports.ApplicationKey = ApplicationKey; +/** + * @ignore + */ +ApplicationKey.attributeTypeMap = { + hash: { + baseName: "hash", + type: "string", + }, + name: { + baseName: "name", + type: "string", + }, + owner: { + baseName: "owner", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ApplicationKey.js.map + +/***/ }), + +/***/ 27161: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ApplicationKeyListResponse = void 0; +/** + * An application key response. + */ +class ApplicationKeyListResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ApplicationKeyListResponse.attributeTypeMap; + } +} +exports.ApplicationKeyListResponse = ApplicationKeyListResponse; +/** + * @ignore + */ +ApplicationKeyListResponse.attributeTypeMap = { + applicationKeys: { + baseName: "application_keys", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ApplicationKeyListResponse.js.map + +/***/ }), + +/***/ 54485: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ApplicationKeyResponse = void 0; +/** + * An application key response. + */ +class ApplicationKeyResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ApplicationKeyResponse.attributeTypeMap; + } +} +exports.ApplicationKeyResponse = ApplicationKeyResponse; +/** + * @ignore + */ +ApplicationKeyResponse.attributeTypeMap = { + applicationKey: { + baseName: "application_key", + type: "ApplicationKey", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ApplicationKeyResponse.js.map + +/***/ }), + +/***/ 48807: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthenticationValidationResponse = void 0; +/** + * Represent validation endpoint responses. + */ +class AuthenticationValidationResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AuthenticationValidationResponse.attributeTypeMap; + } +} +exports.AuthenticationValidationResponse = AuthenticationValidationResponse; +/** + * @ignore + */ +AuthenticationValidationResponse.attributeTypeMap = { + valid: { + baseName: "valid", + type: "boolean", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AuthenticationValidationResponse.js.map + +/***/ }), + +/***/ 2881: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AzureAccount = void 0; +/** + * Datadog-Azure integrations configured for your organization. + */ +class AzureAccount { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AzureAccount.attributeTypeMap; + } +} +exports.AzureAccount = AzureAccount; +/** + * @ignore + */ +AzureAccount.attributeTypeMap = { + appServicePlanFilters: { + baseName: "app_service_plan_filters", + type: "string", + }, + automute: { + baseName: "automute", + type: "boolean", + }, + clientId: { + baseName: "client_id", + type: "string", + }, + clientSecret: { + baseName: "client_secret", + type: "string", + }, + containerAppFilters: { + baseName: "container_app_filters", + type: "string", + }, + cspmEnabled: { + baseName: "cspm_enabled", + type: "boolean", + }, + customMetricsEnabled: { + baseName: "custom_metrics_enabled", + type: "boolean", + }, + errors: { + baseName: "errors", + type: "Array", + }, + hostFilters: { + baseName: "host_filters", + type: "string", + }, + metricsConfig: { + baseName: "metrics_config", + type: "AzureAccountMetricsConfig", + }, + newClientId: { + baseName: "new_client_id", + type: "string", + }, + newTenantName: { + baseName: "new_tenant_name", + type: "string", + }, + resourceCollectionEnabled: { + baseName: "resource_collection_enabled", + type: "boolean", + }, + tenantName: { + baseName: "tenant_name", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AzureAccount.js.map + +/***/ }), + +/***/ 22330: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AzureAccountMetricsConfig = void 0; +/** + * Dictionary containing the key `excluded_resource_providers` which has to be a list of Microsoft Azure Resource Provider names. + * This feature is currently being beta tested. + * In order to enable all resource providers for metric collection, pass: + * `metrics_config: {"excluded_resource_providers": []}` (i.e., an empty list for `excluded_resource_providers`). + */ +class AzureAccountMetricsConfig { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AzureAccountMetricsConfig.attributeTypeMap; + } +} +exports.AzureAccountMetricsConfig = AzureAccountMetricsConfig; +/** + * @ignore + */ +AzureAccountMetricsConfig.attributeTypeMap = { + excludedResourceProviders: { + baseName: "excluded_resource_providers", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AzureAccountMetricsConfig.js.map + +/***/ }), + +/***/ 34831: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CancelDowntimesByScopeRequest = void 0; +/** + * Cancel downtimes according to scope. + */ +class CancelDowntimesByScopeRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CancelDowntimesByScopeRequest.attributeTypeMap; + } +} +exports.CancelDowntimesByScopeRequest = CancelDowntimesByScopeRequest; +/** + * @ignore + */ +CancelDowntimesByScopeRequest.attributeTypeMap = { + scope: { + baseName: "scope", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CancelDowntimesByScopeRequest.js.map + +/***/ }), + +/***/ 17668: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CanceledDowntimesIds = void 0; +/** + * Object containing array of IDs of canceled downtimes. + */ +class CanceledDowntimesIds { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CanceledDowntimesIds.attributeTypeMap; + } +} +exports.CanceledDowntimesIds = CanceledDowntimesIds; +/** + * @ignore + */ +CanceledDowntimesIds.attributeTypeMap = { + cancelledIds: { + baseName: "cancelled_ids", + type: "Array", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CanceledDowntimesIds.js.map + +/***/ }), + +/***/ 72762: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ChangeWidgetDefinition = void 0; +/** + * The Change graph shows you the change in a value over the time period chosen. + */ +class ChangeWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ChangeWidgetDefinition.attributeTypeMap; + } +} +exports.ChangeWidgetDefinition = ChangeWidgetDefinition; +/** + * @ignore + */ +ChangeWidgetDefinition.attributeTypeMap = { + customLinks: { + baseName: "custom_links", + type: "Array", + }, + requests: { + baseName: "requests", + type: "[ChangeWidgetRequest]", + required: true, + }, + time: { + baseName: "time", + type: "WidgetTime", + }, + title: { + baseName: "title", + type: "string", + }, + titleAlign: { + baseName: "title_align", + type: "WidgetTextAlign", + }, + titleSize: { + baseName: "title_size", + type: "string", + }, + type: { + baseName: "type", + type: "ChangeWidgetDefinitionType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ChangeWidgetDefinition.js.map + +/***/ }), + +/***/ 95114: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ChangeWidgetRequest = void 0; +/** + * Updated change widget. + */ +class ChangeWidgetRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ChangeWidgetRequest.attributeTypeMap; + } +} +exports.ChangeWidgetRequest = ChangeWidgetRequest; +/** + * @ignore + */ +ChangeWidgetRequest.attributeTypeMap = { + apmQuery: { + baseName: "apm_query", + type: "LogQueryDefinition", + }, + changeType: { + baseName: "change_type", + type: "WidgetChangeType", + }, + compareTo: { + baseName: "compare_to", + type: "WidgetCompareTo", + }, + eventQuery: { + baseName: "event_query", + type: "LogQueryDefinition", + }, + formulas: { + baseName: "formulas", + type: "Array", + }, + increaseGood: { + baseName: "increase_good", + type: "boolean", + }, + logQuery: { + baseName: "log_query", + type: "LogQueryDefinition", + }, + networkQuery: { + baseName: "network_query", + type: "LogQueryDefinition", + }, + orderBy: { + baseName: "order_by", + type: "WidgetOrderBy", + }, + orderDir: { + baseName: "order_dir", + type: "WidgetSort", + }, + processQuery: { + baseName: "process_query", + type: "ProcessQueryDefinition", + }, + profileMetricsQuery: { + baseName: "profile_metrics_query", + type: "LogQueryDefinition", + }, + q: { + baseName: "q", + type: "string", + }, + queries: { + baseName: "queries", + type: "Array", + }, + responseFormat: { + baseName: "response_format", + type: "FormulaAndFunctionResponseFormat", + }, + rumQuery: { + baseName: "rum_query", + type: "LogQueryDefinition", + }, + securityQuery: { + baseName: "security_query", + type: "LogQueryDefinition", + }, + showPresent: { + baseName: "show_present", + type: "boolean", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ChangeWidgetRequest.js.map + +/***/ }), + +/***/ 64145: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CheckCanDeleteMonitorResponse = void 0; +/** + * Response of monitor IDs that can or can't be safely deleted. + */ +class CheckCanDeleteMonitorResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CheckCanDeleteMonitorResponse.attributeTypeMap; + } +} +exports.CheckCanDeleteMonitorResponse = CheckCanDeleteMonitorResponse; +/** + * @ignore + */ +CheckCanDeleteMonitorResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "CheckCanDeleteMonitorResponseData", + required: true, + }, + errors: { + baseName: "errors", + type: "{ [key: string]: Array; }", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CheckCanDeleteMonitorResponse.js.map + +/***/ }), + +/***/ 2529: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CheckCanDeleteMonitorResponseData = void 0; +/** + * Wrapper object with the list of monitor IDs. + */ +class CheckCanDeleteMonitorResponseData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CheckCanDeleteMonitorResponseData.attributeTypeMap; + } +} +exports.CheckCanDeleteMonitorResponseData = CheckCanDeleteMonitorResponseData; +/** + * @ignore + */ +CheckCanDeleteMonitorResponseData.attributeTypeMap = { + ok: { + baseName: "ok", + type: "Array", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CheckCanDeleteMonitorResponseData.js.map + +/***/ }), + +/***/ 37823: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CheckCanDeleteSLOResponse = void 0; +/** + * A service level objective response containing the requested object. + */ +class CheckCanDeleteSLOResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CheckCanDeleteSLOResponse.attributeTypeMap; + } +} +exports.CheckCanDeleteSLOResponse = CheckCanDeleteSLOResponse; +/** + * @ignore + */ +CheckCanDeleteSLOResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "CheckCanDeleteSLOResponseData", + }, + errors: { + baseName: "errors", + type: "{ [key: string]: string; }", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CheckCanDeleteSLOResponse.js.map + +/***/ }), + +/***/ 71687: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CheckCanDeleteSLOResponseData = void 0; +/** + * An array of service level objective objects. + */ +class CheckCanDeleteSLOResponseData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CheckCanDeleteSLOResponseData.attributeTypeMap; + } +} +exports.CheckCanDeleteSLOResponseData = CheckCanDeleteSLOResponseData; +/** + * @ignore + */ +CheckCanDeleteSLOResponseData.attributeTypeMap = { + ok: { + baseName: "ok", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CheckCanDeleteSLOResponseData.js.map + +/***/ }), + +/***/ 77352: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CheckStatusWidgetDefinition = void 0; +/** + * Check status shows the current status or number of results for any check performed. + */ +class CheckStatusWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CheckStatusWidgetDefinition.attributeTypeMap; + } +} +exports.CheckStatusWidgetDefinition = CheckStatusWidgetDefinition; +/** + * @ignore + */ +CheckStatusWidgetDefinition.attributeTypeMap = { + check: { + baseName: "check", + type: "string", + required: true, + }, + group: { + baseName: "group", + type: "string", + }, + groupBy: { + baseName: "group_by", + type: "Array", + }, + grouping: { + baseName: "grouping", + type: "WidgetGrouping", + required: true, + }, + tags: { + baseName: "tags", + type: "Array", + }, + time: { + baseName: "time", + type: "WidgetTime", + }, + title: { + baseName: "title", + type: "string", + }, + titleAlign: { + baseName: "title_align", + type: "WidgetTextAlign", + }, + titleSize: { + baseName: "title_size", + type: "string", + }, + type: { + baseName: "type", + type: "CheckStatusWidgetDefinitionType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CheckStatusWidgetDefinition.js.map + +/***/ }), + +/***/ 85131: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Creator = void 0; +/** + * Object describing the creator of the shared element. + */ +class Creator { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return Creator.attributeTypeMap; + } +} +exports.Creator = Creator; +/** + * @ignore + */ +Creator.attributeTypeMap = { + email: { + baseName: "email", + type: "string", + }, + handle: { + baseName: "handle", + type: "string", + }, + name: { + baseName: "name", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=Creator.js.map + +/***/ }), + +/***/ 61271: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Dashboard = void 0; +/** + * A dashboard is Datadog’s tool for visually tracking, analyzing, and displaying + * key performance metrics, which enable you to monitor the health of your infrastructure. + */ +class Dashboard { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return Dashboard.attributeTypeMap; + } +} +exports.Dashboard = Dashboard; +/** + * @ignore + */ +Dashboard.attributeTypeMap = { + authorHandle: { + baseName: "author_handle", + type: "string", + }, + authorName: { + baseName: "author_name", + type: "string", + }, + createdAt: { + baseName: "created_at", + type: "Date", + format: "date-time", + }, + description: { + baseName: "description", + type: "string", + }, + id: { + baseName: "id", + type: "string", + }, + isReadOnly: { + baseName: "is_read_only", + type: "boolean", + }, + layoutType: { + baseName: "layout_type", + type: "DashboardLayoutType", + required: true, + }, + modifiedAt: { + baseName: "modified_at", + type: "Date", + format: "date-time", + }, + notifyList: { + baseName: "notify_list", + type: "Array", + }, + reflowType: { + baseName: "reflow_type", + type: "DashboardReflowType", + }, + restrictedRoles: { + baseName: "restricted_roles", + type: "Array", + }, + tags: { + baseName: "tags", + type: "Array", + }, + templateVariablePresets: { + baseName: "template_variable_presets", + type: "Array", + }, + templateVariables: { + baseName: "template_variables", + type: "Array", + }, + title: { + baseName: "title", + type: "string", + required: true, + }, + url: { + baseName: "url", + type: "string", + }, + widgets: { + baseName: "widgets", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=Dashboard.js.map + +/***/ }), + +/***/ 87641: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DashboardBulkActionData = void 0; +/** + * Dashboard bulk action request data. + */ +class DashboardBulkActionData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return DashboardBulkActionData.attributeTypeMap; + } +} +exports.DashboardBulkActionData = DashboardBulkActionData; +/** + * @ignore + */ +DashboardBulkActionData.attributeTypeMap = { + id: { + baseName: "id", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "DashboardResourceType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=DashboardBulkActionData.js.map + +/***/ }), + +/***/ 47991: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DashboardBulkDeleteRequest = void 0; +/** + * Dashboard bulk delete request body. + */ +class DashboardBulkDeleteRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return DashboardBulkDeleteRequest.attributeTypeMap; + } +} +exports.DashboardBulkDeleteRequest = DashboardBulkDeleteRequest; +/** + * @ignore + */ +DashboardBulkDeleteRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=DashboardBulkDeleteRequest.js.map + +/***/ }), + +/***/ 82639: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DashboardDeleteResponse = void 0; +/** + * Response from the delete dashboard call. + */ +class DashboardDeleteResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return DashboardDeleteResponse.attributeTypeMap; + } +} +exports.DashboardDeleteResponse = DashboardDeleteResponse; +/** + * @ignore + */ +DashboardDeleteResponse.attributeTypeMap = { + deletedDashboardId: { + baseName: "deleted_dashboard_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=DashboardDeleteResponse.js.map + +/***/ }), + +/***/ 88433: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DashboardGlobalTime = void 0; +/** + * Object containing the live span selection for the dashboard. + */ +class DashboardGlobalTime { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return DashboardGlobalTime.attributeTypeMap; + } +} +exports.DashboardGlobalTime = DashboardGlobalTime; +/** + * @ignore + */ +DashboardGlobalTime.attributeTypeMap = { + liveSpan: { + baseName: "live_span", + type: "DashboardGlobalTimeLiveSpan", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=DashboardGlobalTime.js.map + +/***/ }), + +/***/ 31007: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DashboardList = void 0; +/** + * Your Datadog Dashboards. + */ +class DashboardList { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return DashboardList.attributeTypeMap; + } +} +exports.DashboardList = DashboardList; +/** + * @ignore + */ +DashboardList.attributeTypeMap = { + author: { + baseName: "author", + type: "Creator", + }, + created: { + baseName: "created", + type: "Date", + format: "date-time", + }, + dashboardCount: { + baseName: "dashboard_count", + type: "number", + format: "int64", + }, + id: { + baseName: "id", + type: "number", + format: "int64", + }, + isFavorite: { + baseName: "is_favorite", + type: "boolean", + }, + modified: { + baseName: "modified", + type: "Date", + format: "date-time", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=DashboardList.js.map + +/***/ }), + +/***/ 76231: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DashboardListDeleteResponse = void 0; +/** + * Deleted dashboard details. + */ +class DashboardListDeleteResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return DashboardListDeleteResponse.attributeTypeMap; + } +} +exports.DashboardListDeleteResponse = DashboardListDeleteResponse; +/** + * @ignore + */ +DashboardListDeleteResponse.attributeTypeMap = { + deletedDashboardListId: { + baseName: "deleted_dashboard_list_id", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=DashboardListDeleteResponse.js.map + +/***/ }), + +/***/ 62964: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DashboardListListResponse = void 0; +/** + * Information on your dashboard lists. + */ +class DashboardListListResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return DashboardListListResponse.attributeTypeMap; + } +} +exports.DashboardListListResponse = DashboardListListResponse; +/** + * @ignore + */ +DashboardListListResponse.attributeTypeMap = { + dashboardLists: { + baseName: "dashboard_lists", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=DashboardListListResponse.js.map + +/***/ }), + +/***/ 65476: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DashboardRestoreRequest = void 0; +/** + * Dashboard restore request body. + */ +class DashboardRestoreRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return DashboardRestoreRequest.attributeTypeMap; + } +} +exports.DashboardRestoreRequest = DashboardRestoreRequest; +/** + * @ignore + */ +DashboardRestoreRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=DashboardRestoreRequest.js.map + +/***/ }), + +/***/ 9183: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DashboardSummary = void 0; +/** + * Dashboard summary response. + */ +class DashboardSummary { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return DashboardSummary.attributeTypeMap; + } +} +exports.DashboardSummary = DashboardSummary; +/** + * @ignore + */ +DashboardSummary.attributeTypeMap = { + dashboards: { + baseName: "dashboards", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=DashboardSummary.js.map + +/***/ }), + +/***/ 98402: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DashboardSummaryDefinition = void 0; +/** + * Dashboard definition. + */ +class DashboardSummaryDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return DashboardSummaryDefinition.attributeTypeMap; + } +} +exports.DashboardSummaryDefinition = DashboardSummaryDefinition; +/** + * @ignore + */ +DashboardSummaryDefinition.attributeTypeMap = { + authorHandle: { + baseName: "author_handle", + type: "string", + }, + createdAt: { + baseName: "created_at", + type: "Date", + format: "date-time", + }, + description: { + baseName: "description", + type: "string", + }, + id: { + baseName: "id", + type: "string", + }, + isReadOnly: { + baseName: "is_read_only", + type: "boolean", + }, + layoutType: { + baseName: "layout_type", + type: "DashboardLayoutType", + }, + modifiedAt: { + baseName: "modified_at", + type: "Date", + format: "date-time", + }, + title: { + baseName: "title", + type: "string", + }, + url: { + baseName: "url", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=DashboardSummaryDefinition.js.map + +/***/ }), + +/***/ 24169: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DashboardTemplateVariable = void 0; +/** + * Template variable. + */ +class DashboardTemplateVariable { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return DashboardTemplateVariable.attributeTypeMap; + } +} +exports.DashboardTemplateVariable = DashboardTemplateVariable; +/** + * @ignore + */ +DashboardTemplateVariable.attributeTypeMap = { + availableValues: { + baseName: "available_values", + type: "Array", + }, + _default: { + baseName: "default", + type: "string", + }, + defaults: { + baseName: "defaults", + type: "Array", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + prefix: { + baseName: "prefix", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=DashboardTemplateVariable.js.map + +/***/ }), + +/***/ 48950: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DashboardTemplateVariablePreset = void 0; +/** + * Template variables saved views. + */ +class DashboardTemplateVariablePreset { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return DashboardTemplateVariablePreset.attributeTypeMap; + } +} +exports.DashboardTemplateVariablePreset = DashboardTemplateVariablePreset; +/** + * @ignore + */ +DashboardTemplateVariablePreset.attributeTypeMap = { + name: { + baseName: "name", + type: "string", + }, + templateVariables: { + baseName: "template_variables", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=DashboardTemplateVariablePreset.js.map + +/***/ }), + +/***/ 9877: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DashboardTemplateVariablePresetValue = void 0; +/** + * Template variables saved views. + */ +class DashboardTemplateVariablePresetValue { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return DashboardTemplateVariablePresetValue.attributeTypeMap; + } +} +exports.DashboardTemplateVariablePresetValue = DashboardTemplateVariablePresetValue; +/** + * @ignore + */ +DashboardTemplateVariablePresetValue.attributeTypeMap = { + name: { + baseName: "name", + type: "string", + }, + value: { + baseName: "value", + type: "string", + }, + values: { + baseName: "values", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=DashboardTemplateVariablePresetValue.js.map + +/***/ }), + +/***/ 16066: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DeleteSharedDashboardResponse = void 0; +/** + * Response containing token of deleted shared dashboard. + */ +class DeleteSharedDashboardResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return DeleteSharedDashboardResponse.attributeTypeMap; + } +} +exports.DeleteSharedDashboardResponse = DeleteSharedDashboardResponse; +/** + * @ignore + */ +DeleteSharedDashboardResponse.attributeTypeMap = { + deletedPublicDashboardToken: { + baseName: "deleted_public_dashboard_token", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=DeleteSharedDashboardResponse.js.map + +/***/ }), + +/***/ 32502: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DeletedMonitor = void 0; +/** + * Response from the delete monitor call. + */ +class DeletedMonitor { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return DeletedMonitor.attributeTypeMap; + } +} +exports.DeletedMonitor = DeletedMonitor; +/** + * @ignore + */ +DeletedMonitor.attributeTypeMap = { + deletedMonitorId: { + baseName: "deleted_monitor_id", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=DeletedMonitor.js.map + +/***/ }), + +/***/ 2242: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DistributionPointsPayload = void 0; +/** + * The distribution points payload. + */ +class DistributionPointsPayload { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return DistributionPointsPayload.attributeTypeMap; + } +} +exports.DistributionPointsPayload = DistributionPointsPayload; +/** + * @ignore + */ +DistributionPointsPayload.attributeTypeMap = { + series: { + baseName: "series", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=DistributionPointsPayload.js.map + +/***/ }), + +/***/ 33403: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DistributionPointsSeries = void 0; +/** + * A distribution points metric to submit to Datadog. + */ +class DistributionPointsSeries { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return DistributionPointsSeries.attributeTypeMap; + } +} +exports.DistributionPointsSeries = DistributionPointsSeries; +/** + * @ignore + */ +DistributionPointsSeries.attributeTypeMap = { + host: { + baseName: "host", + type: "string", + }, + metric: { + baseName: "metric", + type: "string", + required: true, + }, + points: { + baseName: "points", + type: "Array<[DistributionPointItem, DistributionPointItem]>", + required: true, + }, + tags: { + baseName: "tags", + type: "Array", + }, + type: { + baseName: "type", + type: "DistributionPointsType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=DistributionPointsSeries.js.map + +/***/ }), + +/***/ 76064: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DistributionWidgetDefinition = void 0; +/** + * The Distribution visualization is another way of showing metrics + * aggregated across one or several tags, such as hosts. + * Unlike the heat map, a distribution graph’s x-axis is quantity rather than time. + */ +class DistributionWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return DistributionWidgetDefinition.attributeTypeMap; + } +} +exports.DistributionWidgetDefinition = DistributionWidgetDefinition; +/** + * @ignore + */ +DistributionWidgetDefinition.attributeTypeMap = { + customLinks: { + baseName: "custom_links", + type: "Array", + }, + legendSize: { + baseName: "legend_size", + type: "string", + }, + markers: { + baseName: "markers", + type: "Array", + }, + requests: { + baseName: "requests", + type: "[DistributionWidgetRequest]", + required: true, + }, + showLegend: { + baseName: "show_legend", + type: "boolean", + }, + time: { + baseName: "time", + type: "WidgetTime", + }, + title: { + baseName: "title", + type: "string", + }, + titleAlign: { + baseName: "title_align", + type: "WidgetTextAlign", + }, + titleSize: { + baseName: "title_size", + type: "string", + }, + type: { + baseName: "type", + type: "DistributionWidgetDefinitionType", + required: true, + }, + xaxis: { + baseName: "xaxis", + type: "DistributionWidgetXAxis", + }, + yaxis: { + baseName: "yaxis", + type: "DistributionWidgetYAxis", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=DistributionWidgetDefinition.js.map + +/***/ }), + +/***/ 10484: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DistributionWidgetRequest = void 0; +/** + * Updated distribution widget. + */ +class DistributionWidgetRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return DistributionWidgetRequest.attributeTypeMap; + } +} +exports.DistributionWidgetRequest = DistributionWidgetRequest; +/** + * @ignore + */ +DistributionWidgetRequest.attributeTypeMap = { + apmQuery: { + baseName: "apm_query", + type: "LogQueryDefinition", + }, + apmStatsQuery: { + baseName: "apm_stats_query", + type: "ApmStatsQueryDefinition", + }, + eventQuery: { + baseName: "event_query", + type: "LogQueryDefinition", + }, + logQuery: { + baseName: "log_query", + type: "LogQueryDefinition", + }, + networkQuery: { + baseName: "network_query", + type: "LogQueryDefinition", + }, + processQuery: { + baseName: "process_query", + type: "ProcessQueryDefinition", + }, + profileMetricsQuery: { + baseName: "profile_metrics_query", + type: "LogQueryDefinition", + }, + q: { + baseName: "q", + type: "string", + }, + query: { + baseName: "query", + type: "DistributionWidgetHistogramRequestQuery", + }, + requestType: { + baseName: "request_type", + type: "DistributionWidgetHistogramRequestType", + }, + rumQuery: { + baseName: "rum_query", + type: "LogQueryDefinition", + }, + securityQuery: { + baseName: "security_query", + type: "LogQueryDefinition", + }, + style: { + baseName: "style", + type: "WidgetStyle", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=DistributionWidgetRequest.js.map + +/***/ }), + +/***/ 13568: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DistributionWidgetXAxis = void 0; +/** + * X Axis controls for the distribution widget. + */ +class DistributionWidgetXAxis { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return DistributionWidgetXAxis.attributeTypeMap; + } +} +exports.DistributionWidgetXAxis = DistributionWidgetXAxis; +/** + * @ignore + */ +DistributionWidgetXAxis.attributeTypeMap = { + includeZero: { + baseName: "include_zero", + type: "boolean", + }, + max: { + baseName: "max", + type: "string", + }, + min: { + baseName: "min", + type: "string", + }, + scale: { + baseName: "scale", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=DistributionWidgetXAxis.js.map + +/***/ }), + +/***/ 92263: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DistributionWidgetYAxis = void 0; +/** + * Y Axis controls for the distribution widget. + */ +class DistributionWidgetYAxis { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return DistributionWidgetYAxis.attributeTypeMap; + } +} +exports.DistributionWidgetYAxis = DistributionWidgetYAxis; +/** + * @ignore + */ +DistributionWidgetYAxis.attributeTypeMap = { + includeZero: { + baseName: "include_zero", + type: "boolean", + }, + label: { + baseName: "label", + type: "string", + }, + max: { + baseName: "max", + type: "string", + }, + min: { + baseName: "min", + type: "string", + }, + scale: { + baseName: "scale", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=DistributionWidgetYAxis.js.map + +/***/ }), + +/***/ 45706: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Downtime = void 0; +/** + * Downtiming gives you greater control over monitor notifications by + * allowing you to globally exclude scopes from alerting. + * Downtime settings, which can be scheduled with start and end times, + * prevent all alerting related to specified Datadog tags. + */ +class Downtime { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return Downtime.attributeTypeMap; + } +} +exports.Downtime = Downtime; +/** + * @ignore + */ +Downtime.attributeTypeMap = { + active: { + baseName: "active", + type: "boolean", + }, + activeChild: { + baseName: "active_child", + type: "DowntimeChild", + }, + canceled: { + baseName: "canceled", + type: "number", + format: "int64", + }, + creatorId: { + baseName: "creator_id", + type: "number", + format: "int32", + }, + disabled: { + baseName: "disabled", + type: "boolean", + }, + downtimeType: { + baseName: "downtime_type", + type: "number", + format: "int32", + }, + end: { + baseName: "end", + type: "number", + format: "int64", + }, + id: { + baseName: "id", + type: "number", + format: "int64", + }, + message: { + baseName: "message", + type: "string", + }, + monitorId: { + baseName: "monitor_id", + type: "number", + format: "int64", + }, + monitorTags: { + baseName: "monitor_tags", + type: "Array", + }, + muteFirstRecoveryNotification: { + baseName: "mute_first_recovery_notification", + type: "boolean", + }, + notifyEndStates: { + baseName: "notify_end_states", + type: "Array", + }, + notifyEndTypes: { + baseName: "notify_end_types", + type: "Array", + }, + parentId: { + baseName: "parent_id", + type: "number", + format: "int64", + }, + recurrence: { + baseName: "recurrence", + type: "DowntimeRecurrence", + }, + scope: { + baseName: "scope", + type: "Array", + }, + start: { + baseName: "start", + type: "number", + format: "int64", + }, + timezone: { + baseName: "timezone", + type: "string", + }, + updaterId: { + baseName: "updater_id", + type: "number", + format: "int32", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=Downtime.js.map + +/***/ }), + +/***/ 17346: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DowntimeChild = void 0; +/** + * The downtime object definition of the active child for the original parent recurring downtime. This + * field will only exist on recurring downtimes. + */ +class DowntimeChild { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return DowntimeChild.attributeTypeMap; + } +} +exports.DowntimeChild = DowntimeChild; +/** + * @ignore + */ +DowntimeChild.attributeTypeMap = { + active: { + baseName: "active", + type: "boolean", + }, + canceled: { + baseName: "canceled", + type: "number", + format: "int64", + }, + creatorId: { + baseName: "creator_id", + type: "number", + format: "int32", + }, + disabled: { + baseName: "disabled", + type: "boolean", + }, + downtimeType: { + baseName: "downtime_type", + type: "number", + format: "int32", + }, + end: { + baseName: "end", + type: "number", + format: "int64", + }, + id: { + baseName: "id", + type: "number", + format: "int64", + }, + message: { + baseName: "message", + type: "string", + }, + monitorId: { + baseName: "monitor_id", + type: "number", + format: "int64", + }, + monitorTags: { + baseName: "monitor_tags", + type: "Array", + }, + muteFirstRecoveryNotification: { + baseName: "mute_first_recovery_notification", + type: "boolean", + }, + notifyEndStates: { + baseName: "notify_end_states", + type: "Array", + }, + notifyEndTypes: { + baseName: "notify_end_types", + type: "Array", + }, + parentId: { + baseName: "parent_id", + type: "number", + format: "int64", + }, + recurrence: { + baseName: "recurrence", + type: "DowntimeRecurrence", + }, + scope: { + baseName: "scope", + type: "Array", + }, + start: { + baseName: "start", + type: "number", + format: "int64", + }, + timezone: { + baseName: "timezone", + type: "string", + }, + updaterId: { + baseName: "updater_id", + type: "number", + format: "int32", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=DowntimeChild.js.map + +/***/ }), + +/***/ 25872: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DowntimeRecurrence = void 0; +/** + * An object defining the recurrence of the downtime. + */ +class DowntimeRecurrence { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return DowntimeRecurrence.attributeTypeMap; + } +} +exports.DowntimeRecurrence = DowntimeRecurrence; +/** + * @ignore + */ +DowntimeRecurrence.attributeTypeMap = { + period: { + baseName: "period", + type: "number", + format: "int32", + }, + rrule: { + baseName: "rrule", + type: "string", + }, + type: { + baseName: "type", + type: "string", + }, + untilDate: { + baseName: "until_date", + type: "number", + format: "int64", + }, + untilOccurrences: { + baseName: "until_occurrences", + type: "number", + format: "int32", + }, + weekDays: { + baseName: "week_days", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=DowntimeRecurrence.js.map + +/***/ }), + +/***/ 50003: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Event = void 0; +/** + * Object representing an event. + */ +class Event { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return Event.attributeTypeMap; + } +} +exports.Event = Event; +/** + * @ignore + */ +Event.attributeTypeMap = { + alertType: { + baseName: "alert_type", + type: "EventAlertType", + }, + dateHappened: { + baseName: "date_happened", + type: "number", + format: "int64", + }, + deviceName: { + baseName: "device_name", + type: "string", + }, + host: { + baseName: "host", + type: "string", + }, + id: { + baseName: "id", + type: "number", + format: "int64", + }, + idStr: { + baseName: "id_str", + type: "string", + }, + payload: { + baseName: "payload", + type: "string", + }, + priority: { + baseName: "priority", + type: "EventPriority", + }, + sourceTypeName: { + baseName: "source_type_name", + type: "string", + }, + tags: { + baseName: "tags", + type: "Array", + }, + text: { + baseName: "text", + type: "string", + }, + title: { + baseName: "title", + type: "string", + }, + url: { + baseName: "url", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=Event.js.map + +/***/ }), + +/***/ 2866: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.EventCreateRequest = void 0; +/** + * Object representing an event. + */ +class EventCreateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return EventCreateRequest.attributeTypeMap; + } +} +exports.EventCreateRequest = EventCreateRequest; +/** + * @ignore + */ +EventCreateRequest.attributeTypeMap = { + aggregationKey: { + baseName: "aggregation_key", + type: "string", + }, + alertType: { + baseName: "alert_type", + type: "EventAlertType", + }, + dateHappened: { + baseName: "date_happened", + type: "number", + format: "int64", + }, + deviceName: { + baseName: "device_name", + type: "string", + }, + host: { + baseName: "host", + type: "string", + }, + priority: { + baseName: "priority", + type: "EventPriority", + }, + relatedEventId: { + baseName: "related_event_id", + type: "number", + format: "int64", + }, + sourceTypeName: { + baseName: "source_type_name", + type: "string", + }, + tags: { + baseName: "tags", + type: "Array", + }, + text: { + baseName: "text", + type: "string", + required: true, + }, + title: { + baseName: "title", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=EventCreateRequest.js.map + +/***/ }), + +/***/ 39228: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.EventCreateResponse = void 0; +/** + * Object containing an event response. + */ +class EventCreateResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return EventCreateResponse.attributeTypeMap; + } +} +exports.EventCreateResponse = EventCreateResponse; +/** + * @ignore + */ +EventCreateResponse.attributeTypeMap = { + event: { + baseName: "event", + type: "Event", + }, + status: { + baseName: "status", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=EventCreateResponse.js.map + +/***/ }), + +/***/ 73000: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.EventListResponse = void 0; +/** + * An event list response. + */ +class EventListResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return EventListResponse.attributeTypeMap; + } +} +exports.EventListResponse = EventListResponse; +/** + * @ignore + */ +EventListResponse.attributeTypeMap = { + events: { + baseName: "events", + type: "Array", + }, + status: { + baseName: "status", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=EventListResponse.js.map + +/***/ }), + +/***/ 23186: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.EventQueryDefinition = void 0; +/** + * The event query. + */ +class EventQueryDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return EventQueryDefinition.attributeTypeMap; + } +} +exports.EventQueryDefinition = EventQueryDefinition; +/** + * @ignore + */ +EventQueryDefinition.attributeTypeMap = { + search: { + baseName: "search", + type: "string", + required: true, + }, + tagsExecution: { + baseName: "tags_execution", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=EventQueryDefinition.js.map + +/***/ }), + +/***/ 92864: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.EventResponse = void 0; +/** + * Object containing an event response. + */ +class EventResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return EventResponse.attributeTypeMap; + } +} +exports.EventResponse = EventResponse; +/** + * @ignore + */ +EventResponse.attributeTypeMap = { + event: { + baseName: "event", + type: "Event", + }, + status: { + baseName: "status", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=EventResponse.js.map + +/***/ }), + +/***/ 46650: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.EventStreamWidgetDefinition = void 0; +/** + * The event stream is a widget version of the stream of events + * on the Event Stream view. Only available on FREE layout dashboards. + */ +class EventStreamWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return EventStreamWidgetDefinition.attributeTypeMap; + } +} +exports.EventStreamWidgetDefinition = EventStreamWidgetDefinition; +/** + * @ignore + */ +EventStreamWidgetDefinition.attributeTypeMap = { + eventSize: { + baseName: "event_size", + type: "WidgetEventSize", + }, + query: { + baseName: "query", + type: "string", + required: true, + }, + tagsExecution: { + baseName: "tags_execution", + type: "string", + }, + time: { + baseName: "time", + type: "WidgetTime", + }, + title: { + baseName: "title", + type: "string", + }, + titleAlign: { + baseName: "title_align", + type: "WidgetTextAlign", + }, + titleSize: { + baseName: "title_size", + type: "string", + }, + type: { + baseName: "type", + type: "EventStreamWidgetDefinitionType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=EventStreamWidgetDefinition.js.map + +/***/ }), + +/***/ 94138: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.EventTimelineWidgetDefinition = void 0; +/** + * The event timeline is a widget version of the timeline that appears at the top of the Event Stream view. Only available on FREE layout dashboards. + */ +class EventTimelineWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return EventTimelineWidgetDefinition.attributeTypeMap; + } +} +exports.EventTimelineWidgetDefinition = EventTimelineWidgetDefinition; +/** + * @ignore + */ +EventTimelineWidgetDefinition.attributeTypeMap = { + query: { + baseName: "query", + type: "string", + required: true, + }, + tagsExecution: { + baseName: "tags_execution", + type: "string", + }, + time: { + baseName: "time", + type: "WidgetTime", + }, + title: { + baseName: "title", + type: "string", + }, + titleAlign: { + baseName: "title_align", + type: "WidgetTextAlign", + }, + titleSize: { + baseName: "title_size", + type: "string", + }, + type: { + baseName: "type", + type: "EventTimelineWidgetDefinitionType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=EventTimelineWidgetDefinition.js.map + +/***/ }), + +/***/ 63675: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.FormulaAndFunctionApmDependencyStatsQueryDefinition = void 0; +/** + * A formula and functions APM dependency stats query. + */ +class FormulaAndFunctionApmDependencyStatsQueryDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return FormulaAndFunctionApmDependencyStatsQueryDefinition.attributeTypeMap; + } +} +exports.FormulaAndFunctionApmDependencyStatsQueryDefinition = FormulaAndFunctionApmDependencyStatsQueryDefinition; +/** + * @ignore + */ +FormulaAndFunctionApmDependencyStatsQueryDefinition.attributeTypeMap = { + crossOrgUuids: { + baseName: "cross_org_uuids", + type: "Array", + }, + dataSource: { + baseName: "data_source", + type: "FormulaAndFunctionApmDependencyStatsDataSource", + required: true, + }, + env: { + baseName: "env", + type: "string", + required: true, + }, + isUpstream: { + baseName: "is_upstream", + type: "boolean", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + operationName: { + baseName: "operation_name", + type: "string", + required: true, + }, + primaryTagName: { + baseName: "primary_tag_name", + type: "string", + }, + primaryTagValue: { + baseName: "primary_tag_value", + type: "string", + }, + resourceName: { + baseName: "resource_name", + type: "string", + required: true, + }, + service: { + baseName: "service", + type: "string", + required: true, + }, + stat: { + baseName: "stat", + type: "FormulaAndFunctionApmDependencyStatName", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=FormulaAndFunctionApmDependencyStatsQueryDefinition.js.map + +/***/ }), + +/***/ 86366: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.FormulaAndFunctionApmResourceStatsQueryDefinition = void 0; +/** + * APM resource stats query using formulas and functions. + */ +class FormulaAndFunctionApmResourceStatsQueryDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return FormulaAndFunctionApmResourceStatsQueryDefinition.attributeTypeMap; + } +} +exports.FormulaAndFunctionApmResourceStatsQueryDefinition = FormulaAndFunctionApmResourceStatsQueryDefinition; +/** + * @ignore + */ +FormulaAndFunctionApmResourceStatsQueryDefinition.attributeTypeMap = { + crossOrgUuids: { + baseName: "cross_org_uuids", + type: "Array", + }, + dataSource: { + baseName: "data_source", + type: "FormulaAndFunctionApmResourceStatsDataSource", + required: true, + }, + env: { + baseName: "env", + type: "string", + required: true, + }, + groupBy: { + baseName: "group_by", + type: "Array", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + operationName: { + baseName: "operation_name", + type: "string", + }, + primaryTagName: { + baseName: "primary_tag_name", + type: "string", + }, + primaryTagValue: { + baseName: "primary_tag_value", + type: "string", + }, + resourceName: { + baseName: "resource_name", + type: "string", + }, + service: { + baseName: "service", + type: "string", + required: true, + }, + stat: { + baseName: "stat", + type: "FormulaAndFunctionApmResourceStatName", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=FormulaAndFunctionApmResourceStatsQueryDefinition.js.map + +/***/ }), + +/***/ 3061: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.FormulaAndFunctionCloudCostQueryDefinition = void 0; +/** + * A formula and functions Cloud Cost query. + */ +class FormulaAndFunctionCloudCostQueryDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return FormulaAndFunctionCloudCostQueryDefinition.attributeTypeMap; + } +} +exports.FormulaAndFunctionCloudCostQueryDefinition = FormulaAndFunctionCloudCostQueryDefinition; +/** + * @ignore + */ +FormulaAndFunctionCloudCostQueryDefinition.attributeTypeMap = { + aggregator: { + baseName: "aggregator", + type: "WidgetAggregator", + }, + crossOrgUuids: { + baseName: "cross_org_uuids", + type: "Array", + }, + dataSource: { + baseName: "data_source", + type: "FormulaAndFunctionCloudCostDataSource", + required: true, + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + query: { + baseName: "query", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=FormulaAndFunctionCloudCostQueryDefinition.js.map + +/***/ }), + +/***/ 42833: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.FormulaAndFunctionEventQueryDefinition = void 0; +/** + * A formula and functions events query. + */ +class FormulaAndFunctionEventQueryDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return FormulaAndFunctionEventQueryDefinition.attributeTypeMap; + } +} +exports.FormulaAndFunctionEventQueryDefinition = FormulaAndFunctionEventQueryDefinition; +/** + * @ignore + */ +FormulaAndFunctionEventQueryDefinition.attributeTypeMap = { + compute: { + baseName: "compute", + type: "FormulaAndFunctionEventQueryDefinitionCompute", + required: true, + }, + crossOrgUuids: { + baseName: "cross_org_uuids", + type: "Array", + }, + dataSource: { + baseName: "data_source", + type: "FormulaAndFunctionEventsDataSource", + required: true, + }, + groupBy: { + baseName: "group_by", + type: "Array", + }, + indexes: { + baseName: "indexes", + type: "Array", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + search: { + baseName: "search", + type: "FormulaAndFunctionEventQueryDefinitionSearch", + }, + storage: { + baseName: "storage", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=FormulaAndFunctionEventQueryDefinition.js.map + +/***/ }), + +/***/ 39584: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.FormulaAndFunctionEventQueryDefinitionCompute = void 0; +/** + * Compute options. + */ +class FormulaAndFunctionEventQueryDefinitionCompute { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return FormulaAndFunctionEventQueryDefinitionCompute.attributeTypeMap; + } +} +exports.FormulaAndFunctionEventQueryDefinitionCompute = FormulaAndFunctionEventQueryDefinitionCompute; +/** + * @ignore + */ +FormulaAndFunctionEventQueryDefinitionCompute.attributeTypeMap = { + aggregation: { + baseName: "aggregation", + type: "FormulaAndFunctionEventAggregation", + required: true, + }, + interval: { + baseName: "interval", + type: "number", + format: "int64", + }, + metric: { + baseName: "metric", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=FormulaAndFunctionEventQueryDefinitionCompute.js.map + +/***/ }), + +/***/ 55897: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.FormulaAndFunctionEventQueryDefinitionSearch = void 0; +/** + * Search options. + */ +class FormulaAndFunctionEventQueryDefinitionSearch { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return FormulaAndFunctionEventQueryDefinitionSearch.attributeTypeMap; + } +} +exports.FormulaAndFunctionEventQueryDefinitionSearch = FormulaAndFunctionEventQueryDefinitionSearch; +/** + * @ignore + */ +FormulaAndFunctionEventQueryDefinitionSearch.attributeTypeMap = { + query: { + baseName: "query", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=FormulaAndFunctionEventQueryDefinitionSearch.js.map + +/***/ }), + +/***/ 14536: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.FormulaAndFunctionEventQueryGroupBy = void 0; +/** + * List of objects used to group by. + */ +class FormulaAndFunctionEventQueryGroupBy { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return FormulaAndFunctionEventQueryGroupBy.attributeTypeMap; + } +} +exports.FormulaAndFunctionEventQueryGroupBy = FormulaAndFunctionEventQueryGroupBy; +/** + * @ignore + */ +FormulaAndFunctionEventQueryGroupBy.attributeTypeMap = { + facet: { + baseName: "facet", + type: "string", + required: true, + }, + limit: { + baseName: "limit", + type: "number", + format: "int64", + }, + sort: { + baseName: "sort", + type: "FormulaAndFunctionEventQueryGroupBySort", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=FormulaAndFunctionEventQueryGroupBy.js.map + +/***/ }), + +/***/ 88608: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.FormulaAndFunctionEventQueryGroupBySort = void 0; +/** + * Options for sorting group by results. + */ +class FormulaAndFunctionEventQueryGroupBySort { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return FormulaAndFunctionEventQueryGroupBySort.attributeTypeMap; + } +} +exports.FormulaAndFunctionEventQueryGroupBySort = FormulaAndFunctionEventQueryGroupBySort; +/** + * @ignore + */ +FormulaAndFunctionEventQueryGroupBySort.attributeTypeMap = { + aggregation: { + baseName: "aggregation", + type: "FormulaAndFunctionEventAggregation", + required: true, + }, + metric: { + baseName: "metric", + type: "string", + }, + order: { + baseName: "order", + type: "QuerySortOrder", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=FormulaAndFunctionEventQueryGroupBySort.js.map + +/***/ }), + +/***/ 27411: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.FormulaAndFunctionMetricQueryDefinition = void 0; +/** + * A formula and functions metrics query. + */ +class FormulaAndFunctionMetricQueryDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return FormulaAndFunctionMetricQueryDefinition.attributeTypeMap; + } +} +exports.FormulaAndFunctionMetricQueryDefinition = FormulaAndFunctionMetricQueryDefinition; +/** + * @ignore + */ +FormulaAndFunctionMetricQueryDefinition.attributeTypeMap = { + aggregator: { + baseName: "aggregator", + type: "FormulaAndFunctionMetricAggregation", + }, + crossOrgUuids: { + baseName: "cross_org_uuids", + type: "Array", + }, + dataSource: { + baseName: "data_source", + type: "FormulaAndFunctionMetricDataSource", + required: true, + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + query: { + baseName: "query", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=FormulaAndFunctionMetricQueryDefinition.js.map + +/***/ }), + +/***/ 66394: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.FormulaAndFunctionProcessQueryDefinition = void 0; +/** + * Process query using formulas and functions. + */ +class FormulaAndFunctionProcessQueryDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return FormulaAndFunctionProcessQueryDefinition.attributeTypeMap; + } +} +exports.FormulaAndFunctionProcessQueryDefinition = FormulaAndFunctionProcessQueryDefinition; +/** + * @ignore + */ +FormulaAndFunctionProcessQueryDefinition.attributeTypeMap = { + aggregator: { + baseName: "aggregator", + type: "FormulaAndFunctionMetricAggregation", + }, + crossOrgUuids: { + baseName: "cross_org_uuids", + type: "Array", + }, + dataSource: { + baseName: "data_source", + type: "FormulaAndFunctionProcessQueryDataSource", + required: true, + }, + isNormalizedCpu: { + baseName: "is_normalized_cpu", + type: "boolean", + }, + limit: { + baseName: "limit", + type: "number", + format: "int64", + }, + metric: { + baseName: "metric", + type: "string", + required: true, + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + sort: { + baseName: "sort", + type: "QuerySortOrder", + }, + tagFilters: { + baseName: "tag_filters", + type: "Array", + }, + textFilter: { + baseName: "text_filter", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=FormulaAndFunctionProcessQueryDefinition.js.map + +/***/ }), + +/***/ 99505: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.FormulaAndFunctionSLOQueryDefinition = void 0; +/** + * A formula and functions metrics query. + */ +class FormulaAndFunctionSLOQueryDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return FormulaAndFunctionSLOQueryDefinition.attributeTypeMap; + } +} +exports.FormulaAndFunctionSLOQueryDefinition = FormulaAndFunctionSLOQueryDefinition; +/** + * @ignore + */ +FormulaAndFunctionSLOQueryDefinition.attributeTypeMap = { + additionalQueryFilters: { + baseName: "additional_query_filters", + type: "string", + }, + crossOrgUuids: { + baseName: "cross_org_uuids", + type: "Array", + }, + dataSource: { + baseName: "data_source", + type: "FormulaAndFunctionSLODataSource", + required: true, + }, + groupMode: { + baseName: "group_mode", + type: "FormulaAndFunctionSLOGroupMode", + }, + measure: { + baseName: "measure", + type: "FormulaAndFunctionSLOMeasure", + required: true, + }, + name: { + baseName: "name", + type: "string", + }, + sloId: { + baseName: "slo_id", + type: "string", + required: true, + }, + sloQueryType: { + baseName: "slo_query_type", + type: "FormulaAndFunctionSLOQueryType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=FormulaAndFunctionSLOQueryDefinition.js.map + +/***/ }), + +/***/ 92163: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.FreeTextWidgetDefinition = void 0; +/** + * Free text is a widget that allows you to add headings to your screenboard. Commonly used to state the overall purpose of the dashboard. Only available on FREE layout dashboards. + */ +class FreeTextWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return FreeTextWidgetDefinition.attributeTypeMap; + } +} +exports.FreeTextWidgetDefinition = FreeTextWidgetDefinition; +/** + * @ignore + */ +FreeTextWidgetDefinition.attributeTypeMap = { + color: { + baseName: "color", + type: "string", + }, + fontSize: { + baseName: "font_size", + type: "string", + }, + text: { + baseName: "text", + type: "string", + required: true, + }, + textAlign: { + baseName: "text_align", + type: "WidgetTextAlign", + }, + type: { + baseName: "type", + type: "FreeTextWidgetDefinitionType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=FreeTextWidgetDefinition.js.map + +/***/ }), + +/***/ 95075: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.FunnelQuery = void 0; +/** + * Updated funnel widget. + */ +class FunnelQuery { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return FunnelQuery.attributeTypeMap; + } +} +exports.FunnelQuery = FunnelQuery; +/** + * @ignore + */ +FunnelQuery.attributeTypeMap = { + dataSource: { + baseName: "data_source", + type: "FunnelSource", + required: true, + }, + queryString: { + baseName: "query_string", + type: "string", + required: true, + }, + steps: { + baseName: "steps", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=FunnelQuery.js.map + +/***/ }), + +/***/ 33269: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.FunnelStep = void 0; +/** + * The funnel step. + */ +class FunnelStep { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return FunnelStep.attributeTypeMap; + } +} +exports.FunnelStep = FunnelStep; +/** + * @ignore + */ +FunnelStep.attributeTypeMap = { + facet: { + baseName: "facet", + type: "string", + required: true, + }, + value: { + baseName: "value", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=FunnelStep.js.map + +/***/ }), + +/***/ 12886: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.FunnelWidgetDefinition = void 0; +/** + * The funnel visualization displays a funnel of user sessions that maps a sequence of view navigation and user interaction in your application. + */ +class FunnelWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return FunnelWidgetDefinition.attributeTypeMap; + } +} +exports.FunnelWidgetDefinition = FunnelWidgetDefinition; +/** + * @ignore + */ +FunnelWidgetDefinition.attributeTypeMap = { + requests: { + baseName: "requests", + type: "[FunnelWidgetRequest]", + required: true, + }, + time: { + baseName: "time", + type: "WidgetTime", + }, + title: { + baseName: "title", + type: "string", + }, + titleAlign: { + baseName: "title_align", + type: "WidgetTextAlign", + }, + titleSize: { + baseName: "title_size", + type: "string", + }, + type: { + baseName: "type", + type: "FunnelWidgetDefinitionType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=FunnelWidgetDefinition.js.map + +/***/ }), + +/***/ 66102: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.FunnelWidgetRequest = void 0; +/** + * Updated funnel widget. + */ +class FunnelWidgetRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return FunnelWidgetRequest.attributeTypeMap; + } +} +exports.FunnelWidgetRequest = FunnelWidgetRequest; +/** + * @ignore + */ +FunnelWidgetRequest.attributeTypeMap = { + query: { + baseName: "query", + type: "FunnelQuery", + required: true, + }, + requestType: { + baseName: "request_type", + type: "FunnelRequestType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=FunnelWidgetRequest.js.map + +/***/ }), + +/***/ 45134: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GCPAccount = void 0; +/** + * Your Google Cloud Platform Account. + */ +class GCPAccount { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return GCPAccount.attributeTypeMap; + } +} +exports.GCPAccount = GCPAccount; +/** + * @ignore + */ +GCPAccount.attributeTypeMap = { + authProviderX509CertUrl: { + baseName: "auth_provider_x509_cert_url", + type: "string", + }, + authUri: { + baseName: "auth_uri", + type: "string", + }, + automute: { + baseName: "automute", + type: "boolean", + }, + clientEmail: { + baseName: "client_email", + type: "string", + }, + clientId: { + baseName: "client_id", + type: "string", + }, + clientX509CertUrl: { + baseName: "client_x509_cert_url", + type: "string", + }, + cloudRunRevisionFilters: { + baseName: "cloud_run_revision_filters", + type: "Array", + }, + errors: { + baseName: "errors", + type: "Array", + }, + hostFilters: { + baseName: "host_filters", + type: "string", + }, + isCspmEnabled: { + baseName: "is_cspm_enabled", + type: "boolean", + }, + isResourceChangeCollectionEnabled: { + baseName: "is_resource_change_collection_enabled", + type: "boolean", + }, + isSecurityCommandCenterEnabled: { + baseName: "is_security_command_center_enabled", + type: "boolean", + }, + privateKey: { + baseName: "private_key", + type: "string", + }, + privateKeyId: { + baseName: "private_key_id", + type: "string", + }, + projectId: { + baseName: "project_id", + type: "string", + }, + resourceCollectionEnabled: { + baseName: "resource_collection_enabled", + type: "boolean", + }, + tokenUri: { + baseName: "token_uri", + type: "string", + }, + type: { + baseName: "type", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=GCPAccount.js.map + +/***/ }), + +/***/ 10855: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GeomapWidgetDefinition = void 0; +/** + * This visualization displays a series of values by country on a world map. + */ +class GeomapWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return GeomapWidgetDefinition.attributeTypeMap; + } +} +exports.GeomapWidgetDefinition = GeomapWidgetDefinition; +/** + * @ignore + */ +GeomapWidgetDefinition.attributeTypeMap = { + customLinks: { + baseName: "custom_links", + type: "Array", + }, + requests: { + baseName: "requests", + type: "[GeomapWidgetRequest]", + required: true, + }, + style: { + baseName: "style", + type: "GeomapWidgetDefinitionStyle", + required: true, + }, + time: { + baseName: "time", + type: "WidgetTime", + }, + title: { + baseName: "title", + type: "string", + }, + titleAlign: { + baseName: "title_align", + type: "WidgetTextAlign", + }, + titleSize: { + baseName: "title_size", + type: "string", + }, + type: { + baseName: "type", + type: "GeomapWidgetDefinitionType", + required: true, + }, + view: { + baseName: "view", + type: "GeomapWidgetDefinitionView", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=GeomapWidgetDefinition.js.map + +/***/ }), + +/***/ 60254: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GeomapWidgetDefinitionStyle = void 0; +/** + * The style to apply to the widget. + */ +class GeomapWidgetDefinitionStyle { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return GeomapWidgetDefinitionStyle.attributeTypeMap; + } +} +exports.GeomapWidgetDefinitionStyle = GeomapWidgetDefinitionStyle; +/** + * @ignore + */ +GeomapWidgetDefinitionStyle.attributeTypeMap = { + palette: { + baseName: "palette", + type: "string", + required: true, + }, + paletteFlip: { + baseName: "palette_flip", + type: "boolean", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=GeomapWidgetDefinitionStyle.js.map + +/***/ }), + +/***/ 1882: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GeomapWidgetDefinitionView = void 0; +/** + * The view of the world that the map should render. + */ +class GeomapWidgetDefinitionView { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return GeomapWidgetDefinitionView.attributeTypeMap; + } +} +exports.GeomapWidgetDefinitionView = GeomapWidgetDefinitionView; +/** + * @ignore + */ +GeomapWidgetDefinitionView.attributeTypeMap = { + focus: { + baseName: "focus", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=GeomapWidgetDefinitionView.js.map + +/***/ }), + +/***/ 6333: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GeomapWidgetRequest = void 0; +/** + * An updated geomap widget. + */ +class GeomapWidgetRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return GeomapWidgetRequest.attributeTypeMap; + } +} +exports.GeomapWidgetRequest = GeomapWidgetRequest; +/** + * @ignore + */ +GeomapWidgetRequest.attributeTypeMap = { + columns: { + baseName: "columns", + type: "Array", + }, + formulas: { + baseName: "formulas", + type: "Array", + }, + logQuery: { + baseName: "log_query", + type: "LogQueryDefinition", + }, + q: { + baseName: "q", + type: "string", + }, + queries: { + baseName: "queries", + type: "Array", + }, + query: { + baseName: "query", + type: "ListStreamQuery", + }, + responseFormat: { + baseName: "response_format", + type: "FormulaAndFunctionResponseFormat", + }, + rumQuery: { + baseName: "rum_query", + type: "LogQueryDefinition", + }, + securityQuery: { + baseName: "security_query", + type: "LogQueryDefinition", + }, + sort: { + baseName: "sort", + type: "WidgetSortBy", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=GeomapWidgetRequest.js.map + +/***/ }), + +/***/ 10907: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GraphSnapshot = void 0; +/** + * Object representing a graph snapshot. + */ +class GraphSnapshot { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return GraphSnapshot.attributeTypeMap; + } +} +exports.GraphSnapshot = GraphSnapshot; +/** + * @ignore + */ +GraphSnapshot.attributeTypeMap = { + graphDef: { + baseName: "graph_def", + type: "string", + }, + metricQuery: { + baseName: "metric_query", + type: "string", + }, + snapshotUrl: { + baseName: "snapshot_url", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=GraphSnapshot.js.map + +/***/ }), + +/***/ 86757: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GroupWidgetDefinition = void 0; +/** + * The groups widget allows you to keep similar graphs together on your timeboard. Each group has a custom header, can hold one to many graphs, and is collapsible. + */ +class GroupWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return GroupWidgetDefinition.attributeTypeMap; + } +} +exports.GroupWidgetDefinition = GroupWidgetDefinition; +/** + * @ignore + */ +GroupWidgetDefinition.attributeTypeMap = { + backgroundColor: { + baseName: "background_color", + type: "string", + }, + bannerImg: { + baseName: "banner_img", + type: "string", + }, + layoutType: { + baseName: "layout_type", + type: "WidgetLayoutType", + required: true, + }, + showTitle: { + baseName: "show_title", + type: "boolean", + }, + title: { + baseName: "title", + type: "string", + }, + titleAlign: { + baseName: "title_align", + type: "WidgetTextAlign", + }, + type: { + baseName: "type", + type: "GroupWidgetDefinitionType", + required: true, + }, + widgets: { + baseName: "widgets", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=GroupWidgetDefinition.js.map + +/***/ }), + +/***/ 86791: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.HTTPLogError = void 0; +/** + * Invalid query performed. + */ +class HTTPLogError { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return HTTPLogError.attributeTypeMap; + } +} +exports.HTTPLogError = HTTPLogError; +/** + * @ignore + */ +HTTPLogError.attributeTypeMap = { + code: { + baseName: "code", + type: "number", + required: true, + format: "int32", + }, + message: { + baseName: "message", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=HTTPLogError.js.map + +/***/ }), + +/***/ 7790: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.HTTPLogItem = void 0; +/** + * Logs that are sent over HTTP. + */ +class HTTPLogItem { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return HTTPLogItem.attributeTypeMap; + } +} +exports.HTTPLogItem = HTTPLogItem; +/** + * @ignore + */ +HTTPLogItem.attributeTypeMap = { + ddsource: { + baseName: "ddsource", + type: "string", + }, + ddtags: { + baseName: "ddtags", + type: "string", + }, + hostname: { + baseName: "hostname", + type: "string", + }, + message: { + baseName: "message", + type: "string", + required: true, + }, + service: { + baseName: "service", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "string", + }, +}; +//# sourceMappingURL=HTTPLogItem.js.map + +/***/ }), + +/***/ 37398: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.HeatMapWidgetDefinition = void 0; +/** + * The heat map visualization shows metrics aggregated across many tags, such as hosts. The more hosts that have a particular value, the darker that square is. + */ +class HeatMapWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return HeatMapWidgetDefinition.attributeTypeMap; + } +} +exports.HeatMapWidgetDefinition = HeatMapWidgetDefinition; +/** + * @ignore + */ +HeatMapWidgetDefinition.attributeTypeMap = { + customLinks: { + baseName: "custom_links", + type: "Array", + }, + events: { + baseName: "events", + type: "Array", + }, + legendSize: { + baseName: "legend_size", + type: "string", + }, + requests: { + baseName: "requests", + type: "[HeatMapWidgetRequest]", + required: true, + }, + showLegend: { + baseName: "show_legend", + type: "boolean", + }, + time: { + baseName: "time", + type: "WidgetTime", + }, + title: { + baseName: "title", + type: "string", + }, + titleAlign: { + baseName: "title_align", + type: "WidgetTextAlign", + }, + titleSize: { + baseName: "title_size", + type: "string", + }, + type: { + baseName: "type", + type: "HeatMapWidgetDefinitionType", + required: true, + }, + yaxis: { + baseName: "yaxis", + type: "WidgetAxis", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=HeatMapWidgetDefinition.js.map + +/***/ }), + +/***/ 49846: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.HeatMapWidgetRequest = void 0; +/** + * Updated heat map widget. + */ +class HeatMapWidgetRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return HeatMapWidgetRequest.attributeTypeMap; + } +} +exports.HeatMapWidgetRequest = HeatMapWidgetRequest; +/** + * @ignore + */ +HeatMapWidgetRequest.attributeTypeMap = { + apmQuery: { + baseName: "apm_query", + type: "LogQueryDefinition", + }, + eventQuery: { + baseName: "event_query", + type: "EventQueryDefinition", + }, + formulas: { + baseName: "formulas", + type: "Array", + }, + logQuery: { + baseName: "log_query", + type: "LogQueryDefinition", + }, + networkQuery: { + baseName: "network_query", + type: "LogQueryDefinition", + }, + processQuery: { + baseName: "process_query", + type: "ProcessQueryDefinition", + }, + profileMetricsQuery: { + baseName: "profile_metrics_query", + type: "LogQueryDefinition", + }, + q: { + baseName: "q", + type: "string", + }, + queries: { + baseName: "queries", + type: "Array", + }, + responseFormat: { + baseName: "response_format", + type: "FormulaAndFunctionResponseFormat", + }, + rumQuery: { + baseName: "rum_query", + type: "LogQueryDefinition", + }, + securityQuery: { + baseName: "security_query", + type: "LogQueryDefinition", + }, + style: { + baseName: "style", + type: "WidgetStyle", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=HeatMapWidgetRequest.js.map + +/***/ }), + +/***/ 37585: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Host = void 0; +/** + * Object representing a host. + */ +class Host { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return Host.attributeTypeMap; + } +} +exports.Host = Host; +/** + * @ignore + */ +Host.attributeTypeMap = { + aliases: { + baseName: "aliases", + type: "Array", + }, + apps: { + baseName: "apps", + type: "Array", + }, + awsName: { + baseName: "aws_name", + type: "string", + }, + hostName: { + baseName: "host_name", + type: "string", + }, + id: { + baseName: "id", + type: "number", + format: "int64", + }, + isMuted: { + baseName: "is_muted", + type: "boolean", + }, + lastReportedTime: { + baseName: "last_reported_time", + type: "number", + format: "int64", + }, + meta: { + baseName: "meta", + type: "HostMeta", + }, + metrics: { + baseName: "metrics", + type: "HostMetrics", + }, + muteTimeout: { + baseName: "mute_timeout", + type: "number", + format: "int64", + }, + name: { + baseName: "name", + type: "string", + }, + sources: { + baseName: "sources", + type: "Array", + }, + tagsBySource: { + baseName: "tags_by_source", + type: "{ [key: string]: Array; }", + }, + up: { + baseName: "up", + type: "boolean", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=Host.js.map + +/***/ }), + +/***/ 91494: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.HostListResponse = void 0; +/** + * Response with Host information from Datadog. + */ +class HostListResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return HostListResponse.attributeTypeMap; + } +} +exports.HostListResponse = HostListResponse; +/** + * @ignore + */ +HostListResponse.attributeTypeMap = { + hostList: { + baseName: "host_list", + type: "Array", + }, + totalMatching: { + baseName: "total_matching", + type: "number", + format: "int64", + }, + totalReturned: { + baseName: "total_returned", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=HostListResponse.js.map + +/***/ }), + +/***/ 6402: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.HostMapRequest = void 0; +/** + * Updated host map. + */ +class HostMapRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return HostMapRequest.attributeTypeMap; + } +} +exports.HostMapRequest = HostMapRequest; +/** + * @ignore + */ +HostMapRequest.attributeTypeMap = { + apmQuery: { + baseName: "apm_query", + type: "LogQueryDefinition", + }, + eventQuery: { + baseName: "event_query", + type: "LogQueryDefinition", + }, + logQuery: { + baseName: "log_query", + type: "LogQueryDefinition", + }, + networkQuery: { + baseName: "network_query", + type: "LogQueryDefinition", + }, + processQuery: { + baseName: "process_query", + type: "ProcessQueryDefinition", + }, + profileMetricsQuery: { + baseName: "profile_metrics_query", + type: "LogQueryDefinition", + }, + q: { + baseName: "q", + type: "string", + }, + rumQuery: { + baseName: "rum_query", + type: "LogQueryDefinition", + }, + securityQuery: { + baseName: "security_query", + type: "LogQueryDefinition", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=HostMapRequest.js.map + +/***/ }), + +/***/ 6326: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.HostMapWidgetDefinition = void 0; +/** + * The host map widget graphs any metric across your hosts using the same visualization available from the main Host Map page. + */ +class HostMapWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return HostMapWidgetDefinition.attributeTypeMap; + } +} +exports.HostMapWidgetDefinition = HostMapWidgetDefinition; +/** + * @ignore + */ +HostMapWidgetDefinition.attributeTypeMap = { + customLinks: { + baseName: "custom_links", + type: "Array", + }, + group: { + baseName: "group", + type: "Array", + }, + noGroupHosts: { + baseName: "no_group_hosts", + type: "boolean", + }, + noMetricHosts: { + baseName: "no_metric_hosts", + type: "boolean", + }, + nodeType: { + baseName: "node_type", + type: "WidgetNodeType", + }, + notes: { + baseName: "notes", + type: "string", + }, + requests: { + baseName: "requests", + type: "HostMapWidgetDefinitionRequests", + required: true, + }, + scope: { + baseName: "scope", + type: "Array", + }, + style: { + baseName: "style", + type: "HostMapWidgetDefinitionStyle", + }, + title: { + baseName: "title", + type: "string", + }, + titleAlign: { + baseName: "title_align", + type: "WidgetTextAlign", + }, + titleSize: { + baseName: "title_size", + type: "string", + }, + type: { + baseName: "type", + type: "HostMapWidgetDefinitionType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=HostMapWidgetDefinition.js.map + +/***/ }), + +/***/ 91608: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.HostMapWidgetDefinitionRequests = void 0; +/** + * List of definitions. + */ +class HostMapWidgetDefinitionRequests { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return HostMapWidgetDefinitionRequests.attributeTypeMap; + } +} +exports.HostMapWidgetDefinitionRequests = HostMapWidgetDefinitionRequests; +/** + * @ignore + */ +HostMapWidgetDefinitionRequests.attributeTypeMap = { + fill: { + baseName: "fill", + type: "HostMapRequest", + }, + size: { + baseName: "size", + type: "HostMapRequest", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=HostMapWidgetDefinitionRequests.js.map + +/***/ }), + +/***/ 6177: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.HostMapWidgetDefinitionStyle = void 0; +/** + * The style to apply to the widget. + */ +class HostMapWidgetDefinitionStyle { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return HostMapWidgetDefinitionStyle.attributeTypeMap; + } +} +exports.HostMapWidgetDefinitionStyle = HostMapWidgetDefinitionStyle; +/** + * @ignore + */ +HostMapWidgetDefinitionStyle.attributeTypeMap = { + fillMax: { + baseName: "fill_max", + type: "string", + }, + fillMin: { + baseName: "fill_min", + type: "string", + }, + palette: { + baseName: "palette", + type: "string", + }, + paletteFlip: { + baseName: "palette_flip", + type: "boolean", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=HostMapWidgetDefinitionStyle.js.map + +/***/ }), + +/***/ 34168: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.HostMeta = void 0; +/** + * Metadata associated with your host. + */ +class HostMeta { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return HostMeta.attributeTypeMap; + } +} +exports.HostMeta = HostMeta; +/** + * @ignore + */ +HostMeta.attributeTypeMap = { + agentChecks: { + baseName: "agent_checks", + type: "Array>", + }, + agentVersion: { + baseName: "agent_version", + type: "string", + }, + cpuCores: { + baseName: "cpuCores", + type: "number", + format: "int64", + }, + fbsdV: { + baseName: "fbsdV", + type: "Array", + }, + gohai: { + baseName: "gohai", + type: "string", + }, + installMethod: { + baseName: "install_method", + type: "HostMetaInstallMethod", + }, + macV: { + baseName: "macV", + type: "Array", + }, + machine: { + baseName: "machine", + type: "string", + }, + nixV: { + baseName: "nixV", + type: "Array", + }, + platform: { + baseName: "platform", + type: "string", + }, + processor: { + baseName: "processor", + type: "string", + }, + pythonV: { + baseName: "pythonV", + type: "string", + }, + socketFqdn: { + baseName: "socket-fqdn", + type: "string", + }, + socketHostname: { + baseName: "socket-hostname", + type: "string", + }, + winV: { + baseName: "winV", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=HostMeta.js.map + +/***/ }), + +/***/ 20188: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.HostMetaInstallMethod = void 0; +/** + * Agent install method. + */ +class HostMetaInstallMethod { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return HostMetaInstallMethod.attributeTypeMap; + } +} +exports.HostMetaInstallMethod = HostMetaInstallMethod; +/** + * @ignore + */ +HostMetaInstallMethod.attributeTypeMap = { + installerVersion: { + baseName: "installer_version", + type: "string", + }, + tool: { + baseName: "tool", + type: "string", + }, + toolVersion: { + baseName: "tool_version", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=HostMetaInstallMethod.js.map + +/***/ }), + +/***/ 65528: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.HostMetrics = void 0; +/** + * Host Metrics collected. + */ +class HostMetrics { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return HostMetrics.attributeTypeMap; + } +} +exports.HostMetrics = HostMetrics; +/** + * @ignore + */ +HostMetrics.attributeTypeMap = { + cpu: { + baseName: "cpu", + type: "number", + format: "double", + }, + iowait: { + baseName: "iowait", + type: "number", + format: "double", + }, + load: { + baseName: "load", + type: "number", + format: "double", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=HostMetrics.js.map + +/***/ }), + +/***/ 69787: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.HostMuteResponse = void 0; +/** + * Response with the list of muted host for your organization. + */ +class HostMuteResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return HostMuteResponse.attributeTypeMap; + } +} +exports.HostMuteResponse = HostMuteResponse; +/** + * @ignore + */ +HostMuteResponse.attributeTypeMap = { + action: { + baseName: "action", + type: "string", + }, + end: { + baseName: "end", + type: "number", + format: "int64", + }, + hostname: { + baseName: "hostname", + type: "string", + }, + message: { + baseName: "message", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=HostMuteResponse.js.map + +/***/ }), + +/***/ 70293: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.HostMuteSettings = void 0; +/** + * Combination of settings to mute a host. + */ +class HostMuteSettings { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return HostMuteSettings.attributeTypeMap; + } +} +exports.HostMuteSettings = HostMuteSettings; +/** + * @ignore + */ +HostMuteSettings.attributeTypeMap = { + end: { + baseName: "end", + type: "number", + format: "int64", + }, + message: { + baseName: "message", + type: "string", + }, + override: { + baseName: "override", + type: "boolean", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=HostMuteSettings.js.map + +/***/ }), + +/***/ 7436: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.HostTags = void 0; +/** + * Set of tags to associate with your host. + */ +class HostTags { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return HostTags.attributeTypeMap; + } +} +exports.HostTags = HostTags; +/** + * @ignore + */ +HostTags.attributeTypeMap = { + host: { + baseName: "host", + type: "string", + }, + tags: { + baseName: "tags", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=HostTags.js.map + +/***/ }), + +/***/ 5210: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.HostTotals = void 0; +/** + * Total number of host currently monitored by Datadog. + */ +class HostTotals { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return HostTotals.attributeTypeMap; + } +} +exports.HostTotals = HostTotals; +/** + * @ignore + */ +HostTotals.attributeTypeMap = { + totalActive: { + baseName: "total_active", + type: "number", + format: "int64", + }, + totalUp: { + baseName: "total_up", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=HostTotals.js.map + +/***/ }), + +/***/ 32354: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.HourlyUsageAttributionBody = void 0; +/** + * The usage for one set of tags for one hour. + */ +class HourlyUsageAttributionBody { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return HourlyUsageAttributionBody.attributeTypeMap; + } +} +exports.HourlyUsageAttributionBody = HourlyUsageAttributionBody; +/** + * @ignore + */ +HourlyUsageAttributionBody.attributeTypeMap = { + hour: { + baseName: "hour", + type: "Date", + format: "date-time", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + region: { + baseName: "region", + type: "string", + }, + tagConfigSource: { + baseName: "tag_config_source", + type: "string", + }, + tags: { + baseName: "tags", + type: "{ [key: string]: Array; }", + }, + totalUsageSum: { + baseName: "total_usage_sum", + type: "number", + format: "double", + }, + updatedAt: { + baseName: "updated_at", + type: "string", + }, + usageType: { + baseName: "usage_type", + type: "HourlyUsageAttributionUsageType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=HourlyUsageAttributionBody.js.map + +/***/ }), + +/***/ 77915: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.HourlyUsageAttributionMetadata = void 0; +/** + * The object containing document metadata. + */ +class HourlyUsageAttributionMetadata { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return HourlyUsageAttributionMetadata.attributeTypeMap; + } +} +exports.HourlyUsageAttributionMetadata = HourlyUsageAttributionMetadata; +/** + * @ignore + */ +HourlyUsageAttributionMetadata.attributeTypeMap = { + pagination: { + baseName: "pagination", + type: "HourlyUsageAttributionPagination", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=HourlyUsageAttributionMetadata.js.map + +/***/ }), + +/***/ 35054: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.HourlyUsageAttributionPagination = void 0; +/** + * The metadata for the current pagination. + */ +class HourlyUsageAttributionPagination { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return HourlyUsageAttributionPagination.attributeTypeMap; + } +} +exports.HourlyUsageAttributionPagination = HourlyUsageAttributionPagination; +/** + * @ignore + */ +HourlyUsageAttributionPagination.attributeTypeMap = { + nextRecordId: { + baseName: "next_record_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=HourlyUsageAttributionPagination.js.map + +/***/ }), + +/***/ 89525: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.HourlyUsageAttributionResponse = void 0; +/** + * Response containing the hourly usage attribution by tag(s). + */ +class HourlyUsageAttributionResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return HourlyUsageAttributionResponse.attributeTypeMap; + } +} +exports.HourlyUsageAttributionResponse = HourlyUsageAttributionResponse; +/** + * @ignore + */ +HourlyUsageAttributionResponse.attributeTypeMap = { + metadata: { + baseName: "metadata", + type: "HourlyUsageAttributionMetadata", + }, + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=HourlyUsageAttributionResponse.js.map + +/***/ }), + +/***/ 41698: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IFrameWidgetDefinition = void 0; +/** + * The iframe widget allows you to embed a portion of any other web page on your dashboard. Only available on FREE layout dashboards. + */ +class IFrameWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return IFrameWidgetDefinition.attributeTypeMap; + } +} +exports.IFrameWidgetDefinition = IFrameWidgetDefinition; +/** + * @ignore + */ +IFrameWidgetDefinition.attributeTypeMap = { + type: { + baseName: "type", + type: "IFrameWidgetDefinitionType", + required: true, + }, + url: { + baseName: "url", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=IFrameWidgetDefinition.js.map + +/***/ }), + +/***/ 22500: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IPPrefixesAPI = void 0; +/** + * Available prefix information for the API endpoints. + */ +class IPPrefixesAPI { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return IPPrefixesAPI.attributeTypeMap; + } +} +exports.IPPrefixesAPI = IPPrefixesAPI; +/** + * @ignore + */ +IPPrefixesAPI.attributeTypeMap = { + prefixesIpv4: { + baseName: "prefixes_ipv4", + type: "Array", + }, + prefixesIpv6: { + baseName: "prefixes_ipv6", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=IPPrefixesAPI.js.map + +/***/ }), + +/***/ 89880: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IPPrefixesAPM = void 0; +/** + * Available prefix information for the APM endpoints. + */ +class IPPrefixesAPM { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return IPPrefixesAPM.attributeTypeMap; + } +} +exports.IPPrefixesAPM = IPPrefixesAPM; +/** + * @ignore + */ +IPPrefixesAPM.attributeTypeMap = { + prefixesIpv4: { + baseName: "prefixes_ipv4", + type: "Array", + }, + prefixesIpv6: { + baseName: "prefixes_ipv6", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=IPPrefixesAPM.js.map + +/***/ }), + +/***/ 87908: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IPPrefixesAgents = void 0; +/** + * Available prefix information for the Agent endpoints. + */ +class IPPrefixesAgents { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return IPPrefixesAgents.attributeTypeMap; + } +} +exports.IPPrefixesAgents = IPPrefixesAgents; +/** + * @ignore + */ +IPPrefixesAgents.attributeTypeMap = { + prefixesIpv4: { + baseName: "prefixes_ipv4", + type: "Array", + }, + prefixesIpv6: { + baseName: "prefixes_ipv6", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=IPPrefixesAgents.js.map + +/***/ }), + +/***/ 21553: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IPPrefixesGlobal = void 0; +/** + * Available prefix information for all Datadog endpoints. + */ +class IPPrefixesGlobal { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return IPPrefixesGlobal.attributeTypeMap; + } +} +exports.IPPrefixesGlobal = IPPrefixesGlobal; +/** + * @ignore + */ +IPPrefixesGlobal.attributeTypeMap = { + prefixesIpv4: { + baseName: "prefixes_ipv4", + type: "Array", + }, + prefixesIpv6: { + baseName: "prefixes_ipv6", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=IPPrefixesGlobal.js.map + +/***/ }), + +/***/ 65857: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IPPrefixesLogs = void 0; +/** + * Available prefix information for the Logs endpoints. + */ +class IPPrefixesLogs { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return IPPrefixesLogs.attributeTypeMap; + } +} +exports.IPPrefixesLogs = IPPrefixesLogs; +/** + * @ignore + */ +IPPrefixesLogs.attributeTypeMap = { + prefixesIpv4: { + baseName: "prefixes_ipv4", + type: "Array", + }, + prefixesIpv6: { + baseName: "prefixes_ipv6", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=IPPrefixesLogs.js.map + +/***/ }), + +/***/ 94962: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IPPrefixesOrchestrator = void 0; +/** + * Available prefix information for the Orchestrator endpoints. + */ +class IPPrefixesOrchestrator { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return IPPrefixesOrchestrator.attributeTypeMap; + } +} +exports.IPPrefixesOrchestrator = IPPrefixesOrchestrator; +/** + * @ignore + */ +IPPrefixesOrchestrator.attributeTypeMap = { + prefixesIpv4: { + baseName: "prefixes_ipv4", + type: "Array", + }, + prefixesIpv6: { + baseName: "prefixes_ipv6", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=IPPrefixesOrchestrator.js.map + +/***/ }), + +/***/ 83181: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IPPrefixesProcess = void 0; +/** + * Available prefix information for the Process endpoints. + */ +class IPPrefixesProcess { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return IPPrefixesProcess.attributeTypeMap; + } +} +exports.IPPrefixesProcess = IPPrefixesProcess; +/** + * @ignore + */ +IPPrefixesProcess.attributeTypeMap = { + prefixesIpv4: { + baseName: "prefixes_ipv4", + type: "Array", + }, + prefixesIpv6: { + baseName: "prefixes_ipv6", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=IPPrefixesProcess.js.map + +/***/ }), + +/***/ 85064: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IPPrefixesRemoteConfiguration = void 0; +/** + * Available prefix information for the Remote Configuration endpoints. + */ +class IPPrefixesRemoteConfiguration { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return IPPrefixesRemoteConfiguration.attributeTypeMap; + } +} +exports.IPPrefixesRemoteConfiguration = IPPrefixesRemoteConfiguration; +/** + * @ignore + */ +IPPrefixesRemoteConfiguration.attributeTypeMap = { + prefixesIpv4: { + baseName: "prefixes_ipv4", + type: "Array", + }, + prefixesIpv6: { + baseName: "prefixes_ipv6", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=IPPrefixesRemoteConfiguration.js.map + +/***/ }), + +/***/ 61442: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IPPrefixesSynthetics = void 0; +/** + * Available prefix information for the Synthetics endpoints. + */ +class IPPrefixesSynthetics { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return IPPrefixesSynthetics.attributeTypeMap; + } +} +exports.IPPrefixesSynthetics = IPPrefixesSynthetics; +/** + * @ignore + */ +IPPrefixesSynthetics.attributeTypeMap = { + prefixesIpv4: { + baseName: "prefixes_ipv4", + type: "Array", + }, + prefixesIpv4ByLocation: { + baseName: "prefixes_ipv4_by_location", + type: "{ [key: string]: Array; }", + }, + prefixesIpv6: { + baseName: "prefixes_ipv6", + type: "Array", + }, + prefixesIpv6ByLocation: { + baseName: "prefixes_ipv6_by_location", + type: "{ [key: string]: Array; }", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=IPPrefixesSynthetics.js.map + +/***/ }), + +/***/ 55411: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IPPrefixesSyntheticsPrivateLocations = void 0; +/** + * Available prefix information for the Synthetics Private Locations endpoints. + */ +class IPPrefixesSyntheticsPrivateLocations { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return IPPrefixesSyntheticsPrivateLocations.attributeTypeMap; + } +} +exports.IPPrefixesSyntheticsPrivateLocations = IPPrefixesSyntheticsPrivateLocations; +/** + * @ignore + */ +IPPrefixesSyntheticsPrivateLocations.attributeTypeMap = { + prefixesIpv4: { + baseName: "prefixes_ipv4", + type: "Array", + }, + prefixesIpv6: { + baseName: "prefixes_ipv6", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=IPPrefixesSyntheticsPrivateLocations.js.map + +/***/ }), + +/***/ 75876: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IPPrefixesWebhooks = void 0; +/** + * Available prefix information for the Webhook endpoints. + */ +class IPPrefixesWebhooks { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return IPPrefixesWebhooks.attributeTypeMap; + } +} +exports.IPPrefixesWebhooks = IPPrefixesWebhooks; +/** + * @ignore + */ +IPPrefixesWebhooks.attributeTypeMap = { + prefixesIpv4: { + baseName: "prefixes_ipv4", + type: "Array", + }, + prefixesIpv6: { + baseName: "prefixes_ipv6", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=IPPrefixesWebhooks.js.map + +/***/ }), + +/***/ 78560: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IPRanges = void 0; +/** + * IP ranges. + */ +class IPRanges { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return IPRanges.attributeTypeMap; + } +} +exports.IPRanges = IPRanges; +/** + * @ignore + */ +IPRanges.attributeTypeMap = { + agents: { + baseName: "agents", + type: "IPPrefixesAgents", + }, + api: { + baseName: "api", + type: "IPPrefixesAPI", + }, + apm: { + baseName: "apm", + type: "IPPrefixesAPM", + }, + global: { + baseName: "global", + type: "IPPrefixesGlobal", + }, + logs: { + baseName: "logs", + type: "IPPrefixesLogs", + }, + modified: { + baseName: "modified", + type: "string", + }, + orchestrator: { + baseName: "orchestrator", + type: "IPPrefixesOrchestrator", + }, + process: { + baseName: "process", + type: "IPPrefixesProcess", + }, + remoteConfiguration: { + baseName: "remote-configuration", + type: "IPPrefixesRemoteConfiguration", + }, + synthetics: { + baseName: "synthetics", + type: "IPPrefixesSynthetics", + }, + syntheticsPrivateLocations: { + baseName: "synthetics-private-locations", + type: "IPPrefixesSyntheticsPrivateLocations", + }, + version: { + baseName: "version", + type: "number", + format: "int64", + }, + webhooks: { + baseName: "webhooks", + type: "IPPrefixesWebhooks", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=IPRanges.js.map + +/***/ }), + +/***/ 57690: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IdpFormData = void 0; +/** + * Object describing the IdP configuration. + */ +class IdpFormData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return IdpFormData.attributeTypeMap; + } +} +exports.IdpFormData = IdpFormData; +/** + * @ignore + */ +IdpFormData.attributeTypeMap = { + idpFile: { + baseName: "idp_file", + type: "HttpFile", + required: true, + format: "binary", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=IdpFormData.js.map + +/***/ }), + +/***/ 79335: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IdpResponse = void 0; +/** + * The IdP response object. + */ +class IdpResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return IdpResponse.attributeTypeMap; + } +} +exports.IdpResponse = IdpResponse; +/** + * @ignore + */ +IdpResponse.attributeTypeMap = { + message: { + baseName: "message", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=IdpResponse.js.map + +/***/ }), + +/***/ 60275: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ImageWidgetDefinition = void 0; +/** + * The image widget allows you to embed an image on your dashboard. An image can be a PNG, JPG, or animated GIF. Only available on FREE layout dashboards. + */ +class ImageWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ImageWidgetDefinition.attributeTypeMap; + } +} +exports.ImageWidgetDefinition = ImageWidgetDefinition; +/** + * @ignore + */ +ImageWidgetDefinition.attributeTypeMap = { + hasBackground: { + baseName: "has_background", + type: "boolean", + }, + hasBorder: { + baseName: "has_border", + type: "boolean", + }, + horizontalAlign: { + baseName: "horizontal_align", + type: "WidgetHorizontalAlign", + }, + margin: { + baseName: "margin", + type: "WidgetMargin", + }, + sizing: { + baseName: "sizing", + type: "WidgetImageSizing", + }, + type: { + baseName: "type", + type: "ImageWidgetDefinitionType", + required: true, + }, + url: { + baseName: "url", + type: "string", + required: true, + }, + urlDarkTheme: { + baseName: "url_dark_theme", + type: "string", + }, + verticalAlign: { + baseName: "vertical_align", + type: "WidgetVerticalAlign", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ImageWidgetDefinition.js.map + +/***/ }), + +/***/ 41196: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IntakePayloadAccepted = void 0; +/** + * The payload accepted for intake. + */ +class IntakePayloadAccepted { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return IntakePayloadAccepted.attributeTypeMap; + } +} +exports.IntakePayloadAccepted = IntakePayloadAccepted; +/** + * @ignore + */ +IntakePayloadAccepted.attributeTypeMap = { + status: { + baseName: "status", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=IntakePayloadAccepted.js.map + +/***/ }), + +/***/ 57985: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ListStreamColumn = void 0; +/** + * Widget column. + */ +class ListStreamColumn { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ListStreamColumn.attributeTypeMap; + } +} +exports.ListStreamColumn = ListStreamColumn; +/** + * @ignore + */ +ListStreamColumn.attributeTypeMap = { + field: { + baseName: "field", + type: "string", + required: true, + }, + width: { + baseName: "width", + type: "ListStreamColumnWidth", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ListStreamColumn.js.map + +/***/ }), + +/***/ 63980: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ListStreamComputeItems = void 0; +/** + * List of facets and aggregations which to compute. + */ +class ListStreamComputeItems { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ListStreamComputeItems.attributeTypeMap; + } +} +exports.ListStreamComputeItems = ListStreamComputeItems; +/** + * @ignore + */ +ListStreamComputeItems.attributeTypeMap = { + aggregation: { + baseName: "aggregation", + type: "ListStreamComputeAggregation", + required: true, + }, + facet: { + baseName: "facet", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ListStreamComputeItems.js.map + +/***/ }), + +/***/ 92737: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ListStreamGroupByItems = void 0; +/** + * List of facets on which to group. + */ +class ListStreamGroupByItems { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ListStreamGroupByItems.attributeTypeMap; + } +} +exports.ListStreamGroupByItems = ListStreamGroupByItems; +/** + * @ignore + */ +ListStreamGroupByItems.attributeTypeMap = { + facet: { + baseName: "facet", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ListStreamGroupByItems.js.map + +/***/ }), + +/***/ 67039: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ListStreamQuery = void 0; +/** + * Updated list stream widget. + */ +class ListStreamQuery { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ListStreamQuery.attributeTypeMap; + } +} +exports.ListStreamQuery = ListStreamQuery; +/** + * @ignore + */ +ListStreamQuery.attributeTypeMap = { + clusteringPatternFieldPath: { + baseName: "clustering_pattern_field_path", + type: "string", + }, + compute: { + baseName: "compute", + type: "Array", + }, + dataSource: { + baseName: "data_source", + type: "ListStreamSource", + required: true, + }, + eventSize: { + baseName: "event_size", + type: "WidgetEventSize", + }, + groupBy: { + baseName: "group_by", + type: "Array", + }, + indexes: { + baseName: "indexes", + type: "Array", + }, + queryString: { + baseName: "query_string", + type: "string", + required: true, + }, + sort: { + baseName: "sort", + type: "WidgetFieldSort", + }, + storage: { + baseName: "storage", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ListStreamQuery.js.map + +/***/ }), + +/***/ 41306: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ListStreamWidgetDefinition = void 0; +/** + * The list stream visualization displays a table of recent events in your application that + * match a search criteria using user-defined columns. + */ +class ListStreamWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ListStreamWidgetDefinition.attributeTypeMap; + } +} +exports.ListStreamWidgetDefinition = ListStreamWidgetDefinition; +/** + * @ignore + */ +ListStreamWidgetDefinition.attributeTypeMap = { + legendSize: { + baseName: "legend_size", + type: "string", + }, + requests: { + baseName: "requests", + type: "[ListStreamWidgetRequest]", + required: true, + }, + showLegend: { + baseName: "show_legend", + type: "boolean", + }, + time: { + baseName: "time", + type: "WidgetTime", + }, + title: { + baseName: "title", + type: "string", + }, + titleAlign: { + baseName: "title_align", + type: "WidgetTextAlign", + }, + titleSize: { + baseName: "title_size", + type: "string", + }, + type: { + baseName: "type", + type: "ListStreamWidgetDefinitionType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ListStreamWidgetDefinition.js.map + +/***/ }), + +/***/ 52202: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ListStreamWidgetRequest = void 0; +/** + * Updated list stream widget. + */ +class ListStreamWidgetRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ListStreamWidgetRequest.attributeTypeMap; + } +} +exports.ListStreamWidgetRequest = ListStreamWidgetRequest; +/** + * @ignore + */ +ListStreamWidgetRequest.attributeTypeMap = { + columns: { + baseName: "columns", + type: "Array", + required: true, + }, + query: { + baseName: "query", + type: "ListStreamQuery", + required: true, + }, + responseFormat: { + baseName: "response_format", + type: "ListStreamResponseFormat", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ListStreamWidgetRequest.js.map + +/***/ }), + +/***/ 23137: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Log = void 0; +/** + * Object describing a log after being processed and stored by Datadog. + */ +class Log { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return Log.attributeTypeMap; + } +} +exports.Log = Log; +/** + * @ignore + */ +Log.attributeTypeMap = { + content: { + baseName: "content", + type: "LogContent", + }, + id: { + baseName: "id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=Log.js.map + +/***/ }), + +/***/ 90700: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogContent = void 0; +/** + * JSON object containing all log attributes and their associated values. + */ +class LogContent { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogContent.attributeTypeMap; + } +} +exports.LogContent = LogContent; +/** + * @ignore + */ +LogContent.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "{ [key: string]: any; }", + }, + host: { + baseName: "host", + type: "string", + }, + message: { + baseName: "message", + type: "string", + }, + service: { + baseName: "service", + type: "string", + }, + tags: { + baseName: "tags", + type: "Array", + }, + timestamp: { + baseName: "timestamp", + type: "Date", + format: "date-time", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogContent.js.map + +/***/ }), + +/***/ 90432: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogQueryDefinition = void 0; +/** + * The log query. + */ +class LogQueryDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogQueryDefinition.attributeTypeMap; + } +} +exports.LogQueryDefinition = LogQueryDefinition; +/** + * @ignore + */ +LogQueryDefinition.attributeTypeMap = { + compute: { + baseName: "compute", + type: "LogsQueryCompute", + }, + groupBy: { + baseName: "group_by", + type: "Array", + }, + index: { + baseName: "index", + type: "string", + }, + multiCompute: { + baseName: "multi_compute", + type: "Array", + }, + search: { + baseName: "search", + type: "LogQueryDefinitionSearch", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogQueryDefinition.js.map + +/***/ }), + +/***/ 7200: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogQueryDefinitionGroupBy = void 0; +/** + * Defined items in the group. + */ +class LogQueryDefinitionGroupBy { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogQueryDefinitionGroupBy.attributeTypeMap; + } +} +exports.LogQueryDefinitionGroupBy = LogQueryDefinitionGroupBy; +/** + * @ignore + */ +LogQueryDefinitionGroupBy.attributeTypeMap = { + facet: { + baseName: "facet", + type: "string", + required: true, + }, + limit: { + baseName: "limit", + type: "number", + format: "int64", + }, + sort: { + baseName: "sort", + type: "LogQueryDefinitionGroupBySort", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogQueryDefinitionGroupBy.js.map + +/***/ }), + +/***/ 52776: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogQueryDefinitionGroupBySort = void 0; +/** + * Define a sorting method. + */ +class LogQueryDefinitionGroupBySort { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogQueryDefinitionGroupBySort.attributeTypeMap; + } +} +exports.LogQueryDefinitionGroupBySort = LogQueryDefinitionGroupBySort; +/** + * @ignore + */ +LogQueryDefinitionGroupBySort.attributeTypeMap = { + aggregation: { + baseName: "aggregation", + type: "string", + required: true, + }, + facet: { + baseName: "facet", + type: "string", + }, + order: { + baseName: "order", + type: "WidgetSort", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogQueryDefinitionGroupBySort.js.map + +/***/ }), + +/***/ 85824: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogQueryDefinitionSearch = void 0; +/** + * The query being made on the logs. + */ +class LogQueryDefinitionSearch { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogQueryDefinitionSearch.attributeTypeMap; + } +} +exports.LogQueryDefinitionSearch = LogQueryDefinitionSearch; +/** + * @ignore + */ +LogQueryDefinitionSearch.attributeTypeMap = { + query: { + baseName: "query", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogQueryDefinitionSearch.js.map + +/***/ }), + +/***/ 71016: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogStreamWidgetDefinition = void 0; +/** + * The Log Stream displays a log flow matching the defined query. Only available on FREE layout dashboards. + */ +class LogStreamWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogStreamWidgetDefinition.attributeTypeMap; + } +} +exports.LogStreamWidgetDefinition = LogStreamWidgetDefinition; +/** + * @ignore + */ +LogStreamWidgetDefinition.attributeTypeMap = { + columns: { + baseName: "columns", + type: "Array", + }, + indexes: { + baseName: "indexes", + type: "Array", + }, + logset: { + baseName: "logset", + type: "string", + }, + messageDisplay: { + baseName: "message_display", + type: "WidgetMessageDisplay", + }, + query: { + baseName: "query", + type: "string", + }, + showDateColumn: { + baseName: "show_date_column", + type: "boolean", + }, + showMessageColumn: { + baseName: "show_message_column", + type: "boolean", + }, + sort: { + baseName: "sort", + type: "WidgetFieldSort", + }, + time: { + baseName: "time", + type: "WidgetTime", + }, + title: { + baseName: "title", + type: "string", + }, + titleAlign: { + baseName: "title_align", + type: "WidgetTextAlign", + }, + titleSize: { + baseName: "title_size", + type: "string", + }, + type: { + baseName: "type", + type: "LogStreamWidgetDefinitionType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogStreamWidgetDefinition.js.map + +/***/ }), + +/***/ 48050: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsAPIError = void 0; +/** + * Error returned by the Logs API + */ +class LogsAPIError { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsAPIError.attributeTypeMap; + } +} +exports.LogsAPIError = LogsAPIError; +/** + * @ignore + */ +LogsAPIError.attributeTypeMap = { + code: { + baseName: "code", + type: "string", + }, + details: { + baseName: "details", + type: "Array", + }, + message: { + baseName: "message", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsAPIError.js.map + +/***/ }), + +/***/ 75989: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsAPIErrorResponse = void 0; +/** + * Response returned by the Logs API when errors occur. + */ +class LogsAPIErrorResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsAPIErrorResponse.attributeTypeMap; + } +} +exports.LogsAPIErrorResponse = LogsAPIErrorResponse; +/** + * @ignore + */ +LogsAPIErrorResponse.attributeTypeMap = { + error: { + baseName: "error", + type: "LogsAPIError", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsAPIErrorResponse.js.map + +/***/ }), + +/***/ 35982: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsArithmeticProcessor = void 0; +/** + * Use the Arithmetic Processor to add a new attribute (without spaces or special characters + * in the new attribute name) to a log with the result of the provided formula. + * This enables you to remap different time attributes with different units into a single attribute, + * or to compute operations on attributes within the same log. + * + * The formula can use parentheses and the basic arithmetic operators `-`, `+`, `*`, `/`. + * + * By default, the calculation is skipped if an attribute is missing. + * Select “Replace missing attribute by 0” to automatically populate + * missing attribute values with 0 to ensure that the calculation is done. + * An attribute is missing if it is not found in the log attributes, + * or if it cannot be converted to a number. + * + * *Notes*: + * + * - The operator `-` needs to be space split in the formula as it can also be contained in attribute names. + * - If the target attribute already exists, it is overwritten by the result of the formula. + * - Results are rounded up to the 9th decimal. For example, if the result of the formula is `0.1234567891`, + * the actual value stored for the attribute is `0.123456789`. + * - If you need to scale a unit of measure, + * see [Scale Filter](https://docs.datadoghq.com/logs/log_configuration/parsing/?tab=filter#matcher-and-filter). + */ +class LogsArithmeticProcessor { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsArithmeticProcessor.attributeTypeMap; + } +} +exports.LogsArithmeticProcessor = LogsArithmeticProcessor; +/** + * @ignore + */ +LogsArithmeticProcessor.attributeTypeMap = { + expression: { + baseName: "expression", + type: "string", + required: true, + }, + isEnabled: { + baseName: "is_enabled", + type: "boolean", + }, + isReplaceMissing: { + baseName: "is_replace_missing", + type: "boolean", + }, + name: { + baseName: "name", + type: "string", + }, + target: { + baseName: "target", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "LogsArithmeticProcessorType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsArithmeticProcessor.js.map + +/***/ }), + +/***/ 13478: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsAttributeRemapper = void 0; +/** + * The remapper processor remaps any source attribute(s) or tag to another target attribute or tag. + * Constraints on the tag/attribute name are explained in the [Tag Best Practice documentation](https://docs.datadoghq.com/logs/guide/log-parsing-best-practice). + * Some additional constraints are applied as `:` or `,` are not allowed in the target tag/attribute name. + */ +class LogsAttributeRemapper { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsAttributeRemapper.attributeTypeMap; + } +} +exports.LogsAttributeRemapper = LogsAttributeRemapper; +/** + * @ignore + */ +LogsAttributeRemapper.attributeTypeMap = { + isEnabled: { + baseName: "is_enabled", + type: "boolean", + }, + name: { + baseName: "name", + type: "string", + }, + overrideOnConflict: { + baseName: "override_on_conflict", + type: "boolean", + }, + preserveSource: { + baseName: "preserve_source", + type: "boolean", + }, + sourceType: { + baseName: "source_type", + type: "string", + }, + sources: { + baseName: "sources", + type: "Array", + required: true, + }, + target: { + baseName: "target", + type: "string", + required: true, + }, + targetFormat: { + baseName: "target_format", + type: "TargetFormatType", + }, + targetType: { + baseName: "target_type", + type: "string", + }, + type: { + baseName: "type", + type: "LogsAttributeRemapperType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsAttributeRemapper.js.map + +/***/ }), + +/***/ 37687: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsByRetention = void 0; +/** + * Object containing logs usage data broken down by retention period. + */ +class LogsByRetention { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsByRetention.attributeTypeMap; + } +} +exports.LogsByRetention = LogsByRetention; +/** + * @ignore + */ +LogsByRetention.attributeTypeMap = { + orgs: { + baseName: "orgs", + type: "LogsByRetentionOrgs", + }, + usage: { + baseName: "usage", + type: "Array", + }, + usageByMonth: { + baseName: "usage_by_month", + type: "LogsByRetentionMonthlyUsage", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsByRetention.js.map + +/***/ }), + +/***/ 28023: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsByRetentionMonthlyUsage = void 0; +/** + * Object containing a summary of indexed logs usage by retention period for a single month. + */ +class LogsByRetentionMonthlyUsage { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsByRetentionMonthlyUsage.attributeTypeMap; + } +} +exports.LogsByRetentionMonthlyUsage = LogsByRetentionMonthlyUsage; +/** + * @ignore + */ +LogsByRetentionMonthlyUsage.attributeTypeMap = { + date: { + baseName: "date", + type: "Date", + format: "date-time", + }, + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsByRetentionMonthlyUsage.js.map + +/***/ }), + +/***/ 22642: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsByRetentionOrgUsage = void 0; +/** + * Indexed logs usage by retention for a single organization. + */ +class LogsByRetentionOrgUsage { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsByRetentionOrgUsage.attributeTypeMap; + } +} +exports.LogsByRetentionOrgUsage = LogsByRetentionOrgUsage; +/** + * @ignore + */ +LogsByRetentionOrgUsage.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsByRetentionOrgUsage.js.map + +/***/ }), + +/***/ 95532: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsByRetentionOrgs = void 0; +/** + * Indexed logs usage summary for each organization for each retention period with usage. + */ +class LogsByRetentionOrgs { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsByRetentionOrgs.attributeTypeMap; + } +} +exports.LogsByRetentionOrgs = LogsByRetentionOrgs; +/** + * @ignore + */ +LogsByRetentionOrgs.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsByRetentionOrgs.js.map + +/***/ }), + +/***/ 56126: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsCategoryProcessor = void 0; +/** + * Use the Category Processor to add a new attribute (without spaces or special characters in the new attribute name) + * to a log matching a provided search query. Use categories to create groups for an analytical view. + * For example, URL groups, machine groups, environments, and response time buckets. + * + * **Notes**: + * + * - The syntax of the query is the one of Logs Explorer search bar. + * The query can be done on any log attribute or tag, whether it is a facet or not. + * Wildcards can also be used inside your query. + * - Once the log has matched one of the Processor queries, it stops. + * Make sure they are properly ordered in case a log could match several queries. + * - The names of the categories must be unique. + * - Once defined in the Category Processor, you can map categories to log status using the Log Status Remapper. + */ +class LogsCategoryProcessor { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsCategoryProcessor.attributeTypeMap; + } +} +exports.LogsCategoryProcessor = LogsCategoryProcessor; +/** + * @ignore + */ +LogsCategoryProcessor.attributeTypeMap = { + categories: { + baseName: "categories", + type: "Array", + required: true, + }, + isEnabled: { + baseName: "is_enabled", + type: "boolean", + }, + name: { + baseName: "name", + type: "string", + }, + target: { + baseName: "target", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "LogsCategoryProcessorType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsCategoryProcessor.js.map + +/***/ }), + +/***/ 92642: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsCategoryProcessorCategory = void 0; +/** + * Object describing the logs filter. + */ +class LogsCategoryProcessorCategory { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsCategoryProcessorCategory.attributeTypeMap; + } +} +exports.LogsCategoryProcessorCategory = LogsCategoryProcessorCategory; +/** + * @ignore + */ +LogsCategoryProcessorCategory.attributeTypeMap = { + filter: { + baseName: "filter", + type: "LogsFilter", + }, + name: { + baseName: "name", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsCategoryProcessorCategory.js.map + +/***/ }), + +/***/ 54353: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsDailyLimitReset = void 0; +/** + * Object containing options to override the default daily limit reset time. + */ +class LogsDailyLimitReset { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsDailyLimitReset.attributeTypeMap; + } +} +exports.LogsDailyLimitReset = LogsDailyLimitReset; +/** + * @ignore + */ +LogsDailyLimitReset.attributeTypeMap = { + resetTime: { + baseName: "reset_time", + type: "string", + }, + resetUtcOffset: { + baseName: "reset_utc_offset", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsDailyLimitReset.js.map + +/***/ }), + +/***/ 91096: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsDateRemapper = void 0; +/** + * As Datadog receives logs, it timestamps them using the value(s) from any of these default attributes. + * + * - `timestamp` + * - `date` + * - `_timestamp` + * - `Timestamp` + * - `eventTime` + * - `published_date` + * + * If your logs put their dates in an attribute not in this list, + * use the log date Remapper Processor to define their date attribute as the official log timestamp. + * The recognized date formats are ISO8601, UNIX (the milliseconds EPOCH format), and RFC3164. + * + * **Note:** If your logs don’t contain any of the default attributes + * and you haven’t defined your own date attribute, Datadog timestamps + * the logs with the date it received them. + * + * If multiple log date remapper processors can be applied to a given log, + * only the first one (according to the pipelines order) is taken into account. + */ +class LogsDateRemapper { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsDateRemapper.attributeTypeMap; + } +} +exports.LogsDateRemapper = LogsDateRemapper; +/** + * @ignore + */ +LogsDateRemapper.attributeTypeMap = { + isEnabled: { + baseName: "is_enabled", + type: "boolean", + }, + name: { + baseName: "name", + type: "string", + }, + sources: { + baseName: "sources", + type: "Array", + required: true, + }, + type: { + baseName: "type", + type: "LogsDateRemapperType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsDateRemapper.js.map + +/***/ }), + +/***/ 28818: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsExclusion = void 0; +/** + * Represents the index exclusion filter object from configuration API. + */ +class LogsExclusion { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsExclusion.attributeTypeMap; + } +} +exports.LogsExclusion = LogsExclusion; +/** + * @ignore + */ +LogsExclusion.attributeTypeMap = { + filter: { + baseName: "filter", + type: "LogsExclusionFilter", + }, + isEnabled: { + baseName: "is_enabled", + type: "boolean", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsExclusion.js.map + +/***/ }), + +/***/ 35200: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsExclusionFilter = void 0; +/** + * Exclusion filter is defined by a query, a sampling rule, and a active/inactive toggle. + */ +class LogsExclusionFilter { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsExclusionFilter.attributeTypeMap; + } +} +exports.LogsExclusionFilter = LogsExclusionFilter; +/** + * @ignore + */ +LogsExclusionFilter.attributeTypeMap = { + query: { + baseName: "query", + type: "string", + }, + sampleRate: { + baseName: "sample_rate", + type: "number", + required: true, + format: "double", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsExclusionFilter.js.map + +/***/ }), + +/***/ 7466: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsFilter = void 0; +/** + * Filter for logs. + */ +class LogsFilter { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsFilter.attributeTypeMap; + } +} +exports.LogsFilter = LogsFilter; +/** + * @ignore + */ +LogsFilter.attributeTypeMap = { + query: { + baseName: "query", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsFilter.js.map + +/***/ }), + +/***/ 93457: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsGeoIPParser = void 0; +/** + * The GeoIP parser takes an IP address attribute and extracts if available + * the Continent, Country, Subdivision, and City information in the target attribute path. + */ +class LogsGeoIPParser { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsGeoIPParser.attributeTypeMap; + } +} +exports.LogsGeoIPParser = LogsGeoIPParser; +/** + * @ignore + */ +LogsGeoIPParser.attributeTypeMap = { + isEnabled: { + baseName: "is_enabled", + type: "boolean", + }, + name: { + baseName: "name", + type: "string", + }, + sources: { + baseName: "sources", + type: "Array", + required: true, + }, + target: { + baseName: "target", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "LogsGeoIPParserType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsGeoIPParser.js.map + +/***/ }), + +/***/ 796: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsGrokParser = void 0; +/** + * Create custom grok rules to parse the full message or [a specific attribute of your raw event](https://docs.datadoghq.com/logs/log_configuration/parsing/#advanced-settings). + * For more information, see the [parsing section](https://docs.datadoghq.com/logs/log_configuration/parsing). + */ +class LogsGrokParser { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsGrokParser.attributeTypeMap; + } +} +exports.LogsGrokParser = LogsGrokParser; +/** + * @ignore + */ +LogsGrokParser.attributeTypeMap = { + grok: { + baseName: "grok", + type: "LogsGrokParserRules", + required: true, + }, + isEnabled: { + baseName: "is_enabled", + type: "boolean", + }, + name: { + baseName: "name", + type: "string", + }, + samples: { + baseName: "samples", + type: "Array", + }, + source: { + baseName: "source", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "LogsGrokParserType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsGrokParser.js.map + +/***/ }), + +/***/ 72849: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsGrokParserRules = void 0; +/** + * Set of rules for the grok parser. + */ +class LogsGrokParserRules { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsGrokParserRules.attributeTypeMap; + } +} +exports.LogsGrokParserRules = LogsGrokParserRules; +/** + * @ignore + */ +LogsGrokParserRules.attributeTypeMap = { + matchRules: { + baseName: "match_rules", + type: "string", + required: true, + }, + supportRules: { + baseName: "support_rules", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsGrokParserRules.js.map + +/***/ }), + +/***/ 39182: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsIndex = void 0; +/** + * Object describing a Datadog Log index. + */ +class LogsIndex { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsIndex.attributeTypeMap; + } +} +exports.LogsIndex = LogsIndex; +/** + * @ignore + */ +LogsIndex.attributeTypeMap = { + dailyLimit: { + baseName: "daily_limit", + type: "number", + format: "int64", + }, + dailyLimitReset: { + baseName: "daily_limit_reset", + type: "LogsDailyLimitReset", + }, + dailyLimitWarningThresholdPercentage: { + baseName: "daily_limit_warning_threshold_percentage", + type: "number", + format: "double", + }, + exclusionFilters: { + baseName: "exclusion_filters", + type: "Array", + }, + filter: { + baseName: "filter", + type: "LogsFilter", + required: true, + }, + isRateLimited: { + baseName: "is_rate_limited", + type: "boolean", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + numFlexLogsRetentionDays: { + baseName: "num_flex_logs_retention_days", + type: "number", + format: "int64", + }, + numRetentionDays: { + baseName: "num_retention_days", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsIndex.js.map + +/***/ }), + +/***/ 80005: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsIndexListResponse = void 0; +/** + * Object with all Index configurations for a given organization. + */ +class LogsIndexListResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsIndexListResponse.attributeTypeMap; + } +} +exports.LogsIndexListResponse = LogsIndexListResponse; +/** + * @ignore + */ +LogsIndexListResponse.attributeTypeMap = { + indexes: { + baseName: "indexes", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsIndexListResponse.js.map + +/***/ }), + +/***/ 77406: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsIndexUpdateRequest = void 0; +/** + * Object for updating a Datadog Log index. + */ +class LogsIndexUpdateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsIndexUpdateRequest.attributeTypeMap; + } +} +exports.LogsIndexUpdateRequest = LogsIndexUpdateRequest; +/** + * @ignore + */ +LogsIndexUpdateRequest.attributeTypeMap = { + dailyLimit: { + baseName: "daily_limit", + type: "number", + format: "int64", + }, + dailyLimitReset: { + baseName: "daily_limit_reset", + type: "LogsDailyLimitReset", + }, + dailyLimitWarningThresholdPercentage: { + baseName: "daily_limit_warning_threshold_percentage", + type: "number", + format: "double", + }, + disableDailyLimit: { + baseName: "disable_daily_limit", + type: "boolean", + }, + exclusionFilters: { + baseName: "exclusion_filters", + type: "Array", + }, + filter: { + baseName: "filter", + type: "LogsFilter", + required: true, + }, + numFlexLogsRetentionDays: { + baseName: "num_flex_logs_retention_days", + type: "number", + format: "int64", + }, + numRetentionDays: { + baseName: "num_retention_days", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsIndexUpdateRequest.js.map + +/***/ }), + +/***/ 98128: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsIndexesOrder = void 0; +/** + * Object containing the ordered list of log index names. + */ +class LogsIndexesOrder { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsIndexesOrder.attributeTypeMap; + } +} +exports.LogsIndexesOrder = LogsIndexesOrder; +/** + * @ignore + */ +LogsIndexesOrder.attributeTypeMap = { + indexNames: { + baseName: "index_names", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsIndexesOrder.js.map + +/***/ }), + +/***/ 91287: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsListRequest = void 0; +/** + * Object to send with the request to retrieve a list of logs from your Organization. + */ +class LogsListRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsListRequest.attributeTypeMap; + } +} +exports.LogsListRequest = LogsListRequest; +/** + * @ignore + */ +LogsListRequest.attributeTypeMap = { + index: { + baseName: "index", + type: "string", + }, + limit: { + baseName: "limit", + type: "number", + format: "int32", + }, + query: { + baseName: "query", + type: "string", + }, + sort: { + baseName: "sort", + type: "LogsSort", + }, + startAt: { + baseName: "startAt", + type: "string", + }, + time: { + baseName: "time", + type: "LogsListRequestTime", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsListRequest.js.map + +/***/ }), + +/***/ 58066: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsListRequestTime = void 0; +/** + * Timeframe to retrieve the log from. + */ +class LogsListRequestTime { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsListRequestTime.attributeTypeMap; + } +} +exports.LogsListRequestTime = LogsListRequestTime; +/** + * @ignore + */ +LogsListRequestTime.attributeTypeMap = { + from: { + baseName: "from", + type: "Date", + required: true, + format: "date-time", + }, + timezone: { + baseName: "timezone", + type: "string", + }, + to: { + baseName: "to", + type: "Date", + required: true, + format: "date-time", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsListRequestTime.js.map + +/***/ }), + +/***/ 46627: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsListResponse = void 0; +/** + * Response object with all logs matching the request and pagination information. + */ +class LogsListResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsListResponse.attributeTypeMap; + } +} +exports.LogsListResponse = LogsListResponse; +/** + * @ignore + */ +LogsListResponse.attributeTypeMap = { + logs: { + baseName: "logs", + type: "Array", + }, + nextLogId: { + baseName: "nextLogId", + type: "string", + }, + status: { + baseName: "status", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsListResponse.js.map + +/***/ }), + +/***/ 14568: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsLookupProcessor = void 0; +/** + * Use the Lookup Processor to define a mapping between a log attribute + * and a human readable value saved in the processors mapping table. + * For example, you can use the Lookup Processor to map an internal service ID + * into a human readable service name. Alternatively, you could also use it to check + * if the MAC address that just attempted to connect to the production + * environment belongs to your list of stolen machines. + */ +class LogsLookupProcessor { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsLookupProcessor.attributeTypeMap; + } +} +exports.LogsLookupProcessor = LogsLookupProcessor; +/** + * @ignore + */ +LogsLookupProcessor.attributeTypeMap = { + defaultLookup: { + baseName: "default_lookup", + type: "string", + }, + isEnabled: { + baseName: "is_enabled", + type: "boolean", + }, + lookupTable: { + baseName: "lookup_table", + type: "Array", + required: true, + }, + name: { + baseName: "name", + type: "string", + }, + source: { + baseName: "source", + type: "string", + required: true, + }, + target: { + baseName: "target", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "LogsLookupProcessorType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsLookupProcessor.js.map + +/***/ }), + +/***/ 65597: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsMessageRemapper = void 0; +/** + * The message is a key attribute in Datadog. + * It is displayed in the message column of the Log Explorer and you can do full string search on it. + * Use this Processor to define one or more attributes as the official log message. + * + * **Note:** If multiple log message remapper processors can be applied to a given log, + * only the first one (according to the pipeline order) is taken into account. + */ +class LogsMessageRemapper { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsMessageRemapper.attributeTypeMap; + } +} +exports.LogsMessageRemapper = LogsMessageRemapper; +/** + * @ignore + */ +LogsMessageRemapper.attributeTypeMap = { + isEnabled: { + baseName: "is_enabled", + type: "boolean", + }, + name: { + baseName: "name", + type: "string", + }, + sources: { + baseName: "sources", + type: "Array", + required: true, + }, + type: { + baseName: "type", + type: "LogsMessageRemapperType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsMessageRemapper.js.map + +/***/ }), + +/***/ 22250: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsPipeline = void 0; +/** + * Pipelines and processors operate on incoming logs, + * parsing and transforming them into structured attributes for easier querying. + * + * **Note**: These endpoints are only available for admin users. + * Make sure to use an application key created by an admin. + */ +class LogsPipeline { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsPipeline.attributeTypeMap; + } +} +exports.LogsPipeline = LogsPipeline; +/** + * @ignore + */ +LogsPipeline.attributeTypeMap = { + filter: { + baseName: "filter", + type: "LogsFilter", + }, + id: { + baseName: "id", + type: "string", + }, + isEnabled: { + baseName: "is_enabled", + type: "boolean", + }, + isReadOnly: { + baseName: "is_read_only", + type: "boolean", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + processors: { + baseName: "processors", + type: "Array", + }, + type: { + baseName: "type", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsPipeline.js.map + +/***/ }), + +/***/ 85848: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsPipelineProcessor = void 0; +/** + * Nested Pipelines are pipelines within a pipeline. Use Nested Pipelines to split the processing into two steps. + * For example, first use a high-level filtering such as team and then a second level of filtering based on the + * integration, service, or any other tag or attribute. + * + * A pipeline can contain Nested Pipelines and Processors whereas a Nested Pipeline can only contain Processors. + */ +class LogsPipelineProcessor { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsPipelineProcessor.attributeTypeMap; + } +} +exports.LogsPipelineProcessor = LogsPipelineProcessor; +/** + * @ignore + */ +LogsPipelineProcessor.attributeTypeMap = { + filter: { + baseName: "filter", + type: "LogsFilter", + }, + isEnabled: { + baseName: "is_enabled", + type: "boolean", + }, + name: { + baseName: "name", + type: "string", + }, + processors: { + baseName: "processors", + type: "Array", + }, + type: { + baseName: "type", + type: "LogsPipelineProcessorType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsPipelineProcessor.js.map + +/***/ }), + +/***/ 87121: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsPipelinesOrder = void 0; +/** + * Object containing the ordered list of pipeline IDs. + */ +class LogsPipelinesOrder { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsPipelinesOrder.attributeTypeMap; + } +} +exports.LogsPipelinesOrder = LogsPipelinesOrder; +/** + * @ignore + */ +LogsPipelinesOrder.attributeTypeMap = { + pipelineIds: { + baseName: "pipeline_ids", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsPipelinesOrder.js.map + +/***/ }), + +/***/ 22653: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsQueryCompute = void 0; +/** + * Define computation for a log query. + */ +class LogsQueryCompute { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsQueryCompute.attributeTypeMap; + } +} +exports.LogsQueryCompute = LogsQueryCompute; +/** + * @ignore + */ +LogsQueryCompute.attributeTypeMap = { + aggregation: { + baseName: "aggregation", + type: "string", + required: true, + }, + facet: { + baseName: "facet", + type: "string", + }, + interval: { + baseName: "interval", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsQueryCompute.js.map + +/***/ }), + +/***/ 59725: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsRetentionAggSumUsage = void 0; +/** + * Object containing indexed logs usage aggregated across organizations and months for a retention period. + */ +class LogsRetentionAggSumUsage { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsRetentionAggSumUsage.attributeTypeMap; + } +} +exports.LogsRetentionAggSumUsage = LogsRetentionAggSumUsage; +/** + * @ignore + */ +LogsRetentionAggSumUsage.attributeTypeMap = { + logsIndexedLogsUsageAggSum: { + baseName: "logs_indexed_logs_usage_agg_sum", + type: "number", + format: "int64", + }, + logsLiveIndexedLogsUsageAggSum: { + baseName: "logs_live_indexed_logs_usage_agg_sum", + type: "number", + format: "int64", + }, + logsRehydratedIndexedLogsUsageAggSum: { + baseName: "logs_rehydrated_indexed_logs_usage_agg_sum", + type: "number", + format: "int64", + }, + retention: { + baseName: "retention", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsRetentionAggSumUsage.js.map + +/***/ }), + +/***/ 36430: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsRetentionSumUsage = void 0; +/** + * Object containing indexed logs usage grouped by retention period and summed. + */ +class LogsRetentionSumUsage { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsRetentionSumUsage.attributeTypeMap; + } +} +exports.LogsRetentionSumUsage = LogsRetentionSumUsage; +/** + * @ignore + */ +LogsRetentionSumUsage.attributeTypeMap = { + logsIndexedLogsUsageSum: { + baseName: "logs_indexed_logs_usage_sum", + type: "number", + format: "int64", + }, + logsLiveIndexedLogsUsageSum: { + baseName: "logs_live_indexed_logs_usage_sum", + type: "number", + format: "int64", + }, + logsRehydratedIndexedLogsUsageSum: { + baseName: "logs_rehydrated_indexed_logs_usage_sum", + type: "number", + format: "int64", + }, + retention: { + baseName: "retention", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsRetentionSumUsage.js.map + +/***/ }), + +/***/ 30713: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsServiceRemapper = void 0; +/** + * Use this processor if you want to assign one or more attributes as the official service. + * + * **Note:** If multiple service remapper processors can be applied to a given log, + * only the first one (according to the pipeline order) is taken into account. + */ +class LogsServiceRemapper { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsServiceRemapper.attributeTypeMap; + } +} +exports.LogsServiceRemapper = LogsServiceRemapper; +/** + * @ignore + */ +LogsServiceRemapper.attributeTypeMap = { + isEnabled: { + baseName: "is_enabled", + type: "boolean", + }, + name: { + baseName: "name", + type: "string", + }, + sources: { + baseName: "sources", + type: "Array", + required: true, + }, + type: { + baseName: "type", + type: "LogsServiceRemapperType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsServiceRemapper.js.map + +/***/ }), + +/***/ 63906: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsStatusRemapper = void 0; +/** + * Use this Processor if you want to assign some attributes as the official status. + * + * Each incoming status value is mapped as follows. + * + * - Integers from 0 to 7 map to the Syslog severity standards + * - Strings beginning with `emerg` or f (case-insensitive) map to `emerg` (0) + * - Strings beginning with `a` (case-insensitive) map to `alert` (1) + * - Strings beginning with `c` (case-insensitive) map to `critical` (2) + * - Strings beginning with `err` (case-insensitive) map to `error` (3) + * - Strings beginning with `w` (case-insensitive) map to `warning` (4) + * - Strings beginning with `n` (case-insensitive) map to `notice` (5) + * - Strings beginning with `i` (case-insensitive) map to `info` (6) + * - Strings beginning with `d`, `trace` or `verbose` (case-insensitive) map to `debug` (7) + * - Strings beginning with `o` or matching `OK` or `Success` (case-insensitive) map to OK + * - All others map to `info` (6) + * + * **Note:** If multiple log status remapper processors can be applied to a given log, + * only the first one (according to the pipelines order) is taken into account. + */ +class LogsStatusRemapper { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsStatusRemapper.attributeTypeMap; + } +} +exports.LogsStatusRemapper = LogsStatusRemapper; +/** + * @ignore + */ +LogsStatusRemapper.attributeTypeMap = { + isEnabled: { + baseName: "is_enabled", + type: "boolean", + }, + name: { + baseName: "name", + type: "string", + }, + sources: { + baseName: "sources", + type: "Array", + required: true, + }, + type: { + baseName: "type", + type: "LogsStatusRemapperType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsStatusRemapper.js.map + +/***/ }), + +/***/ 68060: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsStringBuilderProcessor = void 0; +/** + * Use the string builder processor to add a new attribute (without spaces or special characters) + * to a log with the result of the provided template. + * This enables aggregation of different attributes or raw strings into a single attribute. + * + * The template is defined by both raw text and blocks with the syntax `%{attribute_path}`. + * + * **Notes**: + * + * - The processor only accepts attributes with values or an array of values in the blocks. + * - If an attribute cannot be used (object or array of object), + * it is replaced by an empty string or the entire operation is skipped depending on your selection. + * - If the target attribute already exists, it is overwritten by the result of the template. + * - Results of the template cannot exceed 256 characters. + */ +class LogsStringBuilderProcessor { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsStringBuilderProcessor.attributeTypeMap; + } +} +exports.LogsStringBuilderProcessor = LogsStringBuilderProcessor; +/** + * @ignore + */ +LogsStringBuilderProcessor.attributeTypeMap = { + isEnabled: { + baseName: "is_enabled", + type: "boolean", + }, + isReplaceMissing: { + baseName: "is_replace_missing", + type: "boolean", + }, + name: { + baseName: "name", + type: "string", + }, + target: { + baseName: "target", + type: "string", + required: true, + }, + template: { + baseName: "template", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "LogsStringBuilderProcessorType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsStringBuilderProcessor.js.map + +/***/ }), + +/***/ 45791: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsTraceRemapper = void 0; +/** + * There are two ways to improve correlation between application traces and logs. + * + * 1. Follow the documentation on [how to inject a trace ID in the application logs](https://docs.datadoghq.com/tracing/connect_logs_and_traces) + * and by default log integrations take care of all the rest of the setup. + * + * 2. Use the Trace remapper processor to define a log attribute as its associated trace ID. + */ +class LogsTraceRemapper { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsTraceRemapper.attributeTypeMap; + } +} +exports.LogsTraceRemapper = LogsTraceRemapper; +/** + * @ignore + */ +LogsTraceRemapper.attributeTypeMap = { + isEnabled: { + baseName: "is_enabled", + type: "boolean", + }, + name: { + baseName: "name", + type: "string", + }, + sources: { + baseName: "sources", + type: "Array", + }, + type: { + baseName: "type", + type: "LogsTraceRemapperType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsTraceRemapper.js.map + +/***/ }), + +/***/ 70308: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsURLParser = void 0; +/** + * This processor extracts query parameters and other important parameters from a URL. + */ +class LogsURLParser { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsURLParser.attributeTypeMap; + } +} +exports.LogsURLParser = LogsURLParser; +/** + * @ignore + */ +LogsURLParser.attributeTypeMap = { + isEnabled: { + baseName: "is_enabled", + type: "boolean", + }, + name: { + baseName: "name", + type: "string", + }, + normalizeEndingSlashes: { + baseName: "normalize_ending_slashes", + type: "boolean", + }, + sources: { + baseName: "sources", + type: "Array", + required: true, + }, + target: { + baseName: "target", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "LogsURLParserType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsURLParser.js.map + +/***/ }), + +/***/ 65013: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsUserAgentParser = void 0; +/** + * The User-Agent parser takes a User-Agent attribute and extracts the OS, browser, device, and other user data. + * It recognizes major bots like the Google Bot, Yahoo Slurp, and Bing. + */ +class LogsUserAgentParser { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return LogsUserAgentParser.attributeTypeMap; + } +} +exports.LogsUserAgentParser = LogsUserAgentParser; +/** + * @ignore + */ +LogsUserAgentParser.attributeTypeMap = { + isEnabled: { + baseName: "is_enabled", + type: "boolean", + }, + isEncoded: { + baseName: "is_encoded", + type: "boolean", + }, + name: { + baseName: "name", + type: "string", + }, + sources: { + baseName: "sources", + type: "Array", + required: true, + }, + target: { + baseName: "target", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "LogsUserAgentParserType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=LogsUserAgentParser.js.map + +/***/ }), + +/***/ 36705: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MatchingDowntime = void 0; +/** + * Object describing a downtime that matches this monitor. + */ +class MatchingDowntime { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MatchingDowntime.attributeTypeMap; + } +} +exports.MatchingDowntime = MatchingDowntime; +/** + * @ignore + */ +MatchingDowntime.attributeTypeMap = { + end: { + baseName: "end", + type: "number", + format: "int64", + }, + id: { + baseName: "id", + type: "number", + required: true, + format: "int64", + }, + scope: { + baseName: "scope", + type: "Array", + }, + start: { + baseName: "start", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MatchingDowntime.js.map + +/***/ }), + +/***/ 7942: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MetricMetadata = void 0; +/** + * Object with all metric related metadata. + */ +class MetricMetadata { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MetricMetadata.attributeTypeMap; + } +} +exports.MetricMetadata = MetricMetadata; +/** + * @ignore + */ +MetricMetadata.attributeTypeMap = { + description: { + baseName: "description", + type: "string", + }, + integration: { + baseName: "integration", + type: "string", + }, + perUnit: { + baseName: "per_unit", + type: "string", + }, + shortName: { + baseName: "short_name", + type: "string", + }, + statsdInterval: { + baseName: "statsd_interval", + type: "number", + format: "int64", + }, + type: { + baseName: "type", + type: "string", + }, + unit: { + baseName: "unit", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MetricMetadata.js.map + +/***/ }), + +/***/ 24752: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MetricSearchResponse = void 0; +/** + * Object containing the list of metrics matching the search query. + */ +class MetricSearchResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MetricSearchResponse.attributeTypeMap; + } +} +exports.MetricSearchResponse = MetricSearchResponse; +/** + * @ignore + */ +MetricSearchResponse.attributeTypeMap = { + results: { + baseName: "results", + type: "MetricSearchResponseResults", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MetricSearchResponse.js.map + +/***/ }), + +/***/ 44800: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MetricSearchResponseResults = void 0; +/** + * Search result. + */ +class MetricSearchResponseResults { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MetricSearchResponseResults.attributeTypeMap; + } +} +exports.MetricSearchResponseResults = MetricSearchResponseResults; +/** + * @ignore + */ +MetricSearchResponseResults.attributeTypeMap = { + metrics: { + baseName: "metrics", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MetricSearchResponseResults.js.map + +/***/ }), + +/***/ 6297: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MetricsListResponse = void 0; +/** + * Object listing all metric names stored by Datadog since a given time. + */ +class MetricsListResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MetricsListResponse.attributeTypeMap; + } +} +exports.MetricsListResponse = MetricsListResponse; +/** + * @ignore + */ +MetricsListResponse.attributeTypeMap = { + from: { + baseName: "from", + type: "string", + }, + metrics: { + baseName: "metrics", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MetricsListResponse.js.map + +/***/ }), + +/***/ 36690: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MetricsPayload = void 0; +/** + * The metrics' payload. + */ +class MetricsPayload { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MetricsPayload.attributeTypeMap; + } +} +exports.MetricsPayload = MetricsPayload; +/** + * @ignore + */ +MetricsPayload.attributeTypeMap = { + series: { + baseName: "series", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MetricsPayload.js.map + +/***/ }), + +/***/ 57493: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MetricsQueryMetadata = void 0; +/** + * Object containing all metric names returned and their associated metadata. + */ +class MetricsQueryMetadata { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MetricsQueryMetadata.attributeTypeMap; + } +} +exports.MetricsQueryMetadata = MetricsQueryMetadata; +/** + * @ignore + */ +MetricsQueryMetadata.attributeTypeMap = { + aggr: { + baseName: "aggr", + type: "string", + }, + displayName: { + baseName: "display_name", + type: "string", + }, + end: { + baseName: "end", + type: "number", + format: "int64", + }, + expression: { + baseName: "expression", + type: "string", + }, + interval: { + baseName: "interval", + type: "number", + format: "int64", + }, + length: { + baseName: "length", + type: "number", + format: "int64", + }, + metric: { + baseName: "metric", + type: "string", + }, + pointlist: { + baseName: "pointlist", + type: "Array<[number, number]>", + format: "double", + }, + queryIndex: { + baseName: "query_index", + type: "number", + format: "int64", + }, + scope: { + baseName: "scope", + type: "string", + }, + start: { + baseName: "start", + type: "number", + format: "int64", + }, + tagSet: { + baseName: "tag_set", + type: "Array", + }, + unit: { + baseName: "unit", + type: "[MetricsQueryUnit, MetricsQueryUnit]", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MetricsQueryMetadata.js.map + +/***/ }), + +/***/ 48235: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MetricsQueryResponse = void 0; +/** + * Response Object that includes your query and the list of metrics retrieved. + */ +class MetricsQueryResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MetricsQueryResponse.attributeTypeMap; + } +} +exports.MetricsQueryResponse = MetricsQueryResponse; +/** + * @ignore + */ +MetricsQueryResponse.attributeTypeMap = { + error: { + baseName: "error", + type: "string", + }, + fromDate: { + baseName: "from_date", + type: "number", + format: "int64", + }, + groupBy: { + baseName: "group_by", + type: "Array", + }, + message: { + baseName: "message", + type: "string", + }, + query: { + baseName: "query", + type: "string", + }, + resType: { + baseName: "res_type", + type: "string", + }, + series: { + baseName: "series", + type: "Array", + }, + status: { + baseName: "status", + type: "string", + }, + toDate: { + baseName: "to_date", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MetricsQueryResponse.js.map + +/***/ }), + +/***/ 82974: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MetricsQueryUnit = void 0; +/** + * Object containing the metric unit family, scale factor, name, and short name. + */ +class MetricsQueryUnit { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MetricsQueryUnit.attributeTypeMap; + } +} +exports.MetricsQueryUnit = MetricsQueryUnit; +/** + * @ignore + */ +MetricsQueryUnit.attributeTypeMap = { + family: { + baseName: "family", + type: "string", + }, + name: { + baseName: "name", + type: "string", + }, + plural: { + baseName: "plural", + type: "string", + }, + scaleFactor: { + baseName: "scale_factor", + type: "number", + format: "double", + }, + shortName: { + baseName: "short_name", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MetricsQueryUnit.js.map + +/***/ }), + +/***/ 41245: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Monitor = void 0; +/** + * Object describing a monitor. + */ +class Monitor { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return Monitor.attributeTypeMap; + } +} +exports.Monitor = Monitor; +/** + * @ignore + */ +Monitor.attributeTypeMap = { + created: { + baseName: "created", + type: "Date", + format: "date-time", + }, + creator: { + baseName: "creator", + type: "Creator", + }, + deleted: { + baseName: "deleted", + type: "Date", + format: "date-time", + }, + id: { + baseName: "id", + type: "number", + format: "int64", + }, + matchingDowntimes: { + baseName: "matching_downtimes", + type: "Array", + }, + message: { + baseName: "message", + type: "string", + }, + modified: { + baseName: "modified", + type: "Date", + format: "date-time", + }, + multi: { + baseName: "multi", + type: "boolean", + }, + name: { + baseName: "name", + type: "string", + }, + options: { + baseName: "options", + type: "MonitorOptions", + }, + overallState: { + baseName: "overall_state", + type: "MonitorOverallStates", + }, + priority: { + baseName: "priority", + type: "number", + format: "int64", + }, + query: { + baseName: "query", + type: "string", + required: true, + }, + restrictedRoles: { + baseName: "restricted_roles", + type: "Array", + }, + state: { + baseName: "state", + type: "MonitorState", + }, + tags: { + baseName: "tags", + type: "Array", + }, + type: { + baseName: "type", + type: "MonitorType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=Monitor.js.map + +/***/ }), + +/***/ 45643: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonitorFormulaAndFunctionEventQueryDefinition = void 0; +/** + * A formula and functions events query. + */ +class MonitorFormulaAndFunctionEventQueryDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonitorFormulaAndFunctionEventQueryDefinition.attributeTypeMap; + } +} +exports.MonitorFormulaAndFunctionEventQueryDefinition = MonitorFormulaAndFunctionEventQueryDefinition; +/** + * @ignore + */ +MonitorFormulaAndFunctionEventQueryDefinition.attributeTypeMap = { + compute: { + baseName: "compute", + type: "MonitorFormulaAndFunctionEventQueryDefinitionCompute", + required: true, + }, + dataSource: { + baseName: "data_source", + type: "MonitorFormulaAndFunctionEventsDataSource", + required: true, + }, + groupBy: { + baseName: "group_by", + type: "Array", + }, + indexes: { + baseName: "indexes", + type: "Array", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + search: { + baseName: "search", + type: "MonitorFormulaAndFunctionEventQueryDefinitionSearch", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonitorFormulaAndFunctionEventQueryDefinition.js.map + +/***/ }), + +/***/ 7486: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonitorFormulaAndFunctionEventQueryDefinitionCompute = void 0; +/** + * Compute options. + */ +class MonitorFormulaAndFunctionEventQueryDefinitionCompute { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonitorFormulaAndFunctionEventQueryDefinitionCompute.attributeTypeMap; + } +} +exports.MonitorFormulaAndFunctionEventQueryDefinitionCompute = MonitorFormulaAndFunctionEventQueryDefinitionCompute; +/** + * @ignore + */ +MonitorFormulaAndFunctionEventQueryDefinitionCompute.attributeTypeMap = { + aggregation: { + baseName: "aggregation", + type: "MonitorFormulaAndFunctionEventAggregation", + required: true, + }, + interval: { + baseName: "interval", + type: "number", + format: "int64", + }, + metric: { + baseName: "metric", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonitorFormulaAndFunctionEventQueryDefinitionCompute.js.map + +/***/ }), + +/***/ 70975: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonitorFormulaAndFunctionEventQueryDefinitionSearch = void 0; +/** + * Search options. + */ +class MonitorFormulaAndFunctionEventQueryDefinitionSearch { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonitorFormulaAndFunctionEventQueryDefinitionSearch.attributeTypeMap; + } +} +exports.MonitorFormulaAndFunctionEventQueryDefinitionSearch = MonitorFormulaAndFunctionEventQueryDefinitionSearch; +/** + * @ignore + */ +MonitorFormulaAndFunctionEventQueryDefinitionSearch.attributeTypeMap = { + query: { + baseName: "query", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonitorFormulaAndFunctionEventQueryDefinitionSearch.js.map + +/***/ }), + +/***/ 53246: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonitorFormulaAndFunctionEventQueryGroupBy = void 0; +/** + * List of objects used to group by. + */ +class MonitorFormulaAndFunctionEventQueryGroupBy { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonitorFormulaAndFunctionEventQueryGroupBy.attributeTypeMap; + } +} +exports.MonitorFormulaAndFunctionEventQueryGroupBy = MonitorFormulaAndFunctionEventQueryGroupBy; +/** + * @ignore + */ +MonitorFormulaAndFunctionEventQueryGroupBy.attributeTypeMap = { + facet: { + baseName: "facet", + type: "string", + required: true, + }, + limit: { + baseName: "limit", + type: "number", + format: "int64", + }, + sort: { + baseName: "sort", + type: "MonitorFormulaAndFunctionEventQueryGroupBySort", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonitorFormulaAndFunctionEventQueryGroupBy.js.map + +/***/ }), + +/***/ 28578: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonitorFormulaAndFunctionEventQueryGroupBySort = void 0; +/** + * Options for sorting group by results. + */ +class MonitorFormulaAndFunctionEventQueryGroupBySort { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonitorFormulaAndFunctionEventQueryGroupBySort.attributeTypeMap; + } +} +exports.MonitorFormulaAndFunctionEventQueryGroupBySort = MonitorFormulaAndFunctionEventQueryGroupBySort; +/** + * @ignore + */ +MonitorFormulaAndFunctionEventQueryGroupBySort.attributeTypeMap = { + aggregation: { + baseName: "aggregation", + type: "MonitorFormulaAndFunctionEventAggregation", + required: true, + }, + metric: { + baseName: "metric", + type: "string", + }, + order: { + baseName: "order", + type: "QuerySortOrder", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonitorFormulaAndFunctionEventQueryGroupBySort.js.map + +/***/ }), + +/***/ 97525: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonitorGroupSearchResponse = void 0; +/** + * The response of a monitor group search. + */ +class MonitorGroupSearchResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonitorGroupSearchResponse.attributeTypeMap; + } +} +exports.MonitorGroupSearchResponse = MonitorGroupSearchResponse; +/** + * @ignore + */ +MonitorGroupSearchResponse.attributeTypeMap = { + counts: { + baseName: "counts", + type: "MonitorGroupSearchResponseCounts", + }, + groups: { + baseName: "groups", + type: "Array", + }, + metadata: { + baseName: "metadata", + type: "MonitorSearchResponseMetadata", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonitorGroupSearchResponse.js.map + +/***/ }), + +/***/ 75833: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonitorGroupSearchResponseCounts = void 0; +/** + * The counts of monitor groups per different criteria. + */ +class MonitorGroupSearchResponseCounts { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonitorGroupSearchResponseCounts.attributeTypeMap; + } +} +exports.MonitorGroupSearchResponseCounts = MonitorGroupSearchResponseCounts; +/** + * @ignore + */ +MonitorGroupSearchResponseCounts.attributeTypeMap = { + status: { + baseName: "status", + type: "Array", + }, + type: { + baseName: "type", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonitorGroupSearchResponseCounts.js.map + +/***/ }), + +/***/ 72407: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonitorGroupSearchResult = void 0; +/** + * A single monitor group search result. + */ +class MonitorGroupSearchResult { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonitorGroupSearchResult.attributeTypeMap; + } +} +exports.MonitorGroupSearchResult = MonitorGroupSearchResult; +/** + * @ignore + */ +MonitorGroupSearchResult.attributeTypeMap = { + group: { + baseName: "group", + type: "string", + }, + groupTags: { + baseName: "group_tags", + type: "Array", + }, + lastNodataTs: { + baseName: "last_nodata_ts", + type: "number", + format: "int64", + }, + lastTriggeredTs: { + baseName: "last_triggered_ts", + type: "number", + format: "int64", + }, + monitorId: { + baseName: "monitor_id", + type: "number", + format: "int64", + }, + monitorName: { + baseName: "monitor_name", + type: "string", + }, + status: { + baseName: "status", + type: "MonitorOverallStates", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonitorGroupSearchResult.js.map + +/***/ }), + +/***/ 92067: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonitorOptions = void 0; +/** + * List of options associated with your monitor. + */ +class MonitorOptions { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonitorOptions.attributeTypeMap; + } +} +exports.MonitorOptions = MonitorOptions; +/** + * @ignore + */ +MonitorOptions.attributeTypeMap = { + aggregation: { + baseName: "aggregation", + type: "MonitorOptionsAggregation", + }, + deviceIds: { + baseName: "device_ids", + type: "Array", + }, + enableLogsSample: { + baseName: "enable_logs_sample", + type: "boolean", + }, + enableSamples: { + baseName: "enable_samples", + type: "boolean", + }, + escalationMessage: { + baseName: "escalation_message", + type: "string", + }, + evaluationDelay: { + baseName: "evaluation_delay", + type: "number", + format: "int64", + }, + groupRetentionDuration: { + baseName: "group_retention_duration", + type: "string", + }, + groupbySimpleMonitor: { + baseName: "groupby_simple_monitor", + type: "boolean", + }, + includeTags: { + baseName: "include_tags", + type: "boolean", + }, + locked: { + baseName: "locked", + type: "boolean", + }, + minFailureDuration: { + baseName: "min_failure_duration", + type: "number", + format: "int64", + }, + minLocationFailed: { + baseName: "min_location_failed", + type: "number", + format: "int64", + }, + newGroupDelay: { + baseName: "new_group_delay", + type: "number", + format: "int64", + }, + newHostDelay: { + baseName: "new_host_delay", + type: "number", + format: "int64", + }, + noDataTimeframe: { + baseName: "no_data_timeframe", + type: "number", + format: "int64", + }, + notificationPresetName: { + baseName: "notification_preset_name", + type: "MonitorOptionsNotificationPresets", + }, + notifyAudit: { + baseName: "notify_audit", + type: "boolean", + }, + notifyBy: { + baseName: "notify_by", + type: "Array", + }, + notifyNoData: { + baseName: "notify_no_data", + type: "boolean", + }, + onMissingData: { + baseName: "on_missing_data", + type: "OnMissingDataOption", + }, + renotifyInterval: { + baseName: "renotify_interval", + type: "number", + format: "int64", + }, + renotifyOccurrences: { + baseName: "renotify_occurrences", + type: "number", + format: "int64", + }, + renotifyStatuses: { + baseName: "renotify_statuses", + type: "Array", + }, + requireFullWindow: { + baseName: "require_full_window", + type: "boolean", + }, + schedulingOptions: { + baseName: "scheduling_options", + type: "MonitorOptionsSchedulingOptions", + }, + silenced: { + baseName: "silenced", + type: "{ [key: string]: number; }", + }, + syntheticsCheckId: { + baseName: "synthetics_check_id", + type: "string", + }, + thresholdWindows: { + baseName: "threshold_windows", + type: "MonitorThresholdWindowOptions", + }, + thresholds: { + baseName: "thresholds", + type: "MonitorThresholds", + }, + timeoutH: { + baseName: "timeout_h", + type: "number", + format: "int64", + }, + variables: { + baseName: "variables", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonitorOptions.js.map + +/***/ }), + +/***/ 55033: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonitorOptionsAggregation = void 0; +/** + * Type of aggregation performed in the monitor query. + */ +class MonitorOptionsAggregation { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonitorOptionsAggregation.attributeTypeMap; + } +} +exports.MonitorOptionsAggregation = MonitorOptionsAggregation; +/** + * @ignore + */ +MonitorOptionsAggregation.attributeTypeMap = { + groupBy: { + baseName: "group_by", + type: "string", + }, + metric: { + baseName: "metric", + type: "string", + }, + type: { + baseName: "type", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonitorOptionsAggregation.js.map + +/***/ }), + +/***/ 34873: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonitorOptionsCustomSchedule = void 0; +/** + * Configuration options for the custom schedule. **This feature is in private beta.** + */ +class MonitorOptionsCustomSchedule { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonitorOptionsCustomSchedule.attributeTypeMap; + } +} +exports.MonitorOptionsCustomSchedule = MonitorOptionsCustomSchedule; +/** + * @ignore + */ +MonitorOptionsCustomSchedule.attributeTypeMap = { + recurrences: { + baseName: "recurrences", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonitorOptionsCustomSchedule.js.map + +/***/ }), + +/***/ 48067: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonitorOptionsCustomScheduleRecurrence = void 0; +/** + * Configuration for a recurrence set on the monitor options for custom schedule. + */ +class MonitorOptionsCustomScheduleRecurrence { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonitorOptionsCustomScheduleRecurrence.attributeTypeMap; + } +} +exports.MonitorOptionsCustomScheduleRecurrence = MonitorOptionsCustomScheduleRecurrence; +/** + * @ignore + */ +MonitorOptionsCustomScheduleRecurrence.attributeTypeMap = { + rrule: { + baseName: "rrule", + type: "string", + }, + start: { + baseName: "start", + type: "string", + }, + timezone: { + baseName: "timezone", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonitorOptionsCustomScheduleRecurrence.js.map + +/***/ }), + +/***/ 10235: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonitorOptionsSchedulingOptions = void 0; +/** + * Configuration options for scheduling. + */ +class MonitorOptionsSchedulingOptions { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonitorOptionsSchedulingOptions.attributeTypeMap; + } +} +exports.MonitorOptionsSchedulingOptions = MonitorOptionsSchedulingOptions; +/** + * @ignore + */ +MonitorOptionsSchedulingOptions.attributeTypeMap = { + customSchedule: { + baseName: "custom_schedule", + type: "MonitorOptionsCustomSchedule", + }, + evaluationWindow: { + baseName: "evaluation_window", + type: "MonitorOptionsSchedulingOptionsEvaluationWindow", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonitorOptionsSchedulingOptions.js.map + +/***/ }), + +/***/ 71205: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonitorOptionsSchedulingOptionsEvaluationWindow = void 0; +/** + * Configuration options for the evaluation window. If `hour_starts` is set, no other fields may be set. Otherwise, `day_starts` and `month_starts` must be set together. + */ +class MonitorOptionsSchedulingOptionsEvaluationWindow { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonitorOptionsSchedulingOptionsEvaluationWindow.attributeTypeMap; + } +} +exports.MonitorOptionsSchedulingOptionsEvaluationWindow = MonitorOptionsSchedulingOptionsEvaluationWindow; +/** + * @ignore + */ +MonitorOptionsSchedulingOptionsEvaluationWindow.attributeTypeMap = { + dayStarts: { + baseName: "day_starts", + type: "string", + }, + hourStarts: { + baseName: "hour_starts", + type: "number", + format: "int32", + }, + monthStarts: { + baseName: "month_starts", + type: "number", + format: "int32", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonitorOptionsSchedulingOptionsEvaluationWindow.js.map + +/***/ }), + +/***/ 12749: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonitorSearchCountItem = void 0; +/** + * A facet item. + */ +class MonitorSearchCountItem { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonitorSearchCountItem.attributeTypeMap; + } +} +exports.MonitorSearchCountItem = MonitorSearchCountItem; +/** + * @ignore + */ +MonitorSearchCountItem.attributeTypeMap = { + count: { + baseName: "count", + type: "number", + format: "int64", + }, + name: { + baseName: "name", + type: "any", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonitorSearchCountItem.js.map + +/***/ }), + +/***/ 15790: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonitorSearchResponse = void 0; +/** + * The response form a monitor search. + */ +class MonitorSearchResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonitorSearchResponse.attributeTypeMap; + } +} +exports.MonitorSearchResponse = MonitorSearchResponse; +/** + * @ignore + */ +MonitorSearchResponse.attributeTypeMap = { + counts: { + baseName: "counts", + type: "MonitorSearchResponseCounts", + }, + metadata: { + baseName: "metadata", + type: "MonitorSearchResponseMetadata", + }, + monitors: { + baseName: "monitors", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonitorSearchResponse.js.map + +/***/ }), + +/***/ 2942: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonitorSearchResponseCounts = void 0; +/** + * The counts of monitors per different criteria. + */ +class MonitorSearchResponseCounts { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonitorSearchResponseCounts.attributeTypeMap; + } +} +exports.MonitorSearchResponseCounts = MonitorSearchResponseCounts; +/** + * @ignore + */ +MonitorSearchResponseCounts.attributeTypeMap = { + muted: { + baseName: "muted", + type: "Array", + }, + status: { + baseName: "status", + type: "Array", + }, + tag: { + baseName: "tag", + type: "Array", + }, + type: { + baseName: "type", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonitorSearchResponseCounts.js.map + +/***/ }), + +/***/ 51711: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonitorSearchResponseMetadata = void 0; +/** + * Metadata about the response. + */ +class MonitorSearchResponseMetadata { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonitorSearchResponseMetadata.attributeTypeMap; + } +} +exports.MonitorSearchResponseMetadata = MonitorSearchResponseMetadata; +/** + * @ignore + */ +MonitorSearchResponseMetadata.attributeTypeMap = { + page: { + baseName: "page", + type: "number", + format: "int64", + }, + pageCount: { + baseName: "page_count", + type: "number", + format: "int64", + }, + perPage: { + baseName: "per_page", + type: "number", + format: "int64", + }, + totalCount: { + baseName: "total_count", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonitorSearchResponseMetadata.js.map + +/***/ }), + +/***/ 35288: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonitorSearchResult = void 0; +/** + * Holds search results. + */ +class MonitorSearchResult { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonitorSearchResult.attributeTypeMap; + } +} +exports.MonitorSearchResult = MonitorSearchResult; +/** + * @ignore + */ +MonitorSearchResult.attributeTypeMap = { + classification: { + baseName: "classification", + type: "string", + }, + creator: { + baseName: "creator", + type: "Creator", + }, + id: { + baseName: "id", + type: "number", + format: "int64", + }, + lastTriggeredTs: { + baseName: "last_triggered_ts", + type: "number", + format: "int64", + }, + metrics: { + baseName: "metrics", + type: "Array", + }, + name: { + baseName: "name", + type: "string", + }, + notifications: { + baseName: "notifications", + type: "Array", + }, + orgId: { + baseName: "org_id", + type: "number", + format: "int64", + }, + query: { + baseName: "query", + type: "string", + }, + scopes: { + baseName: "scopes", + type: "Array", + }, + status: { + baseName: "status", + type: "MonitorOverallStates", + }, + tags: { + baseName: "tags", + type: "Array", + }, + type: { + baseName: "type", + type: "MonitorType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonitorSearchResult.js.map + +/***/ }), + +/***/ 86411: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonitorSearchResultNotification = void 0; +/** + * A notification triggered by the monitor. + */ +class MonitorSearchResultNotification { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonitorSearchResultNotification.attributeTypeMap; + } +} +exports.MonitorSearchResultNotification = MonitorSearchResultNotification; +/** + * @ignore + */ +MonitorSearchResultNotification.attributeTypeMap = { + handle: { + baseName: "handle", + type: "string", + }, + name: { + baseName: "name", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonitorSearchResultNotification.js.map + +/***/ }), + +/***/ 2716: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonitorState = void 0; +/** + * Wrapper object with the different monitor states. + */ +class MonitorState { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonitorState.attributeTypeMap; + } +} +exports.MonitorState = MonitorState; +/** + * @ignore + */ +MonitorState.attributeTypeMap = { + groups: { + baseName: "groups", + type: "{ [key: string]: MonitorStateGroup; }", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonitorState.js.map + +/***/ }), + +/***/ 61121: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonitorStateGroup = void 0; +/** + * Monitor state for a single group. + */ +class MonitorStateGroup { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonitorStateGroup.attributeTypeMap; + } +} +exports.MonitorStateGroup = MonitorStateGroup; +/** + * @ignore + */ +MonitorStateGroup.attributeTypeMap = { + lastNodataTs: { + baseName: "last_nodata_ts", + type: "number", + format: "int64", + }, + lastNotifiedTs: { + baseName: "last_notified_ts", + type: "number", + format: "int64", + }, + lastResolvedTs: { + baseName: "last_resolved_ts", + type: "number", + format: "int64", + }, + lastTriggeredTs: { + baseName: "last_triggered_ts", + type: "number", + format: "int64", + }, + name: { + baseName: "name", + type: "string", + }, + status: { + baseName: "status", + type: "MonitorOverallStates", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonitorStateGroup.js.map + +/***/ }), + +/***/ 73040: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonitorSummaryWidgetDefinition = void 0; +/** + * The monitor summary widget displays a summary view of all your Datadog monitors, or a subset based on a query. Only available on FREE layout dashboards. + */ +class MonitorSummaryWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonitorSummaryWidgetDefinition.attributeTypeMap; + } +} +exports.MonitorSummaryWidgetDefinition = MonitorSummaryWidgetDefinition; +/** + * @ignore + */ +MonitorSummaryWidgetDefinition.attributeTypeMap = { + colorPreference: { + baseName: "color_preference", + type: "WidgetColorPreference", + }, + count: { + baseName: "count", + type: "number", + format: "int64", + }, + displayFormat: { + baseName: "display_format", + type: "WidgetMonitorSummaryDisplayFormat", + }, + hideZeroCounts: { + baseName: "hide_zero_counts", + type: "boolean", + }, + query: { + baseName: "query", + type: "string", + required: true, + }, + showLastTriggered: { + baseName: "show_last_triggered", + type: "boolean", + }, + showPriority: { + baseName: "show_priority", + type: "boolean", + }, + sort: { + baseName: "sort", + type: "WidgetMonitorSummarySort", + }, + start: { + baseName: "start", + type: "number", + format: "int64", + }, + summaryType: { + baseName: "summary_type", + type: "WidgetSummaryType", + }, + title: { + baseName: "title", + type: "string", + }, + titleAlign: { + baseName: "title_align", + type: "WidgetTextAlign", + }, + titleSize: { + baseName: "title_size", + type: "string", + }, + type: { + baseName: "type", + type: "MonitorSummaryWidgetDefinitionType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonitorSummaryWidgetDefinition.js.map + +/***/ }), + +/***/ 12734: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonitorThresholdWindowOptions = void 0; +/** + * Alerting time window options. + */ +class MonitorThresholdWindowOptions { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonitorThresholdWindowOptions.attributeTypeMap; + } +} +exports.MonitorThresholdWindowOptions = MonitorThresholdWindowOptions; +/** + * @ignore + */ +MonitorThresholdWindowOptions.attributeTypeMap = { + recoveryWindow: { + baseName: "recovery_window", + type: "string", + }, + triggerWindow: { + baseName: "trigger_window", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonitorThresholdWindowOptions.js.map + +/***/ }), + +/***/ 88653: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonitorThresholds = void 0; +/** + * List of the different monitor threshold available. + */ +class MonitorThresholds { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonitorThresholds.attributeTypeMap; + } +} +exports.MonitorThresholds = MonitorThresholds; +/** + * @ignore + */ +MonitorThresholds.attributeTypeMap = { + critical: { + baseName: "critical", + type: "number", + format: "double", + }, + criticalRecovery: { + baseName: "critical_recovery", + type: "number", + format: "double", + }, + ok: { + baseName: "ok", + type: "number", + format: "double", + }, + unknown: { + baseName: "unknown", + type: "number", + format: "double", + }, + warning: { + baseName: "warning", + type: "number", + format: "double", + }, + warningRecovery: { + baseName: "warning_recovery", + type: "number", + format: "double", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonitorThresholds.js.map + +/***/ }), + +/***/ 40459: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonitorUpdateRequest = void 0; +/** + * Object describing a monitor update request. + */ +class MonitorUpdateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonitorUpdateRequest.attributeTypeMap; + } +} +exports.MonitorUpdateRequest = MonitorUpdateRequest; +/** + * @ignore + */ +MonitorUpdateRequest.attributeTypeMap = { + created: { + baseName: "created", + type: "Date", + format: "date-time", + }, + creator: { + baseName: "creator", + type: "Creator", + }, + deleted: { + baseName: "deleted", + type: "Date", + format: "date-time", + }, + id: { + baseName: "id", + type: "number", + format: "int64", + }, + message: { + baseName: "message", + type: "string", + }, + modified: { + baseName: "modified", + type: "Date", + format: "date-time", + }, + multi: { + baseName: "multi", + type: "boolean", + }, + name: { + baseName: "name", + type: "string", + }, + options: { + baseName: "options", + type: "MonitorOptions", + }, + overallState: { + baseName: "overall_state", + type: "MonitorOverallStates", + }, + priority: { + baseName: "priority", + type: "number", + format: "int64", + }, + query: { + baseName: "query", + type: "string", + }, + restrictedRoles: { + baseName: "restricted_roles", + type: "Array", + }, + state: { + baseName: "state", + type: "MonitorState", + }, + tags: { + baseName: "tags", + type: "Array", + }, + type: { + baseName: "type", + type: "MonitorType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonitorUpdateRequest.js.map + +/***/ }), + +/***/ 41274: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonthlyUsageAttributionBody = void 0; +/** + * Usage Summary by tag for a given organization. + */ +class MonthlyUsageAttributionBody { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonthlyUsageAttributionBody.attributeTypeMap; + } +} +exports.MonthlyUsageAttributionBody = MonthlyUsageAttributionBody; +/** + * @ignore + */ +MonthlyUsageAttributionBody.attributeTypeMap = { + month: { + baseName: "month", + type: "Date", + format: "date-time", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + region: { + baseName: "region", + type: "string", + }, + tagConfigSource: { + baseName: "tag_config_source", + type: "string", + }, + tags: { + baseName: "tags", + type: "{ [key: string]: Array; }", + }, + updatedAt: { + baseName: "updated_at", + type: "Date", + format: "date-time", + }, + values: { + baseName: "values", + type: "MonthlyUsageAttributionValues", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonthlyUsageAttributionBody.js.map + +/***/ }), + +/***/ 74019: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonthlyUsageAttributionMetadata = void 0; +/** + * The object containing document metadata. + */ +class MonthlyUsageAttributionMetadata { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonthlyUsageAttributionMetadata.attributeTypeMap; + } +} +exports.MonthlyUsageAttributionMetadata = MonthlyUsageAttributionMetadata; +/** + * @ignore + */ +MonthlyUsageAttributionMetadata.attributeTypeMap = { + aggregates: { + baseName: "aggregates", + type: "Array", + }, + pagination: { + baseName: "pagination", + type: "MonthlyUsageAttributionPagination", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonthlyUsageAttributionMetadata.js.map + +/***/ }), + +/***/ 33142: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonthlyUsageAttributionPagination = void 0; +/** + * The metadata for the current pagination. + */ +class MonthlyUsageAttributionPagination { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonthlyUsageAttributionPagination.attributeTypeMap; + } +} +exports.MonthlyUsageAttributionPagination = MonthlyUsageAttributionPagination; +/** + * @ignore + */ +MonthlyUsageAttributionPagination.attributeTypeMap = { + nextRecordId: { + baseName: "next_record_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonthlyUsageAttributionPagination.js.map + +/***/ }), + +/***/ 2445: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonthlyUsageAttributionResponse = void 0; +/** + * Response containing the monthly Usage Summary by tag(s). + */ +class MonthlyUsageAttributionResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonthlyUsageAttributionResponse.attributeTypeMap; + } +} +exports.MonthlyUsageAttributionResponse = MonthlyUsageAttributionResponse; +/** + * @ignore + */ +MonthlyUsageAttributionResponse.attributeTypeMap = { + metadata: { + baseName: "metadata", + type: "MonthlyUsageAttributionMetadata", + }, + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonthlyUsageAttributionResponse.js.map + +/***/ }), + +/***/ 27876: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MonthlyUsageAttributionValues = void 0; +/** + * Fields in Usage Summary by tag(s). + */ +class MonthlyUsageAttributionValues { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return MonthlyUsageAttributionValues.attributeTypeMap; + } +} +exports.MonthlyUsageAttributionValues = MonthlyUsageAttributionValues; +/** + * @ignore + */ +MonthlyUsageAttributionValues.attributeTypeMap = { + apiPercentage: { + baseName: "api_percentage", + type: "number", + format: "double", + }, + apiUsage: { + baseName: "api_usage", + type: "number", + format: "double", + }, + apmFargatePercentage: { + baseName: "apm_fargate_percentage", + type: "number", + format: "double", + }, + apmFargateUsage: { + baseName: "apm_fargate_usage", + type: "number", + format: "double", + }, + apmHostPercentage: { + baseName: "apm_host_percentage", + type: "number", + format: "double", + }, + apmHostUsage: { + baseName: "apm_host_usage", + type: "number", + format: "double", + }, + apmUsmPercentage: { + baseName: "apm_usm_percentage", + type: "number", + format: "double", + }, + apmUsmUsage: { + baseName: "apm_usm_usage", + type: "number", + format: "double", + }, + appsecFargatePercentage: { + baseName: "appsec_fargate_percentage", + type: "number", + format: "double", + }, + appsecFargateUsage: { + baseName: "appsec_fargate_usage", + type: "number", + format: "double", + }, + appsecPercentage: { + baseName: "appsec_percentage", + type: "number", + format: "double", + }, + appsecUsage: { + baseName: "appsec_usage", + type: "number", + format: "double", + }, + asmServerlessTracedInvocationsPercentage: { + baseName: "asm_serverless_traced_invocations_percentage", + type: "number", + format: "double", + }, + asmServerlessTracedInvocationsUsage: { + baseName: "asm_serverless_traced_invocations_usage", + type: "number", + format: "double", + }, + browserPercentage: { + baseName: "browser_percentage", + type: "number", + format: "double", + }, + browserUsage: { + baseName: "browser_usage", + type: "number", + format: "double", + }, + ciPipelineIndexedSpansPercentage: { + baseName: "ci_pipeline_indexed_spans_percentage", + type: "number", + format: "double", + }, + ciPipelineIndexedSpansUsage: { + baseName: "ci_pipeline_indexed_spans_usage", + type: "number", + format: "double", + }, + ciTestIndexedSpansPercentage: { + baseName: "ci_test_indexed_spans_percentage", + type: "number", + format: "double", + }, + ciTestIndexedSpansUsage: { + baseName: "ci_test_indexed_spans_usage", + type: "number", + format: "double", + }, + ciVisibilityItrPercentage: { + baseName: "ci_visibility_itr_percentage", + type: "number", + format: "double", + }, + ciVisibilityItrUsage: { + baseName: "ci_visibility_itr_usage", + type: "number", + format: "double", + }, + cloudSiemPercentage: { + baseName: "cloud_siem_percentage", + type: "number", + format: "double", + }, + cloudSiemUsage: { + baseName: "cloud_siem_usage", + type: "number", + format: "double", + }, + codeSecurityHostPercentage: { + baseName: "code_security_host_percentage", + type: "number", + format: "double", + }, + codeSecurityHostUsage: { + baseName: "code_security_host_usage", + type: "number", + format: "double", + }, + containerExclAgentPercentage: { + baseName: "container_excl_agent_percentage", + type: "number", + format: "double", + }, + containerExclAgentUsage: { + baseName: "container_excl_agent_usage", + type: "number", + format: "double", + }, + containerPercentage: { + baseName: "container_percentage", + type: "number", + format: "double", + }, + containerUsage: { + baseName: "container_usage", + type: "number", + format: "double", + }, + cspmContainersPercentage: { + baseName: "cspm_containers_percentage", + type: "number", + format: "double", + }, + cspmContainersUsage: { + baseName: "cspm_containers_usage", + type: "number", + format: "double", + }, + cspmHostsPercentage: { + baseName: "cspm_hosts_percentage", + type: "number", + format: "double", + }, + cspmHostsUsage: { + baseName: "cspm_hosts_usage", + type: "number", + format: "double", + }, + customEventPercentage: { + baseName: "custom_event_percentage", + type: "number", + format: "double", + }, + customEventUsage: { + baseName: "custom_event_usage", + type: "number", + format: "double", + }, + customIngestedTimeseriesPercentage: { + baseName: "custom_ingested_timeseries_percentage", + type: "number", + format: "double", + }, + customIngestedTimeseriesUsage: { + baseName: "custom_ingested_timeseries_usage", + type: "number", + format: "double", + }, + customTimeseriesPercentage: { + baseName: "custom_timeseries_percentage", + type: "number", + format: "double", + }, + customTimeseriesUsage: { + baseName: "custom_timeseries_usage", + type: "number", + format: "double", + }, + cwsContainersPercentage: { + baseName: "cws_containers_percentage", + type: "number", + format: "double", + }, + cwsContainersUsage: { + baseName: "cws_containers_usage", + type: "number", + format: "double", + }, + cwsFargateTaskPercentage: { + baseName: "cws_fargate_task_percentage", + type: "number", + format: "double", + }, + cwsFargateTaskUsage: { + baseName: "cws_fargate_task_usage", + type: "number", + format: "double", + }, + cwsHostsPercentage: { + baseName: "cws_hosts_percentage", + type: "number", + format: "double", + }, + cwsHostsUsage: { + baseName: "cws_hosts_usage", + type: "number", + format: "double", + }, + dataJobsMonitoringUsage: { + baseName: "data_jobs_monitoring_usage", + type: "number", + format: "double", + }, + dataStreamMonitoringUsage: { + baseName: "data_stream_monitoring_usage", + type: "number", + format: "double", + }, + dbmHostsPercentage: { + baseName: "dbm_hosts_percentage", + type: "number", + format: "double", + }, + dbmHostsUsage: { + baseName: "dbm_hosts_usage", + type: "number", + format: "double", + }, + dbmQueriesPercentage: { + baseName: "dbm_queries_percentage", + type: "number", + format: "double", + }, + dbmQueriesUsage: { + baseName: "dbm_queries_usage", + type: "number", + format: "double", + }, + errorTrackingPercentage: { + baseName: "error_tracking_percentage", + type: "number", + format: "double", + }, + errorTrackingUsage: { + baseName: "error_tracking_usage", + type: "number", + format: "double", + }, + estimatedIndexedSpansPercentage: { + baseName: "estimated_indexed_spans_percentage", + type: "number", + format: "double", + }, + estimatedIndexedSpansUsage: { + baseName: "estimated_indexed_spans_usage", + type: "number", + format: "double", + }, + estimatedIngestedSpansPercentage: { + baseName: "estimated_ingested_spans_percentage", + type: "number", + format: "double", + }, + estimatedIngestedSpansUsage: { + baseName: "estimated_ingested_spans_usage", + type: "number", + format: "double", + }, + fargatePercentage: { + baseName: "fargate_percentage", + type: "number", + format: "double", + }, + fargateUsage: { + baseName: "fargate_usage", + type: "number", + format: "double", + }, + functionsPercentage: { + baseName: "functions_percentage", + type: "number", + format: "double", + }, + functionsUsage: { + baseName: "functions_usage", + type: "number", + format: "double", + }, + incidentManagementMonthlyActiveUsersPercentage: { + baseName: "incident_management_monthly_active_users_percentage", + type: "number", + format: "double", + }, + incidentManagementMonthlyActiveUsersUsage: { + baseName: "incident_management_monthly_active_users_usage", + type: "number", + format: "double", + }, + indexedSpansPercentage: { + baseName: "indexed_spans_percentage", + type: "number", + format: "double", + }, + indexedSpansUsage: { + baseName: "indexed_spans_usage", + type: "number", + format: "double", + }, + infraHostPercentage: { + baseName: "infra_host_percentage", + type: "number", + format: "double", + }, + infraHostUsage: { + baseName: "infra_host_usage", + type: "number", + format: "double", + }, + ingestedLogsBytesPercentage: { + baseName: "ingested_logs_bytes_percentage", + type: "number", + format: "double", + }, + ingestedLogsBytesUsage: { + baseName: "ingested_logs_bytes_usage", + type: "number", + format: "double", + }, + ingestedSpansBytesPercentage: { + baseName: "ingested_spans_bytes_percentage", + type: "number", + format: "double", + }, + ingestedSpansBytesUsage: { + baseName: "ingested_spans_bytes_usage", + type: "number", + format: "double", + }, + invocationsPercentage: { + baseName: "invocations_percentage", + type: "number", + format: "double", + }, + invocationsUsage: { + baseName: "invocations_usage", + type: "number", + format: "double", + }, + lambdaTracedInvocationsPercentage: { + baseName: "lambda_traced_invocations_percentage", + type: "number", + format: "double", + }, + lambdaTracedInvocationsUsage: { + baseName: "lambda_traced_invocations_usage", + type: "number", + format: "double", + }, + logsIndexed15dayPercentage: { + baseName: "logs_indexed_15day_percentage", + type: "number", + format: "double", + }, + logsIndexed15dayUsage: { + baseName: "logs_indexed_15day_usage", + type: "number", + format: "double", + }, + logsIndexed180dayPercentage: { + baseName: "logs_indexed_180day_percentage", + type: "number", + format: "double", + }, + logsIndexed180dayUsage: { + baseName: "logs_indexed_180day_usage", + type: "number", + format: "double", + }, + logsIndexed1dayPercentage: { + baseName: "logs_indexed_1day_percentage", + type: "number", + format: "double", + }, + logsIndexed1dayUsage: { + baseName: "logs_indexed_1day_usage", + type: "number", + format: "double", + }, + logsIndexed30dayPercentage: { + baseName: "logs_indexed_30day_percentage", + type: "number", + format: "double", + }, + logsIndexed30dayUsage: { + baseName: "logs_indexed_30day_usage", + type: "number", + format: "double", + }, + logsIndexed360dayPercentage: { + baseName: "logs_indexed_360day_percentage", + type: "number", + format: "double", + }, + logsIndexed360dayUsage: { + baseName: "logs_indexed_360day_usage", + type: "number", + format: "double", + }, + logsIndexed3dayPercentage: { + baseName: "logs_indexed_3day_percentage", + type: "number", + format: "double", + }, + logsIndexed3dayUsage: { + baseName: "logs_indexed_3day_usage", + type: "number", + format: "double", + }, + logsIndexed45dayPercentage: { + baseName: "logs_indexed_45day_percentage", + type: "number", + format: "double", + }, + logsIndexed45dayUsage: { + baseName: "logs_indexed_45day_usage", + type: "number", + format: "double", + }, + logsIndexed60dayPercentage: { + baseName: "logs_indexed_60day_percentage", + type: "number", + format: "double", + }, + logsIndexed60dayUsage: { + baseName: "logs_indexed_60day_usage", + type: "number", + format: "double", + }, + logsIndexed7dayPercentage: { + baseName: "logs_indexed_7day_percentage", + type: "number", + format: "double", + }, + logsIndexed7dayUsage: { + baseName: "logs_indexed_7day_usage", + type: "number", + format: "double", + }, + logsIndexed90dayPercentage: { + baseName: "logs_indexed_90day_percentage", + type: "number", + format: "double", + }, + logsIndexed90dayUsage: { + baseName: "logs_indexed_90day_usage", + type: "number", + format: "double", + }, + logsIndexedCustomRetentionPercentage: { + baseName: "logs_indexed_custom_retention_percentage", + type: "number", + format: "double", + }, + logsIndexedCustomRetentionUsage: { + baseName: "logs_indexed_custom_retention_usage", + type: "number", + format: "double", + }, + mobileAppTestingPercentage: { + baseName: "mobile_app_testing_percentage", + type: "number", + format: "double", + }, + mobileAppTestingUsage: { + baseName: "mobile_app_testing_usage", + type: "number", + format: "double", + }, + ndmNetflowPercentage: { + baseName: "ndm_netflow_percentage", + type: "number", + format: "double", + }, + ndmNetflowUsage: { + baseName: "ndm_netflow_usage", + type: "number", + format: "double", + }, + npmHostPercentage: { + baseName: "npm_host_percentage", + type: "number", + format: "double", + }, + npmHostUsage: { + baseName: "npm_host_usage", + type: "number", + format: "double", + }, + obsPipelineBytesPercentage: { + baseName: "obs_pipeline_bytes_percentage", + type: "number", + format: "double", + }, + obsPipelineBytesUsage: { + baseName: "obs_pipeline_bytes_usage", + type: "number", + format: "double", + }, + obsPipelinesVcpuPercentage: { + baseName: "obs_pipelines_vcpu_percentage", + type: "number", + format: "double", + }, + obsPipelinesVcpuUsage: { + baseName: "obs_pipelines_vcpu_usage", + type: "number", + format: "double", + }, + onlineArchivePercentage: { + baseName: "online_archive_percentage", + type: "number", + format: "double", + }, + onlineArchiveUsage: { + baseName: "online_archive_usage", + type: "number", + format: "double", + }, + profiledContainerPercentage: { + baseName: "profiled_container_percentage", + type: "number", + format: "double", + }, + profiledContainerUsage: { + baseName: "profiled_container_usage", + type: "number", + format: "double", + }, + profiledFargatePercentage: { + baseName: "profiled_fargate_percentage", + type: "number", + format: "double", + }, + profiledFargateUsage: { + baseName: "profiled_fargate_usage", + type: "number", + format: "double", + }, + profiledHostPercentage: { + baseName: "profiled_host_percentage", + type: "number", + format: "double", + }, + profiledHostUsage: { + baseName: "profiled_host_usage", + type: "number", + format: "double", + }, + rumBrowserMobileSessionsPercentage: { + baseName: "rum_browser_mobile_sessions_percentage", + type: "number", + format: "double", + }, + rumBrowserMobileSessionsUsage: { + baseName: "rum_browser_mobile_sessions_usage", + type: "number", + format: "double", + }, + rumReplaySessionsPercentage: { + baseName: "rum_replay_sessions_percentage", + type: "number", + format: "double", + }, + rumReplaySessionsUsage: { + baseName: "rum_replay_sessions_usage", + type: "number", + format: "double", + }, + scaFargatePercentage: { + baseName: "sca_fargate_percentage", + type: "number", + format: "double", + }, + scaFargateUsage: { + baseName: "sca_fargate_usage", + type: "number", + format: "double", + }, + sdsScannedBytesPercentage: { + baseName: "sds_scanned_bytes_percentage", + type: "number", + format: "double", + }, + sdsScannedBytesUsage: { + baseName: "sds_scanned_bytes_usage", + type: "number", + format: "double", + }, + serverlessAppsPercentage: { + baseName: "serverless_apps_percentage", + type: "number", + format: "double", + }, + serverlessAppsUsage: { + baseName: "serverless_apps_usage", + type: "number", + format: "double", + }, + siemAnalyzedLogsAddOnPercentage: { + baseName: "siem_analyzed_logs_add_on_percentage", + type: "number", + format: "double", + }, + siemAnalyzedLogsAddOnUsage: { + baseName: "siem_analyzed_logs_add_on_usage", + type: "number", + format: "double", + }, + siemIngestedBytesPercentage: { + baseName: "siem_ingested_bytes_percentage", + type: "number", + format: "double", + }, + siemIngestedBytesUsage: { + baseName: "siem_ingested_bytes_usage", + type: "number", + format: "double", + }, + snmpPercentage: { + baseName: "snmp_percentage", + type: "number", + format: "double", + }, + snmpUsage: { + baseName: "snmp_usage", + type: "number", + format: "double", + }, + universalServiceMonitoringPercentage: { + baseName: "universal_service_monitoring_percentage", + type: "number", + format: "double", + }, + universalServiceMonitoringUsage: { + baseName: "universal_service_monitoring_usage", + type: "number", + format: "double", + }, + vulnManagementHostsPercentage: { + baseName: "vuln_management_hosts_percentage", + type: "number", + format: "double", + }, + vulnManagementHostsUsage: { + baseName: "vuln_management_hosts_usage", + type: "number", + format: "double", + }, + workflowExecutionsPercentage: { + baseName: "workflow_executions_percentage", + type: "number", + format: "double", + }, + workflowExecutionsUsage: { + baseName: "workflow_executions_usage", + type: "number", + format: "double", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=MonthlyUsageAttributionValues.js.map + +/***/ }), + +/***/ 74006: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NoteWidgetDefinition = void 0; +/** + * The notes and links widget is similar to free text widget, but allows for more formatting options. + */ +class NoteWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return NoteWidgetDefinition.attributeTypeMap; + } +} +exports.NoteWidgetDefinition = NoteWidgetDefinition; +/** + * @ignore + */ +NoteWidgetDefinition.attributeTypeMap = { + backgroundColor: { + baseName: "background_color", + type: "string", + }, + content: { + baseName: "content", + type: "string", + required: true, + }, + fontSize: { + baseName: "font_size", + type: "string", + }, + hasPadding: { + baseName: "has_padding", + type: "boolean", + }, + showTick: { + baseName: "show_tick", + type: "boolean", + }, + textAlign: { + baseName: "text_align", + type: "WidgetTextAlign", + }, + tickEdge: { + baseName: "tick_edge", + type: "WidgetTickEdge", + }, + tickPos: { + baseName: "tick_pos", + type: "string", + }, + type: { + baseName: "type", + type: "NoteWidgetDefinitionType", + required: true, + }, + verticalAlign: { + baseName: "vertical_align", + type: "WidgetVerticalAlign", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=NoteWidgetDefinition.js.map + +/***/ }), + +/***/ 81294: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotebookAbsoluteTime = void 0; +/** + * Absolute timeframe. + */ +class NotebookAbsoluteTime { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return NotebookAbsoluteTime.attributeTypeMap; + } +} +exports.NotebookAbsoluteTime = NotebookAbsoluteTime; +/** + * @ignore + */ +NotebookAbsoluteTime.attributeTypeMap = { + end: { + baseName: "end", + type: "Date", + required: true, + format: "date-time", + }, + live: { + baseName: "live", + type: "boolean", + }, + start: { + baseName: "start", + type: "Date", + required: true, + format: "date-time", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=NotebookAbsoluteTime.js.map + +/***/ }), + +/***/ 20393: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotebookAuthor = void 0; +/** + * Attributes of user object returned by the API. + */ +class NotebookAuthor { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return NotebookAuthor.attributeTypeMap; + } +} +exports.NotebookAuthor = NotebookAuthor; +/** + * @ignore + */ +NotebookAuthor.attributeTypeMap = { + createdAt: { + baseName: "created_at", + type: "Date", + format: "date-time", + }, + disabled: { + baseName: "disabled", + type: "boolean", + }, + email: { + baseName: "email", + type: "string", + }, + handle: { + baseName: "handle", + type: "string", + }, + icon: { + baseName: "icon", + type: "string", + }, + name: { + baseName: "name", + type: "string", + }, + status: { + baseName: "status", + type: "string", + }, + title: { + baseName: "title", + type: "string", + }, + verified: { + baseName: "verified", + type: "boolean", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=NotebookAuthor.js.map + +/***/ }), + +/***/ 23237: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotebookCellCreateRequest = void 0; +/** + * The description of a notebook cell create request. + */ +class NotebookCellCreateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return NotebookCellCreateRequest.attributeTypeMap; + } +} +exports.NotebookCellCreateRequest = NotebookCellCreateRequest; +/** + * @ignore + */ +NotebookCellCreateRequest.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "NotebookCellCreateRequestAttributes", + required: true, + }, + type: { + baseName: "type", + type: "NotebookCellResourceType", + required: true, + }, +}; +//# sourceMappingURL=NotebookCellCreateRequest.js.map + +/***/ }), + +/***/ 91601: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotebookCellResponse = void 0; +/** + * The description of a notebook cell response. + */ +class NotebookCellResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return NotebookCellResponse.attributeTypeMap; + } +} +exports.NotebookCellResponse = NotebookCellResponse; +/** + * @ignore + */ +NotebookCellResponse.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "NotebookCellResponseAttributes", + required: true, + }, + id: { + baseName: "id", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "NotebookCellResourceType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=NotebookCellResponse.js.map + +/***/ }), + +/***/ 57134: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotebookCellUpdateRequest = void 0; +/** + * The description of a notebook cell update request. + */ +class NotebookCellUpdateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return NotebookCellUpdateRequest.attributeTypeMap; + } +} +exports.NotebookCellUpdateRequest = NotebookCellUpdateRequest; +/** + * @ignore + */ +NotebookCellUpdateRequest.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "NotebookCellUpdateRequestAttributes", + required: true, + }, + id: { + baseName: "id", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "NotebookCellResourceType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=NotebookCellUpdateRequest.js.map + +/***/ }), + +/***/ 26694: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotebookCreateData = void 0; +/** + * The data for a notebook create request. + */ +class NotebookCreateData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return NotebookCreateData.attributeTypeMap; + } +} +exports.NotebookCreateData = NotebookCreateData; +/** + * @ignore + */ +NotebookCreateData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "NotebookCreateDataAttributes", + required: true, + }, + type: { + baseName: "type", + type: "NotebookResourceType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=NotebookCreateData.js.map + +/***/ }), + +/***/ 12979: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotebookCreateDataAttributes = void 0; +/** + * The data attributes of a notebook. + */ +class NotebookCreateDataAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return NotebookCreateDataAttributes.attributeTypeMap; + } +} +exports.NotebookCreateDataAttributes = NotebookCreateDataAttributes; +/** + * @ignore + */ +NotebookCreateDataAttributes.attributeTypeMap = { + cells: { + baseName: "cells", + type: "Array", + required: true, + }, + metadata: { + baseName: "metadata", + type: "NotebookMetadata", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + status: { + baseName: "status", + type: "NotebookStatus", + }, + time: { + baseName: "time", + type: "NotebookGlobalTime", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=NotebookCreateDataAttributes.js.map + +/***/ }), + +/***/ 67133: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotebookCreateRequest = void 0; +/** + * The description of a notebook create request. + */ +class NotebookCreateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return NotebookCreateRequest.attributeTypeMap; + } +} +exports.NotebookCreateRequest = NotebookCreateRequest; +/** + * @ignore + */ +NotebookCreateRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "NotebookCreateData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=NotebookCreateRequest.js.map + +/***/ }), + +/***/ 71629: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotebookDistributionCellAttributes = void 0; +/** + * The attributes of a notebook `distribution` cell. + */ +class NotebookDistributionCellAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return NotebookDistributionCellAttributes.attributeTypeMap; + } +} +exports.NotebookDistributionCellAttributes = NotebookDistributionCellAttributes; +/** + * @ignore + */ +NotebookDistributionCellAttributes.attributeTypeMap = { + definition: { + baseName: "definition", + type: "DistributionWidgetDefinition", + required: true, + }, + graphSize: { + baseName: "graph_size", + type: "NotebookGraphSize", + }, + splitBy: { + baseName: "split_by", + type: "NotebookSplitBy", + }, + time: { + baseName: "time", + type: "NotebookCellTime", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=NotebookDistributionCellAttributes.js.map + +/***/ }), + +/***/ 93413: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotebookHeatMapCellAttributes = void 0; +/** + * The attributes of a notebook `heatmap` cell. + */ +class NotebookHeatMapCellAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return NotebookHeatMapCellAttributes.attributeTypeMap; + } +} +exports.NotebookHeatMapCellAttributes = NotebookHeatMapCellAttributes; +/** + * @ignore + */ +NotebookHeatMapCellAttributes.attributeTypeMap = { + definition: { + baseName: "definition", + type: "HeatMapWidgetDefinition", + required: true, + }, + graphSize: { + baseName: "graph_size", + type: "NotebookGraphSize", + }, + splitBy: { + baseName: "split_by", + type: "NotebookSplitBy", + }, + time: { + baseName: "time", + type: "NotebookCellTime", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=NotebookHeatMapCellAttributes.js.map + +/***/ }), + +/***/ 15599: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotebookLogStreamCellAttributes = void 0; +/** + * The attributes of a notebook `log_stream` cell. + */ +class NotebookLogStreamCellAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return NotebookLogStreamCellAttributes.attributeTypeMap; + } +} +exports.NotebookLogStreamCellAttributes = NotebookLogStreamCellAttributes; +/** + * @ignore + */ +NotebookLogStreamCellAttributes.attributeTypeMap = { + definition: { + baseName: "definition", + type: "LogStreamWidgetDefinition", + required: true, + }, + graphSize: { + baseName: "graph_size", + type: "NotebookGraphSize", + }, + time: { + baseName: "time", + type: "NotebookCellTime", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=NotebookLogStreamCellAttributes.js.map + +/***/ }), + +/***/ 8538: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotebookMarkdownCellAttributes = void 0; +/** + * The attributes of a notebook `markdown` cell. + */ +class NotebookMarkdownCellAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return NotebookMarkdownCellAttributes.attributeTypeMap; + } +} +exports.NotebookMarkdownCellAttributes = NotebookMarkdownCellAttributes; +/** + * @ignore + */ +NotebookMarkdownCellAttributes.attributeTypeMap = { + definition: { + baseName: "definition", + type: "NotebookMarkdownCellDefinition", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=NotebookMarkdownCellAttributes.js.map + +/***/ }), + +/***/ 96930: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotebookMarkdownCellDefinition = void 0; +/** + * Text in a notebook is formatted with [Markdown](https://daringfireball.net/projects/markdown/), which enables the use of headings, subheadings, links, images, lists, and code blocks. + */ +class NotebookMarkdownCellDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return NotebookMarkdownCellDefinition.attributeTypeMap; + } +} +exports.NotebookMarkdownCellDefinition = NotebookMarkdownCellDefinition; +/** + * @ignore + */ +NotebookMarkdownCellDefinition.attributeTypeMap = { + text: { + baseName: "text", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "NotebookMarkdownCellDefinitionType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=NotebookMarkdownCellDefinition.js.map + +/***/ }), + +/***/ 58695: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotebookMetadata = void 0; +/** + * Metadata associated with the notebook. + */ +class NotebookMetadata { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return NotebookMetadata.attributeTypeMap; + } +} +exports.NotebookMetadata = NotebookMetadata; +/** + * @ignore + */ +NotebookMetadata.attributeTypeMap = { + isTemplate: { + baseName: "is_template", + type: "boolean", + }, + takeSnapshots: { + baseName: "take_snapshots", + type: "boolean", + }, + type: { + baseName: "type", + type: "NotebookMetadataType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=NotebookMetadata.js.map + +/***/ }), + +/***/ 55731: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotebookRelativeTime = void 0; +/** + * Relative timeframe. + */ +class NotebookRelativeTime { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return NotebookRelativeTime.attributeTypeMap; + } +} +exports.NotebookRelativeTime = NotebookRelativeTime; +/** + * @ignore + */ +NotebookRelativeTime.attributeTypeMap = { + liveSpan: { + baseName: "live_span", + type: "WidgetLiveSpan", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=NotebookRelativeTime.js.map + +/***/ }), + +/***/ 13945: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotebookResponse = void 0; +/** + * The description of a notebook response. + */ +class NotebookResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return NotebookResponse.attributeTypeMap; + } +} +exports.NotebookResponse = NotebookResponse; +/** + * @ignore + */ +NotebookResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "NotebookResponseData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=NotebookResponse.js.map + +/***/ }), + +/***/ 45353: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotebookResponseData = void 0; +/** + * The data for a notebook. + */ +class NotebookResponseData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return NotebookResponseData.attributeTypeMap; + } +} +exports.NotebookResponseData = NotebookResponseData; +/** + * @ignore + */ +NotebookResponseData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "NotebookResponseDataAttributes", + required: true, + }, + id: { + baseName: "id", + type: "number", + required: true, + format: "int64", + }, + type: { + baseName: "type", + type: "NotebookResourceType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=NotebookResponseData.js.map + +/***/ }), + +/***/ 32312: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotebookResponseDataAttributes = void 0; +/** + * The attributes of a notebook. + */ +class NotebookResponseDataAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return NotebookResponseDataAttributes.attributeTypeMap; + } +} +exports.NotebookResponseDataAttributes = NotebookResponseDataAttributes; +/** + * @ignore + */ +NotebookResponseDataAttributes.attributeTypeMap = { + author: { + baseName: "author", + type: "NotebookAuthor", + }, + cells: { + baseName: "cells", + type: "Array", + required: true, + }, + created: { + baseName: "created", + type: "Date", + format: "date-time", + }, + metadata: { + baseName: "metadata", + type: "NotebookMetadata", + }, + modified: { + baseName: "modified", + type: "Date", + format: "date-time", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + status: { + baseName: "status", + type: "NotebookStatus", + }, + time: { + baseName: "time", + type: "NotebookGlobalTime", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=NotebookResponseDataAttributes.js.map + +/***/ }), + +/***/ 52161: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotebookSplitBy = void 0; +/** + * Object describing how to split the graph to display multiple visualizations per request. + */ +class NotebookSplitBy { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return NotebookSplitBy.attributeTypeMap; + } +} +exports.NotebookSplitBy = NotebookSplitBy; +/** + * @ignore + */ +NotebookSplitBy.attributeTypeMap = { + keys: { + baseName: "keys", + type: "Array", + required: true, + }, + tags: { + baseName: "tags", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=NotebookSplitBy.js.map + +/***/ }), + +/***/ 86711: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotebookTimeseriesCellAttributes = void 0; +/** + * The attributes of a notebook `timeseries` cell. + */ +class NotebookTimeseriesCellAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return NotebookTimeseriesCellAttributes.attributeTypeMap; + } +} +exports.NotebookTimeseriesCellAttributes = NotebookTimeseriesCellAttributes; +/** + * @ignore + */ +NotebookTimeseriesCellAttributes.attributeTypeMap = { + definition: { + baseName: "definition", + type: "TimeseriesWidgetDefinition", + required: true, + }, + graphSize: { + baseName: "graph_size", + type: "NotebookGraphSize", + }, + splitBy: { + baseName: "split_by", + type: "NotebookSplitBy", + }, + time: { + baseName: "time", + type: "NotebookCellTime", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=NotebookTimeseriesCellAttributes.js.map + +/***/ }), + +/***/ 18274: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotebookToplistCellAttributes = void 0; +/** + * The attributes of a notebook `toplist` cell. + */ +class NotebookToplistCellAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return NotebookToplistCellAttributes.attributeTypeMap; + } +} +exports.NotebookToplistCellAttributes = NotebookToplistCellAttributes; +/** + * @ignore + */ +NotebookToplistCellAttributes.attributeTypeMap = { + definition: { + baseName: "definition", + type: "ToplistWidgetDefinition", + required: true, + }, + graphSize: { + baseName: "graph_size", + type: "NotebookGraphSize", + }, + splitBy: { + baseName: "split_by", + type: "NotebookSplitBy", + }, + time: { + baseName: "time", + type: "NotebookCellTime", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=NotebookToplistCellAttributes.js.map + +/***/ }), + +/***/ 29251: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotebookUpdateData = void 0; +/** + * The data for a notebook update request. + */ +class NotebookUpdateData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return NotebookUpdateData.attributeTypeMap; + } +} +exports.NotebookUpdateData = NotebookUpdateData; +/** + * @ignore + */ +NotebookUpdateData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "NotebookUpdateDataAttributes", + required: true, + }, + type: { + baseName: "type", + type: "NotebookResourceType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=NotebookUpdateData.js.map + +/***/ }), + +/***/ 41894: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotebookUpdateDataAttributes = void 0; +/** + * The data attributes of a notebook. + */ +class NotebookUpdateDataAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return NotebookUpdateDataAttributes.attributeTypeMap; + } +} +exports.NotebookUpdateDataAttributes = NotebookUpdateDataAttributes; +/** + * @ignore + */ +NotebookUpdateDataAttributes.attributeTypeMap = { + cells: { + baseName: "cells", + type: "Array", + required: true, + }, + metadata: { + baseName: "metadata", + type: "NotebookMetadata", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + status: { + baseName: "status", + type: "NotebookStatus", + }, + time: { + baseName: "time", + type: "NotebookGlobalTime", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=NotebookUpdateDataAttributes.js.map + +/***/ }), + +/***/ 69190: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotebookUpdateRequest = void 0; +/** + * The description of a notebook update request. + */ +class NotebookUpdateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return NotebookUpdateRequest.attributeTypeMap; + } +} +exports.NotebookUpdateRequest = NotebookUpdateRequest; +/** + * @ignore + */ +NotebookUpdateRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "NotebookUpdateData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=NotebookUpdateRequest.js.map + +/***/ }), + +/***/ 58590: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotebooksResponse = void 0; +/** + * Notebooks get all response. + */ +class NotebooksResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return NotebooksResponse.attributeTypeMap; + } +} +exports.NotebooksResponse = NotebooksResponse; +/** + * @ignore + */ +NotebooksResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "Array", + }, + meta: { + baseName: "meta", + type: "NotebooksResponseMeta", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=NotebooksResponse.js.map + +/***/ }), + +/***/ 97646: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotebooksResponseData = void 0; +/** + * The data for a notebook in get all response. + */ +class NotebooksResponseData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return NotebooksResponseData.attributeTypeMap; + } +} +exports.NotebooksResponseData = NotebooksResponseData; +/** + * @ignore + */ +NotebooksResponseData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "NotebooksResponseDataAttributes", + required: true, + }, + id: { + baseName: "id", + type: "number", + required: true, + format: "int64", + }, + type: { + baseName: "type", + type: "NotebookResourceType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=NotebooksResponseData.js.map + +/***/ }), + +/***/ 22091: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotebooksResponseDataAttributes = void 0; +/** + * The attributes of a notebook in get all response. + */ +class NotebooksResponseDataAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return NotebooksResponseDataAttributes.attributeTypeMap; + } +} +exports.NotebooksResponseDataAttributes = NotebooksResponseDataAttributes; +/** + * @ignore + */ +NotebooksResponseDataAttributes.attributeTypeMap = { + author: { + baseName: "author", + type: "NotebookAuthor", + }, + cells: { + baseName: "cells", + type: "Array", + }, + created: { + baseName: "created", + type: "Date", + format: "date-time", + }, + metadata: { + baseName: "metadata", + type: "NotebookMetadata", + }, + modified: { + baseName: "modified", + type: "Date", + format: "date-time", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + status: { + baseName: "status", + type: "NotebookStatus", + }, + time: { + baseName: "time", + type: "NotebookGlobalTime", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=NotebooksResponseDataAttributes.js.map + +/***/ }), + +/***/ 34759: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotebooksResponseMeta = void 0; +/** + * Searches metadata returned by the API. + */ +class NotebooksResponseMeta { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return NotebooksResponseMeta.attributeTypeMap; + } +} +exports.NotebooksResponseMeta = NotebooksResponseMeta; +/** + * @ignore + */ +NotebooksResponseMeta.attributeTypeMap = { + page: { + baseName: "page", + type: "NotebooksResponsePage", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=NotebooksResponseMeta.js.map + +/***/ }), + +/***/ 12553: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NotebooksResponsePage = void 0; +/** + * Pagination metadata returned by the API. + */ +class NotebooksResponsePage { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return NotebooksResponsePage.attributeTypeMap; + } +} +exports.NotebooksResponsePage = NotebooksResponsePage; +/** + * @ignore + */ +NotebooksResponsePage.attributeTypeMap = { + totalCount: { + baseName: "total_count", + type: "number", + format: "int64", + }, + totalFilteredCount: { + baseName: "total_filtered_count", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=NotebooksResponsePage.js.map + +/***/ }), + +/***/ 78052: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ObjectSerializer = void 0; +const APIErrorResponse_1 = __nccwpck_require__(1038); +const AWSAccount_1 = __nccwpck_require__(77719); +const AWSAccountAndLambdaRequest_1 = __nccwpck_require__(18288); +const AWSAccountCreateResponse_1 = __nccwpck_require__(30136); +const AWSAccountDeleteRequest_1 = __nccwpck_require__(3947); +const AWSAccountListResponse_1 = __nccwpck_require__(30060); +const AWSEventBridgeAccountConfiguration_1 = __nccwpck_require__(92322); +const AWSEventBridgeCreateRequest_1 = __nccwpck_require__(8392); +const AWSEventBridgeCreateResponse_1 = __nccwpck_require__(27634); +const AWSEventBridgeDeleteRequest_1 = __nccwpck_require__(72925); +const AWSEventBridgeDeleteResponse_1 = __nccwpck_require__(49065); +const AWSEventBridgeListResponse_1 = __nccwpck_require__(41954); +const AWSEventBridgeSource_1 = __nccwpck_require__(93500); +const AWSLogsAsyncError_1 = __nccwpck_require__(93719); +const AWSLogsAsyncResponse_1 = __nccwpck_require__(50722); +const AWSLogsLambda_1 = __nccwpck_require__(60970); +const AWSLogsListResponse_1 = __nccwpck_require__(52714); +const AWSLogsListServicesResponse_1 = __nccwpck_require__(85038); +const AWSLogsServicesRequest_1 = __nccwpck_require__(66600); +const AWSTagFilter_1 = __nccwpck_require__(36818); +const AWSTagFilterCreateRequest_1 = __nccwpck_require__(5865); +const AWSTagFilterDeleteRequest_1 = __nccwpck_require__(62032); +const AWSTagFilterListResponse_1 = __nccwpck_require__(43961); +const AddSignalToIncidentRequest_1 = __nccwpck_require__(90478); +const AlertGraphWidgetDefinition_1 = __nccwpck_require__(61052); +const AlertValueWidgetDefinition_1 = __nccwpck_require__(29833); +const ApiKey_1 = __nccwpck_require__(99816); +const ApiKeyListResponse_1 = __nccwpck_require__(26919); +const ApiKeyResponse_1 = __nccwpck_require__(43839); +const ApmStatsQueryColumnType_1 = __nccwpck_require__(49152); +const ApmStatsQueryDefinition_1 = __nccwpck_require__(84995); +const ApplicationKey_1 = __nccwpck_require__(57554); +const ApplicationKeyListResponse_1 = __nccwpck_require__(27161); +const ApplicationKeyResponse_1 = __nccwpck_require__(54485); +const AuthenticationValidationResponse_1 = __nccwpck_require__(48807); +const AzureAccount_1 = __nccwpck_require__(2881); +const AzureAccountMetricsConfig_1 = __nccwpck_require__(22330); +const CancelDowntimesByScopeRequest_1 = __nccwpck_require__(34831); +const CanceledDowntimesIds_1 = __nccwpck_require__(17668); +const ChangeWidgetDefinition_1 = __nccwpck_require__(72762); +const ChangeWidgetRequest_1 = __nccwpck_require__(95114); +const CheckCanDeleteMonitorResponse_1 = __nccwpck_require__(64145); +const CheckCanDeleteMonitorResponseData_1 = __nccwpck_require__(2529); +const CheckCanDeleteSLOResponse_1 = __nccwpck_require__(37823); +const CheckCanDeleteSLOResponseData_1 = __nccwpck_require__(71687); +const CheckStatusWidgetDefinition_1 = __nccwpck_require__(77352); +const Creator_1 = __nccwpck_require__(85131); +const Dashboard_1 = __nccwpck_require__(61271); +const DashboardBulkActionData_1 = __nccwpck_require__(87641); +const DashboardBulkDeleteRequest_1 = __nccwpck_require__(47991); +const DashboardDeleteResponse_1 = __nccwpck_require__(82639); +const DashboardGlobalTime_1 = __nccwpck_require__(88433); +const DashboardList_1 = __nccwpck_require__(31007); +const DashboardListDeleteResponse_1 = __nccwpck_require__(76231); +const DashboardListListResponse_1 = __nccwpck_require__(62964); +const DashboardRestoreRequest_1 = __nccwpck_require__(65476); +const DashboardSummary_1 = __nccwpck_require__(9183); +const DashboardSummaryDefinition_1 = __nccwpck_require__(98402); +const DashboardTemplateVariable_1 = __nccwpck_require__(24169); +const DashboardTemplateVariablePreset_1 = __nccwpck_require__(48950); +const DashboardTemplateVariablePresetValue_1 = __nccwpck_require__(9877); +const DeleteSharedDashboardResponse_1 = __nccwpck_require__(16066); +const DeletedMonitor_1 = __nccwpck_require__(32502); +const DistributionPointsPayload_1 = __nccwpck_require__(2242); +const DistributionPointsSeries_1 = __nccwpck_require__(33403); +const DistributionWidgetDefinition_1 = __nccwpck_require__(76064); +const DistributionWidgetRequest_1 = __nccwpck_require__(10484); +const DistributionWidgetXAxis_1 = __nccwpck_require__(13568); +const DistributionWidgetYAxis_1 = __nccwpck_require__(92263); +const Downtime_1 = __nccwpck_require__(45706); +const DowntimeChild_1 = __nccwpck_require__(17346); +const DowntimeRecurrence_1 = __nccwpck_require__(25872); +const Event_1 = __nccwpck_require__(50003); +const EventCreateRequest_1 = __nccwpck_require__(2866); +const EventCreateResponse_1 = __nccwpck_require__(39228); +const EventListResponse_1 = __nccwpck_require__(73000); +const EventQueryDefinition_1 = __nccwpck_require__(23186); +const EventResponse_1 = __nccwpck_require__(92864); +const EventStreamWidgetDefinition_1 = __nccwpck_require__(46650); +const EventTimelineWidgetDefinition_1 = __nccwpck_require__(94138); +const FormulaAndFunctionApmDependencyStatsQueryDefinition_1 = __nccwpck_require__(63675); +const FormulaAndFunctionApmResourceStatsQueryDefinition_1 = __nccwpck_require__(86366); +const FormulaAndFunctionCloudCostQueryDefinition_1 = __nccwpck_require__(3061); +const FormulaAndFunctionEventQueryDefinition_1 = __nccwpck_require__(42833); +const FormulaAndFunctionEventQueryDefinitionCompute_1 = __nccwpck_require__(39584); +const FormulaAndFunctionEventQueryDefinitionSearch_1 = __nccwpck_require__(55897); +const FormulaAndFunctionEventQueryGroupBy_1 = __nccwpck_require__(14536); +const FormulaAndFunctionEventQueryGroupBySort_1 = __nccwpck_require__(88608); +const FormulaAndFunctionMetricQueryDefinition_1 = __nccwpck_require__(27411); +const FormulaAndFunctionProcessQueryDefinition_1 = __nccwpck_require__(66394); +const FormulaAndFunctionSLOQueryDefinition_1 = __nccwpck_require__(99505); +const FreeTextWidgetDefinition_1 = __nccwpck_require__(92163); +const FunnelQuery_1 = __nccwpck_require__(95075); +const FunnelStep_1 = __nccwpck_require__(33269); +const FunnelWidgetDefinition_1 = __nccwpck_require__(12886); +const FunnelWidgetRequest_1 = __nccwpck_require__(66102); +const GCPAccount_1 = __nccwpck_require__(45134); +const GeomapWidgetDefinition_1 = __nccwpck_require__(10855); +const GeomapWidgetDefinitionStyle_1 = __nccwpck_require__(60254); +const GeomapWidgetDefinitionView_1 = __nccwpck_require__(1882); +const GeomapWidgetRequest_1 = __nccwpck_require__(6333); +const GraphSnapshot_1 = __nccwpck_require__(10907); +const GroupWidgetDefinition_1 = __nccwpck_require__(86757); +const HTTPLogError_1 = __nccwpck_require__(86791); +const HTTPLogItem_1 = __nccwpck_require__(7790); +const HeatMapWidgetDefinition_1 = __nccwpck_require__(37398); +const HeatMapWidgetRequest_1 = __nccwpck_require__(49846); +const Host_1 = __nccwpck_require__(37585); +const HostListResponse_1 = __nccwpck_require__(91494); +const HostMapRequest_1 = __nccwpck_require__(6402); +const HostMapWidgetDefinition_1 = __nccwpck_require__(6326); +const HostMapWidgetDefinitionRequests_1 = __nccwpck_require__(91608); +const HostMapWidgetDefinitionStyle_1 = __nccwpck_require__(6177); +const HostMeta_1 = __nccwpck_require__(34168); +const HostMetaInstallMethod_1 = __nccwpck_require__(20188); +const HostMetrics_1 = __nccwpck_require__(65528); +const HostMuteResponse_1 = __nccwpck_require__(69787); +const HostMuteSettings_1 = __nccwpck_require__(70293); +const HostTags_1 = __nccwpck_require__(7436); +const HostTotals_1 = __nccwpck_require__(5210); +const HourlyUsageAttributionBody_1 = __nccwpck_require__(32354); +const HourlyUsageAttributionMetadata_1 = __nccwpck_require__(77915); +const HourlyUsageAttributionPagination_1 = __nccwpck_require__(35054); +const HourlyUsageAttributionResponse_1 = __nccwpck_require__(89525); +const IFrameWidgetDefinition_1 = __nccwpck_require__(41698); +const IPPrefixesAPI_1 = __nccwpck_require__(22500); +const IPPrefixesAPM_1 = __nccwpck_require__(89880); +const IPPrefixesAgents_1 = __nccwpck_require__(87908); +const IPPrefixesGlobal_1 = __nccwpck_require__(21553); +const IPPrefixesLogs_1 = __nccwpck_require__(65857); +const IPPrefixesOrchestrator_1 = __nccwpck_require__(94962); +const IPPrefixesProcess_1 = __nccwpck_require__(83181); +const IPPrefixesRemoteConfiguration_1 = __nccwpck_require__(85064); +const IPPrefixesSynthetics_1 = __nccwpck_require__(61442); +const IPPrefixesSyntheticsPrivateLocations_1 = __nccwpck_require__(55411); +const IPPrefixesWebhooks_1 = __nccwpck_require__(75876); +const IPRanges_1 = __nccwpck_require__(78560); +const IdpFormData_1 = __nccwpck_require__(57690); +const IdpResponse_1 = __nccwpck_require__(79335); +const ImageWidgetDefinition_1 = __nccwpck_require__(60275); +const IntakePayloadAccepted_1 = __nccwpck_require__(41196); +const ListStreamColumn_1 = __nccwpck_require__(57985); +const ListStreamComputeItems_1 = __nccwpck_require__(63980); +const ListStreamGroupByItems_1 = __nccwpck_require__(92737); +const ListStreamQuery_1 = __nccwpck_require__(67039); +const ListStreamWidgetDefinition_1 = __nccwpck_require__(41306); +const ListStreamWidgetRequest_1 = __nccwpck_require__(52202); +const Log_1 = __nccwpck_require__(23137); +const LogContent_1 = __nccwpck_require__(90700); +const LogQueryDefinition_1 = __nccwpck_require__(90432); +const LogQueryDefinitionGroupBy_1 = __nccwpck_require__(7200); +const LogQueryDefinitionGroupBySort_1 = __nccwpck_require__(52776); +const LogQueryDefinitionSearch_1 = __nccwpck_require__(85824); +const LogStreamWidgetDefinition_1 = __nccwpck_require__(71016); +const LogsAPIError_1 = __nccwpck_require__(48050); +const LogsAPIErrorResponse_1 = __nccwpck_require__(75989); +const LogsArithmeticProcessor_1 = __nccwpck_require__(35982); +const LogsAttributeRemapper_1 = __nccwpck_require__(13478); +const LogsByRetention_1 = __nccwpck_require__(37687); +const LogsByRetentionMonthlyUsage_1 = __nccwpck_require__(28023); +const LogsByRetentionOrgUsage_1 = __nccwpck_require__(22642); +const LogsByRetentionOrgs_1 = __nccwpck_require__(95532); +const LogsCategoryProcessor_1 = __nccwpck_require__(56126); +const LogsCategoryProcessorCategory_1 = __nccwpck_require__(92642); +const LogsDailyLimitReset_1 = __nccwpck_require__(54353); +const LogsDateRemapper_1 = __nccwpck_require__(91096); +const LogsExclusion_1 = __nccwpck_require__(28818); +const LogsExclusionFilter_1 = __nccwpck_require__(35200); +const LogsFilter_1 = __nccwpck_require__(7466); +const LogsGeoIPParser_1 = __nccwpck_require__(93457); +const LogsGrokParser_1 = __nccwpck_require__(796); +const LogsGrokParserRules_1 = __nccwpck_require__(72849); +const LogsIndex_1 = __nccwpck_require__(39182); +const LogsIndexListResponse_1 = __nccwpck_require__(80005); +const LogsIndexUpdateRequest_1 = __nccwpck_require__(77406); +const LogsIndexesOrder_1 = __nccwpck_require__(98128); +const LogsListRequest_1 = __nccwpck_require__(91287); +const LogsListRequestTime_1 = __nccwpck_require__(58066); +const LogsListResponse_1 = __nccwpck_require__(46627); +const LogsLookupProcessor_1 = __nccwpck_require__(14568); +const LogsMessageRemapper_1 = __nccwpck_require__(65597); +const LogsPipeline_1 = __nccwpck_require__(22250); +const LogsPipelineProcessor_1 = __nccwpck_require__(85848); +const LogsPipelinesOrder_1 = __nccwpck_require__(87121); +const LogsQueryCompute_1 = __nccwpck_require__(22653); +const LogsRetentionAggSumUsage_1 = __nccwpck_require__(59725); +const LogsRetentionSumUsage_1 = __nccwpck_require__(36430); +const LogsServiceRemapper_1 = __nccwpck_require__(30713); +const LogsStatusRemapper_1 = __nccwpck_require__(63906); +const LogsStringBuilderProcessor_1 = __nccwpck_require__(68060); +const LogsTraceRemapper_1 = __nccwpck_require__(45791); +const LogsURLParser_1 = __nccwpck_require__(70308); +const LogsUserAgentParser_1 = __nccwpck_require__(65013); +const MatchingDowntime_1 = __nccwpck_require__(36705); +const MetricMetadata_1 = __nccwpck_require__(7942); +const MetricSearchResponse_1 = __nccwpck_require__(24752); +const MetricSearchResponseResults_1 = __nccwpck_require__(44800); +const MetricsListResponse_1 = __nccwpck_require__(6297); +const MetricsPayload_1 = __nccwpck_require__(36690); +const MetricsQueryMetadata_1 = __nccwpck_require__(57493); +const MetricsQueryResponse_1 = __nccwpck_require__(48235); +const MetricsQueryUnit_1 = __nccwpck_require__(82974); +const Monitor_1 = __nccwpck_require__(41245); +const MonitorFormulaAndFunctionEventQueryDefinition_1 = __nccwpck_require__(45643); +const MonitorFormulaAndFunctionEventQueryDefinitionCompute_1 = __nccwpck_require__(7486); +const MonitorFormulaAndFunctionEventQueryDefinitionSearch_1 = __nccwpck_require__(70975); +const MonitorFormulaAndFunctionEventQueryGroupBy_1 = __nccwpck_require__(53246); +const MonitorFormulaAndFunctionEventQueryGroupBySort_1 = __nccwpck_require__(28578); +const MonitorGroupSearchResponse_1 = __nccwpck_require__(97525); +const MonitorGroupSearchResponseCounts_1 = __nccwpck_require__(75833); +const MonitorGroupSearchResult_1 = __nccwpck_require__(72407); +const MonitorOptions_1 = __nccwpck_require__(92067); +const MonitorOptionsAggregation_1 = __nccwpck_require__(55033); +const MonitorOptionsCustomSchedule_1 = __nccwpck_require__(34873); +const MonitorOptionsCustomScheduleRecurrence_1 = __nccwpck_require__(48067); +const MonitorOptionsSchedulingOptions_1 = __nccwpck_require__(10235); +const MonitorOptionsSchedulingOptionsEvaluationWindow_1 = __nccwpck_require__(71205); +const MonitorSearchCountItem_1 = __nccwpck_require__(12749); +const MonitorSearchResponse_1 = __nccwpck_require__(15790); +const MonitorSearchResponseCounts_1 = __nccwpck_require__(2942); +const MonitorSearchResponseMetadata_1 = __nccwpck_require__(51711); +const MonitorSearchResult_1 = __nccwpck_require__(35288); +const MonitorSearchResultNotification_1 = __nccwpck_require__(86411); +const MonitorState_1 = __nccwpck_require__(2716); +const MonitorStateGroup_1 = __nccwpck_require__(61121); +const MonitorSummaryWidgetDefinition_1 = __nccwpck_require__(73040); +const MonitorThresholdWindowOptions_1 = __nccwpck_require__(12734); +const MonitorThresholds_1 = __nccwpck_require__(88653); +const MonitorUpdateRequest_1 = __nccwpck_require__(40459); +const MonthlyUsageAttributionBody_1 = __nccwpck_require__(41274); +const MonthlyUsageAttributionMetadata_1 = __nccwpck_require__(74019); +const MonthlyUsageAttributionPagination_1 = __nccwpck_require__(33142); +const MonthlyUsageAttributionResponse_1 = __nccwpck_require__(2445); +const MonthlyUsageAttributionValues_1 = __nccwpck_require__(27876); +const NoteWidgetDefinition_1 = __nccwpck_require__(74006); +const NotebookAbsoluteTime_1 = __nccwpck_require__(81294); +const NotebookAuthor_1 = __nccwpck_require__(20393); +const NotebookCellCreateRequest_1 = __nccwpck_require__(23237); +const NotebookCellResponse_1 = __nccwpck_require__(91601); +const NotebookCellUpdateRequest_1 = __nccwpck_require__(57134); +const NotebookCreateData_1 = __nccwpck_require__(26694); +const NotebookCreateDataAttributes_1 = __nccwpck_require__(12979); +const NotebookCreateRequest_1 = __nccwpck_require__(67133); +const NotebookDistributionCellAttributes_1 = __nccwpck_require__(71629); +const NotebookHeatMapCellAttributes_1 = __nccwpck_require__(93413); +const NotebookLogStreamCellAttributes_1 = __nccwpck_require__(15599); +const NotebookMarkdownCellAttributes_1 = __nccwpck_require__(8538); +const NotebookMarkdownCellDefinition_1 = __nccwpck_require__(96930); +const NotebookMetadata_1 = __nccwpck_require__(58695); +const NotebookRelativeTime_1 = __nccwpck_require__(55731); +const NotebookResponse_1 = __nccwpck_require__(13945); +const NotebookResponseData_1 = __nccwpck_require__(45353); +const NotebookResponseDataAttributes_1 = __nccwpck_require__(32312); +const NotebookSplitBy_1 = __nccwpck_require__(52161); +const NotebookTimeseriesCellAttributes_1 = __nccwpck_require__(86711); +const NotebookToplistCellAttributes_1 = __nccwpck_require__(18274); +const NotebookUpdateData_1 = __nccwpck_require__(29251); +const NotebookUpdateDataAttributes_1 = __nccwpck_require__(41894); +const NotebookUpdateRequest_1 = __nccwpck_require__(69190); +const NotebooksResponse_1 = __nccwpck_require__(58590); +const NotebooksResponseData_1 = __nccwpck_require__(97646); +const NotebooksResponseDataAttributes_1 = __nccwpck_require__(22091); +const NotebooksResponseMeta_1 = __nccwpck_require__(34759); +const NotebooksResponsePage_1 = __nccwpck_require__(12553); +const OrgDowngradedResponse_1 = __nccwpck_require__(61367); +const Organization_1 = __nccwpck_require__(90264); +const OrganizationBilling_1 = __nccwpck_require__(99181); +const OrganizationCreateBody_1 = __nccwpck_require__(89080); +const OrganizationCreateResponse_1 = __nccwpck_require__(63831); +const OrganizationListResponse_1 = __nccwpck_require__(50487); +const OrganizationResponse_1 = __nccwpck_require__(41999); +const OrganizationSettings_1 = __nccwpck_require__(79057); +const OrganizationSettingsSaml_1 = __nccwpck_require__(72528); +const OrganizationSettingsSamlAutocreateUsersDomains_1 = __nccwpck_require__(94810); +const OrganizationSettingsSamlIdpInitiatedLogin_1 = __nccwpck_require__(85867); +const OrganizationSettingsSamlStrictMode_1 = __nccwpck_require__(37710); +const OrganizationSubscription_1 = __nccwpck_require__(97921); +const PagerDutyService_1 = __nccwpck_require__(29209); +const PagerDutyServiceKey_1 = __nccwpck_require__(1862); +const PagerDutyServiceName_1 = __nccwpck_require__(75766); +const Pagination_1 = __nccwpck_require__(61155); +const PowerpackTemplateVariableContents_1 = __nccwpck_require__(66251); +const PowerpackTemplateVariables_1 = __nccwpck_require__(38524); +const PowerpackWidgetDefinition_1 = __nccwpck_require__(50734); +const ProcessQueryDefinition_1 = __nccwpck_require__(21949); +const QueryValueWidgetDefinition_1 = __nccwpck_require__(92467); +const QueryValueWidgetRequest_1 = __nccwpck_require__(57769); +const ReferenceTableLogsLookupProcessor_1 = __nccwpck_require__(14157); +const ResponseMetaAttributes_1 = __nccwpck_require__(50416); +const RunWorkflowWidgetDefinition_1 = __nccwpck_require__(42074); +const RunWorkflowWidgetInput_1 = __nccwpck_require__(77027); +const SLOBulkDeleteError_1 = __nccwpck_require__(17488); +const SLOBulkDeleteResponse_1 = __nccwpck_require__(66199); +const SLOBulkDeleteResponseData_1 = __nccwpck_require__(23327); +const SLOCorrection_1 = __nccwpck_require__(62283); +const SLOCorrectionCreateData_1 = __nccwpck_require__(11055); +const SLOCorrectionCreateRequest_1 = __nccwpck_require__(25594); +const SLOCorrectionCreateRequestAttributes_1 = __nccwpck_require__(22015); +const SLOCorrectionListResponse_1 = __nccwpck_require__(30656); +const SLOCorrectionResponse_1 = __nccwpck_require__(30904); +const SLOCorrectionResponseAttributes_1 = __nccwpck_require__(82033); +const SLOCorrectionResponseAttributesModifier_1 = __nccwpck_require__(5448); +const SLOCorrectionUpdateData_1 = __nccwpck_require__(74374); +const SLOCorrectionUpdateRequest_1 = __nccwpck_require__(3933); +const SLOCorrectionUpdateRequestAttributes_1 = __nccwpck_require__(75348); +const SLOCreator_1 = __nccwpck_require__(20507); +const SLODeleteResponse_1 = __nccwpck_require__(54083); +const SLOFormula_1 = __nccwpck_require__(7753); +const SLOHistoryMetrics_1 = __nccwpck_require__(20746); +const SLOHistoryMetricsSeries_1 = __nccwpck_require__(78483); +const SLOHistoryMetricsSeriesMetadata_1 = __nccwpck_require__(84858); +const SLOHistoryMetricsSeriesMetadataUnit_1 = __nccwpck_require__(81912); +const SLOHistoryMonitor_1 = __nccwpck_require__(54565); +const SLOHistoryResponse_1 = __nccwpck_require__(47360); +const SLOHistoryResponseData_1 = __nccwpck_require__(60264); +const SLOHistoryResponseError_1 = __nccwpck_require__(53872); +const SLOHistoryResponseErrorWithType_1 = __nccwpck_require__(15584); +const SLOHistorySLIData_1 = __nccwpck_require__(76521); +const SLOListResponse_1 = __nccwpck_require__(66160); +const SLOListResponseMetadata_1 = __nccwpck_require__(87497); +const SLOListResponseMetadataPage_1 = __nccwpck_require__(78406); +const SLOListWidgetDefinition_1 = __nccwpck_require__(23834); +const SLOListWidgetQuery_1 = __nccwpck_require__(45435); +const SLOListWidgetRequest_1 = __nccwpck_require__(8746); +const SLOOverallStatuses_1 = __nccwpck_require__(28804); +const SLORawErrorBudgetRemaining_1 = __nccwpck_require__(96440); +const SLOResponse_1 = __nccwpck_require__(3560); +const SLOResponseData_1 = __nccwpck_require__(60848); +const SLOStatus_1 = __nccwpck_require__(41137); +const SLOThreshold_1 = __nccwpck_require__(84084); +const SLOTimeSliceCondition_1 = __nccwpck_require__(69757); +const SLOTimeSliceQuery_1 = __nccwpck_require__(2396); +const SLOTimeSliceSpec_1 = __nccwpck_require__(14605); +const SLOWidgetDefinition_1 = __nccwpck_require__(32578); +const ScatterPlotRequest_1 = __nccwpck_require__(82405); +const ScatterPlotWidgetDefinition_1 = __nccwpck_require__(83127); +const ScatterPlotWidgetDefinitionRequests_1 = __nccwpck_require__(70457); +const ScatterplotTableRequest_1 = __nccwpck_require__(95503); +const ScatterplotWidgetFormula_1 = __nccwpck_require__(51838); +const SearchSLOQuery_1 = __nccwpck_require__(6219); +const SearchSLOResponse_1 = __nccwpck_require__(19540); +const SearchSLOResponseData_1 = __nccwpck_require__(15772); +const SearchSLOResponseDataAttributes_1 = __nccwpck_require__(72557); +const SearchSLOResponseDataAttributesFacets_1 = __nccwpck_require__(97725); +const SearchSLOResponseDataAttributesFacetsObjectInt_1 = __nccwpck_require__(72757); +const SearchSLOResponseDataAttributesFacetsObjectString_1 = __nccwpck_require__(61619); +const SearchSLOResponseLinks_1 = __nccwpck_require__(92607); +const SearchSLOResponseMeta_1 = __nccwpck_require__(34021); +const SearchSLOResponseMetaPage_1 = __nccwpck_require__(73442); +const SearchSLOThreshold_1 = __nccwpck_require__(46224); +const SearchServiceLevelObjective_1 = __nccwpck_require__(72809); +const SearchServiceLevelObjectiveAttributes_1 = __nccwpck_require__(67883); +const SearchServiceLevelObjectiveData_1 = __nccwpck_require__(98937); +const SelectableTemplateVariableItems_1 = __nccwpck_require__(66617); +const Series_1 = __nccwpck_require__(72698); +const ServiceCheck_1 = __nccwpck_require__(59794); +const ServiceLevelObjective_1 = __nccwpck_require__(81925); +const ServiceLevelObjectiveQuery_1 = __nccwpck_require__(18369); +const ServiceLevelObjectiveRequest_1 = __nccwpck_require__(89028); +const ServiceMapWidgetDefinition_1 = __nccwpck_require__(46245); +const ServiceSummaryWidgetDefinition_1 = __nccwpck_require__(71779); +const SharedDashboard_1 = __nccwpck_require__(40692); +const SharedDashboardAuthor_1 = __nccwpck_require__(60655); +const SharedDashboardInvites_1 = __nccwpck_require__(8784); +const SharedDashboardInvitesDataObject_1 = __nccwpck_require__(88703); +const SharedDashboardInvitesDataObjectAttributes_1 = __nccwpck_require__(61210); +const SharedDashboardInvitesMeta_1 = __nccwpck_require__(51449); +const SharedDashboardInvitesMetaPage_1 = __nccwpck_require__(51446); +const SharedDashboardUpdateRequest_1 = __nccwpck_require__(28008); +const SharedDashboardUpdateRequestGlobalTime_1 = __nccwpck_require__(30610); +const SignalAssigneeUpdateRequest_1 = __nccwpck_require__(38948); +const SignalStateUpdateRequest_1 = __nccwpck_require__(78862); +const SlackIntegrationChannel_1 = __nccwpck_require__(82082); +const SlackIntegrationChannelDisplay_1 = __nccwpck_require__(27122); +const SplitConfig_1 = __nccwpck_require__(49749); +const SplitConfigSortCompute_1 = __nccwpck_require__(1012); +const SplitDimension_1 = __nccwpck_require__(58623); +const SplitGraphWidgetDefinition_1 = __nccwpck_require__(62478); +const SplitSort_1 = __nccwpck_require__(33119); +const SplitVectorEntryItem_1 = __nccwpck_require__(90225); +const SuccessfulSignalUpdateResponse_1 = __nccwpck_require__(2487); +const SunburstWidgetDefinition_1 = __nccwpck_require__(74406); +const SunburstWidgetLegendInlineAutomatic_1 = __nccwpck_require__(63288); +const SunburstWidgetLegendTable_1 = __nccwpck_require__(18956); +const SunburstWidgetRequest_1 = __nccwpck_require__(43526); +const SyntheticsAPITest_1 = __nccwpck_require__(45711); +const SyntheticsAPITestConfig_1 = __nccwpck_require__(793); +const SyntheticsAPITestResultData_1 = __nccwpck_require__(50034); +const SyntheticsAPITestResultFull_1 = __nccwpck_require__(72015); +const SyntheticsAPITestResultFullCheck_1 = __nccwpck_require__(63335); +const SyntheticsAPITestResultShort_1 = __nccwpck_require__(52834); +const SyntheticsAPITestResultShortResult_1 = __nccwpck_require__(14215); +const SyntheticsAPITestStep_1 = __nccwpck_require__(5285); +const SyntheticsAPIWaitStep_1 = __nccwpck_require__(88244); +const SyntheticsApiTestResultFailure_1 = __nccwpck_require__(1526); +const SyntheticsAssertionBodyHashTarget_1 = __nccwpck_require__(62014); +const SyntheticsAssertionJSONPathTarget_1 = __nccwpck_require__(43995); +const SyntheticsAssertionJSONPathTargetTarget_1 = __nccwpck_require__(91534); +const SyntheticsAssertionJSONSchemaTarget_1 = __nccwpck_require__(38103); +const SyntheticsAssertionJSONSchemaTargetTarget_1 = __nccwpck_require__(97658); +const SyntheticsAssertionJavascript_1 = __nccwpck_require__(21760); +const SyntheticsAssertionTarget_1 = __nccwpck_require__(35309); +const SyntheticsAssertionXPathTarget_1 = __nccwpck_require__(52733); +const SyntheticsAssertionXPathTargetTarget_1 = __nccwpck_require__(40864); +const SyntheticsBasicAuthDigest_1 = __nccwpck_require__(21247); +const SyntheticsBasicAuthNTLM_1 = __nccwpck_require__(13558); +const SyntheticsBasicAuthOauthClient_1 = __nccwpck_require__(91327); +const SyntheticsBasicAuthOauthROP_1 = __nccwpck_require__(99671); +const SyntheticsBasicAuthSigv4_1 = __nccwpck_require__(41599); +const SyntheticsBasicAuthWeb_1 = __nccwpck_require__(5361); +const SyntheticsBatchDetails_1 = __nccwpck_require__(58426); +const SyntheticsBatchDetailsData_1 = __nccwpck_require__(28013); +const SyntheticsBatchResult_1 = __nccwpck_require__(82846); +const SyntheticsBrowserError_1 = __nccwpck_require__(52333); +const SyntheticsBrowserTest_1 = __nccwpck_require__(8551); +const SyntheticsBrowserTestConfig_1 = __nccwpck_require__(5793); +const SyntheticsBrowserTestResultData_1 = __nccwpck_require__(91226); +const SyntheticsBrowserTestResultFailure_1 = __nccwpck_require__(56110); +const SyntheticsBrowserTestResultFull_1 = __nccwpck_require__(56567); +const SyntheticsBrowserTestResultFullCheck_1 = __nccwpck_require__(17343); +const SyntheticsBrowserTestResultShort_1 = __nccwpck_require__(14458); +const SyntheticsBrowserTestResultShortResult_1 = __nccwpck_require__(92175); +const SyntheticsBrowserTestRumSettings_1 = __nccwpck_require__(50098); +const SyntheticsBrowserVariable_1 = __nccwpck_require__(51979); +const SyntheticsCIBatchMetadata_1 = __nccwpck_require__(51250); +const SyntheticsCIBatchMetadataCI_1 = __nccwpck_require__(12838); +const SyntheticsCIBatchMetadataGit_1 = __nccwpck_require__(41855); +const SyntheticsCIBatchMetadataPipeline_1 = __nccwpck_require__(74532); +const SyntheticsCIBatchMetadataProvider_1 = __nccwpck_require__(4111); +const SyntheticsCITest_1 = __nccwpck_require__(10527); +const SyntheticsCITestBody_1 = __nccwpck_require__(33379); +const SyntheticsConfigVariable_1 = __nccwpck_require__(69633); +const SyntheticsCoreWebVitals_1 = __nccwpck_require__(61867); +const SyntheticsDeleteTestsPayload_1 = __nccwpck_require__(61689); +const SyntheticsDeleteTestsResponse_1 = __nccwpck_require__(2940); +const SyntheticsDeletedTest_1 = __nccwpck_require__(34914); +const SyntheticsDevice_1 = __nccwpck_require__(29585); +const SyntheticsFetchUptimesPayload_1 = __nccwpck_require__(69642); +const SyntheticsGetAPITestLatestResultsResponse_1 = __nccwpck_require__(15747); +const SyntheticsGetBrowserTestLatestResultsResponse_1 = __nccwpck_require__(47763); +const SyntheticsGlobalVariable_1 = __nccwpck_require__(71956); +const SyntheticsGlobalVariableAttributes_1 = __nccwpck_require__(43605); +const SyntheticsGlobalVariableOptions_1 = __nccwpck_require__(52464); +const SyntheticsGlobalVariableParseTestOptions_1 = __nccwpck_require__(5115); +const SyntheticsGlobalVariableRequest_1 = __nccwpck_require__(76863); +const SyntheticsGlobalVariableTOTPParameters_1 = __nccwpck_require__(17529); +const SyntheticsGlobalVariableValue_1 = __nccwpck_require__(84235); +const SyntheticsListGlobalVariablesResponse_1 = __nccwpck_require__(29936); +const SyntheticsListTestsResponse_1 = __nccwpck_require__(98869); +const SyntheticsLocation_1 = __nccwpck_require__(48808); +const SyntheticsLocations_1 = __nccwpck_require__(60311); +const SyntheticsMobileStep_1 = __nccwpck_require__(29339); +const SyntheticsMobileStepParams_1 = __nccwpck_require__(88637); +const SyntheticsMobileStepParamsElement_1 = __nccwpck_require__(41301); +const SyntheticsMobileStepParamsElementRelativePosition_1 = __nccwpck_require__(76550); +const SyntheticsMobileStepParamsElementUserLocator_1 = __nccwpck_require__(36934); +const SyntheticsMobileStepParamsElementUserLocatorValuesItems_1 = __nccwpck_require__(76750); +const SyntheticsMobileStepParamsPositionsItems_1 = __nccwpck_require__(77873); +const SyntheticsMobileStepParamsVariable_1 = __nccwpck_require__(11617); +const SyntheticsMobileTest_1 = __nccwpck_require__(26705); +const SyntheticsMobileTestConfig_1 = __nccwpck_require__(20223); +const SyntheticsMobileTestOptions_1 = __nccwpck_require__(13407); +const SyntheticsMobileTestsMobileApplication_1 = __nccwpck_require__(25634); +const SyntheticsParsingOptions_1 = __nccwpck_require__(44261); +const SyntheticsPatchTestBody_1 = __nccwpck_require__(95665); +const SyntheticsPatchTestOperation_1 = __nccwpck_require__(78180); +const SyntheticsPrivateLocation_1 = __nccwpck_require__(81143); +const SyntheticsPrivateLocationCreationResponse_1 = __nccwpck_require__(63149); +const SyntheticsPrivateLocationCreationResponseResultEncryption_1 = __nccwpck_require__(6209); +const SyntheticsPrivateLocationMetadata_1 = __nccwpck_require__(93590); +const SyntheticsPrivateLocationSecrets_1 = __nccwpck_require__(30086); +const SyntheticsPrivateLocationSecretsAuthentication_1 = __nccwpck_require__(85930); +const SyntheticsPrivateLocationSecretsConfigDecryption_1 = __nccwpck_require__(15329); +const SyntheticsSSLCertificate_1 = __nccwpck_require__(89518); +const SyntheticsSSLCertificateIssuer_1 = __nccwpck_require__(27625); +const SyntheticsSSLCertificateSubject_1 = __nccwpck_require__(59140); +const SyntheticsStep_1 = __nccwpck_require__(18521); +const SyntheticsStepDetail_1 = __nccwpck_require__(43516); +const SyntheticsStepDetailWarning_1 = __nccwpck_require__(15882); +const SyntheticsTestCiOptions_1 = __nccwpck_require__(84849); +const SyntheticsTestConfig_1 = __nccwpck_require__(81897); +const SyntheticsTestDetails_1 = __nccwpck_require__(54201); +const SyntheticsTestOptions_1 = __nccwpck_require__(46177); +const SyntheticsTestOptionsMonitorOptions_1 = __nccwpck_require__(67129); +const SyntheticsTestOptionsRetry_1 = __nccwpck_require__(93819); +const SyntheticsTestOptionsScheduling_1 = __nccwpck_require__(99995); +const SyntheticsTestOptionsSchedulingTimeframe_1 = __nccwpck_require__(51993); +const SyntheticsTestRequest_1 = __nccwpck_require__(60770); +const SyntheticsTestRequestBodyFile_1 = __nccwpck_require__(21220); +const SyntheticsTestRequestCertificate_1 = __nccwpck_require__(83803); +const SyntheticsTestRequestCertificateItem_1 = __nccwpck_require__(55448); +const SyntheticsTestRequestProxy_1 = __nccwpck_require__(18380); +const SyntheticsTestRestrictionPolicyBinding_1 = __nccwpck_require__(7698); +const SyntheticsTestUptime_1 = __nccwpck_require__(5187); +const SyntheticsTiming_1 = __nccwpck_require__(91297); +const SyntheticsTriggerBody_1 = __nccwpck_require__(12123); +const SyntheticsTriggerCITestLocation_1 = __nccwpck_require__(19664); +const SyntheticsTriggerCITestRunResult_1 = __nccwpck_require__(91623); +const SyntheticsTriggerCITestsResponse_1 = __nccwpck_require__(80193); +const SyntheticsTriggerTest_1 = __nccwpck_require__(77563); +const SyntheticsUpdateTestPauseStatusPayload_1 = __nccwpck_require__(37220); +const SyntheticsUptime_1 = __nccwpck_require__(15815); +const SyntheticsVariableParser_1 = __nccwpck_require__(27992); +const TableWidgetDefinition_1 = __nccwpck_require__(30606); +const TableWidgetRequest_1 = __nccwpck_require__(91774); +const TableWidgetTextFormatMatch_1 = __nccwpck_require__(74830); +const TableWidgetTextFormatReplaceAll_1 = __nccwpck_require__(57604); +const TableWidgetTextFormatReplaceSubstring_1 = __nccwpck_require__(620); +const TableWidgetTextFormatRule_1 = __nccwpck_require__(29597); +const TagToHosts_1 = __nccwpck_require__(45595); +const TimeseriesBackground_1 = __nccwpck_require__(88107); +const TimeseriesWidgetDefinition_1 = __nccwpck_require__(12910); +const TimeseriesWidgetExpressionAlias_1 = __nccwpck_require__(99581); +const TimeseriesWidgetRequest_1 = __nccwpck_require__(6014); +const ToplistWidgetDefinition_1 = __nccwpck_require__(15397); +const ToplistWidgetFlat_1 = __nccwpck_require__(9383); +const ToplistWidgetRequest_1 = __nccwpck_require__(75647); +const ToplistWidgetStacked_1 = __nccwpck_require__(37695); +const ToplistWidgetStyle_1 = __nccwpck_require__(76663); +const TopologyMapWidgetDefinition_1 = __nccwpck_require__(52511); +const TopologyQuery_1 = __nccwpck_require__(44468); +const TopologyRequest_1 = __nccwpck_require__(52913); +const TreeMapWidgetDefinition_1 = __nccwpck_require__(49988); +const TreeMapWidgetRequest_1 = __nccwpck_require__(93000); +const UsageAnalyzedLogsHour_1 = __nccwpck_require__(23001); +const UsageAnalyzedLogsResponse_1 = __nccwpck_require__(24884); +const UsageAttributionAggregatesBody_1 = __nccwpck_require__(5419); +const UsageAuditLogsHour_1 = __nccwpck_require__(6328); +const UsageAuditLogsResponse_1 = __nccwpck_require__(4597); +const UsageBillableSummaryBody_1 = __nccwpck_require__(37005); +const UsageBillableSummaryHour_1 = __nccwpck_require__(34427); +const UsageBillableSummaryKeys_1 = __nccwpck_require__(99157); +const UsageBillableSummaryResponse_1 = __nccwpck_require__(72402); +const UsageCIVisibilityHour_1 = __nccwpck_require__(82834); +const UsageCIVisibilityResponse_1 = __nccwpck_require__(96403); +const UsageCWSHour_1 = __nccwpck_require__(41111); +const UsageCWSResponse_1 = __nccwpck_require__(76206); +const UsageCloudSecurityPostureManagementHour_1 = __nccwpck_require__(90004); +const UsageCloudSecurityPostureManagementResponse_1 = __nccwpck_require__(67585); +const UsageCustomReportsAttributes_1 = __nccwpck_require__(13553); +const UsageCustomReportsData_1 = __nccwpck_require__(31488); +const UsageCustomReportsMeta_1 = __nccwpck_require__(63793); +const UsageCustomReportsPage_1 = __nccwpck_require__(46055); +const UsageCustomReportsResponse_1 = __nccwpck_require__(63503); +const UsageDBMHour_1 = __nccwpck_require__(95033); +const UsageDBMResponse_1 = __nccwpck_require__(67700); +const UsageFargateHour_1 = __nccwpck_require__(20578); +const UsageFargateResponse_1 = __nccwpck_require__(48131); +const UsageHostHour_1 = __nccwpck_require__(41068); +const UsageHostsResponse_1 = __nccwpck_require__(10846); +const UsageIncidentManagementHour_1 = __nccwpck_require__(19759); +const UsageIncidentManagementResponse_1 = __nccwpck_require__(87430); +const UsageIndexedSpansHour_1 = __nccwpck_require__(68016); +const UsageIndexedSpansResponse_1 = __nccwpck_require__(18189); +const UsageIngestedSpansHour_1 = __nccwpck_require__(28386); +const UsageIngestedSpansResponse_1 = __nccwpck_require__(34627); +const UsageIoTHour_1 = __nccwpck_require__(30380); +const UsageIoTResponse_1 = __nccwpck_require__(30937); +const UsageLambdaHour_1 = __nccwpck_require__(86845); +const UsageLambdaResponse_1 = __nccwpck_require__(71896); +const UsageLogsByIndexHour_1 = __nccwpck_require__(95598); +const UsageLogsByIndexResponse_1 = __nccwpck_require__(43711); +const UsageLogsByRetentionHour_1 = __nccwpck_require__(14968); +const UsageLogsByRetentionResponse_1 = __nccwpck_require__(65077); +const UsageLogsHour_1 = __nccwpck_require__(61777); +const UsageLogsResponse_1 = __nccwpck_require__(97740); +const UsageNetworkFlowsHour_1 = __nccwpck_require__(46997); +const UsageNetworkFlowsResponse_1 = __nccwpck_require__(38416); +const UsageNetworkHostsHour_1 = __nccwpck_require__(37519); +const UsageNetworkHostsResponse_1 = __nccwpck_require__(95238); +const UsageOnlineArchiveHour_1 = __nccwpck_require__(94207); +const UsageOnlineArchiveResponse_1 = __nccwpck_require__(53014); +const UsageProfilingHour_1 = __nccwpck_require__(63370); +const UsageProfilingResponse_1 = __nccwpck_require__(23819); +const UsageRumSessionsHour_1 = __nccwpck_require__(73621); +const UsageRumSessionsResponse_1 = __nccwpck_require__(54448); +const UsageRumUnitsHour_1 = __nccwpck_require__(56093); +const UsageRumUnitsResponse_1 = __nccwpck_require__(99608); +const UsageSDSHour_1 = __nccwpck_require__(2428); +const UsageSDSResponse_1 = __nccwpck_require__(93929); +const UsageSNMPHour_1 = __nccwpck_require__(12698); +const UsageSNMPResponse_1 = __nccwpck_require__(1563); +const UsageSpecifiedCustomReportsAttributes_1 = __nccwpck_require__(12517); +const UsageSpecifiedCustomReportsData_1 = __nccwpck_require__(86924); +const UsageSpecifiedCustomReportsMeta_1 = __nccwpck_require__(89077); +const UsageSpecifiedCustomReportsPage_1 = __nccwpck_require__(33427); +const UsageSpecifiedCustomReportsResponse_1 = __nccwpck_require__(18507); +const UsageSummaryDate_1 = __nccwpck_require__(1434); +const UsageSummaryDateOrg_1 = __nccwpck_require__(38054); +const UsageSummaryResponse_1 = __nccwpck_require__(17097); +const UsageSyntheticsAPIHour_1 = __nccwpck_require__(44452); +const UsageSyntheticsAPIResponse_1 = __nccwpck_require__(24913); +const UsageSyntheticsBrowserHour_1 = __nccwpck_require__(89308); +const UsageSyntheticsBrowserResponse_1 = __nccwpck_require__(60489); +const UsageSyntheticsHour_1 = __nccwpck_require__(30002); +const UsageSyntheticsResponse_1 = __nccwpck_require__(53043); +const UsageTimeseriesHour_1 = __nccwpck_require__(27566); +const UsageTimeseriesResponse_1 = __nccwpck_require__(36383); +const UsageTopAvgMetricsHour_1 = __nccwpck_require__(84166); +const UsageTopAvgMetricsMetadata_1 = __nccwpck_require__(40793); +const UsageTopAvgMetricsPagination_1 = __nccwpck_require__(99556); +const UsageTopAvgMetricsResponse_1 = __nccwpck_require__(95095); +const User_1 = __nccwpck_require__(24948); +const UserDisableResponse_1 = __nccwpck_require__(22373); +const UserListResponse_1 = __nccwpck_require__(6403); +const UserResponse_1 = __nccwpck_require__(89659); +const WebhooksIntegration_1 = __nccwpck_require__(13075); +const WebhooksIntegrationCustomVariable_1 = __nccwpck_require__(13096); +const WebhooksIntegrationCustomVariableResponse_1 = __nccwpck_require__(48351); +const WebhooksIntegrationCustomVariableUpdateRequest_1 = __nccwpck_require__(94500); +const WebhooksIntegrationUpdateRequest_1 = __nccwpck_require__(32341); +const Widget_1 = __nccwpck_require__(10895); +const WidgetAxis_1 = __nccwpck_require__(78426); +const WidgetConditionalFormat_1 = __nccwpck_require__(57848); +const WidgetCustomLink_1 = __nccwpck_require__(90412); +const WidgetEvent_1 = __nccwpck_require__(93799); +const WidgetFieldSort_1 = __nccwpck_require__(33743); +const WidgetFormula_1 = __nccwpck_require__(62557); +const WidgetFormulaLimit_1 = __nccwpck_require__(68818); +const WidgetFormulaSort_1 = __nccwpck_require__(3709); +const WidgetFormulaStyle_1 = __nccwpck_require__(67692); +const WidgetGroupSort_1 = __nccwpck_require__(99376); +const WidgetLayout_1 = __nccwpck_require__(55073); +const WidgetLegacyLiveSpan_1 = __nccwpck_require__(21106); +const WidgetMarker_1 = __nccwpck_require__(45085); +const WidgetNewFixedSpan_1 = __nccwpck_require__(84319); +const WidgetNewLiveSpan_1 = __nccwpck_require__(96155); +const WidgetRequestStyle_1 = __nccwpck_require__(31597); +const WidgetSortBy_1 = __nccwpck_require__(42610); +const WidgetStyle_1 = __nccwpck_require__(60150); +const util_1 = __nccwpck_require__(38134); +const logger_1 = __nccwpck_require__(75896); +const primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", +]; +const ARRAY_PREFIX = "Array<"; +const MAP_PREFIX = "{ [key: string]: "; +const TUPLE_PREFIX = "["; +const supportedMediaTypes = { + "application/json": Infinity, + "text/json": 100, + "application/octet-stream": 0, +}; +const enumsMap = { + AWSEventBridgeCreateStatus: ["created"], + AWSEventBridgeDeleteStatus: ["empty"], + AWSNamespace: [ + "elb", + "application_elb", + "sqs", + "rds", + "custom", + "network_elb", + "lambda", + "step_functions", + ], + AccessRole: ["st", "adm", "ro", "ERROR"], + AlertGraphWidgetDefinitionType: ["alert_graph"], + AlertValueWidgetDefinitionType: ["alert_value"], + ApmStatsQueryRowType: ["service", "resource", "span"], + ChangeWidgetDefinitionType: ["change"], + CheckStatusWidgetDefinitionType: ["check_status"], + ContentEncoding: ["gzip", "deflate"], + DashboardGlobalTimeLiveSpan: [ + "15m", + "1h", + "4h", + "1d", + "2d", + "1w", + "1mo", + "3mo", + ], + DashboardInviteType: ["public_dashboard_invitation"], + DashboardLayoutType: ["ordered", "free"], + DashboardReflowType: ["auto", "fixed"], + DashboardResourceType: ["dashboard"], + DashboardShareType: ["open", "invite"], + DashboardType: ["custom_timeboard", "custom_screenboard"], + DistributionPointsContentEncoding: ["deflate"], + DistributionPointsType: ["distribution"], + DistributionWidgetDefinitionType: ["distribution"], + DistributionWidgetHistogramRequestType: ["histogram"], + EventAlertType: [ + "error", + "warning", + "info", + "success", + "user_update", + "recommendation", + "snapshot", + ], + EventPriority: ["normal", "low"], + EventStreamWidgetDefinitionType: ["event_stream"], + EventTimelineWidgetDefinitionType: ["event_timeline"], + FormulaAndFunctionApmDependencyStatName: [ + "avg_duration", + "avg_root_duration", + "avg_spans_per_trace", + "error_rate", + "pct_exec_time", + "pct_of_traces", + "total_traces_count", + ], + FormulaAndFunctionApmDependencyStatsDataSource: ["apm_dependency_stats"], + FormulaAndFunctionApmResourceStatName: [ + "errors", + "error_rate", + "hits", + "latency_avg", + "latency_distribution", + "latency_max", + "latency_p50", + "latency_p75", + "latency_p90", + "latency_p95", + "latency_p99", + ], + FormulaAndFunctionApmResourceStatsDataSource: ["apm_resource_stats"], + FormulaAndFunctionCloudCostDataSource: ["cloud_cost"], + FormulaAndFunctionEventAggregation: [ + "count", + "cardinality", + "median", + "pc75", + "pc90", + "pc95", + "pc98", + "pc99", + "sum", + "min", + "max", + "avg", + ], + FormulaAndFunctionEventsDataSource: [ + "logs", + "spans", + "network", + "rum", + "security_signals", + "profiles", + "audit", + "events", + "ci_tests", + "ci_pipelines", + "incident_analytics", + ], + FormulaAndFunctionMetricAggregation: [ + "avg", + "min", + "max", + "sum", + "last", + "area", + "l2norm", + "percentile", + ], + FormulaAndFunctionMetricDataSource: ["metrics"], + FormulaAndFunctionProcessQueryDataSource: ["process", "container"], + FormulaAndFunctionResponseFormat: ["timeseries", "scalar", "event_list"], + FormulaAndFunctionSLODataSource: ["slo"], + FormulaAndFunctionSLOGroupMode: ["overall", "components"], + FormulaAndFunctionSLOMeasure: [ + "good_events", + "bad_events", + "good_minutes", + "bad_minutes", + "slo_status", + "error_budget_remaining", + "burn_rate", + "error_budget_burndown", + ], + FormulaAndFunctionSLOQueryType: ["metric", "time_slice"], + FormulaType: ["formula"], + FreeTextWidgetDefinitionType: ["free_text"], + FunnelRequestType: ["funnel"], + FunnelSource: ["rum"], + FunnelWidgetDefinitionType: ["funnel"], + GeomapWidgetDefinitionType: ["geomap"], + GroupType: ["group"], + GroupWidgetDefinitionType: ["group"], + HeatMapWidgetDefinitionType: ["heatmap"], + HostMapWidgetDefinitionType: ["hostmap"], + HourlyUsageAttributionUsageType: [ + "api_usage", + "apm_fargate_usage", + "apm_host_usage", + "apm_usm_usage", + "appsec_fargate_usage", + "appsec_usage", + "asm_serverless_traced_invocations_usage", + "asm_serverless_traced_invocations_percentage", + "browser_usage", + "ci_pipeline_indexed_spans_usage", + "ci_test_indexed_spans_usage", + "ci_visibility_itr_usage", + "cloud_siem_usage", + "code_security_host_usage", + "container_excl_agent_usage", + "container_usage", + "cspm_containers_usage", + "cspm_hosts_usage", + "custom_event_usage", + "custom_ingested_timeseries_usage", + "custom_timeseries_usage", + "cws_containers_usage", + "cws_fargate_task_usage", + "cws_hosts_usage", + "data_jobs_monitoring_usage", + "data_stream_monitoring_usage", + "dbm_hosts_usage", + "dbm_queries_usage", + "error_tracking_usage", + "error_tracking_percentage", + "estimated_indexed_spans_usage", + "estimated_ingested_spans_usage", + "fargate_usage", + "functions_usage", + "incident_management_monthly_active_users_usage", + "indexed_spans_usage", + "infra_host_usage", + "ingested_logs_bytes_usage", + "ingested_spans_bytes_usage", + "invocations_usage", + "lambda_traced_invocations_usage", + "logs_indexed_15day_usage", + "logs_indexed_180day_usage", + "logs_indexed_1day_usage", + "logs_indexed_30day_usage", + "logs_indexed_360day_usage", + "logs_indexed_3day_usage", + "logs_indexed_45day_usage", + "logs_indexed_60day_usage", + "logs_indexed_7day_usage", + "logs_indexed_90day_usage", + "logs_indexed_custom_retention_usage", + "mobile_app_testing_usage", + "ndm_netflow_usage", + "npm_host_usage", + "obs_pipeline_bytes_usage", + "obs_pipelines_vcpu_usage", + "online_archive_usage", + "profiled_container_usage", + "profiled_fargate_usage", + "profiled_host_usage", + "rum_browser_mobile_sessions_usage", + "rum_replay_sessions_usage", + "sca_fargate_usage", + "sds_scanned_bytes_usage", + "serverless_apps_usage", + "siem_analyzed_logs_add_on_usage", + "siem_ingested_bytes_usage", + "snmp_usage", + "universal_service_monitoring_usage", + "vuln_management_hosts_usage", + "workflow_executions_usage", + ], + IFrameWidgetDefinitionType: ["iframe"], + ImageWidgetDefinitionType: ["image"], + ListStreamColumnWidth: ["auto", "compact", "full"], + ListStreamComputeAggregation: [ + "count", + "cardinality", + "median", + "pc75", + "pc90", + "pc95", + "pc98", + "pc99", + "sum", + "min", + "max", + "avg", + "earliest", + "latest", + "most_frequent", + ], + ListStreamResponseFormat: ["event_list"], + ListStreamSource: [ + "logs_stream", + "audit_stream", + "ci_pipeline_stream", + "ci_test_stream", + "rum_issue_stream", + "apm_issue_stream", + "trace_stream", + "logs_issue_stream", + "logs_pattern_stream", + "logs_transaction_stream", + "event_stream", + "rum_stream", + "llm_observability_stream", + ], + ListStreamWidgetDefinitionType: ["list_stream"], + LogStreamWidgetDefinitionType: ["log_stream"], + LogsArithmeticProcessorType: ["arithmetic-processor"], + LogsAttributeRemapperType: ["attribute-remapper"], + LogsCategoryProcessorType: ["category-processor"], + LogsDateRemapperType: ["date-remapper"], + LogsGeoIPParserType: ["geo-ip-parser"], + LogsGrokParserType: ["grok-parser"], + LogsLookupProcessorType: ["lookup-processor"], + LogsMessageRemapperType: ["message-remapper"], + LogsPipelineProcessorType: ["pipeline"], + LogsServiceRemapperType: ["service-remapper"], + LogsSort: ["asc", "desc"], + LogsStatusRemapperType: ["status-remapper"], + LogsStringBuilderProcessorType: ["string-builder-processor"], + LogsTraceRemapperType: ["trace-id-remapper"], + LogsURLParserType: ["url-parser"], + LogsUserAgentParserType: ["user-agent-parser"], + MetricContentEncoding: ["deflate", "gzip"], + MonitorDeviceID: [ + "laptop_large", + "tablet", + "mobile_small", + "chrome.laptop_large", + "chrome.tablet", + "chrome.mobile_small", + "firefox.laptop_large", + "firefox.tablet", + "firefox.mobile_small", + ], + MonitorFormulaAndFunctionEventAggregation: [ + "count", + "cardinality", + "median", + "pc75", + "pc90", + "pc95", + "pc98", + "pc99", + "sum", + "min", + "max", + "avg", + ], + MonitorFormulaAndFunctionEventsDataSource: [ + "rum", + "ci_pipelines", + "ci_tests", + "audit", + "events", + "logs", + "spans", + "database_queries", + "network", + ], + MonitorOptionsNotificationPresets: [ + "show_all", + "hide_query", + "hide_handles", + "hide_all", + ], + MonitorOverallStates: [ + "Alert", + "Ignored", + "No Data", + "OK", + "Skipped", + "Unknown", + "Warn", + ], + MonitorRenotifyStatusType: ["alert", "warn", "no data"], + MonitorSummaryWidgetDefinitionType: ["manage_status"], + MonitorType: [ + "composite", + "event alert", + "log alert", + "metric alert", + "process alert", + "query alert", + "rum alert", + "service check", + "synthetics alert", + "trace-analytics alert", + "slo alert", + "event-v2 alert", + "audit alert", + "ci-pipelines alert", + "ci-tests alert", + "error-tracking alert", + "database-monitoring alert", + "network-performance alert", + ], + MonthlyUsageAttributionSupportedMetrics: [ + "api_usage", + "api_percentage", + "apm_fargate_usage", + "apm_fargate_percentage", + "appsec_fargate_usage", + "appsec_fargate_percentage", + "apm_host_usage", + "apm_host_percentage", + "apm_usm_usage", + "apm_usm_percentage", + "appsec_usage", + "appsec_percentage", + "asm_serverless_traced_invocations_usage", + "asm_serverless_traced_invocations_percentage", + "browser_usage", + "browser_percentage", + "ci_visibility_itr_usage", + "ci_visibility_itr_percentage", + "cloud_siem_usage", + "cloud_siem_percentage", + "code_security_host_usage", + "code_security_host_percentage", + "container_excl_agent_usage", + "container_excl_agent_percentage", + "container_usage", + "container_percentage", + "cspm_containers_percentage", + "cspm_containers_usage", + "cspm_hosts_percentage", + "cspm_hosts_usage", + "custom_timeseries_usage", + "custom_timeseries_percentage", + "custom_ingested_timeseries_usage", + "custom_ingested_timeseries_percentage", + "cws_containers_percentage", + "cws_containers_usage", + "cws_fargate_task_percentage", + "cws_fargate_task_usage", + "cws_hosts_percentage", + "cws_hosts_usage", + "data_jobs_monitoring_usage", + "data_jobs_monitoring_percentage", + "data_stream_monitoring_usage", + "data_stream_monitoring_percentage", + "dbm_hosts_percentage", + "dbm_hosts_usage", + "dbm_queries_percentage", + "dbm_queries_usage", + "error_tracking_usage", + "error_tracking_percentage", + "estimated_indexed_spans_usage", + "estimated_indexed_spans_percentage", + "estimated_ingested_spans_usage", + "estimated_ingested_spans_percentage", + "fargate_usage", + "fargate_percentage", + "functions_usage", + "functions_percentage", + "incident_management_monthly_active_users_usage", + "incident_management_monthly_active_users_percentage", + "infra_host_usage", + "infra_host_percentage", + "invocations_usage", + "invocations_percentage", + "lambda_traced_invocations_usage", + "lambda_traced_invocations_percentage", + "mobile_app_testing_percentage", + "mobile_app_testing_usage", + "ndm_netflow_usage", + "ndm_netflow_percentage", + "npm_host_usage", + "npm_host_percentage", + "obs_pipeline_bytes_usage", + "obs_pipeline_bytes_percentage", + "obs_pipelines_vcpu_usage", + "obs_pipelines_vcpu_percentage", + "online_archive_usage", + "online_archive_percentage", + "profiled_container_usage", + "profiled_container_percentage", + "profiled_fargate_usage", + "profiled_fargate_percentage", + "profiled_host_usage", + "profiled_host_percentage", + "serverless_apps_usage", + "serverless_apps_percentage", + "snmp_usage", + "snmp_percentage", + "universal_service_monitoring_usage", + "universal_service_monitoring_percentage", + "vuln_management_hosts_usage", + "vuln_management_hosts_percentage", + "sds_scanned_bytes_usage", + "sds_scanned_bytes_percentage", + "ci_test_indexed_spans_usage", + "ci_test_indexed_spans_percentage", + "ingested_logs_bytes_usage", + "ingested_logs_bytes_percentage", + "ci_pipeline_indexed_spans_usage", + "ci_pipeline_indexed_spans_percentage", + "indexed_spans_usage", + "indexed_spans_percentage", + "custom_event_usage", + "custom_event_percentage", + "logs_indexed_custom_retention_usage", + "logs_indexed_custom_retention_percentage", + "logs_indexed_360day_usage", + "logs_indexed_360day_percentage", + "logs_indexed_180day_usage", + "logs_indexed_180day_percentage", + "logs_indexed_90day_usage", + "logs_indexed_90day_percentage", + "logs_indexed_60day_usage", + "logs_indexed_60day_percentage", + "logs_indexed_45day_usage", + "logs_indexed_45day_percentage", + "logs_indexed_30day_usage", + "logs_indexed_30day_percentage", + "logs_indexed_15day_usage", + "logs_indexed_15day_percentage", + "logs_indexed_7day_usage", + "logs_indexed_7day_percentage", + "logs_indexed_3day_usage", + "logs_indexed_3day_percentage", + "logs_indexed_1day_usage", + "logs_indexed_1day_percentage", + "rum_replay_sessions_usage", + "rum_replay_sessions_percentage", + "rum_browser_mobile_sessions_usage", + "rum_browser_mobile_sessions_percentage", + "ingested_spans_bytes_usage", + "ingested_spans_bytes_percentage", + "siem_analyzed_logs_add_on_usage", + "siem_analyzed_logs_add_on_percentage", + "siem_ingested_bytes_usage", + "siem_ingested_bytes_percentage", + "workflow_executions_usage", + "workflow_executions_percentage", + "sca_fargate_usage", + "sca_fargate_percentage", + "*", + ], + NoteWidgetDefinitionType: ["note"], + NotebookCellResourceType: ["notebook_cells"], + NotebookGraphSize: ["xs", "s", "m", "l", "xl"], + NotebookMarkdownCellDefinitionType: ["markdown"], + NotebookMetadataType: [ + "postmortem", + "runbook", + "investigation", + "documentation", + "report", + ], + NotebookResourceType: ["notebooks"], + NotebookStatus: ["published"], + NotifyEndState: ["alert", "no data", "warn"], + NotifyEndType: ["canceled", "expired"], + OnMissingDataOption: [ + "default", + "show_no_data", + "show_and_notify_no_data", + "resolve", + ], + PowerpackWidgetDefinitionType: ["powerpack"], + QuerySortOrder: ["asc", "desc"], + QueryValueWidgetDefinitionType: ["query_value"], + RunWorkflowWidgetDefinitionType: ["run_workflow"], + SLOCorrectionCategory: [ + "Scheduled Maintenance", + "Outside Business Hours", + "Deployment", + "Other", + ], + SLOCorrectionType: ["correction"], + SLOErrorTimeframe: ["7d", "30d", "90d", "all"], + SLOListWidgetDefinitionType: ["slo_list"], + SLOListWidgetRequestType: ["slo_list"], + SLOState: ["breached", "warning", "ok", "no_data"], + SLOTimeSliceComparator: [">", ">=", "<", "<="], + SLOTimeSliceInterval: [60, 300], + SLOTimeframe: ["7d", "30d", "90d", "custom"], + SLOType: ["metric", "monitor", "time_slice"], + SLOTypeNumeric: [0, 1, 2], + SLOWidgetDefinitionType: ["slo"], + ScatterPlotWidgetDefinitionType: ["scatterplot"], + ScatterplotDimension: ["x", "y", "radius", "color"], + ScatterplotWidgetAggregator: ["avg", "last", "max", "min", "sum"], + SearchSLOTimeframe: ["7d", "30d", "90d"], + ServiceCheckStatus: [0, 1, 2, 3], + ServiceMapWidgetDefinitionType: ["servicemap"], + ServiceSummaryWidgetDefinitionType: ["trace_service"], + SignalArchiveReason: [ + "none", + "false_positive", + "testing_or_maintenance", + "investigated_case_opened", + "true_positive_benign", + "true_positive_malicious", + "other", + ], + SignalTriageState: ["open", "archived", "under_review"], + SplitGraphVizSize: ["xs", "sm", "md", "lg"], + SplitGraphWidgetDefinitionType: ["split_group"], + SunburstWidgetDefinitionType: ["sunburst"], + SunburstWidgetLegendInlineAutomaticType: ["inline", "automatic"], + SunburstWidgetLegendTableType: ["table", "none"], + SyntheticsAPITestStepSubtype: ["http", "grpc"], + SyntheticsAPITestType: ["api"], + SyntheticsAPIWaitStepSubtype: ["wait"], + SyntheticsApiTestFailureCode: [ + "BODY_TOO_LARGE", + "DENIED", + "TOO_MANY_REDIRECTS", + "AUTHENTICATION_ERROR", + "DECRYPTION", + "INVALID_CHAR_IN_HEADER", + "HEADER_TOO_LARGE", + "HEADERS_INCOMPATIBLE_CONTENT_LENGTH", + "INVALID_REQUEST", + "REQUIRES_UPDATE", + "UNESCAPED_CHARACTERS_IN_REQUEST_PATH", + "MALFORMED_RESPONSE", + "INCORRECT_ASSERTION", + "CONNREFUSED", + "CONNRESET", + "DNS", + "HOSTUNREACH", + "NETUNREACH", + "TIMEOUT", + "SSL", + "OCSP", + "INVALID_TEST", + "TUNNEL", + "WEBSOCKET", + "UNKNOWN", + "INTERNAL_ERROR", + ], + SyntheticsAssertionBodyHashOperator: ["md5", "sha1", "sha256"], + SyntheticsAssertionBodyHashType: ["bodyHash"], + SyntheticsAssertionJSONPathOperator: ["validatesJSONPath"], + SyntheticsAssertionJSONSchemaMetaSchema: ["draft-07", "draft-06"], + SyntheticsAssertionJSONSchemaOperator: ["validatesJSONSchema"], + SyntheticsAssertionJavascriptType: ["javascript"], + SyntheticsAssertionOperator: [ + "contains", + "doesNotContain", + "is", + "isNot", + "lessThan", + "lessThanOrEqual", + "moreThan", + "moreThanOrEqual", + "matches", + "doesNotMatch", + "validates", + "isInMoreThan", + "isInLessThan", + "doesNotExist", + "isUndefined", + ], + SyntheticsAssertionTimingsScope: ["all", "withoutDNS"], + SyntheticsAssertionType: [ + "body", + "header", + "statusCode", + "certificate", + "responseTime", + "property", + "recordEvery", + "recordSome", + "tlsVersion", + "minTlsVersion", + "latency", + "packetLossPercentage", + "packetsReceived", + "networkHop", + "receivedMessage", + "grpcHealthcheckStatus", + "grpcMetadata", + "grpcProto", + "connection", + ], + SyntheticsAssertionXPathOperator: ["validatesXPath"], + SyntheticsBasicAuthDigestType: ["digest"], + SyntheticsBasicAuthNTLMType: ["ntlm"], + SyntheticsBasicAuthOauthClientType: ["oauth-client"], + SyntheticsBasicAuthOauthROPType: ["oauth-rop"], + SyntheticsBasicAuthOauthTokenApiAuthentication: ["header", "body"], + SyntheticsBasicAuthSigv4Type: ["sigv4"], + SyntheticsBasicAuthWebType: ["web"], + SyntheticsBatchStatus: ["passed", "skipped", "failed"], + SyntheticsBrowserErrorType: ["network", "js"], + SyntheticsBrowserTestFailureCode: [ + "API_REQUEST_FAILURE", + "ASSERTION_FAILURE", + "DOWNLOAD_FILE_TOO_LARGE", + "ELEMENT_NOT_INTERACTABLE", + "EMAIL_VARIABLE_NOT_DEFINED", + "EVALUATE_JAVASCRIPT", + "EVALUATE_JAVASCRIPT_CONTEXT", + "EXTRACT_VARIABLE", + "FORBIDDEN_URL", + "FRAME_DETACHED", + "INCONSISTENCIES", + "INTERNAL_ERROR", + "INVALID_TYPE_TEXT_DELAY", + "INVALID_URL", + "INVALID_VARIABLE_PATTERN", + "INVISIBLE_ELEMENT", + "LOCATE_ELEMENT", + "NAVIGATE_TO_LINK", + "OPEN_URL", + "PRESS_KEY", + "SERVER_CERTIFICATE", + "SELECT_OPTION", + "STEP_TIMEOUT", + "SUB_TEST_NOT_PASSED", + "TEST_TIMEOUT", + "TOO_MANY_HTTP_REQUESTS", + "UNAVAILABLE_BROWSER", + "UNKNOWN", + "UNSUPPORTED_AUTH_SCHEMA", + "UPLOAD_FILES_ELEMENT_TYPE", + "UPLOAD_FILES_DIALOG", + "UPLOAD_FILES_DYNAMIC_ELEMENT", + "UPLOAD_FILES_NAME", + ], + SyntheticsBrowserTestType: ["browser"], + SyntheticsBrowserVariableType: [ + "element", + "email", + "global", + "javascript", + "text", + ], + SyntheticsCheckType: [ + "equals", + "notEquals", + "contains", + "notContains", + "startsWith", + "notStartsWith", + "greater", + "lower", + "greaterEquals", + "lowerEquals", + "matchRegex", + "between", + "isEmpty", + "notIsEmpty", + ], + SyntheticsConfigVariableType: ["global", "text", "email"], + SyntheticsGlobalVariableParseTestOptionsType: [ + "http_body", + "http_header", + "http_status_code", + "local_variable", + ], + SyntheticsGlobalVariableParserType: ["raw", "json_path", "regex", "x_path"], + SyntheticsLocalVariableParsingOptionsType: [ + "grpc_message", + "grpc_metadata", + "http_body", + "http_header", + "http_status_code", + ], + SyntheticsMobileStepParamsDirection: ["up", "down", "left", "right"], + SyntheticsMobileStepParamsElementContextType: ["native", "web"], + SyntheticsMobileStepParamsElementUserLocatorValuesItemsType: [ + "accessibility-id", + "id", + "ios-predicate-string", + "ios-class-chain", + "xpath", + ], + SyntheticsMobileStepType: [ + "assertElementContent", + "assertScreenContains", + "assertScreenLacks", + "doubleTap", + "extractVariable", + "flick", + "openDeeplink", + "playSubTest", + "pressBack", + "restartApplication", + "rotate", + "scroll", + "scrollToElement", + "tap", + "toggleWiFi", + "typeText", + "wait", + ], + SyntheticsMobileTestType: ["mobile"], + SyntheticsMobileTestsMobileApplicationReferenceType: ["latest", "version"], + SyntheticsPatchTestOperationName: [ + "add", + "remove", + "replace", + "move", + "copy", + "test", + ], + SyntheticsPlayingTab: [-1, 0, 1, 2, 3], + SyntheticsStepType: [ + "assertCurrentUrl", + "assertElementAttribute", + "assertElementContent", + "assertElementPresent", + "assertEmail", + "assertFileDownload", + "assertFromJavascript", + "assertPageContains", + "assertPageLacks", + "click", + "extractFromJavascript", + "extractVariable", + "goToEmailLink", + "goToUrl", + "goToUrlAndMeasureTti", + "hover", + "playSubTest", + "pressKey", + "refresh", + "runApiTest", + "scroll", + "selectOption", + "typeText", + "uploadFiles", + "wait", + ], + SyntheticsTestCallType: ["healthcheck", "unary"], + SyntheticsTestDetailsSubType: [ + "http", + "ssl", + "tcp", + "dns", + "multi", + "icmp", + "udp", + "websocket", + "grpc", + ], + SyntheticsTestDetailsType: ["api", "browser", "mobile"], + SyntheticsTestExecutionRule: ["blocking", "non_blocking", "skipped"], + SyntheticsTestMonitorStatus: [0, 1, 2], + SyntheticsTestOptionsHTTPVersion: ["http1", "http2", "any"], + SyntheticsTestOptionsMonitorOptionsNotificationPresetName: [ + "show_all", + "hide_all", + "hide_query", + "hide_handles", + ], + SyntheticsTestPauseStatus: ["live", "paused"], + SyntheticsTestProcessStatus: [ + "not_scheduled", + "scheduled", + "finished", + "finished_with_error", + ], + SyntheticsTestRequestBodyType: [ + "text/plain", + "application/json", + "text/xml", + "text/html", + "application/x-www-form-urlencoded", + "graphql", + "application/octet-stream", + "multipart/form-data", + ], + SyntheticsTestRestrictionPolicyBindingRelation: ["editor", "viewer"], + SyntheticsWarningType: ["user_locator"], + TableWidgetCellDisplayMode: ["number", "bar"], + TableWidgetDefinitionType: ["query_table"], + TableWidgetHasSearchBar: ["always", "never", "auto"], + TableWidgetTextFormatMatchType: [ + "is", + "is_not", + "contains", + "does_not_contain", + "starts_with", + "ends_with", + ], + TableWidgetTextFormatPalette: [ + "white_on_red", + "white_on_yellow", + "white_on_green", + "black_on_light_red", + "black_on_light_yellow", + "black_on_light_green", + "red_on_white", + "yellow_on_white", + "green_on_white", + "custom_bg", + "custom_text", + ], + TableWidgetTextFormatReplaceAllType: ["all"], + TableWidgetTextFormatReplaceSubstringType: ["substring"], + TargetFormatType: ["auto", "string", "integer", "double"], + TimeseriesBackgroundType: ["bars", "area"], + TimeseriesWidgetDefinitionType: ["timeseries"], + TimeseriesWidgetLegendColumn: ["value", "avg", "sum", "min", "max"], + TimeseriesWidgetLegendLayout: ["auto", "horizontal", "vertical"], + ToplistWidgetDefinitionType: ["toplist"], + ToplistWidgetFlatType: ["flat"], + ToplistWidgetLegend: ["automatic", "inline", "none"], + ToplistWidgetScaling: ["absolute", "relative"], + ToplistWidgetStackedType: ["stacked"], + TopologyMapWidgetDefinitionType: ["topology_map"], + TopologyQueryDataSource: ["data_streams", "service_map"], + TopologyRequestType: ["topology"], + TreeMapColorBy: ["user"], + TreeMapGroupBy: ["user", "family", "process"], + TreeMapSizeBy: ["pct_cpu", "pct_mem"], + TreeMapWidgetDefinitionType: ["treemap"], + UsageMetricCategory: ["standard", "custom"], + UsageReportsType: ["reports"], + UsageSort: ["computed_on", "size", "start_date", "end_date"], + UsageSortDirection: ["desc", "asc"], + WebhooksIntegrationEncoding: ["json", "form"], + WidgetAggregator: ["avg", "last", "max", "min", "sum", "percentile"], + WidgetChangeType: ["absolute", "relative"], + WidgetColorPreference: ["background", "text"], + WidgetComparator: ["=", ">", ">=", "<", "<="], + WidgetCompareTo: ["hour_before", "day_before", "week_before", "month_before"], + WidgetDisplayType: ["area", "bars", "line", "overlay"], + WidgetEventSize: ["s", "l"], + WidgetGrouping: ["check", "cluster"], + WidgetHorizontalAlign: ["center", "left", "right"], + WidgetImageSizing: [ + "fill", + "contain", + "cover", + "none", + "scale-down", + "zoom", + "fit", + "center", + ], + WidgetLayoutType: ["ordered"], + WidgetLineType: ["dashed", "dotted", "solid"], + WidgetLineWidth: ["normal", "thick", "thin"], + WidgetLiveSpan: [ + "1m", + "5m", + "10m", + "15m", + "30m", + "1h", + "4h", + "1d", + "2d", + "1w", + "1mo", + "3mo", + "6mo", + "week_to_date", + "month_to_date", + "1y", + "alert", + ], + WidgetLiveSpanUnit: ["minute", "hour", "day", "week", "month", "year"], + WidgetMargin: ["sm", "md", "lg", "small", "large"], + WidgetMessageDisplay: ["inline", "expanded-md", "expanded-lg"], + WidgetMonitorSummaryDisplayFormat: ["counts", "countsAndList", "list"], + WidgetMonitorSummarySort: [ + "name", + "group", + "status", + "tags", + "triggered", + "group,asc", + "group,desc", + "name,asc", + "name,desc", + "status,asc", + "status,desc", + "tags,asc", + "tags,desc", + "triggered,asc", + "triggered,desc", + "priority,asc", + "priority,desc", + ], + WidgetNewFixedSpanType: ["fixed"], + WidgetNewLiveSpanType: ["live"], + WidgetNodeType: ["host", "container"], + WidgetOrderBy: ["change", "name", "present", "past"], + WidgetPalette: [ + "blue", + "custom_bg", + "custom_image", + "custom_text", + "gray_on_white", + "grey", + "green", + "orange", + "red", + "red_on_white", + "white_on_gray", + "white_on_green", + "green_on_white", + "white_on_red", + "white_on_yellow", + "yellow_on_white", + "black_on_light_yellow", + "black_on_light_green", + "black_on_light_red", + ], + WidgetServiceSummaryDisplayFormat: [ + "one_column", + "two_column", + "three_column", + ], + WidgetSizeFormat: ["small", "medium", "large"], + WidgetSort: ["asc", "desc"], + WidgetSummaryType: ["monitors", "groups", "combined"], + WidgetTextAlign: ["center", "left", "right"], + WidgetTickEdge: ["bottom", "left", "right", "top"], + WidgetTimeWindows: [ + "7d", + "30d", + "90d", + "week_to_date", + "previous_week", + "month_to_date", + "previous_month", + "global_time", + ], + WidgetVerticalAlign: ["center", "top", "bottom"], + WidgetViewMode: ["overall", "component", "both"], + WidgetVizType: ["timeseries", "toplist"], +}; +const typeMap = { + APIErrorResponse: APIErrorResponse_1.APIErrorResponse, + AWSAccount: AWSAccount_1.AWSAccount, + AWSAccountAndLambdaRequest: AWSAccountAndLambdaRequest_1.AWSAccountAndLambdaRequest, + AWSAccountCreateResponse: AWSAccountCreateResponse_1.AWSAccountCreateResponse, + AWSAccountDeleteRequest: AWSAccountDeleteRequest_1.AWSAccountDeleteRequest, + AWSAccountListResponse: AWSAccountListResponse_1.AWSAccountListResponse, + AWSEventBridgeAccountConfiguration: AWSEventBridgeAccountConfiguration_1.AWSEventBridgeAccountConfiguration, + AWSEventBridgeCreateRequest: AWSEventBridgeCreateRequest_1.AWSEventBridgeCreateRequest, + AWSEventBridgeCreateResponse: AWSEventBridgeCreateResponse_1.AWSEventBridgeCreateResponse, + AWSEventBridgeDeleteRequest: AWSEventBridgeDeleteRequest_1.AWSEventBridgeDeleteRequest, + AWSEventBridgeDeleteResponse: AWSEventBridgeDeleteResponse_1.AWSEventBridgeDeleteResponse, + AWSEventBridgeListResponse: AWSEventBridgeListResponse_1.AWSEventBridgeListResponse, + AWSEventBridgeSource: AWSEventBridgeSource_1.AWSEventBridgeSource, + AWSLogsAsyncError: AWSLogsAsyncError_1.AWSLogsAsyncError, + AWSLogsAsyncResponse: AWSLogsAsyncResponse_1.AWSLogsAsyncResponse, + AWSLogsLambda: AWSLogsLambda_1.AWSLogsLambda, + AWSLogsListResponse: AWSLogsListResponse_1.AWSLogsListResponse, + AWSLogsListServicesResponse: AWSLogsListServicesResponse_1.AWSLogsListServicesResponse, + AWSLogsServicesRequest: AWSLogsServicesRequest_1.AWSLogsServicesRequest, + AWSTagFilter: AWSTagFilter_1.AWSTagFilter, + AWSTagFilterCreateRequest: AWSTagFilterCreateRequest_1.AWSTagFilterCreateRequest, + AWSTagFilterDeleteRequest: AWSTagFilterDeleteRequest_1.AWSTagFilterDeleteRequest, + AWSTagFilterListResponse: AWSTagFilterListResponse_1.AWSTagFilterListResponse, + AddSignalToIncidentRequest: AddSignalToIncidentRequest_1.AddSignalToIncidentRequest, + AlertGraphWidgetDefinition: AlertGraphWidgetDefinition_1.AlertGraphWidgetDefinition, + AlertValueWidgetDefinition: AlertValueWidgetDefinition_1.AlertValueWidgetDefinition, + ApiKey: ApiKey_1.ApiKey, + ApiKeyListResponse: ApiKeyListResponse_1.ApiKeyListResponse, + ApiKeyResponse: ApiKeyResponse_1.ApiKeyResponse, + ApmStatsQueryColumnType: ApmStatsQueryColumnType_1.ApmStatsQueryColumnType, + ApmStatsQueryDefinition: ApmStatsQueryDefinition_1.ApmStatsQueryDefinition, + ApplicationKey: ApplicationKey_1.ApplicationKey, + ApplicationKeyListResponse: ApplicationKeyListResponse_1.ApplicationKeyListResponse, + ApplicationKeyResponse: ApplicationKeyResponse_1.ApplicationKeyResponse, + AuthenticationValidationResponse: AuthenticationValidationResponse_1.AuthenticationValidationResponse, + AzureAccount: AzureAccount_1.AzureAccount, + AzureAccountMetricsConfig: AzureAccountMetricsConfig_1.AzureAccountMetricsConfig, + CancelDowntimesByScopeRequest: CancelDowntimesByScopeRequest_1.CancelDowntimesByScopeRequest, + CanceledDowntimesIds: CanceledDowntimesIds_1.CanceledDowntimesIds, + ChangeWidgetDefinition: ChangeWidgetDefinition_1.ChangeWidgetDefinition, + ChangeWidgetRequest: ChangeWidgetRequest_1.ChangeWidgetRequest, + CheckCanDeleteMonitorResponse: CheckCanDeleteMonitorResponse_1.CheckCanDeleteMonitorResponse, + CheckCanDeleteMonitorResponseData: CheckCanDeleteMonitorResponseData_1.CheckCanDeleteMonitorResponseData, + CheckCanDeleteSLOResponse: CheckCanDeleteSLOResponse_1.CheckCanDeleteSLOResponse, + CheckCanDeleteSLOResponseData: CheckCanDeleteSLOResponseData_1.CheckCanDeleteSLOResponseData, + CheckStatusWidgetDefinition: CheckStatusWidgetDefinition_1.CheckStatusWidgetDefinition, + Creator: Creator_1.Creator, + Dashboard: Dashboard_1.Dashboard, + DashboardBulkActionData: DashboardBulkActionData_1.DashboardBulkActionData, + DashboardBulkDeleteRequest: DashboardBulkDeleteRequest_1.DashboardBulkDeleteRequest, + DashboardDeleteResponse: DashboardDeleteResponse_1.DashboardDeleteResponse, + DashboardGlobalTime: DashboardGlobalTime_1.DashboardGlobalTime, + DashboardList: DashboardList_1.DashboardList, + DashboardListDeleteResponse: DashboardListDeleteResponse_1.DashboardListDeleteResponse, + DashboardListListResponse: DashboardListListResponse_1.DashboardListListResponse, + DashboardRestoreRequest: DashboardRestoreRequest_1.DashboardRestoreRequest, + DashboardSummary: DashboardSummary_1.DashboardSummary, + DashboardSummaryDefinition: DashboardSummaryDefinition_1.DashboardSummaryDefinition, + DashboardTemplateVariable: DashboardTemplateVariable_1.DashboardTemplateVariable, + DashboardTemplateVariablePreset: DashboardTemplateVariablePreset_1.DashboardTemplateVariablePreset, + DashboardTemplateVariablePresetValue: DashboardTemplateVariablePresetValue_1.DashboardTemplateVariablePresetValue, + DeleteSharedDashboardResponse: DeleteSharedDashboardResponse_1.DeleteSharedDashboardResponse, + DeletedMonitor: DeletedMonitor_1.DeletedMonitor, + DistributionPointsPayload: DistributionPointsPayload_1.DistributionPointsPayload, + DistributionPointsSeries: DistributionPointsSeries_1.DistributionPointsSeries, + DistributionWidgetDefinition: DistributionWidgetDefinition_1.DistributionWidgetDefinition, + DistributionWidgetRequest: DistributionWidgetRequest_1.DistributionWidgetRequest, + DistributionWidgetXAxis: DistributionWidgetXAxis_1.DistributionWidgetXAxis, + DistributionWidgetYAxis: DistributionWidgetYAxis_1.DistributionWidgetYAxis, + Downtime: Downtime_1.Downtime, + DowntimeChild: DowntimeChild_1.DowntimeChild, + DowntimeRecurrence: DowntimeRecurrence_1.DowntimeRecurrence, + Event: Event_1.Event, + EventCreateRequest: EventCreateRequest_1.EventCreateRequest, + EventCreateResponse: EventCreateResponse_1.EventCreateResponse, + EventListResponse: EventListResponse_1.EventListResponse, + EventQueryDefinition: EventQueryDefinition_1.EventQueryDefinition, + EventResponse: EventResponse_1.EventResponse, + EventStreamWidgetDefinition: EventStreamWidgetDefinition_1.EventStreamWidgetDefinition, + EventTimelineWidgetDefinition: EventTimelineWidgetDefinition_1.EventTimelineWidgetDefinition, + FormulaAndFunctionApmDependencyStatsQueryDefinition: FormulaAndFunctionApmDependencyStatsQueryDefinition_1.FormulaAndFunctionApmDependencyStatsQueryDefinition, + FormulaAndFunctionApmResourceStatsQueryDefinition: FormulaAndFunctionApmResourceStatsQueryDefinition_1.FormulaAndFunctionApmResourceStatsQueryDefinition, + FormulaAndFunctionCloudCostQueryDefinition: FormulaAndFunctionCloudCostQueryDefinition_1.FormulaAndFunctionCloudCostQueryDefinition, + FormulaAndFunctionEventQueryDefinition: FormulaAndFunctionEventQueryDefinition_1.FormulaAndFunctionEventQueryDefinition, + FormulaAndFunctionEventQueryDefinitionCompute: FormulaAndFunctionEventQueryDefinitionCompute_1.FormulaAndFunctionEventQueryDefinitionCompute, + FormulaAndFunctionEventQueryDefinitionSearch: FormulaAndFunctionEventQueryDefinitionSearch_1.FormulaAndFunctionEventQueryDefinitionSearch, + FormulaAndFunctionEventQueryGroupBy: FormulaAndFunctionEventQueryGroupBy_1.FormulaAndFunctionEventQueryGroupBy, + FormulaAndFunctionEventQueryGroupBySort: FormulaAndFunctionEventQueryGroupBySort_1.FormulaAndFunctionEventQueryGroupBySort, + FormulaAndFunctionMetricQueryDefinition: FormulaAndFunctionMetricQueryDefinition_1.FormulaAndFunctionMetricQueryDefinition, + FormulaAndFunctionProcessQueryDefinition: FormulaAndFunctionProcessQueryDefinition_1.FormulaAndFunctionProcessQueryDefinition, + FormulaAndFunctionSLOQueryDefinition: FormulaAndFunctionSLOQueryDefinition_1.FormulaAndFunctionSLOQueryDefinition, + FreeTextWidgetDefinition: FreeTextWidgetDefinition_1.FreeTextWidgetDefinition, + FunnelQuery: FunnelQuery_1.FunnelQuery, + FunnelStep: FunnelStep_1.FunnelStep, + FunnelWidgetDefinition: FunnelWidgetDefinition_1.FunnelWidgetDefinition, + FunnelWidgetRequest: FunnelWidgetRequest_1.FunnelWidgetRequest, + GCPAccount: GCPAccount_1.GCPAccount, + GeomapWidgetDefinition: GeomapWidgetDefinition_1.GeomapWidgetDefinition, + GeomapWidgetDefinitionStyle: GeomapWidgetDefinitionStyle_1.GeomapWidgetDefinitionStyle, + GeomapWidgetDefinitionView: GeomapWidgetDefinitionView_1.GeomapWidgetDefinitionView, + GeomapWidgetRequest: GeomapWidgetRequest_1.GeomapWidgetRequest, + GraphSnapshot: GraphSnapshot_1.GraphSnapshot, + GroupWidgetDefinition: GroupWidgetDefinition_1.GroupWidgetDefinition, + HTTPLogError: HTTPLogError_1.HTTPLogError, + HTTPLogItem: HTTPLogItem_1.HTTPLogItem, + HeatMapWidgetDefinition: HeatMapWidgetDefinition_1.HeatMapWidgetDefinition, + HeatMapWidgetRequest: HeatMapWidgetRequest_1.HeatMapWidgetRequest, + Host: Host_1.Host, + HostListResponse: HostListResponse_1.HostListResponse, + HostMapRequest: HostMapRequest_1.HostMapRequest, + HostMapWidgetDefinition: HostMapWidgetDefinition_1.HostMapWidgetDefinition, + HostMapWidgetDefinitionRequests: HostMapWidgetDefinitionRequests_1.HostMapWidgetDefinitionRequests, + HostMapWidgetDefinitionStyle: HostMapWidgetDefinitionStyle_1.HostMapWidgetDefinitionStyle, + HostMeta: HostMeta_1.HostMeta, + HostMetaInstallMethod: HostMetaInstallMethod_1.HostMetaInstallMethod, + HostMetrics: HostMetrics_1.HostMetrics, + HostMuteResponse: HostMuteResponse_1.HostMuteResponse, + HostMuteSettings: HostMuteSettings_1.HostMuteSettings, + HostTags: HostTags_1.HostTags, + HostTotals: HostTotals_1.HostTotals, + HourlyUsageAttributionBody: HourlyUsageAttributionBody_1.HourlyUsageAttributionBody, + HourlyUsageAttributionMetadata: HourlyUsageAttributionMetadata_1.HourlyUsageAttributionMetadata, + HourlyUsageAttributionPagination: HourlyUsageAttributionPagination_1.HourlyUsageAttributionPagination, + HourlyUsageAttributionResponse: HourlyUsageAttributionResponse_1.HourlyUsageAttributionResponse, + IFrameWidgetDefinition: IFrameWidgetDefinition_1.IFrameWidgetDefinition, + IPPrefixesAPI: IPPrefixesAPI_1.IPPrefixesAPI, + IPPrefixesAPM: IPPrefixesAPM_1.IPPrefixesAPM, + IPPrefixesAgents: IPPrefixesAgents_1.IPPrefixesAgents, + IPPrefixesGlobal: IPPrefixesGlobal_1.IPPrefixesGlobal, + IPPrefixesLogs: IPPrefixesLogs_1.IPPrefixesLogs, + IPPrefixesOrchestrator: IPPrefixesOrchestrator_1.IPPrefixesOrchestrator, + IPPrefixesProcess: IPPrefixesProcess_1.IPPrefixesProcess, + IPPrefixesRemoteConfiguration: IPPrefixesRemoteConfiguration_1.IPPrefixesRemoteConfiguration, + IPPrefixesSynthetics: IPPrefixesSynthetics_1.IPPrefixesSynthetics, + IPPrefixesSyntheticsPrivateLocations: IPPrefixesSyntheticsPrivateLocations_1.IPPrefixesSyntheticsPrivateLocations, + IPPrefixesWebhooks: IPPrefixesWebhooks_1.IPPrefixesWebhooks, + IPRanges: IPRanges_1.IPRanges, + IdpFormData: IdpFormData_1.IdpFormData, + IdpResponse: IdpResponse_1.IdpResponse, + ImageWidgetDefinition: ImageWidgetDefinition_1.ImageWidgetDefinition, + IntakePayloadAccepted: IntakePayloadAccepted_1.IntakePayloadAccepted, + ListStreamColumn: ListStreamColumn_1.ListStreamColumn, + ListStreamComputeItems: ListStreamComputeItems_1.ListStreamComputeItems, + ListStreamGroupByItems: ListStreamGroupByItems_1.ListStreamGroupByItems, + ListStreamQuery: ListStreamQuery_1.ListStreamQuery, + ListStreamWidgetDefinition: ListStreamWidgetDefinition_1.ListStreamWidgetDefinition, + ListStreamWidgetRequest: ListStreamWidgetRequest_1.ListStreamWidgetRequest, + Log: Log_1.Log, + LogContent: LogContent_1.LogContent, + LogQueryDefinition: LogQueryDefinition_1.LogQueryDefinition, + LogQueryDefinitionGroupBy: LogQueryDefinitionGroupBy_1.LogQueryDefinitionGroupBy, + LogQueryDefinitionGroupBySort: LogQueryDefinitionGroupBySort_1.LogQueryDefinitionGroupBySort, + LogQueryDefinitionSearch: LogQueryDefinitionSearch_1.LogQueryDefinitionSearch, + LogStreamWidgetDefinition: LogStreamWidgetDefinition_1.LogStreamWidgetDefinition, + LogsAPIError: LogsAPIError_1.LogsAPIError, + LogsAPIErrorResponse: LogsAPIErrorResponse_1.LogsAPIErrorResponse, + LogsArithmeticProcessor: LogsArithmeticProcessor_1.LogsArithmeticProcessor, + LogsAttributeRemapper: LogsAttributeRemapper_1.LogsAttributeRemapper, + LogsByRetention: LogsByRetention_1.LogsByRetention, + LogsByRetentionMonthlyUsage: LogsByRetentionMonthlyUsage_1.LogsByRetentionMonthlyUsage, + LogsByRetentionOrgUsage: LogsByRetentionOrgUsage_1.LogsByRetentionOrgUsage, + LogsByRetentionOrgs: LogsByRetentionOrgs_1.LogsByRetentionOrgs, + LogsCategoryProcessor: LogsCategoryProcessor_1.LogsCategoryProcessor, + LogsCategoryProcessorCategory: LogsCategoryProcessorCategory_1.LogsCategoryProcessorCategory, + LogsDailyLimitReset: LogsDailyLimitReset_1.LogsDailyLimitReset, + LogsDateRemapper: LogsDateRemapper_1.LogsDateRemapper, + LogsExclusion: LogsExclusion_1.LogsExclusion, + LogsExclusionFilter: LogsExclusionFilter_1.LogsExclusionFilter, + LogsFilter: LogsFilter_1.LogsFilter, + LogsGeoIPParser: LogsGeoIPParser_1.LogsGeoIPParser, + LogsGrokParser: LogsGrokParser_1.LogsGrokParser, + LogsGrokParserRules: LogsGrokParserRules_1.LogsGrokParserRules, + LogsIndex: LogsIndex_1.LogsIndex, + LogsIndexListResponse: LogsIndexListResponse_1.LogsIndexListResponse, + LogsIndexUpdateRequest: LogsIndexUpdateRequest_1.LogsIndexUpdateRequest, + LogsIndexesOrder: LogsIndexesOrder_1.LogsIndexesOrder, + LogsListRequest: LogsListRequest_1.LogsListRequest, + LogsListRequestTime: LogsListRequestTime_1.LogsListRequestTime, + LogsListResponse: LogsListResponse_1.LogsListResponse, + LogsLookupProcessor: LogsLookupProcessor_1.LogsLookupProcessor, + LogsMessageRemapper: LogsMessageRemapper_1.LogsMessageRemapper, + LogsPipeline: LogsPipeline_1.LogsPipeline, + LogsPipelineProcessor: LogsPipelineProcessor_1.LogsPipelineProcessor, + LogsPipelinesOrder: LogsPipelinesOrder_1.LogsPipelinesOrder, + LogsQueryCompute: LogsQueryCompute_1.LogsQueryCompute, + LogsRetentionAggSumUsage: LogsRetentionAggSumUsage_1.LogsRetentionAggSumUsage, + LogsRetentionSumUsage: LogsRetentionSumUsage_1.LogsRetentionSumUsage, + LogsServiceRemapper: LogsServiceRemapper_1.LogsServiceRemapper, + LogsStatusRemapper: LogsStatusRemapper_1.LogsStatusRemapper, + LogsStringBuilderProcessor: LogsStringBuilderProcessor_1.LogsStringBuilderProcessor, + LogsTraceRemapper: LogsTraceRemapper_1.LogsTraceRemapper, + LogsURLParser: LogsURLParser_1.LogsURLParser, + LogsUserAgentParser: LogsUserAgentParser_1.LogsUserAgentParser, + MatchingDowntime: MatchingDowntime_1.MatchingDowntime, + MetricMetadata: MetricMetadata_1.MetricMetadata, + MetricSearchResponse: MetricSearchResponse_1.MetricSearchResponse, + MetricSearchResponseResults: MetricSearchResponseResults_1.MetricSearchResponseResults, + MetricsListResponse: MetricsListResponse_1.MetricsListResponse, + MetricsPayload: MetricsPayload_1.MetricsPayload, + MetricsQueryMetadata: MetricsQueryMetadata_1.MetricsQueryMetadata, + MetricsQueryResponse: MetricsQueryResponse_1.MetricsQueryResponse, + MetricsQueryUnit: MetricsQueryUnit_1.MetricsQueryUnit, + Monitor: Monitor_1.Monitor, + MonitorFormulaAndFunctionEventQueryDefinition: MonitorFormulaAndFunctionEventQueryDefinition_1.MonitorFormulaAndFunctionEventQueryDefinition, + MonitorFormulaAndFunctionEventQueryDefinitionCompute: MonitorFormulaAndFunctionEventQueryDefinitionCompute_1.MonitorFormulaAndFunctionEventQueryDefinitionCompute, + MonitorFormulaAndFunctionEventQueryDefinitionSearch: MonitorFormulaAndFunctionEventQueryDefinitionSearch_1.MonitorFormulaAndFunctionEventQueryDefinitionSearch, + MonitorFormulaAndFunctionEventQueryGroupBy: MonitorFormulaAndFunctionEventQueryGroupBy_1.MonitorFormulaAndFunctionEventQueryGroupBy, + MonitorFormulaAndFunctionEventQueryGroupBySort: MonitorFormulaAndFunctionEventQueryGroupBySort_1.MonitorFormulaAndFunctionEventQueryGroupBySort, + MonitorGroupSearchResponse: MonitorGroupSearchResponse_1.MonitorGroupSearchResponse, + MonitorGroupSearchResponseCounts: MonitorGroupSearchResponseCounts_1.MonitorGroupSearchResponseCounts, + MonitorGroupSearchResult: MonitorGroupSearchResult_1.MonitorGroupSearchResult, + MonitorOptions: MonitorOptions_1.MonitorOptions, + MonitorOptionsAggregation: MonitorOptionsAggregation_1.MonitorOptionsAggregation, + MonitorOptionsCustomSchedule: MonitorOptionsCustomSchedule_1.MonitorOptionsCustomSchedule, + MonitorOptionsCustomScheduleRecurrence: MonitorOptionsCustomScheduleRecurrence_1.MonitorOptionsCustomScheduleRecurrence, + MonitorOptionsSchedulingOptions: MonitorOptionsSchedulingOptions_1.MonitorOptionsSchedulingOptions, + MonitorOptionsSchedulingOptionsEvaluationWindow: MonitorOptionsSchedulingOptionsEvaluationWindow_1.MonitorOptionsSchedulingOptionsEvaluationWindow, + MonitorSearchCountItem: MonitorSearchCountItem_1.MonitorSearchCountItem, + MonitorSearchResponse: MonitorSearchResponse_1.MonitorSearchResponse, + MonitorSearchResponseCounts: MonitorSearchResponseCounts_1.MonitorSearchResponseCounts, + MonitorSearchResponseMetadata: MonitorSearchResponseMetadata_1.MonitorSearchResponseMetadata, + MonitorSearchResult: MonitorSearchResult_1.MonitorSearchResult, + MonitorSearchResultNotification: MonitorSearchResultNotification_1.MonitorSearchResultNotification, + MonitorState: MonitorState_1.MonitorState, + MonitorStateGroup: MonitorStateGroup_1.MonitorStateGroup, + MonitorSummaryWidgetDefinition: MonitorSummaryWidgetDefinition_1.MonitorSummaryWidgetDefinition, + MonitorThresholdWindowOptions: MonitorThresholdWindowOptions_1.MonitorThresholdWindowOptions, + MonitorThresholds: MonitorThresholds_1.MonitorThresholds, + MonitorUpdateRequest: MonitorUpdateRequest_1.MonitorUpdateRequest, + MonthlyUsageAttributionBody: MonthlyUsageAttributionBody_1.MonthlyUsageAttributionBody, + MonthlyUsageAttributionMetadata: MonthlyUsageAttributionMetadata_1.MonthlyUsageAttributionMetadata, + MonthlyUsageAttributionPagination: MonthlyUsageAttributionPagination_1.MonthlyUsageAttributionPagination, + MonthlyUsageAttributionResponse: MonthlyUsageAttributionResponse_1.MonthlyUsageAttributionResponse, + MonthlyUsageAttributionValues: MonthlyUsageAttributionValues_1.MonthlyUsageAttributionValues, + NoteWidgetDefinition: NoteWidgetDefinition_1.NoteWidgetDefinition, + NotebookAbsoluteTime: NotebookAbsoluteTime_1.NotebookAbsoluteTime, + NotebookAuthor: NotebookAuthor_1.NotebookAuthor, + NotebookCellCreateRequest: NotebookCellCreateRequest_1.NotebookCellCreateRequest, + NotebookCellResponse: NotebookCellResponse_1.NotebookCellResponse, + NotebookCellUpdateRequest: NotebookCellUpdateRequest_1.NotebookCellUpdateRequest, + NotebookCreateData: NotebookCreateData_1.NotebookCreateData, + NotebookCreateDataAttributes: NotebookCreateDataAttributes_1.NotebookCreateDataAttributes, + NotebookCreateRequest: NotebookCreateRequest_1.NotebookCreateRequest, + NotebookDistributionCellAttributes: NotebookDistributionCellAttributes_1.NotebookDistributionCellAttributes, + NotebookHeatMapCellAttributes: NotebookHeatMapCellAttributes_1.NotebookHeatMapCellAttributes, + NotebookLogStreamCellAttributes: NotebookLogStreamCellAttributes_1.NotebookLogStreamCellAttributes, + NotebookMarkdownCellAttributes: NotebookMarkdownCellAttributes_1.NotebookMarkdownCellAttributes, + NotebookMarkdownCellDefinition: NotebookMarkdownCellDefinition_1.NotebookMarkdownCellDefinition, + NotebookMetadata: NotebookMetadata_1.NotebookMetadata, + NotebookRelativeTime: NotebookRelativeTime_1.NotebookRelativeTime, + NotebookResponse: NotebookResponse_1.NotebookResponse, + NotebookResponseData: NotebookResponseData_1.NotebookResponseData, + NotebookResponseDataAttributes: NotebookResponseDataAttributes_1.NotebookResponseDataAttributes, + NotebookSplitBy: NotebookSplitBy_1.NotebookSplitBy, + NotebookTimeseriesCellAttributes: NotebookTimeseriesCellAttributes_1.NotebookTimeseriesCellAttributes, + NotebookToplistCellAttributes: NotebookToplistCellAttributes_1.NotebookToplistCellAttributes, + NotebookUpdateData: NotebookUpdateData_1.NotebookUpdateData, + NotebookUpdateDataAttributes: NotebookUpdateDataAttributes_1.NotebookUpdateDataAttributes, + NotebookUpdateRequest: NotebookUpdateRequest_1.NotebookUpdateRequest, + NotebooksResponse: NotebooksResponse_1.NotebooksResponse, + NotebooksResponseData: NotebooksResponseData_1.NotebooksResponseData, + NotebooksResponseDataAttributes: NotebooksResponseDataAttributes_1.NotebooksResponseDataAttributes, + NotebooksResponseMeta: NotebooksResponseMeta_1.NotebooksResponseMeta, + NotebooksResponsePage: NotebooksResponsePage_1.NotebooksResponsePage, + OrgDowngradedResponse: OrgDowngradedResponse_1.OrgDowngradedResponse, + Organization: Organization_1.Organization, + OrganizationBilling: OrganizationBilling_1.OrganizationBilling, + OrganizationCreateBody: OrganizationCreateBody_1.OrganizationCreateBody, + OrganizationCreateResponse: OrganizationCreateResponse_1.OrganizationCreateResponse, + OrganizationListResponse: OrganizationListResponse_1.OrganizationListResponse, + OrganizationResponse: OrganizationResponse_1.OrganizationResponse, + OrganizationSettings: OrganizationSettings_1.OrganizationSettings, + OrganizationSettingsSaml: OrganizationSettingsSaml_1.OrganizationSettingsSaml, + OrganizationSettingsSamlAutocreateUsersDomains: OrganizationSettingsSamlAutocreateUsersDomains_1.OrganizationSettingsSamlAutocreateUsersDomains, + OrganizationSettingsSamlIdpInitiatedLogin: OrganizationSettingsSamlIdpInitiatedLogin_1.OrganizationSettingsSamlIdpInitiatedLogin, + OrganizationSettingsSamlStrictMode: OrganizationSettingsSamlStrictMode_1.OrganizationSettingsSamlStrictMode, + OrganizationSubscription: OrganizationSubscription_1.OrganizationSubscription, + PagerDutyService: PagerDutyService_1.PagerDutyService, + PagerDutyServiceKey: PagerDutyServiceKey_1.PagerDutyServiceKey, + PagerDutyServiceName: PagerDutyServiceName_1.PagerDutyServiceName, + Pagination: Pagination_1.Pagination, + PowerpackTemplateVariableContents: PowerpackTemplateVariableContents_1.PowerpackTemplateVariableContents, + PowerpackTemplateVariables: PowerpackTemplateVariables_1.PowerpackTemplateVariables, + PowerpackWidgetDefinition: PowerpackWidgetDefinition_1.PowerpackWidgetDefinition, + ProcessQueryDefinition: ProcessQueryDefinition_1.ProcessQueryDefinition, + QueryValueWidgetDefinition: QueryValueWidgetDefinition_1.QueryValueWidgetDefinition, + QueryValueWidgetRequest: QueryValueWidgetRequest_1.QueryValueWidgetRequest, + ReferenceTableLogsLookupProcessor: ReferenceTableLogsLookupProcessor_1.ReferenceTableLogsLookupProcessor, + ResponseMetaAttributes: ResponseMetaAttributes_1.ResponseMetaAttributes, + RunWorkflowWidgetDefinition: RunWorkflowWidgetDefinition_1.RunWorkflowWidgetDefinition, + RunWorkflowWidgetInput: RunWorkflowWidgetInput_1.RunWorkflowWidgetInput, + SLOBulkDeleteError: SLOBulkDeleteError_1.SLOBulkDeleteError, + SLOBulkDeleteResponse: SLOBulkDeleteResponse_1.SLOBulkDeleteResponse, + SLOBulkDeleteResponseData: SLOBulkDeleteResponseData_1.SLOBulkDeleteResponseData, + SLOCorrection: SLOCorrection_1.SLOCorrection, + SLOCorrectionCreateData: SLOCorrectionCreateData_1.SLOCorrectionCreateData, + SLOCorrectionCreateRequest: SLOCorrectionCreateRequest_1.SLOCorrectionCreateRequest, + SLOCorrectionCreateRequestAttributes: SLOCorrectionCreateRequestAttributes_1.SLOCorrectionCreateRequestAttributes, + SLOCorrectionListResponse: SLOCorrectionListResponse_1.SLOCorrectionListResponse, + SLOCorrectionResponse: SLOCorrectionResponse_1.SLOCorrectionResponse, + SLOCorrectionResponseAttributes: SLOCorrectionResponseAttributes_1.SLOCorrectionResponseAttributes, + SLOCorrectionResponseAttributesModifier: SLOCorrectionResponseAttributesModifier_1.SLOCorrectionResponseAttributesModifier, + SLOCorrectionUpdateData: SLOCorrectionUpdateData_1.SLOCorrectionUpdateData, + SLOCorrectionUpdateRequest: SLOCorrectionUpdateRequest_1.SLOCorrectionUpdateRequest, + SLOCorrectionUpdateRequestAttributes: SLOCorrectionUpdateRequestAttributes_1.SLOCorrectionUpdateRequestAttributes, + SLOCreator: SLOCreator_1.SLOCreator, + SLODeleteResponse: SLODeleteResponse_1.SLODeleteResponse, + SLOFormula: SLOFormula_1.SLOFormula, + SLOHistoryMetrics: SLOHistoryMetrics_1.SLOHistoryMetrics, + SLOHistoryMetricsSeries: SLOHistoryMetricsSeries_1.SLOHistoryMetricsSeries, + SLOHistoryMetricsSeriesMetadata: SLOHistoryMetricsSeriesMetadata_1.SLOHistoryMetricsSeriesMetadata, + SLOHistoryMetricsSeriesMetadataUnit: SLOHistoryMetricsSeriesMetadataUnit_1.SLOHistoryMetricsSeriesMetadataUnit, + SLOHistoryMonitor: SLOHistoryMonitor_1.SLOHistoryMonitor, + SLOHistoryResponse: SLOHistoryResponse_1.SLOHistoryResponse, + SLOHistoryResponseData: SLOHistoryResponseData_1.SLOHistoryResponseData, + SLOHistoryResponseError: SLOHistoryResponseError_1.SLOHistoryResponseError, + SLOHistoryResponseErrorWithType: SLOHistoryResponseErrorWithType_1.SLOHistoryResponseErrorWithType, + SLOHistorySLIData: SLOHistorySLIData_1.SLOHistorySLIData, + SLOListResponse: SLOListResponse_1.SLOListResponse, + SLOListResponseMetadata: SLOListResponseMetadata_1.SLOListResponseMetadata, + SLOListResponseMetadataPage: SLOListResponseMetadataPage_1.SLOListResponseMetadataPage, + SLOListWidgetDefinition: SLOListWidgetDefinition_1.SLOListWidgetDefinition, + SLOListWidgetQuery: SLOListWidgetQuery_1.SLOListWidgetQuery, + SLOListWidgetRequest: SLOListWidgetRequest_1.SLOListWidgetRequest, + SLOOverallStatuses: SLOOverallStatuses_1.SLOOverallStatuses, + SLORawErrorBudgetRemaining: SLORawErrorBudgetRemaining_1.SLORawErrorBudgetRemaining, + SLOResponse: SLOResponse_1.SLOResponse, + SLOResponseData: SLOResponseData_1.SLOResponseData, + SLOStatus: SLOStatus_1.SLOStatus, + SLOThreshold: SLOThreshold_1.SLOThreshold, + SLOTimeSliceCondition: SLOTimeSliceCondition_1.SLOTimeSliceCondition, + SLOTimeSliceQuery: SLOTimeSliceQuery_1.SLOTimeSliceQuery, + SLOTimeSliceSpec: SLOTimeSliceSpec_1.SLOTimeSliceSpec, + SLOWidgetDefinition: SLOWidgetDefinition_1.SLOWidgetDefinition, + ScatterPlotRequest: ScatterPlotRequest_1.ScatterPlotRequest, + ScatterPlotWidgetDefinition: ScatterPlotWidgetDefinition_1.ScatterPlotWidgetDefinition, + ScatterPlotWidgetDefinitionRequests: ScatterPlotWidgetDefinitionRequests_1.ScatterPlotWidgetDefinitionRequests, + ScatterplotTableRequest: ScatterplotTableRequest_1.ScatterplotTableRequest, + ScatterplotWidgetFormula: ScatterplotWidgetFormula_1.ScatterplotWidgetFormula, + SearchSLOQuery: SearchSLOQuery_1.SearchSLOQuery, + SearchSLOResponse: SearchSLOResponse_1.SearchSLOResponse, + SearchSLOResponseData: SearchSLOResponseData_1.SearchSLOResponseData, + SearchSLOResponseDataAttributes: SearchSLOResponseDataAttributes_1.SearchSLOResponseDataAttributes, + SearchSLOResponseDataAttributesFacets: SearchSLOResponseDataAttributesFacets_1.SearchSLOResponseDataAttributesFacets, + SearchSLOResponseDataAttributesFacetsObjectInt: SearchSLOResponseDataAttributesFacetsObjectInt_1.SearchSLOResponseDataAttributesFacetsObjectInt, + SearchSLOResponseDataAttributesFacetsObjectString: SearchSLOResponseDataAttributesFacetsObjectString_1.SearchSLOResponseDataAttributesFacetsObjectString, + SearchSLOResponseLinks: SearchSLOResponseLinks_1.SearchSLOResponseLinks, + SearchSLOResponseMeta: SearchSLOResponseMeta_1.SearchSLOResponseMeta, + SearchSLOResponseMetaPage: SearchSLOResponseMetaPage_1.SearchSLOResponseMetaPage, + SearchSLOThreshold: SearchSLOThreshold_1.SearchSLOThreshold, + SearchServiceLevelObjective: SearchServiceLevelObjective_1.SearchServiceLevelObjective, + SearchServiceLevelObjectiveAttributes: SearchServiceLevelObjectiveAttributes_1.SearchServiceLevelObjectiveAttributes, + SearchServiceLevelObjectiveData: SearchServiceLevelObjectiveData_1.SearchServiceLevelObjectiveData, + SelectableTemplateVariableItems: SelectableTemplateVariableItems_1.SelectableTemplateVariableItems, + Series: Series_1.Series, + ServiceCheck: ServiceCheck_1.ServiceCheck, + ServiceLevelObjective: ServiceLevelObjective_1.ServiceLevelObjective, + ServiceLevelObjectiveQuery: ServiceLevelObjectiveQuery_1.ServiceLevelObjectiveQuery, + ServiceLevelObjectiveRequest: ServiceLevelObjectiveRequest_1.ServiceLevelObjectiveRequest, + ServiceMapWidgetDefinition: ServiceMapWidgetDefinition_1.ServiceMapWidgetDefinition, + ServiceSummaryWidgetDefinition: ServiceSummaryWidgetDefinition_1.ServiceSummaryWidgetDefinition, + SharedDashboard: SharedDashboard_1.SharedDashboard, + SharedDashboardAuthor: SharedDashboardAuthor_1.SharedDashboardAuthor, + SharedDashboardInvites: SharedDashboardInvites_1.SharedDashboardInvites, + SharedDashboardInvitesDataObject: SharedDashboardInvitesDataObject_1.SharedDashboardInvitesDataObject, + SharedDashboardInvitesDataObjectAttributes: SharedDashboardInvitesDataObjectAttributes_1.SharedDashboardInvitesDataObjectAttributes, + SharedDashboardInvitesMeta: SharedDashboardInvitesMeta_1.SharedDashboardInvitesMeta, + SharedDashboardInvitesMetaPage: SharedDashboardInvitesMetaPage_1.SharedDashboardInvitesMetaPage, + SharedDashboardUpdateRequest: SharedDashboardUpdateRequest_1.SharedDashboardUpdateRequest, + SharedDashboardUpdateRequestGlobalTime: SharedDashboardUpdateRequestGlobalTime_1.SharedDashboardUpdateRequestGlobalTime, + SignalAssigneeUpdateRequest: SignalAssigneeUpdateRequest_1.SignalAssigneeUpdateRequest, + SignalStateUpdateRequest: SignalStateUpdateRequest_1.SignalStateUpdateRequest, + SlackIntegrationChannel: SlackIntegrationChannel_1.SlackIntegrationChannel, + SlackIntegrationChannelDisplay: SlackIntegrationChannelDisplay_1.SlackIntegrationChannelDisplay, + SplitConfig: SplitConfig_1.SplitConfig, + SplitConfigSortCompute: SplitConfigSortCompute_1.SplitConfigSortCompute, + SplitDimension: SplitDimension_1.SplitDimension, + SplitGraphWidgetDefinition: SplitGraphWidgetDefinition_1.SplitGraphWidgetDefinition, + SplitSort: SplitSort_1.SplitSort, + SplitVectorEntryItem: SplitVectorEntryItem_1.SplitVectorEntryItem, + SuccessfulSignalUpdateResponse: SuccessfulSignalUpdateResponse_1.SuccessfulSignalUpdateResponse, + SunburstWidgetDefinition: SunburstWidgetDefinition_1.SunburstWidgetDefinition, + SunburstWidgetLegendInlineAutomatic: SunburstWidgetLegendInlineAutomatic_1.SunburstWidgetLegendInlineAutomatic, + SunburstWidgetLegendTable: SunburstWidgetLegendTable_1.SunburstWidgetLegendTable, + SunburstWidgetRequest: SunburstWidgetRequest_1.SunburstWidgetRequest, + SyntheticsAPITest: SyntheticsAPITest_1.SyntheticsAPITest, + SyntheticsAPITestConfig: SyntheticsAPITestConfig_1.SyntheticsAPITestConfig, + SyntheticsAPITestResultData: SyntheticsAPITestResultData_1.SyntheticsAPITestResultData, + SyntheticsAPITestResultFull: SyntheticsAPITestResultFull_1.SyntheticsAPITestResultFull, + SyntheticsAPITestResultFullCheck: SyntheticsAPITestResultFullCheck_1.SyntheticsAPITestResultFullCheck, + SyntheticsAPITestResultShort: SyntheticsAPITestResultShort_1.SyntheticsAPITestResultShort, + SyntheticsAPITestResultShortResult: SyntheticsAPITestResultShortResult_1.SyntheticsAPITestResultShortResult, + SyntheticsAPITestStep: SyntheticsAPITestStep_1.SyntheticsAPITestStep, + SyntheticsAPIWaitStep: SyntheticsAPIWaitStep_1.SyntheticsAPIWaitStep, + SyntheticsApiTestResultFailure: SyntheticsApiTestResultFailure_1.SyntheticsApiTestResultFailure, + SyntheticsAssertionBodyHashTarget: SyntheticsAssertionBodyHashTarget_1.SyntheticsAssertionBodyHashTarget, + SyntheticsAssertionJSONPathTarget: SyntheticsAssertionJSONPathTarget_1.SyntheticsAssertionJSONPathTarget, + SyntheticsAssertionJSONPathTargetTarget: SyntheticsAssertionJSONPathTargetTarget_1.SyntheticsAssertionJSONPathTargetTarget, + SyntheticsAssertionJSONSchemaTarget: SyntheticsAssertionJSONSchemaTarget_1.SyntheticsAssertionJSONSchemaTarget, + SyntheticsAssertionJSONSchemaTargetTarget: SyntheticsAssertionJSONSchemaTargetTarget_1.SyntheticsAssertionJSONSchemaTargetTarget, + SyntheticsAssertionJavascript: SyntheticsAssertionJavascript_1.SyntheticsAssertionJavascript, + SyntheticsAssertionTarget: SyntheticsAssertionTarget_1.SyntheticsAssertionTarget, + SyntheticsAssertionXPathTarget: SyntheticsAssertionXPathTarget_1.SyntheticsAssertionXPathTarget, + SyntheticsAssertionXPathTargetTarget: SyntheticsAssertionXPathTargetTarget_1.SyntheticsAssertionXPathTargetTarget, + SyntheticsBasicAuthDigest: SyntheticsBasicAuthDigest_1.SyntheticsBasicAuthDigest, + SyntheticsBasicAuthNTLM: SyntheticsBasicAuthNTLM_1.SyntheticsBasicAuthNTLM, + SyntheticsBasicAuthOauthClient: SyntheticsBasicAuthOauthClient_1.SyntheticsBasicAuthOauthClient, + SyntheticsBasicAuthOauthROP: SyntheticsBasicAuthOauthROP_1.SyntheticsBasicAuthOauthROP, + SyntheticsBasicAuthSigv4: SyntheticsBasicAuthSigv4_1.SyntheticsBasicAuthSigv4, + SyntheticsBasicAuthWeb: SyntheticsBasicAuthWeb_1.SyntheticsBasicAuthWeb, + SyntheticsBatchDetails: SyntheticsBatchDetails_1.SyntheticsBatchDetails, + SyntheticsBatchDetailsData: SyntheticsBatchDetailsData_1.SyntheticsBatchDetailsData, + SyntheticsBatchResult: SyntheticsBatchResult_1.SyntheticsBatchResult, + SyntheticsBrowserError: SyntheticsBrowserError_1.SyntheticsBrowserError, + SyntheticsBrowserTest: SyntheticsBrowserTest_1.SyntheticsBrowserTest, + SyntheticsBrowserTestConfig: SyntheticsBrowserTestConfig_1.SyntheticsBrowserTestConfig, + SyntheticsBrowserTestResultData: SyntheticsBrowserTestResultData_1.SyntheticsBrowserTestResultData, + SyntheticsBrowserTestResultFailure: SyntheticsBrowserTestResultFailure_1.SyntheticsBrowserTestResultFailure, + SyntheticsBrowserTestResultFull: SyntheticsBrowserTestResultFull_1.SyntheticsBrowserTestResultFull, + SyntheticsBrowserTestResultFullCheck: SyntheticsBrowserTestResultFullCheck_1.SyntheticsBrowserTestResultFullCheck, + SyntheticsBrowserTestResultShort: SyntheticsBrowserTestResultShort_1.SyntheticsBrowserTestResultShort, + SyntheticsBrowserTestResultShortResult: SyntheticsBrowserTestResultShortResult_1.SyntheticsBrowserTestResultShortResult, + SyntheticsBrowserTestRumSettings: SyntheticsBrowserTestRumSettings_1.SyntheticsBrowserTestRumSettings, + SyntheticsBrowserVariable: SyntheticsBrowserVariable_1.SyntheticsBrowserVariable, + SyntheticsCIBatchMetadata: SyntheticsCIBatchMetadata_1.SyntheticsCIBatchMetadata, + SyntheticsCIBatchMetadataCI: SyntheticsCIBatchMetadataCI_1.SyntheticsCIBatchMetadataCI, + SyntheticsCIBatchMetadataGit: SyntheticsCIBatchMetadataGit_1.SyntheticsCIBatchMetadataGit, + SyntheticsCIBatchMetadataPipeline: SyntheticsCIBatchMetadataPipeline_1.SyntheticsCIBatchMetadataPipeline, + SyntheticsCIBatchMetadataProvider: SyntheticsCIBatchMetadataProvider_1.SyntheticsCIBatchMetadataProvider, + SyntheticsCITest: SyntheticsCITest_1.SyntheticsCITest, + SyntheticsCITestBody: SyntheticsCITestBody_1.SyntheticsCITestBody, + SyntheticsConfigVariable: SyntheticsConfigVariable_1.SyntheticsConfigVariable, + SyntheticsCoreWebVitals: SyntheticsCoreWebVitals_1.SyntheticsCoreWebVitals, + SyntheticsDeleteTestsPayload: SyntheticsDeleteTestsPayload_1.SyntheticsDeleteTestsPayload, + SyntheticsDeleteTestsResponse: SyntheticsDeleteTestsResponse_1.SyntheticsDeleteTestsResponse, + SyntheticsDeletedTest: SyntheticsDeletedTest_1.SyntheticsDeletedTest, + SyntheticsDevice: SyntheticsDevice_1.SyntheticsDevice, + SyntheticsFetchUptimesPayload: SyntheticsFetchUptimesPayload_1.SyntheticsFetchUptimesPayload, + SyntheticsGetAPITestLatestResultsResponse: SyntheticsGetAPITestLatestResultsResponse_1.SyntheticsGetAPITestLatestResultsResponse, + SyntheticsGetBrowserTestLatestResultsResponse: SyntheticsGetBrowserTestLatestResultsResponse_1.SyntheticsGetBrowserTestLatestResultsResponse, + SyntheticsGlobalVariable: SyntheticsGlobalVariable_1.SyntheticsGlobalVariable, + SyntheticsGlobalVariableAttributes: SyntheticsGlobalVariableAttributes_1.SyntheticsGlobalVariableAttributes, + SyntheticsGlobalVariableOptions: SyntheticsGlobalVariableOptions_1.SyntheticsGlobalVariableOptions, + SyntheticsGlobalVariableParseTestOptions: SyntheticsGlobalVariableParseTestOptions_1.SyntheticsGlobalVariableParseTestOptions, + SyntheticsGlobalVariableRequest: SyntheticsGlobalVariableRequest_1.SyntheticsGlobalVariableRequest, + SyntheticsGlobalVariableTOTPParameters: SyntheticsGlobalVariableTOTPParameters_1.SyntheticsGlobalVariableTOTPParameters, + SyntheticsGlobalVariableValue: SyntheticsGlobalVariableValue_1.SyntheticsGlobalVariableValue, + SyntheticsListGlobalVariablesResponse: SyntheticsListGlobalVariablesResponse_1.SyntheticsListGlobalVariablesResponse, + SyntheticsListTestsResponse: SyntheticsListTestsResponse_1.SyntheticsListTestsResponse, + SyntheticsLocation: SyntheticsLocation_1.SyntheticsLocation, + SyntheticsLocations: SyntheticsLocations_1.SyntheticsLocations, + SyntheticsMobileStep: SyntheticsMobileStep_1.SyntheticsMobileStep, + SyntheticsMobileStepParams: SyntheticsMobileStepParams_1.SyntheticsMobileStepParams, + SyntheticsMobileStepParamsElement: SyntheticsMobileStepParamsElement_1.SyntheticsMobileStepParamsElement, + SyntheticsMobileStepParamsElementRelativePosition: SyntheticsMobileStepParamsElementRelativePosition_1.SyntheticsMobileStepParamsElementRelativePosition, + SyntheticsMobileStepParamsElementUserLocator: SyntheticsMobileStepParamsElementUserLocator_1.SyntheticsMobileStepParamsElementUserLocator, + SyntheticsMobileStepParamsElementUserLocatorValuesItems: SyntheticsMobileStepParamsElementUserLocatorValuesItems_1.SyntheticsMobileStepParamsElementUserLocatorValuesItems, + SyntheticsMobileStepParamsPositionsItems: SyntheticsMobileStepParamsPositionsItems_1.SyntheticsMobileStepParamsPositionsItems, + SyntheticsMobileStepParamsVariable: SyntheticsMobileStepParamsVariable_1.SyntheticsMobileStepParamsVariable, + SyntheticsMobileTest: SyntheticsMobileTest_1.SyntheticsMobileTest, + SyntheticsMobileTestConfig: SyntheticsMobileTestConfig_1.SyntheticsMobileTestConfig, + SyntheticsMobileTestOptions: SyntheticsMobileTestOptions_1.SyntheticsMobileTestOptions, + SyntheticsMobileTestsMobileApplication: SyntheticsMobileTestsMobileApplication_1.SyntheticsMobileTestsMobileApplication, + SyntheticsParsingOptions: SyntheticsParsingOptions_1.SyntheticsParsingOptions, + SyntheticsPatchTestBody: SyntheticsPatchTestBody_1.SyntheticsPatchTestBody, + SyntheticsPatchTestOperation: SyntheticsPatchTestOperation_1.SyntheticsPatchTestOperation, + SyntheticsPrivateLocation: SyntheticsPrivateLocation_1.SyntheticsPrivateLocation, + SyntheticsPrivateLocationCreationResponse: SyntheticsPrivateLocationCreationResponse_1.SyntheticsPrivateLocationCreationResponse, + SyntheticsPrivateLocationCreationResponseResultEncryption: SyntheticsPrivateLocationCreationResponseResultEncryption_1.SyntheticsPrivateLocationCreationResponseResultEncryption, + SyntheticsPrivateLocationMetadata: SyntheticsPrivateLocationMetadata_1.SyntheticsPrivateLocationMetadata, + SyntheticsPrivateLocationSecrets: SyntheticsPrivateLocationSecrets_1.SyntheticsPrivateLocationSecrets, + SyntheticsPrivateLocationSecretsAuthentication: SyntheticsPrivateLocationSecretsAuthentication_1.SyntheticsPrivateLocationSecretsAuthentication, + SyntheticsPrivateLocationSecretsConfigDecryption: SyntheticsPrivateLocationSecretsConfigDecryption_1.SyntheticsPrivateLocationSecretsConfigDecryption, + SyntheticsSSLCertificate: SyntheticsSSLCertificate_1.SyntheticsSSLCertificate, + SyntheticsSSLCertificateIssuer: SyntheticsSSLCertificateIssuer_1.SyntheticsSSLCertificateIssuer, + SyntheticsSSLCertificateSubject: SyntheticsSSLCertificateSubject_1.SyntheticsSSLCertificateSubject, + SyntheticsStep: SyntheticsStep_1.SyntheticsStep, + SyntheticsStepDetail: SyntheticsStepDetail_1.SyntheticsStepDetail, + SyntheticsStepDetailWarning: SyntheticsStepDetailWarning_1.SyntheticsStepDetailWarning, + SyntheticsTestCiOptions: SyntheticsTestCiOptions_1.SyntheticsTestCiOptions, + SyntheticsTestConfig: SyntheticsTestConfig_1.SyntheticsTestConfig, + SyntheticsTestDetails: SyntheticsTestDetails_1.SyntheticsTestDetails, + SyntheticsTestOptions: SyntheticsTestOptions_1.SyntheticsTestOptions, + SyntheticsTestOptionsMonitorOptions: SyntheticsTestOptionsMonitorOptions_1.SyntheticsTestOptionsMonitorOptions, + SyntheticsTestOptionsRetry: SyntheticsTestOptionsRetry_1.SyntheticsTestOptionsRetry, + SyntheticsTestOptionsScheduling: SyntheticsTestOptionsScheduling_1.SyntheticsTestOptionsScheduling, + SyntheticsTestOptionsSchedulingTimeframe: SyntheticsTestOptionsSchedulingTimeframe_1.SyntheticsTestOptionsSchedulingTimeframe, + SyntheticsTestRequest: SyntheticsTestRequest_1.SyntheticsTestRequest, + SyntheticsTestRequestBodyFile: SyntheticsTestRequestBodyFile_1.SyntheticsTestRequestBodyFile, + SyntheticsTestRequestCertificate: SyntheticsTestRequestCertificate_1.SyntheticsTestRequestCertificate, + SyntheticsTestRequestCertificateItem: SyntheticsTestRequestCertificateItem_1.SyntheticsTestRequestCertificateItem, + SyntheticsTestRequestProxy: SyntheticsTestRequestProxy_1.SyntheticsTestRequestProxy, + SyntheticsTestRestrictionPolicyBinding: SyntheticsTestRestrictionPolicyBinding_1.SyntheticsTestRestrictionPolicyBinding, + SyntheticsTestUptime: SyntheticsTestUptime_1.SyntheticsTestUptime, + SyntheticsTiming: SyntheticsTiming_1.SyntheticsTiming, + SyntheticsTriggerBody: SyntheticsTriggerBody_1.SyntheticsTriggerBody, + SyntheticsTriggerCITestLocation: SyntheticsTriggerCITestLocation_1.SyntheticsTriggerCITestLocation, + SyntheticsTriggerCITestRunResult: SyntheticsTriggerCITestRunResult_1.SyntheticsTriggerCITestRunResult, + SyntheticsTriggerCITestsResponse: SyntheticsTriggerCITestsResponse_1.SyntheticsTriggerCITestsResponse, + SyntheticsTriggerTest: SyntheticsTriggerTest_1.SyntheticsTriggerTest, + SyntheticsUpdateTestPauseStatusPayload: SyntheticsUpdateTestPauseStatusPayload_1.SyntheticsUpdateTestPauseStatusPayload, + SyntheticsUptime: SyntheticsUptime_1.SyntheticsUptime, + SyntheticsVariableParser: SyntheticsVariableParser_1.SyntheticsVariableParser, + TableWidgetDefinition: TableWidgetDefinition_1.TableWidgetDefinition, + TableWidgetRequest: TableWidgetRequest_1.TableWidgetRequest, + TableWidgetTextFormatMatch: TableWidgetTextFormatMatch_1.TableWidgetTextFormatMatch, + TableWidgetTextFormatReplaceAll: TableWidgetTextFormatReplaceAll_1.TableWidgetTextFormatReplaceAll, + TableWidgetTextFormatReplaceSubstring: TableWidgetTextFormatReplaceSubstring_1.TableWidgetTextFormatReplaceSubstring, + TableWidgetTextFormatRule: TableWidgetTextFormatRule_1.TableWidgetTextFormatRule, + TagToHosts: TagToHosts_1.TagToHosts, + TimeseriesBackground: TimeseriesBackground_1.TimeseriesBackground, + TimeseriesWidgetDefinition: TimeseriesWidgetDefinition_1.TimeseriesWidgetDefinition, + TimeseriesWidgetExpressionAlias: TimeseriesWidgetExpressionAlias_1.TimeseriesWidgetExpressionAlias, + TimeseriesWidgetRequest: TimeseriesWidgetRequest_1.TimeseriesWidgetRequest, + ToplistWidgetDefinition: ToplistWidgetDefinition_1.ToplistWidgetDefinition, + ToplistWidgetFlat: ToplistWidgetFlat_1.ToplistWidgetFlat, + ToplistWidgetRequest: ToplistWidgetRequest_1.ToplistWidgetRequest, + ToplistWidgetStacked: ToplistWidgetStacked_1.ToplistWidgetStacked, + ToplistWidgetStyle: ToplistWidgetStyle_1.ToplistWidgetStyle, + TopologyMapWidgetDefinition: TopologyMapWidgetDefinition_1.TopologyMapWidgetDefinition, + TopologyQuery: TopologyQuery_1.TopologyQuery, + TopologyRequest: TopologyRequest_1.TopologyRequest, + TreeMapWidgetDefinition: TreeMapWidgetDefinition_1.TreeMapWidgetDefinition, + TreeMapWidgetRequest: TreeMapWidgetRequest_1.TreeMapWidgetRequest, + UsageAnalyzedLogsHour: UsageAnalyzedLogsHour_1.UsageAnalyzedLogsHour, + UsageAnalyzedLogsResponse: UsageAnalyzedLogsResponse_1.UsageAnalyzedLogsResponse, + UsageAttributionAggregatesBody: UsageAttributionAggregatesBody_1.UsageAttributionAggregatesBody, + UsageAuditLogsHour: UsageAuditLogsHour_1.UsageAuditLogsHour, + UsageAuditLogsResponse: UsageAuditLogsResponse_1.UsageAuditLogsResponse, + UsageBillableSummaryBody: UsageBillableSummaryBody_1.UsageBillableSummaryBody, + UsageBillableSummaryHour: UsageBillableSummaryHour_1.UsageBillableSummaryHour, + UsageBillableSummaryKeys: UsageBillableSummaryKeys_1.UsageBillableSummaryKeys, + UsageBillableSummaryResponse: UsageBillableSummaryResponse_1.UsageBillableSummaryResponse, + UsageCIVisibilityHour: UsageCIVisibilityHour_1.UsageCIVisibilityHour, + UsageCIVisibilityResponse: UsageCIVisibilityResponse_1.UsageCIVisibilityResponse, + UsageCWSHour: UsageCWSHour_1.UsageCWSHour, + UsageCWSResponse: UsageCWSResponse_1.UsageCWSResponse, + UsageCloudSecurityPostureManagementHour: UsageCloudSecurityPostureManagementHour_1.UsageCloudSecurityPostureManagementHour, + UsageCloudSecurityPostureManagementResponse: UsageCloudSecurityPostureManagementResponse_1.UsageCloudSecurityPostureManagementResponse, + UsageCustomReportsAttributes: UsageCustomReportsAttributes_1.UsageCustomReportsAttributes, + UsageCustomReportsData: UsageCustomReportsData_1.UsageCustomReportsData, + UsageCustomReportsMeta: UsageCustomReportsMeta_1.UsageCustomReportsMeta, + UsageCustomReportsPage: UsageCustomReportsPage_1.UsageCustomReportsPage, + UsageCustomReportsResponse: UsageCustomReportsResponse_1.UsageCustomReportsResponse, + UsageDBMHour: UsageDBMHour_1.UsageDBMHour, + UsageDBMResponse: UsageDBMResponse_1.UsageDBMResponse, + UsageFargateHour: UsageFargateHour_1.UsageFargateHour, + UsageFargateResponse: UsageFargateResponse_1.UsageFargateResponse, + UsageHostHour: UsageHostHour_1.UsageHostHour, + UsageHostsResponse: UsageHostsResponse_1.UsageHostsResponse, + UsageIncidentManagementHour: UsageIncidentManagementHour_1.UsageIncidentManagementHour, + UsageIncidentManagementResponse: UsageIncidentManagementResponse_1.UsageIncidentManagementResponse, + UsageIndexedSpansHour: UsageIndexedSpansHour_1.UsageIndexedSpansHour, + UsageIndexedSpansResponse: UsageIndexedSpansResponse_1.UsageIndexedSpansResponse, + UsageIngestedSpansHour: UsageIngestedSpansHour_1.UsageIngestedSpansHour, + UsageIngestedSpansResponse: UsageIngestedSpansResponse_1.UsageIngestedSpansResponse, + UsageIoTHour: UsageIoTHour_1.UsageIoTHour, + UsageIoTResponse: UsageIoTResponse_1.UsageIoTResponse, + UsageLambdaHour: UsageLambdaHour_1.UsageLambdaHour, + UsageLambdaResponse: UsageLambdaResponse_1.UsageLambdaResponse, + UsageLogsByIndexHour: UsageLogsByIndexHour_1.UsageLogsByIndexHour, + UsageLogsByIndexResponse: UsageLogsByIndexResponse_1.UsageLogsByIndexResponse, + UsageLogsByRetentionHour: UsageLogsByRetentionHour_1.UsageLogsByRetentionHour, + UsageLogsByRetentionResponse: UsageLogsByRetentionResponse_1.UsageLogsByRetentionResponse, + UsageLogsHour: UsageLogsHour_1.UsageLogsHour, + UsageLogsResponse: UsageLogsResponse_1.UsageLogsResponse, + UsageNetworkFlowsHour: UsageNetworkFlowsHour_1.UsageNetworkFlowsHour, + UsageNetworkFlowsResponse: UsageNetworkFlowsResponse_1.UsageNetworkFlowsResponse, + UsageNetworkHostsHour: UsageNetworkHostsHour_1.UsageNetworkHostsHour, + UsageNetworkHostsResponse: UsageNetworkHostsResponse_1.UsageNetworkHostsResponse, + UsageOnlineArchiveHour: UsageOnlineArchiveHour_1.UsageOnlineArchiveHour, + UsageOnlineArchiveResponse: UsageOnlineArchiveResponse_1.UsageOnlineArchiveResponse, + UsageProfilingHour: UsageProfilingHour_1.UsageProfilingHour, + UsageProfilingResponse: UsageProfilingResponse_1.UsageProfilingResponse, + UsageRumSessionsHour: UsageRumSessionsHour_1.UsageRumSessionsHour, + UsageRumSessionsResponse: UsageRumSessionsResponse_1.UsageRumSessionsResponse, + UsageRumUnitsHour: UsageRumUnitsHour_1.UsageRumUnitsHour, + UsageRumUnitsResponse: UsageRumUnitsResponse_1.UsageRumUnitsResponse, + UsageSDSHour: UsageSDSHour_1.UsageSDSHour, + UsageSDSResponse: UsageSDSResponse_1.UsageSDSResponse, + UsageSNMPHour: UsageSNMPHour_1.UsageSNMPHour, + UsageSNMPResponse: UsageSNMPResponse_1.UsageSNMPResponse, + UsageSpecifiedCustomReportsAttributes: UsageSpecifiedCustomReportsAttributes_1.UsageSpecifiedCustomReportsAttributes, + UsageSpecifiedCustomReportsData: UsageSpecifiedCustomReportsData_1.UsageSpecifiedCustomReportsData, + UsageSpecifiedCustomReportsMeta: UsageSpecifiedCustomReportsMeta_1.UsageSpecifiedCustomReportsMeta, + UsageSpecifiedCustomReportsPage: UsageSpecifiedCustomReportsPage_1.UsageSpecifiedCustomReportsPage, + UsageSpecifiedCustomReportsResponse: UsageSpecifiedCustomReportsResponse_1.UsageSpecifiedCustomReportsResponse, + UsageSummaryDate: UsageSummaryDate_1.UsageSummaryDate, + UsageSummaryDateOrg: UsageSummaryDateOrg_1.UsageSummaryDateOrg, + UsageSummaryResponse: UsageSummaryResponse_1.UsageSummaryResponse, + UsageSyntheticsAPIHour: UsageSyntheticsAPIHour_1.UsageSyntheticsAPIHour, + UsageSyntheticsAPIResponse: UsageSyntheticsAPIResponse_1.UsageSyntheticsAPIResponse, + UsageSyntheticsBrowserHour: UsageSyntheticsBrowserHour_1.UsageSyntheticsBrowserHour, + UsageSyntheticsBrowserResponse: UsageSyntheticsBrowserResponse_1.UsageSyntheticsBrowserResponse, + UsageSyntheticsHour: UsageSyntheticsHour_1.UsageSyntheticsHour, + UsageSyntheticsResponse: UsageSyntheticsResponse_1.UsageSyntheticsResponse, + UsageTimeseriesHour: UsageTimeseriesHour_1.UsageTimeseriesHour, + UsageTimeseriesResponse: UsageTimeseriesResponse_1.UsageTimeseriesResponse, + UsageTopAvgMetricsHour: UsageTopAvgMetricsHour_1.UsageTopAvgMetricsHour, + UsageTopAvgMetricsMetadata: UsageTopAvgMetricsMetadata_1.UsageTopAvgMetricsMetadata, + UsageTopAvgMetricsPagination: UsageTopAvgMetricsPagination_1.UsageTopAvgMetricsPagination, + UsageTopAvgMetricsResponse: UsageTopAvgMetricsResponse_1.UsageTopAvgMetricsResponse, + User: User_1.User, + UserDisableResponse: UserDisableResponse_1.UserDisableResponse, + UserListResponse: UserListResponse_1.UserListResponse, + UserResponse: UserResponse_1.UserResponse, + WebhooksIntegration: WebhooksIntegration_1.WebhooksIntegration, + WebhooksIntegrationCustomVariable: WebhooksIntegrationCustomVariable_1.WebhooksIntegrationCustomVariable, + WebhooksIntegrationCustomVariableResponse: WebhooksIntegrationCustomVariableResponse_1.WebhooksIntegrationCustomVariableResponse, + WebhooksIntegrationCustomVariableUpdateRequest: WebhooksIntegrationCustomVariableUpdateRequest_1.WebhooksIntegrationCustomVariableUpdateRequest, + WebhooksIntegrationUpdateRequest: WebhooksIntegrationUpdateRequest_1.WebhooksIntegrationUpdateRequest, + Widget: Widget_1.Widget, + WidgetAxis: WidgetAxis_1.WidgetAxis, + WidgetConditionalFormat: WidgetConditionalFormat_1.WidgetConditionalFormat, + WidgetCustomLink: WidgetCustomLink_1.WidgetCustomLink, + WidgetEvent: WidgetEvent_1.WidgetEvent, + WidgetFieldSort: WidgetFieldSort_1.WidgetFieldSort, + WidgetFormula: WidgetFormula_1.WidgetFormula, + WidgetFormulaLimit: WidgetFormulaLimit_1.WidgetFormulaLimit, + WidgetFormulaSort: WidgetFormulaSort_1.WidgetFormulaSort, + WidgetFormulaStyle: WidgetFormulaStyle_1.WidgetFormulaStyle, + WidgetGroupSort: WidgetGroupSort_1.WidgetGroupSort, + WidgetLayout: WidgetLayout_1.WidgetLayout, + WidgetLegacyLiveSpan: WidgetLegacyLiveSpan_1.WidgetLegacyLiveSpan, + WidgetMarker: WidgetMarker_1.WidgetMarker, + WidgetNewFixedSpan: WidgetNewFixedSpan_1.WidgetNewFixedSpan, + WidgetNewLiveSpan: WidgetNewLiveSpan_1.WidgetNewLiveSpan, + WidgetRequestStyle: WidgetRequestStyle_1.WidgetRequestStyle, + WidgetSortBy: WidgetSortBy_1.WidgetSortBy, + WidgetStyle: WidgetStyle_1.WidgetStyle, +}; +const oneOfMap = { + DistributionPointItem: ["number", "Array"], + DistributionWidgetHistogramRequestQuery: [ + "FormulaAndFunctionMetricQueryDefinition", + "FormulaAndFunctionEventQueryDefinition", + "FormulaAndFunctionApmResourceStatsQueryDefinition", + ], + FormulaAndFunctionQueryDefinition: [ + "FormulaAndFunctionMetricQueryDefinition", + "FormulaAndFunctionEventQueryDefinition", + "FormulaAndFunctionProcessQueryDefinition", + "FormulaAndFunctionApmDependencyStatsQueryDefinition", + "FormulaAndFunctionApmResourceStatsQueryDefinition", + "FormulaAndFunctionSLOQueryDefinition", + "FormulaAndFunctionCloudCostQueryDefinition", + ], + LogsProcessor: [ + "LogsGrokParser", + "LogsDateRemapper", + "LogsStatusRemapper", + "LogsServiceRemapper", + "LogsMessageRemapper", + "LogsAttributeRemapper", + "LogsURLParser", + "LogsUserAgentParser", + "LogsCategoryProcessor", + "LogsArithmeticProcessor", + "LogsStringBuilderProcessor", + "LogsPipelineProcessor", + "LogsGeoIPParser", + "LogsLookupProcessor", + "ReferenceTableLogsLookupProcessor", + "LogsTraceRemapper", + ], + MonitorFormulaAndFunctionQueryDefinition: [ + "MonitorFormulaAndFunctionEventQueryDefinition", + ], + NotebookCellCreateRequestAttributes: [ + "NotebookMarkdownCellAttributes", + "NotebookTimeseriesCellAttributes", + "NotebookToplistCellAttributes", + "NotebookHeatMapCellAttributes", + "NotebookDistributionCellAttributes", + "NotebookLogStreamCellAttributes", + ], + NotebookCellResponseAttributes: [ + "NotebookMarkdownCellAttributes", + "NotebookTimeseriesCellAttributes", + "NotebookToplistCellAttributes", + "NotebookHeatMapCellAttributes", + "NotebookDistributionCellAttributes", + "NotebookLogStreamCellAttributes", + ], + NotebookCellTime: ["NotebookRelativeTime", "NotebookAbsoluteTime"], + NotebookCellUpdateRequestAttributes: [ + "NotebookMarkdownCellAttributes", + "NotebookTimeseriesCellAttributes", + "NotebookToplistCellAttributes", + "NotebookHeatMapCellAttributes", + "NotebookDistributionCellAttributes", + "NotebookLogStreamCellAttributes", + ], + NotebookGlobalTime: ["NotebookRelativeTime", "NotebookAbsoluteTime"], + NotebookUpdateCell: [ + "NotebookCellCreateRequest", + "NotebookCellUpdateRequest", + ], + SLODataSourceQueryDefinition: ["FormulaAndFunctionMetricQueryDefinition"], + SLOSliSpec: ["SLOTimeSliceSpec"], + SharedDashboardInvitesData: [ + "SharedDashboardInvitesDataObject", + "Array", + ], + SplitGraphSourceWidgetDefinition: [ + "ChangeWidgetDefinition", + "GeomapWidgetDefinition", + "QueryValueWidgetDefinition", + "ScatterPlotWidgetDefinition", + "SunburstWidgetDefinition", + "TableWidgetDefinition", + "TimeseriesWidgetDefinition", + "ToplistWidgetDefinition", + "TreeMapWidgetDefinition", + ], + SunburstWidgetLegend: [ + "SunburstWidgetLegendTable", + "SunburstWidgetLegendInlineAutomatic", + ], + SyntheticsAPIStep: ["SyntheticsAPITestStep", "SyntheticsAPIWaitStep"], + SyntheticsAssertion: [ + "SyntheticsAssertionTarget", + "SyntheticsAssertionBodyHashTarget", + "SyntheticsAssertionJSONPathTarget", + "SyntheticsAssertionJSONSchemaTarget", + "SyntheticsAssertionXPathTarget", + "SyntheticsAssertionJavascript", + ], + SyntheticsBasicAuth: [ + "SyntheticsBasicAuthWeb", + "SyntheticsBasicAuthSigv4", + "SyntheticsBasicAuthNTLM", + "SyntheticsBasicAuthDigest", + "SyntheticsBasicAuthOauthClient", + "SyntheticsBasicAuthOauthROP", + ], + SyntheticsMobileStepParamsValue: ["string", "number"], + SyntheticsTestRequestPort: ["number", "string"], + TableWidgetTextFormatReplace: [ + "TableWidgetTextFormatReplaceAll", + "TableWidgetTextFormatReplaceSubstring", + ], + ToplistWidgetDisplay: ["ToplistWidgetStacked", "ToplistWidgetFlat"], + WidgetDefinition: [ + "AlertGraphWidgetDefinition", + "AlertValueWidgetDefinition", + "ChangeWidgetDefinition", + "CheckStatusWidgetDefinition", + "DistributionWidgetDefinition", + "EventStreamWidgetDefinition", + "EventTimelineWidgetDefinition", + "FreeTextWidgetDefinition", + "FunnelWidgetDefinition", + "GeomapWidgetDefinition", + "GroupWidgetDefinition", + "HeatMapWidgetDefinition", + "HostMapWidgetDefinition", + "IFrameWidgetDefinition", + "ImageWidgetDefinition", + "ListStreamWidgetDefinition", + "LogStreamWidgetDefinition", + "MonitorSummaryWidgetDefinition", + "NoteWidgetDefinition", + "PowerpackWidgetDefinition", + "QueryValueWidgetDefinition", + "RunWorkflowWidgetDefinition", + "SLOListWidgetDefinition", + "SLOWidgetDefinition", + "ScatterPlotWidgetDefinition", + "ServiceMapWidgetDefinition", + "ServiceSummaryWidgetDefinition", + "SplitGraphWidgetDefinition", + "SunburstWidgetDefinition", + "TableWidgetDefinition", + "TimeseriesWidgetDefinition", + "ToplistWidgetDefinition", + "TopologyMapWidgetDefinition", + "TreeMapWidgetDefinition", + ], + WidgetSortOrderBy: ["WidgetFormulaSort", "WidgetGroupSort"], + WidgetTime: [ + "WidgetLegacyLiveSpan", + "WidgetNewLiveSpan", + "WidgetNewFixedSpan", + ], +}; +class ObjectSerializer { + static serialize(data, type, format) { + if (data == undefined || type == "any") { + return data; + } + else if (data instanceof util_1.UnparsedObject) { + return data._data; + } + else if (primitives.includes(type.toLowerCase()) && + typeof data == type.toLowerCase()) { + return data; + } + else if (type.startsWith(ARRAY_PREFIX)) { + if (!Array.isArray(data)) { + throw new TypeError(`mismatch types '${data}' and '${type}'`); + } + // Array => Type + const subType = type.substring(ARRAY_PREFIX.length, type.length - 1); + const transformedData = []; + for (const element of data) { + transformedData.push(ObjectSerializer.serialize(element, subType, format)); + } + return transformedData; + } + else if (type.startsWith(TUPLE_PREFIX)) { + // We only support homegeneus tuples + const subType = type + .substring(TUPLE_PREFIX.length, type.length - 1) + .split(", ")[0]; + const transformedData = []; + for (const element of data) { + transformedData.push(ObjectSerializer.serialize(element, subType, format)); + } + return transformedData; + } + else if (type.startsWith(MAP_PREFIX)) { + // { [key: string]: Type; } => Type + const subType = type.substring(MAP_PREFIX.length, type.length - 3); + const transformedData = {}; + for (const key in data) { + transformedData[key] = ObjectSerializer.serialize(data[key], subType, format); + } + return transformedData; + } + else if (type === "Date") { + if ("string" == typeof data) { + return data; + } + if (format == "date" || format == "date-time") { + return (0, util_1.dateToRFC3339String)(data); + } + else { + return data.toISOString(); + } + } + else { + if (enumsMap[type]) { + if (enumsMap[type].includes(data)) { + return data; + } + throw new TypeError(`unknown enum value '${data}'`); + } + if (oneOfMap[type]) { + const oneOfs = []; + for (const oneOf of oneOfMap[type]) { + try { + oneOfs.push(ObjectSerializer.serialize(data, oneOf, format)); + } + catch (e) { + logger_1.logger.debug(`could not serialize ${oneOf} (${e})`); + } + } + if (oneOfs.length > 1) { + throw new TypeError(`${data} matches multiple types from ${oneOfMap[type]} ${oneOfs}`); + } + if (oneOfs.length == 0) { + throw new TypeError(`${data} doesn't match any type from ${oneOfMap[type]} ${oneOfs}`); + } + return oneOfs[0]; + } + if (!typeMap[type]) { + // dont know the type + throw new TypeError(`unknown type '${type}'`); + } + // get the map for the correct type. + const attributesMap = typeMap[type].getAttributeTypeMap(); + const instance = {}; + for (const attributeName in data) { + const attributeObj = attributesMap[attributeName]; + if (attributeName === "_unparsed" || + attributeName === "additionalProperties") { + continue; + } + else if (attributeObj === undefined && + !("additionalProperties" in attributesMap)) { + throw new Error("unexpected attribute " + attributeName + " of type " + type); + } + else if (attributeObj) { + instance[attributeObj.baseName] = ObjectSerializer.serialize(data[attributeName], attributeObj.type, attributeObj.format); + } + } + if (data.additionalProperties) { + const additionalPropertiesMap = attributesMap["additionalProperties"]; + if (additionalPropertiesMap) { + for (const key in data.additionalProperties) { + instance[key] = ObjectSerializer.serialize(data.additionalProperties[key], additionalPropertiesMap.type, additionalPropertiesMap.format); + } + } + else { + throw new Error(`additionalProperties found in ${type}`); + } + } + // check for required properties + for (const attributeName in attributesMap) { + const attributeObj = attributesMap[attributeName]; + if ((attributeObj === null || attributeObj === void 0 ? void 0 : attributeObj.required) && + instance[attributeObj.baseName] === undefined) { + throw new Error(`missing required property '${attributeObj.baseName}'`); + } + } + return instance; + } + } + static deserialize(data, type, format = "") { + var _a; + if (data == undefined || type == "any") { + return data; + } + else if (primitives.includes(type.toLowerCase()) && + typeof data == type.toLowerCase()) { + return data; + } + else if (type.startsWith(ARRAY_PREFIX)) { + // Assert the passed data is Array type + if (!Array.isArray(data)) { + throw new TypeError(`mismatch types '${data}' and '${type}'`); + } + // Array => Type + const subType = type.substring(ARRAY_PREFIX.length, type.length - 1); + const transformedData = []; + for (const element of data) { + transformedData.push(ObjectSerializer.deserialize(element, subType, format)); + } + return transformedData; + } + else if (type.startsWith(TUPLE_PREFIX)) { + // [Type,...] => Type + const subType = type + .substring(TUPLE_PREFIX.length, type.length - 1) + .split(", ")[0]; + const transformedData = []; + for (const element of data) { + transformedData.push(ObjectSerializer.deserialize(element, subType, format)); + } + return transformedData; + } + else if (type.startsWith(MAP_PREFIX)) { + // { [key: string]: Type; } => Type + const subType = type.substring(MAP_PREFIX.length, type.length - 3); + const transformedData = {}; + for (const key in data) { + transformedData[key] = ObjectSerializer.deserialize(data[key], subType, format); + } + return transformedData; + } + else if (type === "Date") { + try { + return (0, util_1.dateFromRFC3339String)(data); + } + catch (_b) { + return new Date(data); + } + } + else { + if (enumsMap[type]) { + if (enumsMap[type].includes(data)) { + return data; + } + return new util_1.UnparsedObject(data); + } + if (oneOfMap[type]) { + const oneOfs = []; + for (const oneOf of oneOfMap[type]) { + try { + const d = ObjectSerializer.deserialize(data, oneOf, format); + if (!(d === null || d === void 0 ? void 0 : d._unparsed)) { + oneOfs.push(d); + } + } + catch (e) { + logger_1.logger.debug(`could not deserialize ${oneOf} (${e})`); + } + } + if (oneOfs.length != 1) { + return new util_1.UnparsedObject(data); + } + return oneOfs[0]; + } + if (!typeMap[type]) { + // dont know the type + throw new TypeError(`unknown type '${type}'`); + } + const instance = new typeMap[type](); + const attributesMap = typeMap[type].getAttributeTypeMap(); + const attributesBaseNames = Object.keys(attributesMap).reduce((o, key) => Object.assign(o, { [attributesMap[key].baseName]: "" }), {}); + const extraAttributes = Object.keys(data).filter((key) => !Object.prototype.hasOwnProperty.call(attributesBaseNames, key)); + if (extraAttributes.length > 0) { + if ("additionalProperties" in attributesMap) { + if (!instance.additionalProperties) { + instance.additionalProperties = {}; + } + const attributeObj = attributesMap["additionalProperties"]; + for (const key in extraAttributes) { + instance.additionalProperties[extraAttributes[key]] = + ObjectSerializer.deserialize(data[extraAttributes[key]], attributeObj.type, attributeObj.format); + } + } + else { + throw new Error(`found extra attributes '${extraAttributes}' in ${type}`); + } + } + for (const attributeName in attributesMap) { + const attributeObj = attributesMap[attributeName]; + if (attributeName === "additionalProperties") { + continue; + } + instance[attributeName] = ObjectSerializer.deserialize(data[attributeObj.baseName], attributeObj.type, attributeObj.format); + // check for required properties + if ((attributeObj === null || attributeObj === void 0 ? void 0 : attributeObj.required) && instance[attributeName] === undefined) { + throw new Error(`missing required property '${attributeName}'`); + } + if (instance[attributeName] instanceof util_1.UnparsedObject || + ((_a = instance[attributeName]) === null || _a === void 0 ? void 0 : _a._unparsed)) { + instance._unparsed = true; + } + if (Array.isArray(instance[attributeName])) { + for (const d of instance[attributeName]) { + if (d instanceof util_1.UnparsedObject || (d === null || d === void 0 ? void 0 : d._unparsed)) { + instance._unparsed = true; + break; + } + } + } + } + return instance; + } + } + /** + * Normalize media type + * + * We currently do not handle any media types attributes, i.e. anything + * after a semicolon. All content is assumed to be UTF-8 compatible. + */ + static normalizeMediaType(mediaType) { + if (mediaType === undefined) { + return undefined; + } + return mediaType.split(";")[0].trim().toLowerCase(); + } + /** + * From a list of possible media types, choose the one we can handle best. + * + * The order of the given media types does not have any impact on the choice + * made. + */ + static getPreferredMediaType(mediaTypes) { + /** According to OAS 3 we should default to json */ + if (!mediaTypes) { + return "application/json"; + } + const normalMediaTypes = mediaTypes.map(this.normalizeMediaType); + let selectedMediaType = undefined; + let selectedRank = -Infinity; + for (const mediaType of normalMediaTypes) { + if (mediaType === undefined) { + continue; + } + const supported = supportedMediaTypes[mediaType]; + if (supported !== undefined && supported > selectedRank) { + selectedMediaType = mediaType; + selectedRank = supported; + } + } + if (selectedMediaType === undefined) { + throw new Error("None of the given media types are supported: " + mediaTypes.join(", ")); + } + return selectedMediaType; + } + /** + * Convert data to a string according the given media type + */ + static stringify(data, mediaType) { + if (mediaType === "application/json" || mediaType === "text/json") { + return JSON.stringify(data); + } + throw new Error("The mediaType " + + mediaType + + " is not supported by ObjectSerializer.stringify."); + } + /** + * Parse data from a string according to the given media type + */ + static parse(rawData, mediaType) { + try { + return JSON.parse(rawData); + } + catch (error) { + logger_1.logger.debug(`could not parse ${mediaType}: ${error}`); + return rawData; + } + } +} +exports.ObjectSerializer = ObjectSerializer; +//# sourceMappingURL=ObjectSerializer.js.map + +/***/ }), + +/***/ 61367: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.OrgDowngradedResponse = void 0; +/** + * Status of downgrade + */ +class OrgDowngradedResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return OrgDowngradedResponse.attributeTypeMap; + } +} +exports.OrgDowngradedResponse = OrgDowngradedResponse; +/** + * @ignore + */ +OrgDowngradedResponse.attributeTypeMap = { + message: { + baseName: "message", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=OrgDowngradedResponse.js.map + +/***/ }), + +/***/ 90264: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Organization = void 0; +/** + * Create, edit, and manage organizations. + */ +class Organization { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return Organization.attributeTypeMap; + } +} +exports.Organization = Organization; +/** + * @ignore + */ +Organization.attributeTypeMap = { + billing: { + baseName: "billing", + type: "OrganizationBilling", + }, + created: { + baseName: "created", + type: "string", + }, + description: { + baseName: "description", + type: "string", + }, + name: { + baseName: "name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + settings: { + baseName: "settings", + type: "OrganizationSettings", + }, + subscription: { + baseName: "subscription", + type: "OrganizationSubscription", + }, + trial: { + baseName: "trial", + type: "boolean", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=Organization.js.map + +/***/ }), + +/***/ 99181: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.OrganizationBilling = void 0; +/** + * A JSON array of billing type. + */ +class OrganizationBilling { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return OrganizationBilling.attributeTypeMap; + } +} +exports.OrganizationBilling = OrganizationBilling; +/** + * @ignore + */ +OrganizationBilling.attributeTypeMap = { + type: { + baseName: "type", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=OrganizationBilling.js.map + +/***/ }), + +/***/ 89080: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.OrganizationCreateBody = void 0; +/** + * Object describing an organization to create. + */ +class OrganizationCreateBody { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return OrganizationCreateBody.attributeTypeMap; + } +} +exports.OrganizationCreateBody = OrganizationCreateBody; +/** + * @ignore + */ +OrganizationCreateBody.attributeTypeMap = { + billing: { + baseName: "billing", + type: "OrganizationBilling", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + subscription: { + baseName: "subscription", + type: "OrganizationSubscription", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=OrganizationCreateBody.js.map + +/***/ }), + +/***/ 63831: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.OrganizationCreateResponse = void 0; +/** + * Response object for an organization creation. + */ +class OrganizationCreateResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return OrganizationCreateResponse.attributeTypeMap; + } +} +exports.OrganizationCreateResponse = OrganizationCreateResponse; +/** + * @ignore + */ +OrganizationCreateResponse.attributeTypeMap = { + apiKey: { + baseName: "api_key", + type: "ApiKey", + }, + applicationKey: { + baseName: "application_key", + type: "ApplicationKey", + }, + org: { + baseName: "org", + type: "Organization", + }, + user: { + baseName: "user", + type: "User", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=OrganizationCreateResponse.js.map + +/***/ }), + +/***/ 50487: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.OrganizationListResponse = void 0; +/** + * Response with the list of organizations. + */ +class OrganizationListResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return OrganizationListResponse.attributeTypeMap; + } +} +exports.OrganizationListResponse = OrganizationListResponse; +/** + * @ignore + */ +OrganizationListResponse.attributeTypeMap = { + orgs: { + baseName: "orgs", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=OrganizationListResponse.js.map + +/***/ }), + +/***/ 41999: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.OrganizationResponse = void 0; +/** + * Response with an organization. + */ +class OrganizationResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return OrganizationResponse.attributeTypeMap; + } +} +exports.OrganizationResponse = OrganizationResponse; +/** + * @ignore + */ +OrganizationResponse.attributeTypeMap = { + org: { + baseName: "org", + type: "Organization", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=OrganizationResponse.js.map + +/***/ }), + +/***/ 79057: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.OrganizationSettings = void 0; +/** + * A JSON array of settings. + */ +class OrganizationSettings { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return OrganizationSettings.attributeTypeMap; + } +} +exports.OrganizationSettings = OrganizationSettings; +/** + * @ignore + */ +OrganizationSettings.attributeTypeMap = { + privateWidgetShare: { + baseName: "private_widget_share", + type: "boolean", + }, + saml: { + baseName: "saml", + type: "OrganizationSettingsSaml", + }, + samlAutocreateAccessRole: { + baseName: "saml_autocreate_access_role", + type: "AccessRole", + }, + samlAutocreateUsersDomains: { + baseName: "saml_autocreate_users_domains", + type: "OrganizationSettingsSamlAutocreateUsersDomains", + }, + samlCanBeEnabled: { + baseName: "saml_can_be_enabled", + type: "boolean", + }, + samlIdpEndpoint: { + baseName: "saml_idp_endpoint", + type: "string", + }, + samlIdpInitiatedLogin: { + baseName: "saml_idp_initiated_login", + type: "OrganizationSettingsSamlIdpInitiatedLogin", + }, + samlIdpMetadataUploaded: { + baseName: "saml_idp_metadata_uploaded", + type: "boolean", + }, + samlLoginUrl: { + baseName: "saml_login_url", + type: "string", + }, + samlStrictMode: { + baseName: "saml_strict_mode", + type: "OrganizationSettingsSamlStrictMode", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=OrganizationSettings.js.map + +/***/ }), + +/***/ 72528: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.OrganizationSettingsSaml = void 0; +/** + * Set the boolean property enabled to enable or disable single sign on with SAML. + * See the SAML documentation for more information about all SAML settings. + */ +class OrganizationSettingsSaml { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return OrganizationSettingsSaml.attributeTypeMap; + } +} +exports.OrganizationSettingsSaml = OrganizationSettingsSaml; +/** + * @ignore + */ +OrganizationSettingsSaml.attributeTypeMap = { + enabled: { + baseName: "enabled", + type: "boolean", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=OrganizationSettingsSaml.js.map + +/***/ }), + +/***/ 94810: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.OrganizationSettingsSamlAutocreateUsersDomains = void 0; +/** + * Has two properties, `enabled` (boolean) and `domains`, which is a list of domains without the @ symbol. + */ +class OrganizationSettingsSamlAutocreateUsersDomains { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return OrganizationSettingsSamlAutocreateUsersDomains.attributeTypeMap; + } +} +exports.OrganizationSettingsSamlAutocreateUsersDomains = OrganizationSettingsSamlAutocreateUsersDomains; +/** + * @ignore + */ +OrganizationSettingsSamlAutocreateUsersDomains.attributeTypeMap = { + domains: { + baseName: "domains", + type: "Array", + }, + enabled: { + baseName: "enabled", + type: "boolean", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=OrganizationSettingsSamlAutocreateUsersDomains.js.map + +/***/ }), + +/***/ 85867: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.OrganizationSettingsSamlIdpInitiatedLogin = void 0; +/** + * Has one property enabled (boolean). + */ +class OrganizationSettingsSamlIdpInitiatedLogin { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return OrganizationSettingsSamlIdpInitiatedLogin.attributeTypeMap; + } +} +exports.OrganizationSettingsSamlIdpInitiatedLogin = OrganizationSettingsSamlIdpInitiatedLogin; +/** + * @ignore + */ +OrganizationSettingsSamlIdpInitiatedLogin.attributeTypeMap = { + enabled: { + baseName: "enabled", + type: "boolean", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=OrganizationSettingsSamlIdpInitiatedLogin.js.map + +/***/ }), + +/***/ 37710: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.OrganizationSettingsSamlStrictMode = void 0; +/** + * Has one property enabled (boolean). + */ +class OrganizationSettingsSamlStrictMode { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return OrganizationSettingsSamlStrictMode.attributeTypeMap; + } +} +exports.OrganizationSettingsSamlStrictMode = OrganizationSettingsSamlStrictMode; +/** + * @ignore + */ +OrganizationSettingsSamlStrictMode.attributeTypeMap = { + enabled: { + baseName: "enabled", + type: "boolean", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=OrganizationSettingsSamlStrictMode.js.map + +/***/ }), + +/***/ 97921: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.OrganizationSubscription = void 0; +/** + * Subscription definition. + */ +class OrganizationSubscription { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return OrganizationSubscription.attributeTypeMap; + } +} +exports.OrganizationSubscription = OrganizationSubscription; +/** + * @ignore + */ +OrganizationSubscription.attributeTypeMap = { + type: { + baseName: "type", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=OrganizationSubscription.js.map + +/***/ }), + +/***/ 29209: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.PagerDutyService = void 0; +/** + * The PagerDuty service that is available for integration with Datadog. + */ +class PagerDutyService { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return PagerDutyService.attributeTypeMap; + } +} +exports.PagerDutyService = PagerDutyService; +/** + * @ignore + */ +PagerDutyService.attributeTypeMap = { + serviceKey: { + baseName: "service_key", + type: "string", + required: true, + }, + serviceName: { + baseName: "service_name", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=PagerDutyService.js.map + +/***/ }), + +/***/ 1862: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.PagerDutyServiceKey = void 0; +/** + * PagerDuty service object key. + */ +class PagerDutyServiceKey { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return PagerDutyServiceKey.attributeTypeMap; + } +} +exports.PagerDutyServiceKey = PagerDutyServiceKey; +/** + * @ignore + */ +PagerDutyServiceKey.attributeTypeMap = { + serviceKey: { + baseName: "service_key", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=PagerDutyServiceKey.js.map + +/***/ }), + +/***/ 75766: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.PagerDutyServiceName = void 0; +/** + * PagerDuty service object name. + */ +class PagerDutyServiceName { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return PagerDutyServiceName.attributeTypeMap; + } +} +exports.PagerDutyServiceName = PagerDutyServiceName; +/** + * @ignore + */ +PagerDutyServiceName.attributeTypeMap = { + serviceName: { + baseName: "service_name", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=PagerDutyServiceName.js.map + +/***/ }), + +/***/ 61155: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Pagination = void 0; +/** + * Pagination object. + */ +class Pagination { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return Pagination.attributeTypeMap; + } +} +exports.Pagination = Pagination; +/** + * @ignore + */ +Pagination.attributeTypeMap = { + totalCount: { + baseName: "total_count", + type: "number", + format: "int64", + }, + totalFilteredCount: { + baseName: "total_filtered_count", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=Pagination.js.map + +/***/ }), + +/***/ 66251: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.PowerpackTemplateVariableContents = void 0; +/** + * Powerpack template variable contents. + */ +class PowerpackTemplateVariableContents { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return PowerpackTemplateVariableContents.attributeTypeMap; + } +} +exports.PowerpackTemplateVariableContents = PowerpackTemplateVariableContents; +/** + * @ignore + */ +PowerpackTemplateVariableContents.attributeTypeMap = { + name: { + baseName: "name", + type: "string", + required: true, + }, + prefix: { + baseName: "prefix", + type: "string", + }, + values: { + baseName: "values", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=PowerpackTemplateVariableContents.js.map + +/***/ }), + +/***/ 38524: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.PowerpackTemplateVariables = void 0; +/** + * Powerpack template variables. + */ +class PowerpackTemplateVariables { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return PowerpackTemplateVariables.attributeTypeMap; + } +} +exports.PowerpackTemplateVariables = PowerpackTemplateVariables; +/** + * @ignore + */ +PowerpackTemplateVariables.attributeTypeMap = { + controlledByPowerpack: { + baseName: "controlled_by_powerpack", + type: "Array", + }, + controlledExternally: { + baseName: "controlled_externally", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=PowerpackTemplateVariables.js.map + +/***/ }), + +/***/ 50734: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.PowerpackWidgetDefinition = void 0; +/** + * The powerpack widget allows you to keep similar graphs together on your timeboard. Each group has a custom header, can hold one to many graphs, and is collapsible. + */ +class PowerpackWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return PowerpackWidgetDefinition.attributeTypeMap; + } +} +exports.PowerpackWidgetDefinition = PowerpackWidgetDefinition; +/** + * @ignore + */ +PowerpackWidgetDefinition.attributeTypeMap = { + backgroundColor: { + baseName: "background_color", + type: "string", + }, + bannerImg: { + baseName: "banner_img", + type: "string", + }, + powerpackId: { + baseName: "powerpack_id", + type: "string", + required: true, + }, + showTitle: { + baseName: "show_title", + type: "boolean", + }, + templateVariables: { + baseName: "template_variables", + type: "PowerpackTemplateVariables", + }, + title: { + baseName: "title", + type: "string", + }, + type: { + baseName: "type", + type: "PowerpackWidgetDefinitionType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=PowerpackWidgetDefinition.js.map + +/***/ }), + +/***/ 21949: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ProcessQueryDefinition = void 0; +/** + * The process query to use in the widget. + */ +class ProcessQueryDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ProcessQueryDefinition.attributeTypeMap; + } +} +exports.ProcessQueryDefinition = ProcessQueryDefinition; +/** + * @ignore + */ +ProcessQueryDefinition.attributeTypeMap = { + filterBy: { + baseName: "filter_by", + type: "Array", + }, + limit: { + baseName: "limit", + type: "number", + format: "int64", + }, + metric: { + baseName: "metric", + type: "string", + required: true, + }, + searchBy: { + baseName: "search_by", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ProcessQueryDefinition.js.map + +/***/ }), + +/***/ 92467: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.QueryValueWidgetDefinition = void 0; +/** + * Query values display the current value of a given metric, APM, or log query. + */ +class QueryValueWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return QueryValueWidgetDefinition.attributeTypeMap; + } +} +exports.QueryValueWidgetDefinition = QueryValueWidgetDefinition; +/** + * @ignore + */ +QueryValueWidgetDefinition.attributeTypeMap = { + autoscale: { + baseName: "autoscale", + type: "boolean", + }, + customLinks: { + baseName: "custom_links", + type: "Array", + }, + customUnit: { + baseName: "custom_unit", + type: "string", + }, + precision: { + baseName: "precision", + type: "number", + format: "int64", + }, + requests: { + baseName: "requests", + type: "[QueryValueWidgetRequest]", + required: true, + }, + textAlign: { + baseName: "text_align", + type: "WidgetTextAlign", + }, + time: { + baseName: "time", + type: "WidgetTime", + }, + timeseriesBackground: { + baseName: "timeseries_background", + type: "TimeseriesBackground", + }, + title: { + baseName: "title", + type: "string", + }, + titleAlign: { + baseName: "title_align", + type: "WidgetTextAlign", + }, + titleSize: { + baseName: "title_size", + type: "string", + }, + type: { + baseName: "type", + type: "QueryValueWidgetDefinitionType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=QueryValueWidgetDefinition.js.map + +/***/ }), + +/***/ 57769: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.QueryValueWidgetRequest = void 0; +/** + * Updated query value widget. + */ +class QueryValueWidgetRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return QueryValueWidgetRequest.attributeTypeMap; + } +} +exports.QueryValueWidgetRequest = QueryValueWidgetRequest; +/** + * @ignore + */ +QueryValueWidgetRequest.attributeTypeMap = { + aggregator: { + baseName: "aggregator", + type: "WidgetAggregator", + }, + apmQuery: { + baseName: "apm_query", + type: "LogQueryDefinition", + }, + auditQuery: { + baseName: "audit_query", + type: "LogQueryDefinition", + }, + conditionalFormats: { + baseName: "conditional_formats", + type: "Array", + }, + eventQuery: { + baseName: "event_query", + type: "LogQueryDefinition", + }, + formulas: { + baseName: "formulas", + type: "Array", + }, + logQuery: { + baseName: "log_query", + type: "LogQueryDefinition", + }, + networkQuery: { + baseName: "network_query", + type: "LogQueryDefinition", + }, + processQuery: { + baseName: "process_query", + type: "ProcessQueryDefinition", + }, + profileMetricsQuery: { + baseName: "profile_metrics_query", + type: "LogQueryDefinition", + }, + q: { + baseName: "q", + type: "string", + }, + queries: { + baseName: "queries", + type: "Array", + }, + responseFormat: { + baseName: "response_format", + type: "FormulaAndFunctionResponseFormat", + }, + rumQuery: { + baseName: "rum_query", + type: "LogQueryDefinition", + }, + securityQuery: { + baseName: "security_query", + type: "LogQueryDefinition", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=QueryValueWidgetRequest.js.map + +/***/ }), + +/***/ 14157: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ReferenceTableLogsLookupProcessor = void 0; +/** + * **Note**: Reference Tables are in public beta. + * Use the Lookup Processor to define a mapping between a log attribute + * and a human readable value saved in a Reference Table. + * For example, you can use the Lookup Processor to map an internal service ID + * into a human readable service name. Alternatively, you could also use it to check + * if the MAC address that just attempted to connect to the production + * environment belongs to your list of stolen machines. + */ +class ReferenceTableLogsLookupProcessor { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ReferenceTableLogsLookupProcessor.attributeTypeMap; + } +} +exports.ReferenceTableLogsLookupProcessor = ReferenceTableLogsLookupProcessor; +/** + * @ignore + */ +ReferenceTableLogsLookupProcessor.attributeTypeMap = { + isEnabled: { + baseName: "is_enabled", + type: "boolean", + }, + lookupEnrichmentTable: { + baseName: "lookup_enrichment_table", + type: "string", + required: true, + }, + name: { + baseName: "name", + type: "string", + }, + source: { + baseName: "source", + type: "string", + required: true, + }, + target: { + baseName: "target", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "LogsLookupProcessorType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ReferenceTableLogsLookupProcessor.js.map + +/***/ }), + +/***/ 50416: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ResponseMetaAttributes = void 0; +/** + * Object describing meta attributes of response. + */ +class ResponseMetaAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ResponseMetaAttributes.attributeTypeMap; + } +} +exports.ResponseMetaAttributes = ResponseMetaAttributes; +/** + * @ignore + */ +ResponseMetaAttributes.attributeTypeMap = { + page: { + baseName: "page", + type: "Pagination", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ResponseMetaAttributes.js.map + +/***/ }), + +/***/ 42074: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.RunWorkflowWidgetDefinition = void 0; +/** + * Run workflow is widget that allows you to run a workflow from a dashboard. + */ +class RunWorkflowWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return RunWorkflowWidgetDefinition.attributeTypeMap; + } +} +exports.RunWorkflowWidgetDefinition = RunWorkflowWidgetDefinition; +/** + * @ignore + */ +RunWorkflowWidgetDefinition.attributeTypeMap = { + customLinks: { + baseName: "custom_links", + type: "Array", + }, + inputs: { + baseName: "inputs", + type: "Array", + }, + time: { + baseName: "time", + type: "WidgetTime", + }, + title: { + baseName: "title", + type: "string", + }, + titleAlign: { + baseName: "title_align", + type: "WidgetTextAlign", + }, + titleSize: { + baseName: "title_size", + type: "string", + }, + type: { + baseName: "type", + type: "RunWorkflowWidgetDefinitionType", + required: true, + }, + workflowId: { + baseName: "workflow_id", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=RunWorkflowWidgetDefinition.js.map + +/***/ }), + +/***/ 77027: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.RunWorkflowWidgetInput = void 0; +/** + * Object to map a dashboard template variable to a workflow input. + */ +class RunWorkflowWidgetInput { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return RunWorkflowWidgetInput.attributeTypeMap; + } +} +exports.RunWorkflowWidgetInput = RunWorkflowWidgetInput; +/** + * @ignore + */ +RunWorkflowWidgetInput.attributeTypeMap = { + name: { + baseName: "name", + type: "string", + required: true, + }, + value: { + baseName: "value", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=RunWorkflowWidgetInput.js.map + +/***/ }), + +/***/ 17488: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOBulkDeleteError = void 0; +/** + * Object describing the error. + */ +class SLOBulkDeleteError { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOBulkDeleteError.attributeTypeMap; + } +} +exports.SLOBulkDeleteError = SLOBulkDeleteError; +/** + * @ignore + */ +SLOBulkDeleteError.attributeTypeMap = { + id: { + baseName: "id", + type: "string", + required: true, + }, + message: { + baseName: "message", + type: "string", + required: true, + }, + timeframe: { + baseName: "timeframe", + type: "SLOErrorTimeframe", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOBulkDeleteError.js.map + +/***/ }), + +/***/ 66199: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOBulkDeleteResponse = void 0; +/** + * The bulk partial delete service level objective object endpoint + * response. + * + * This endpoint operates on multiple service level objective objects, so + * it may be partially successful. In such cases, the "data" and "error" + * fields in this response indicate which deletions succeeded and failed. + */ +class SLOBulkDeleteResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOBulkDeleteResponse.attributeTypeMap; + } +} +exports.SLOBulkDeleteResponse = SLOBulkDeleteResponse; +/** + * @ignore + */ +SLOBulkDeleteResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "SLOBulkDeleteResponseData", + }, + errors: { + baseName: "errors", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOBulkDeleteResponse.js.map + +/***/ }), + +/***/ 23327: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOBulkDeleteResponseData = void 0; +/** + * An array of service level objective objects. + */ +class SLOBulkDeleteResponseData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOBulkDeleteResponseData.attributeTypeMap; + } +} +exports.SLOBulkDeleteResponseData = SLOBulkDeleteResponseData; +/** + * @ignore + */ +SLOBulkDeleteResponseData.attributeTypeMap = { + deleted: { + baseName: "deleted", + type: "Array", + }, + updated: { + baseName: "updated", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOBulkDeleteResponseData.js.map + +/***/ }), + +/***/ 62283: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOCorrection = void 0; +/** + * The response object of a list of SLO corrections. + */ +class SLOCorrection { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOCorrection.attributeTypeMap; + } +} +exports.SLOCorrection = SLOCorrection; +/** + * @ignore + */ +SLOCorrection.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "SLOCorrectionResponseAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "SLOCorrectionType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOCorrection.js.map + +/***/ }), + +/***/ 11055: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOCorrectionCreateData = void 0; +/** + * The data object associated with the SLO correction to be created. + */ +class SLOCorrectionCreateData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOCorrectionCreateData.attributeTypeMap; + } +} +exports.SLOCorrectionCreateData = SLOCorrectionCreateData; +/** + * @ignore + */ +SLOCorrectionCreateData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "SLOCorrectionCreateRequestAttributes", + }, + type: { + baseName: "type", + type: "SLOCorrectionType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOCorrectionCreateData.js.map + +/***/ }), + +/***/ 25594: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOCorrectionCreateRequest = void 0; +/** + * An object that defines a correction to be applied to an SLO. + */ +class SLOCorrectionCreateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOCorrectionCreateRequest.attributeTypeMap; + } +} +exports.SLOCorrectionCreateRequest = SLOCorrectionCreateRequest; +/** + * @ignore + */ +SLOCorrectionCreateRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "SLOCorrectionCreateData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOCorrectionCreateRequest.js.map + +/***/ }), + +/***/ 22015: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOCorrectionCreateRequestAttributes = void 0; +/** + * The attribute object associated with the SLO correction to be created. + */ +class SLOCorrectionCreateRequestAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOCorrectionCreateRequestAttributes.attributeTypeMap; + } +} +exports.SLOCorrectionCreateRequestAttributes = SLOCorrectionCreateRequestAttributes; +/** + * @ignore + */ +SLOCorrectionCreateRequestAttributes.attributeTypeMap = { + category: { + baseName: "category", + type: "SLOCorrectionCategory", + required: true, + }, + description: { + baseName: "description", + type: "string", + }, + duration: { + baseName: "duration", + type: "number", + format: "int64", + }, + end: { + baseName: "end", + type: "number", + format: "int64", + }, + rrule: { + baseName: "rrule", + type: "string", + }, + sloId: { + baseName: "slo_id", + type: "string", + required: true, + }, + start: { + baseName: "start", + type: "number", + required: true, + format: "int64", + }, + timezone: { + baseName: "timezone", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOCorrectionCreateRequestAttributes.js.map + +/***/ }), + +/***/ 30656: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOCorrectionListResponse = void 0; +/** + * A list of SLO correction objects. + */ +class SLOCorrectionListResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOCorrectionListResponse.attributeTypeMap; + } +} +exports.SLOCorrectionListResponse = SLOCorrectionListResponse; +/** + * @ignore + */ +SLOCorrectionListResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "Array", + }, + meta: { + baseName: "meta", + type: "ResponseMetaAttributes", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOCorrectionListResponse.js.map + +/***/ }), + +/***/ 30904: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOCorrectionResponse = void 0; +/** + * The response object of an SLO correction. + */ +class SLOCorrectionResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOCorrectionResponse.attributeTypeMap; + } +} +exports.SLOCorrectionResponse = SLOCorrectionResponse; +/** + * @ignore + */ +SLOCorrectionResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "SLOCorrection", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOCorrectionResponse.js.map + +/***/ }), + +/***/ 82033: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOCorrectionResponseAttributes = void 0; +/** + * The attribute object associated with the SLO correction. + */ +class SLOCorrectionResponseAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOCorrectionResponseAttributes.attributeTypeMap; + } +} +exports.SLOCorrectionResponseAttributes = SLOCorrectionResponseAttributes; +/** + * @ignore + */ +SLOCorrectionResponseAttributes.attributeTypeMap = { + category: { + baseName: "category", + type: "SLOCorrectionCategory", + }, + createdAt: { + baseName: "created_at", + type: "number", + format: "int64", + }, + creator: { + baseName: "creator", + type: "Creator", + }, + description: { + baseName: "description", + type: "string", + }, + duration: { + baseName: "duration", + type: "number", + format: "int64", + }, + end: { + baseName: "end", + type: "number", + format: "int64", + }, + modifiedAt: { + baseName: "modified_at", + type: "number", + format: "int64", + }, + modifier: { + baseName: "modifier", + type: "SLOCorrectionResponseAttributesModifier", + }, + rrule: { + baseName: "rrule", + type: "string", + }, + sloId: { + baseName: "slo_id", + type: "string", + }, + start: { + baseName: "start", + type: "number", + format: "int64", + }, + timezone: { + baseName: "timezone", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOCorrectionResponseAttributes.js.map + +/***/ }), + +/***/ 5448: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOCorrectionResponseAttributesModifier = void 0; +/** + * Modifier of the object. + */ +class SLOCorrectionResponseAttributesModifier { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOCorrectionResponseAttributesModifier.attributeTypeMap; + } +} +exports.SLOCorrectionResponseAttributesModifier = SLOCorrectionResponseAttributesModifier; +/** + * @ignore + */ +SLOCorrectionResponseAttributesModifier.attributeTypeMap = { + email: { + baseName: "email", + type: "string", + }, + handle: { + baseName: "handle", + type: "string", + }, + name: { + baseName: "name", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOCorrectionResponseAttributesModifier.js.map + +/***/ }), + +/***/ 74374: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOCorrectionUpdateData = void 0; +/** + * The data object associated with the SLO correction to be updated. + */ +class SLOCorrectionUpdateData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOCorrectionUpdateData.attributeTypeMap; + } +} +exports.SLOCorrectionUpdateData = SLOCorrectionUpdateData; +/** + * @ignore + */ +SLOCorrectionUpdateData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "SLOCorrectionUpdateRequestAttributes", + }, + type: { + baseName: "type", + type: "SLOCorrectionType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOCorrectionUpdateData.js.map + +/***/ }), + +/***/ 3933: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOCorrectionUpdateRequest = void 0; +/** + * An object that defines a correction to be applied to an SLO. + */ +class SLOCorrectionUpdateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOCorrectionUpdateRequest.attributeTypeMap; + } +} +exports.SLOCorrectionUpdateRequest = SLOCorrectionUpdateRequest; +/** + * @ignore + */ +SLOCorrectionUpdateRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "SLOCorrectionUpdateData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOCorrectionUpdateRequest.js.map + +/***/ }), + +/***/ 75348: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOCorrectionUpdateRequestAttributes = void 0; +/** + * The attribute object associated with the SLO correction to be updated. + */ +class SLOCorrectionUpdateRequestAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOCorrectionUpdateRequestAttributes.attributeTypeMap; + } +} +exports.SLOCorrectionUpdateRequestAttributes = SLOCorrectionUpdateRequestAttributes; +/** + * @ignore + */ +SLOCorrectionUpdateRequestAttributes.attributeTypeMap = { + category: { + baseName: "category", + type: "SLOCorrectionCategory", + }, + description: { + baseName: "description", + type: "string", + }, + duration: { + baseName: "duration", + type: "number", + format: "int64", + }, + end: { + baseName: "end", + type: "number", + format: "int64", + }, + rrule: { + baseName: "rrule", + type: "string", + }, + start: { + baseName: "start", + type: "number", + format: "int64", + }, + timezone: { + baseName: "timezone", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOCorrectionUpdateRequestAttributes.js.map + +/***/ }), + +/***/ 20507: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOCreator = void 0; +/** + * The creator of the SLO + */ +class SLOCreator { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOCreator.attributeTypeMap; + } +} +exports.SLOCreator = SLOCreator; +/** + * @ignore + */ +SLOCreator.attributeTypeMap = { + email: { + baseName: "email", + type: "string", + }, + id: { + baseName: "id", + type: "number", + format: "int64", + }, + name: { + baseName: "name", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOCreator.js.map + +/***/ }), + +/***/ 54083: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLODeleteResponse = void 0; +/** + * A response list of all service level objective deleted. + */ +class SLODeleteResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLODeleteResponse.attributeTypeMap; + } +} +exports.SLODeleteResponse = SLODeleteResponse; +/** + * @ignore + */ +SLODeleteResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "Array", + }, + errors: { + baseName: "errors", + type: "{ [key: string]: string; }", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLODeleteResponse.js.map + +/***/ }), + +/***/ 7753: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOFormula = void 0; +/** + * A formula that specifies how to combine the results of multiple queries. + */ +class SLOFormula { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOFormula.attributeTypeMap; + } +} +exports.SLOFormula = SLOFormula; +/** + * @ignore + */ +SLOFormula.attributeTypeMap = { + formula: { + baseName: "formula", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOFormula.js.map + +/***/ }), + +/***/ 20746: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOHistoryMetrics = void 0; +/** + * A `metric` based SLO history response. + * + * This is not included in responses for `monitor` based SLOs. + */ +class SLOHistoryMetrics { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOHistoryMetrics.attributeTypeMap; + } +} +exports.SLOHistoryMetrics = SLOHistoryMetrics; +/** + * @ignore + */ +SLOHistoryMetrics.attributeTypeMap = { + denominator: { + baseName: "denominator", + type: "SLOHistoryMetricsSeries", + required: true, + }, + interval: { + baseName: "interval", + type: "number", + required: true, + format: "int64", + }, + message: { + baseName: "message", + type: "string", + }, + numerator: { + baseName: "numerator", + type: "SLOHistoryMetricsSeries", + required: true, + }, + query: { + baseName: "query", + type: "string", + required: true, + }, + resType: { + baseName: "res_type", + type: "string", + required: true, + }, + respVersion: { + baseName: "resp_version", + type: "number", + required: true, + format: "int64", + }, + times: { + baseName: "times", + type: "Array", + required: true, + format: "double", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOHistoryMetrics.js.map + +/***/ }), + +/***/ 78483: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOHistoryMetricsSeries = void 0; +/** + * A representation of `metric` based SLO timeseries for the provided queries. + * This is the same response type from `batch_query` endpoint. + */ +class SLOHistoryMetricsSeries { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOHistoryMetricsSeries.attributeTypeMap; + } +} +exports.SLOHistoryMetricsSeries = SLOHistoryMetricsSeries; +/** + * @ignore + */ +SLOHistoryMetricsSeries.attributeTypeMap = { + count: { + baseName: "count", + type: "number", + required: true, + format: "int64", + }, + metadata: { + baseName: "metadata", + type: "SLOHistoryMetricsSeriesMetadata", + }, + sum: { + baseName: "sum", + type: "number", + required: true, + format: "double", + }, + values: { + baseName: "values", + type: "Array", + required: true, + format: "double", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOHistoryMetricsSeries.js.map + +/***/ }), + +/***/ 84858: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOHistoryMetricsSeriesMetadata = void 0; +/** + * Query metadata. + */ +class SLOHistoryMetricsSeriesMetadata { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOHistoryMetricsSeriesMetadata.attributeTypeMap; + } +} +exports.SLOHistoryMetricsSeriesMetadata = SLOHistoryMetricsSeriesMetadata; +/** + * @ignore + */ +SLOHistoryMetricsSeriesMetadata.attributeTypeMap = { + aggr: { + baseName: "aggr", + type: "string", + }, + expression: { + baseName: "expression", + type: "string", + }, + metric: { + baseName: "metric", + type: "string", + }, + queryIndex: { + baseName: "query_index", + type: "number", + format: "int64", + }, + scope: { + baseName: "scope", + type: "string", + }, + unit: { + baseName: "unit", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOHistoryMetricsSeriesMetadata.js.map + +/***/ }), + +/***/ 81912: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOHistoryMetricsSeriesMetadataUnit = void 0; +/** + * An Object of metric units. + */ +class SLOHistoryMetricsSeriesMetadataUnit { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOHistoryMetricsSeriesMetadataUnit.attributeTypeMap; + } +} +exports.SLOHistoryMetricsSeriesMetadataUnit = SLOHistoryMetricsSeriesMetadataUnit; +/** + * @ignore + */ +SLOHistoryMetricsSeriesMetadataUnit.attributeTypeMap = { + family: { + baseName: "family", + type: "string", + }, + id: { + baseName: "id", + type: "number", + format: "int64", + }, + name: { + baseName: "name", + type: "string", + }, + plural: { + baseName: "plural", + type: "string", + }, + scaleFactor: { + baseName: "scale_factor", + type: "number", + format: "double", + }, + shortName: { + baseName: "short_name", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOHistoryMetricsSeriesMetadataUnit.js.map + +/***/ }), + +/***/ 54565: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOHistoryMonitor = void 0; +/** + * An object that holds an SLI value and its associated data. It can represent an SLO's overall SLI value. + * This can also represent the SLI value for a specific monitor in multi-monitor SLOs, or a group in grouped SLOs. + */ +class SLOHistoryMonitor { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOHistoryMonitor.attributeTypeMap; + } +} +exports.SLOHistoryMonitor = SLOHistoryMonitor; +/** + * @ignore + */ +SLOHistoryMonitor.attributeTypeMap = { + errorBudgetRemaining: { + baseName: "error_budget_remaining", + type: "{ [key: string]: number; }", + }, + errors: { + baseName: "errors", + type: "Array", + }, + group: { + baseName: "group", + type: "string", + }, + history: { + baseName: "history", + type: "Array<[number, number]>", + format: "double", + }, + monitorModified: { + baseName: "monitor_modified", + type: "number", + format: "int64", + }, + monitorType: { + baseName: "monitor_type", + type: "string", + }, + name: { + baseName: "name", + type: "string", + }, + precision: { + baseName: "precision", + type: "number", + format: "double", + }, + preview: { + baseName: "preview", + type: "boolean", + }, + sliValue: { + baseName: "sli_value", + type: "number", + format: "double", + }, + spanPrecision: { + baseName: "span_precision", + type: "number", + format: "double", + }, + uptime: { + baseName: "uptime", + type: "number", + format: "double", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOHistoryMonitor.js.map + +/***/ }), + +/***/ 47360: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOHistoryResponse = void 0; +/** + * A service level objective history response. + */ +class SLOHistoryResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOHistoryResponse.attributeTypeMap; + } +} +exports.SLOHistoryResponse = SLOHistoryResponse; +/** + * @ignore + */ +SLOHistoryResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "SLOHistoryResponseData", + }, + errors: { + baseName: "errors", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOHistoryResponse.js.map + +/***/ }), + +/***/ 60264: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOHistoryResponseData = void 0; +/** + * An array of service level objective objects. + */ +class SLOHistoryResponseData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOHistoryResponseData.attributeTypeMap; + } +} +exports.SLOHistoryResponseData = SLOHistoryResponseData; +/** + * @ignore + */ +SLOHistoryResponseData.attributeTypeMap = { + fromTs: { + baseName: "from_ts", + type: "number", + format: "int64", + }, + groupBy: { + baseName: "group_by", + type: "Array", + }, + groups: { + baseName: "groups", + type: "Array", + }, + monitors: { + baseName: "monitors", + type: "Array", + }, + overall: { + baseName: "overall", + type: "SLOHistorySLIData", + }, + series: { + baseName: "series", + type: "SLOHistoryMetrics", + }, + thresholds: { + baseName: "thresholds", + type: "{ [key: string]: SLOThreshold; }", + }, + toTs: { + baseName: "to_ts", + type: "number", + format: "int64", + }, + type: { + baseName: "type", + type: "SLOType", + }, + typeId: { + baseName: "type_id", + type: "SLOTypeNumeric", + format: "int32", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOHistoryResponseData.js.map + +/***/ }), + +/***/ 53872: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOHistoryResponseError = void 0; +/** + * A list of errors while querying the history data for the service level objective. + */ +class SLOHistoryResponseError { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOHistoryResponseError.attributeTypeMap; + } +} +exports.SLOHistoryResponseError = SLOHistoryResponseError; +/** + * @ignore + */ +SLOHistoryResponseError.attributeTypeMap = { + error: { + baseName: "error", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOHistoryResponseError.js.map + +/***/ }), + +/***/ 15584: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOHistoryResponseErrorWithType = void 0; +/** + * An object describing the error with error type and error message. + */ +class SLOHistoryResponseErrorWithType { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOHistoryResponseErrorWithType.attributeTypeMap; + } +} +exports.SLOHistoryResponseErrorWithType = SLOHistoryResponseErrorWithType; +/** + * @ignore + */ +SLOHistoryResponseErrorWithType.attributeTypeMap = { + errorMessage: { + baseName: "error_message", + type: "string", + required: true, + }, + errorType: { + baseName: "error_type", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOHistoryResponseErrorWithType.js.map + +/***/ }), + +/***/ 76521: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOHistorySLIData = void 0; +/** + * An object that holds an SLI value and its associated data. It can represent an SLO's overall SLI value. + * This can also represent the SLI value for a specific monitor in multi-monitor SLOs, or a group in grouped SLOs. + */ +class SLOHistorySLIData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOHistorySLIData.attributeTypeMap; + } +} +exports.SLOHistorySLIData = SLOHistorySLIData; +/** + * @ignore + */ +SLOHistorySLIData.attributeTypeMap = { + errorBudgetRemaining: { + baseName: "error_budget_remaining", + type: "{ [key: string]: number; }", + }, + errors: { + baseName: "errors", + type: "Array", + }, + group: { + baseName: "group", + type: "string", + }, + history: { + baseName: "history", + type: "Array<[number, number]>", + format: "double", + }, + monitorModified: { + baseName: "monitor_modified", + type: "number", + format: "int64", + }, + monitorType: { + baseName: "monitor_type", + type: "string", + }, + name: { + baseName: "name", + type: "string", + }, + precision: { + baseName: "precision", + type: "{ [key: string]: number; }", + }, + preview: { + baseName: "preview", + type: "boolean", + }, + sliValue: { + baseName: "sli_value", + type: "number", + format: "double", + }, + spanPrecision: { + baseName: "span_precision", + type: "number", + format: "double", + }, + uptime: { + baseName: "uptime", + type: "number", + format: "double", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOHistorySLIData.js.map + +/***/ }), + +/***/ 66160: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOListResponse = void 0; +/** + * A response with one or more service level objective. + */ +class SLOListResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOListResponse.attributeTypeMap; + } +} +exports.SLOListResponse = SLOListResponse; +/** + * @ignore + */ +SLOListResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "Array", + }, + errors: { + baseName: "errors", + type: "Array", + }, + metadata: { + baseName: "metadata", + type: "SLOListResponseMetadata", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOListResponse.js.map + +/***/ }), + +/***/ 87497: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOListResponseMetadata = void 0; +/** + * The metadata object containing additional information about the list of SLOs. + */ +class SLOListResponseMetadata { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOListResponseMetadata.attributeTypeMap; + } +} +exports.SLOListResponseMetadata = SLOListResponseMetadata; +/** + * @ignore + */ +SLOListResponseMetadata.attributeTypeMap = { + page: { + baseName: "page", + type: "SLOListResponseMetadataPage", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOListResponseMetadata.js.map + +/***/ }), + +/***/ 78406: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOListResponseMetadataPage = void 0; +/** + * The object containing information about the pages of the list of SLOs. + */ +class SLOListResponseMetadataPage { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOListResponseMetadataPage.attributeTypeMap; + } +} +exports.SLOListResponseMetadataPage = SLOListResponseMetadataPage; +/** + * @ignore + */ +SLOListResponseMetadataPage.attributeTypeMap = { + totalCount: { + baseName: "total_count", + type: "number", + format: "int64", + }, + totalFilteredCount: { + baseName: "total_filtered_count", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOListResponseMetadataPage.js.map + +/***/ }), + +/***/ 23834: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOListWidgetDefinition = void 0; +/** + * Use the SLO List widget to track your SLOs (Service Level Objectives) on dashboards. + */ +class SLOListWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOListWidgetDefinition.attributeTypeMap; + } +} +exports.SLOListWidgetDefinition = SLOListWidgetDefinition; +/** + * @ignore + */ +SLOListWidgetDefinition.attributeTypeMap = { + requests: { + baseName: "requests", + type: "[SLOListWidgetRequest]", + required: true, + }, + title: { + baseName: "title", + type: "string", + }, + titleAlign: { + baseName: "title_align", + type: "WidgetTextAlign", + }, + titleSize: { + baseName: "title_size", + type: "string", + }, + type: { + baseName: "type", + type: "SLOListWidgetDefinitionType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOListWidgetDefinition.js.map + +/***/ }), + +/***/ 45435: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOListWidgetQuery = void 0; +/** + * Updated SLO List widget. + */ +class SLOListWidgetQuery { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOListWidgetQuery.attributeTypeMap; + } +} +exports.SLOListWidgetQuery = SLOListWidgetQuery; +/** + * @ignore + */ +SLOListWidgetQuery.attributeTypeMap = { + limit: { + baseName: "limit", + type: "number", + format: "int64", + }, + queryString: { + baseName: "query_string", + type: "string", + required: true, + }, + sort: { + baseName: "sort", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOListWidgetQuery.js.map + +/***/ }), + +/***/ 8746: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOListWidgetRequest = void 0; +/** + * Updated SLO List widget. + */ +class SLOListWidgetRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOListWidgetRequest.attributeTypeMap; + } +} +exports.SLOListWidgetRequest = SLOListWidgetRequest; +/** + * @ignore + */ +SLOListWidgetRequest.attributeTypeMap = { + query: { + baseName: "query", + type: "SLOListWidgetQuery", + required: true, + }, + requestType: { + baseName: "request_type", + type: "SLOListWidgetRequestType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOListWidgetRequest.js.map + +/***/ }), + +/***/ 28804: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOOverallStatuses = void 0; +/** + * Overall status of the SLO by timeframes. + */ +class SLOOverallStatuses { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOOverallStatuses.attributeTypeMap; + } +} +exports.SLOOverallStatuses = SLOOverallStatuses; +/** + * @ignore + */ +SLOOverallStatuses.attributeTypeMap = { + error: { + baseName: "error", + type: "string", + }, + errorBudgetRemaining: { + baseName: "error_budget_remaining", + type: "number", + format: "double", + }, + indexedAt: { + baseName: "indexed_at", + type: "number", + format: "int64", + }, + rawErrorBudgetRemaining: { + baseName: "raw_error_budget_remaining", + type: "SLORawErrorBudgetRemaining", + }, + spanPrecision: { + baseName: "span_precision", + type: "number", + format: "int64", + }, + state: { + baseName: "state", + type: "SLOState", + }, + status: { + baseName: "status", + type: "number", + format: "double", + }, + target: { + baseName: "target", + type: "number", + format: "double", + }, + timeframe: { + baseName: "timeframe", + type: "SLOTimeframe", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOOverallStatuses.js.map + +/***/ }), + +/***/ 96440: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLORawErrorBudgetRemaining = void 0; +/** + * Error budget remaining for an SLO. + */ +class SLORawErrorBudgetRemaining { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLORawErrorBudgetRemaining.attributeTypeMap; + } +} +exports.SLORawErrorBudgetRemaining = SLORawErrorBudgetRemaining; +/** + * @ignore + */ +SLORawErrorBudgetRemaining.attributeTypeMap = { + unit: { + baseName: "unit", + type: "string", + }, + value: { + baseName: "value", + type: "number", + format: "double", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLORawErrorBudgetRemaining.js.map + +/***/ }), + +/***/ 3560: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOResponse = void 0; +/** + * A service level objective response containing a single service level objective. + */ +class SLOResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOResponse.attributeTypeMap; + } +} +exports.SLOResponse = SLOResponse; +/** + * @ignore + */ +SLOResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "SLOResponseData", + }, + errors: { + baseName: "errors", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOResponse.js.map + +/***/ }), + +/***/ 60848: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOResponseData = void 0; +/** + * A service level objective object includes a service level indicator, thresholds + * for one or more timeframes, and metadata (`name`, `description`, `tags`, etc.). + */ +class SLOResponseData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOResponseData.attributeTypeMap; + } +} +exports.SLOResponseData = SLOResponseData; +/** + * @ignore + */ +SLOResponseData.attributeTypeMap = { + configuredAlertIds: { + baseName: "configured_alert_ids", + type: "Array", + format: "int64", + }, + createdAt: { + baseName: "created_at", + type: "number", + format: "int64", + }, + creator: { + baseName: "creator", + type: "Creator", + }, + description: { + baseName: "description", + type: "string", + }, + groups: { + baseName: "groups", + type: "Array", + }, + id: { + baseName: "id", + type: "string", + }, + modifiedAt: { + baseName: "modified_at", + type: "number", + format: "int64", + }, + monitorIds: { + baseName: "monitor_ids", + type: "Array", + format: "int64", + }, + monitorTags: { + baseName: "monitor_tags", + type: "Array", + }, + name: { + baseName: "name", + type: "string", + }, + query: { + baseName: "query", + type: "ServiceLevelObjectiveQuery", + }, + sliSpecification: { + baseName: "sli_specification", + type: "SLOSliSpec", + }, + tags: { + baseName: "tags", + type: "Array", + }, + targetThreshold: { + baseName: "target_threshold", + type: "number", + format: "double", + }, + thresholds: { + baseName: "thresholds", + type: "Array", + }, + timeframe: { + baseName: "timeframe", + type: "SLOTimeframe", + }, + type: { + baseName: "type", + type: "SLOType", + }, + warningThreshold: { + baseName: "warning_threshold", + type: "number", + format: "double", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOResponseData.js.map + +/***/ }), + +/***/ 41137: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOStatus = void 0; +/** + * Status of the SLO's primary timeframe. + */ +class SLOStatus { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOStatus.attributeTypeMap; + } +} +exports.SLOStatus = SLOStatus; +/** + * @ignore + */ +SLOStatus.attributeTypeMap = { + calculationError: { + baseName: "calculation_error", + type: "string", + }, + errorBudgetRemaining: { + baseName: "error_budget_remaining", + type: "number", + format: "double", + }, + indexedAt: { + baseName: "indexed_at", + type: "number", + format: "int64", + }, + rawErrorBudgetRemaining: { + baseName: "raw_error_budget_remaining", + type: "SLORawErrorBudgetRemaining", + }, + sli: { + baseName: "sli", + type: "number", + format: "double", + }, + spanPrecision: { + baseName: "span_precision", + type: "number", + format: "int64", + }, + state: { + baseName: "state", + type: "SLOState", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOStatus.js.map + +/***/ }), + +/***/ 84084: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOThreshold = void 0; +/** + * SLO thresholds (target and optionally warning) for a single time window. + */ +class SLOThreshold { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOThreshold.attributeTypeMap; + } +} +exports.SLOThreshold = SLOThreshold; +/** + * @ignore + */ +SLOThreshold.attributeTypeMap = { + target: { + baseName: "target", + type: "number", + required: true, + format: "double", + }, + targetDisplay: { + baseName: "target_display", + type: "string", + }, + timeframe: { + baseName: "timeframe", + type: "SLOTimeframe", + required: true, + }, + warning: { + baseName: "warning", + type: "number", + format: "double", + }, + warningDisplay: { + baseName: "warning_display", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOThreshold.js.map + +/***/ }), + +/***/ 69757: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOTimeSliceCondition = void 0; +/** + * The time-slice condition, composed of 3 parts: 1. the metric timeseries query, 2. the comparator, + * and 3. the threshold. Optionally, a fourth part, the query interval, can be provided. + */ +class SLOTimeSliceCondition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOTimeSliceCondition.attributeTypeMap; + } +} +exports.SLOTimeSliceCondition = SLOTimeSliceCondition; +/** + * @ignore + */ +SLOTimeSliceCondition.attributeTypeMap = { + comparator: { + baseName: "comparator", + type: "SLOTimeSliceComparator", + required: true, + }, + query: { + baseName: "query", + type: "SLOTimeSliceQuery", + required: true, + }, + queryIntervalSeconds: { + baseName: "query_interval_seconds", + type: "SLOTimeSliceInterval", + format: "int32", + }, + threshold: { + baseName: "threshold", + type: "number", + required: true, + format: "double", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOTimeSliceCondition.js.map + +/***/ }), + +/***/ 2396: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOTimeSliceQuery = void 0; +/** + * The queries and formula used to calculate the SLI value. + */ +class SLOTimeSliceQuery { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOTimeSliceQuery.attributeTypeMap; + } +} +exports.SLOTimeSliceQuery = SLOTimeSliceQuery; +/** + * @ignore + */ +SLOTimeSliceQuery.attributeTypeMap = { + formulas: { + baseName: "formulas", + type: "[SLOFormula]", + required: true, + }, + queries: { + baseName: "queries", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOTimeSliceQuery.js.map + +/***/ }), + +/***/ 14605: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOTimeSliceSpec = void 0; +/** + * A time-slice SLI specification. + */ +class SLOTimeSliceSpec { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOTimeSliceSpec.attributeTypeMap; + } +} +exports.SLOTimeSliceSpec = SLOTimeSliceSpec; +/** + * @ignore + */ +SLOTimeSliceSpec.attributeTypeMap = { + timeSlice: { + baseName: "time_slice", + type: "SLOTimeSliceCondition", + required: true, + }, +}; +//# sourceMappingURL=SLOTimeSliceSpec.js.map + +/***/ }), + +/***/ 32578: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SLOWidgetDefinition = void 0; +/** + * Use the SLO and uptime widget to track your SLOs (Service Level Objectives) and uptime on screenboards and timeboards. + */ +class SLOWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SLOWidgetDefinition.attributeTypeMap; + } +} +exports.SLOWidgetDefinition = SLOWidgetDefinition; +/** + * @ignore + */ +SLOWidgetDefinition.attributeTypeMap = { + additionalQueryFilters: { + baseName: "additional_query_filters", + type: "string", + }, + globalTimeTarget: { + baseName: "global_time_target", + type: "string", + }, + showErrorBudget: { + baseName: "show_error_budget", + type: "boolean", + }, + sloId: { + baseName: "slo_id", + type: "string", + }, + timeWindows: { + baseName: "time_windows", + type: "Array", + }, + title: { + baseName: "title", + type: "string", + }, + titleAlign: { + baseName: "title_align", + type: "WidgetTextAlign", + }, + titleSize: { + baseName: "title_size", + type: "string", + }, + type: { + baseName: "type", + type: "SLOWidgetDefinitionType", + required: true, + }, + viewMode: { + baseName: "view_mode", + type: "WidgetViewMode", + }, + viewType: { + baseName: "view_type", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SLOWidgetDefinition.js.map + +/***/ }), + +/***/ 82405: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ScatterPlotRequest = void 0; +/** + * Updated scatter plot. + */ +class ScatterPlotRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ScatterPlotRequest.attributeTypeMap; + } +} +exports.ScatterPlotRequest = ScatterPlotRequest; +/** + * @ignore + */ +ScatterPlotRequest.attributeTypeMap = { + aggregator: { + baseName: "aggregator", + type: "ScatterplotWidgetAggregator", + }, + apmQuery: { + baseName: "apm_query", + type: "LogQueryDefinition", + }, + eventQuery: { + baseName: "event_query", + type: "LogQueryDefinition", + }, + logQuery: { + baseName: "log_query", + type: "LogQueryDefinition", + }, + networkQuery: { + baseName: "network_query", + type: "LogQueryDefinition", + }, + processQuery: { + baseName: "process_query", + type: "ProcessQueryDefinition", + }, + profileMetricsQuery: { + baseName: "profile_metrics_query", + type: "LogQueryDefinition", + }, + q: { + baseName: "q", + type: "string", + }, + rumQuery: { + baseName: "rum_query", + type: "LogQueryDefinition", + }, + securityQuery: { + baseName: "security_query", + type: "LogQueryDefinition", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ScatterPlotRequest.js.map + +/***/ }), + +/***/ 83127: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ScatterPlotWidgetDefinition = void 0; +/** + * The scatter plot visualization allows you to graph a chosen scope over two different metrics with their respective aggregation. + */ +class ScatterPlotWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ScatterPlotWidgetDefinition.attributeTypeMap; + } +} +exports.ScatterPlotWidgetDefinition = ScatterPlotWidgetDefinition; +/** + * @ignore + */ +ScatterPlotWidgetDefinition.attributeTypeMap = { + colorByGroups: { + baseName: "color_by_groups", + type: "Array", + }, + customLinks: { + baseName: "custom_links", + type: "Array", + }, + requests: { + baseName: "requests", + type: "ScatterPlotWidgetDefinitionRequests", + required: true, + }, + time: { + baseName: "time", + type: "WidgetTime", + }, + title: { + baseName: "title", + type: "string", + }, + titleAlign: { + baseName: "title_align", + type: "WidgetTextAlign", + }, + titleSize: { + baseName: "title_size", + type: "string", + }, + type: { + baseName: "type", + type: "ScatterPlotWidgetDefinitionType", + required: true, + }, + xaxis: { + baseName: "xaxis", + type: "WidgetAxis", + }, + yaxis: { + baseName: "yaxis", + type: "WidgetAxis", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ScatterPlotWidgetDefinition.js.map + +/***/ }), + +/***/ 70457: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ScatterPlotWidgetDefinitionRequests = void 0; +/** + * Widget definition. + */ +class ScatterPlotWidgetDefinitionRequests { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ScatterPlotWidgetDefinitionRequests.attributeTypeMap; + } +} +exports.ScatterPlotWidgetDefinitionRequests = ScatterPlotWidgetDefinitionRequests; +/** + * @ignore + */ +ScatterPlotWidgetDefinitionRequests.attributeTypeMap = { + table: { + baseName: "table", + type: "ScatterplotTableRequest", + }, + x: { + baseName: "x", + type: "ScatterPlotRequest", + }, + y: { + baseName: "y", + type: "ScatterPlotRequest", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ScatterPlotWidgetDefinitionRequests.js.map + +/***/ }), + +/***/ 95503: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ScatterplotTableRequest = void 0; +/** + * Scatterplot request containing formulas and functions. + */ +class ScatterplotTableRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ScatterplotTableRequest.attributeTypeMap; + } +} +exports.ScatterplotTableRequest = ScatterplotTableRequest; +/** + * @ignore + */ +ScatterplotTableRequest.attributeTypeMap = { + formulas: { + baseName: "formulas", + type: "Array", + }, + queries: { + baseName: "queries", + type: "Array", + }, + responseFormat: { + baseName: "response_format", + type: "FormulaAndFunctionResponseFormat", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ScatterplotTableRequest.js.map + +/***/ }), + +/***/ 51838: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ScatterplotWidgetFormula = void 0; +/** + * Formula to be used in a Scatterplot widget query. + */ +class ScatterplotWidgetFormula { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ScatterplotWidgetFormula.attributeTypeMap; + } +} +exports.ScatterplotWidgetFormula = ScatterplotWidgetFormula; +/** + * @ignore + */ +ScatterplotWidgetFormula.attributeTypeMap = { + alias: { + baseName: "alias", + type: "string", + }, + dimension: { + baseName: "dimension", + type: "ScatterplotDimension", + required: true, + }, + formula: { + baseName: "formula", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ScatterplotWidgetFormula.js.map + +/***/ }), + +/***/ 6219: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SearchSLOQuery = void 0; +/** + * A metric-based SLO. **Required if type is `metric`**. Note that Datadog only allows the sum by aggregator + * to be used because this will sum up all request counts instead of averaging them, or taking the max or + * min of all of those requests. + */ +class SearchSLOQuery { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SearchSLOQuery.attributeTypeMap; + } +} +exports.SearchSLOQuery = SearchSLOQuery; +/** + * @ignore + */ +SearchSLOQuery.attributeTypeMap = { + denominator: { + baseName: "denominator", + type: "string", + }, + metrics: { + baseName: "metrics", + type: "Array", + }, + numerator: { + baseName: "numerator", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SearchSLOQuery.js.map + +/***/ }), + +/***/ 19540: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SearchSLOResponse = void 0; +/** + * A search SLO response containing results from the search query. + */ +class SearchSLOResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SearchSLOResponse.attributeTypeMap; + } +} +exports.SearchSLOResponse = SearchSLOResponse; +/** + * @ignore + */ +SearchSLOResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "SearchSLOResponseData", + }, + links: { + baseName: "links", + type: "SearchSLOResponseLinks", + }, + meta: { + baseName: "meta", + type: "SearchSLOResponseMeta", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SearchSLOResponse.js.map + +/***/ }), + +/***/ 15772: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SearchSLOResponseData = void 0; +/** + * Data from search SLO response. + */ +class SearchSLOResponseData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SearchSLOResponseData.attributeTypeMap; + } +} +exports.SearchSLOResponseData = SearchSLOResponseData; +/** + * @ignore + */ +SearchSLOResponseData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "SearchSLOResponseDataAttributes", + }, + type: { + baseName: "type", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SearchSLOResponseData.js.map + +/***/ }), + +/***/ 72557: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SearchSLOResponseDataAttributes = void 0; +/** + * Attributes + */ +class SearchSLOResponseDataAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SearchSLOResponseDataAttributes.attributeTypeMap; + } +} +exports.SearchSLOResponseDataAttributes = SearchSLOResponseDataAttributes; +/** + * @ignore + */ +SearchSLOResponseDataAttributes.attributeTypeMap = { + facets: { + baseName: "facets", + type: "SearchSLOResponseDataAttributesFacets", + }, + slos: { + baseName: "slos", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SearchSLOResponseDataAttributes.js.map + +/***/ }), + +/***/ 97725: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SearchSLOResponseDataAttributesFacets = void 0; +/** + * Facets + */ +class SearchSLOResponseDataAttributesFacets { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SearchSLOResponseDataAttributesFacets.attributeTypeMap; + } +} +exports.SearchSLOResponseDataAttributesFacets = SearchSLOResponseDataAttributesFacets; +/** + * @ignore + */ +SearchSLOResponseDataAttributesFacets.attributeTypeMap = { + allTags: { + baseName: "all_tags", + type: "Array", + }, + creatorName: { + baseName: "creator_name", + type: "Array", + }, + envTags: { + baseName: "env_tags", + type: "Array", + }, + serviceTags: { + baseName: "service_tags", + type: "Array", + }, + sloType: { + baseName: "slo_type", + type: "Array", + }, + target: { + baseName: "target", + type: "Array", + }, + teamTags: { + baseName: "team_tags", + type: "Array", + }, + timeframe: { + baseName: "timeframe", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SearchSLOResponseDataAttributesFacets.js.map + +/***/ }), + +/***/ 72757: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SearchSLOResponseDataAttributesFacetsObjectInt = void 0; +/** + * Facet + */ +class SearchSLOResponseDataAttributesFacetsObjectInt { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SearchSLOResponseDataAttributesFacetsObjectInt.attributeTypeMap; + } +} +exports.SearchSLOResponseDataAttributesFacetsObjectInt = SearchSLOResponseDataAttributesFacetsObjectInt; +/** + * @ignore + */ +SearchSLOResponseDataAttributesFacetsObjectInt.attributeTypeMap = { + count: { + baseName: "count", + type: "number", + format: "int64", + }, + name: { + baseName: "name", + type: "number", + format: "double", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SearchSLOResponseDataAttributesFacetsObjectInt.js.map + +/***/ }), + +/***/ 61619: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SearchSLOResponseDataAttributesFacetsObjectString = void 0; +/** + * Facet + */ +class SearchSLOResponseDataAttributesFacetsObjectString { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SearchSLOResponseDataAttributesFacetsObjectString.attributeTypeMap; + } +} +exports.SearchSLOResponseDataAttributesFacetsObjectString = SearchSLOResponseDataAttributesFacetsObjectString; +/** + * @ignore + */ +SearchSLOResponseDataAttributesFacetsObjectString.attributeTypeMap = { + count: { + baseName: "count", + type: "number", + format: "int64", + }, + name: { + baseName: "name", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SearchSLOResponseDataAttributesFacetsObjectString.js.map + +/***/ }), + +/***/ 92607: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SearchSLOResponseLinks = void 0; +/** + * Pagination links. + */ +class SearchSLOResponseLinks { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SearchSLOResponseLinks.attributeTypeMap; + } +} +exports.SearchSLOResponseLinks = SearchSLOResponseLinks; +/** + * @ignore + */ +SearchSLOResponseLinks.attributeTypeMap = { + first: { + baseName: "first", + type: "string", + }, + last: { + baseName: "last", + type: "string", + }, + next: { + baseName: "next", + type: "string", + }, + prev: { + baseName: "prev", + type: "string", + }, + self: { + baseName: "self", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SearchSLOResponseLinks.js.map + +/***/ }), + +/***/ 34021: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SearchSLOResponseMeta = void 0; +/** + * Searches metadata returned by the API. + */ +class SearchSLOResponseMeta { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SearchSLOResponseMeta.attributeTypeMap; + } +} +exports.SearchSLOResponseMeta = SearchSLOResponseMeta; +/** + * @ignore + */ +SearchSLOResponseMeta.attributeTypeMap = { + pagination: { + baseName: "pagination", + type: "SearchSLOResponseMetaPage", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SearchSLOResponseMeta.js.map + +/***/ }), + +/***/ 73442: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SearchSLOResponseMetaPage = void 0; +/** + * Pagination metadata returned by the API. + */ +class SearchSLOResponseMetaPage { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SearchSLOResponseMetaPage.attributeTypeMap; + } +} +exports.SearchSLOResponseMetaPage = SearchSLOResponseMetaPage; +/** + * @ignore + */ +SearchSLOResponseMetaPage.attributeTypeMap = { + firstNumber: { + baseName: "first_number", + type: "number", + format: "int64", + }, + lastNumber: { + baseName: "last_number", + type: "number", + format: "int64", + }, + nextNumber: { + baseName: "next_number", + type: "number", + format: "int64", + }, + number: { + baseName: "number", + type: "number", + format: "int64", + }, + prevNumber: { + baseName: "prev_number", + type: "number", + format: "int64", + }, + size: { + baseName: "size", + type: "number", + format: "int64", + }, + total: { + baseName: "total", + type: "number", + format: "int64", + }, + type: { + baseName: "type", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SearchSLOResponseMetaPage.js.map + +/***/ }), + +/***/ 46224: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SearchSLOThreshold = void 0; +/** + * SLO thresholds (target and optionally warning) for a single time window. + */ +class SearchSLOThreshold { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SearchSLOThreshold.attributeTypeMap; + } +} +exports.SearchSLOThreshold = SearchSLOThreshold; +/** + * @ignore + */ +SearchSLOThreshold.attributeTypeMap = { + target: { + baseName: "target", + type: "number", + required: true, + format: "double", + }, + targetDisplay: { + baseName: "target_display", + type: "string", + }, + timeframe: { + baseName: "timeframe", + type: "SearchSLOTimeframe", + required: true, + }, + warning: { + baseName: "warning", + type: "number", + format: "double", + }, + warningDisplay: { + baseName: "warning_display", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SearchSLOThreshold.js.map + +/***/ }), + +/***/ 72809: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SearchServiceLevelObjective = void 0; +/** + * A service level objective data container. + */ +class SearchServiceLevelObjective { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SearchServiceLevelObjective.attributeTypeMap; + } +} +exports.SearchServiceLevelObjective = SearchServiceLevelObjective; +/** + * @ignore + */ +SearchServiceLevelObjective.attributeTypeMap = { + data: { + baseName: "data", + type: "SearchServiceLevelObjectiveData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SearchServiceLevelObjective.js.map + +/***/ }), + +/***/ 67883: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SearchServiceLevelObjectiveAttributes = void 0; +/** + * A service level objective object includes a service level indicator, thresholds + * for one or more timeframes, and metadata (`name`, `description`, and `tags`). + */ +class SearchServiceLevelObjectiveAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SearchServiceLevelObjectiveAttributes.attributeTypeMap; + } +} +exports.SearchServiceLevelObjectiveAttributes = SearchServiceLevelObjectiveAttributes; +/** + * @ignore + */ +SearchServiceLevelObjectiveAttributes.attributeTypeMap = { + allTags: { + baseName: "all_tags", + type: "Array", + }, + createdAt: { + baseName: "created_at", + type: "number", + format: "int64", + }, + creator: { + baseName: "creator", + type: "SLOCreator", + }, + description: { + baseName: "description", + type: "string", + }, + envTags: { + baseName: "env_tags", + type: "Array", + }, + groups: { + baseName: "groups", + type: "Array", + }, + modifiedAt: { + baseName: "modified_at", + type: "number", + format: "int64", + }, + monitorIds: { + baseName: "monitor_ids", + type: "Array", + format: "int64", + }, + name: { + baseName: "name", + type: "string", + }, + overallStatus: { + baseName: "overall_status", + type: "Array", + }, + query: { + baseName: "query", + type: "SearchSLOQuery", + }, + serviceTags: { + baseName: "service_tags", + type: "Array", + }, + sloType: { + baseName: "slo_type", + type: "SLOType", + }, + status: { + baseName: "status", + type: "SLOStatus", + }, + teamTags: { + baseName: "team_tags", + type: "Array", + }, + thresholds: { + baseName: "thresholds", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SearchServiceLevelObjectiveAttributes.js.map + +/***/ }), + +/***/ 98937: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SearchServiceLevelObjectiveData = void 0; +/** + * A service level objective ID and attributes. + */ +class SearchServiceLevelObjectiveData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SearchServiceLevelObjectiveData.attributeTypeMap; + } +} +exports.SearchServiceLevelObjectiveData = SearchServiceLevelObjectiveData; +/** + * @ignore + */ +SearchServiceLevelObjectiveData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "SearchServiceLevelObjectiveAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SearchServiceLevelObjectiveData.js.map + +/***/ }), + +/***/ 66617: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SelectableTemplateVariableItems = void 0; +/** + * Object containing the template variable's name, associated tag/attribute, default value and selectable values. + */ +class SelectableTemplateVariableItems { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SelectableTemplateVariableItems.attributeTypeMap; + } +} +exports.SelectableTemplateVariableItems = SelectableTemplateVariableItems; +/** + * @ignore + */ +SelectableTemplateVariableItems.attributeTypeMap = { + defaultValue: { + baseName: "default_value", + type: "string", + }, + name: { + baseName: "name", + type: "string", + }, + prefix: { + baseName: "prefix", + type: "string", + }, + visibleTags: { + baseName: "visible_tags", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SelectableTemplateVariableItems.js.map + +/***/ }), + +/***/ 72698: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Series = void 0; +/** + * A metric to submit to Datadog. + * See [Datadog metrics](https://docs.datadoghq.com/developers/metrics/#custom-metrics-properties). + */ +class Series { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return Series.attributeTypeMap; + } +} +exports.Series = Series; +/** + * @ignore + */ +Series.attributeTypeMap = { + host: { + baseName: "host", + type: "string", + }, + interval: { + baseName: "interval", + type: "number", + format: "int64", + }, + metric: { + baseName: "metric", + type: "string", + required: true, + }, + points: { + baseName: "points", + type: "Array<[number, number]>", + required: true, + format: "double", + }, + tags: { + baseName: "tags", + type: "Array", + }, + type: { + baseName: "type", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=Series.js.map + +/***/ }), + +/***/ 59794: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ServiceCheck = void 0; +/** + * An object containing service check and status. + */ +class ServiceCheck { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ServiceCheck.attributeTypeMap; + } +} +exports.ServiceCheck = ServiceCheck; +/** + * @ignore + */ +ServiceCheck.attributeTypeMap = { + check: { + baseName: "check", + type: "string", + required: true, + }, + hostName: { + baseName: "host_name", + type: "string", + required: true, + }, + message: { + baseName: "message", + type: "string", + }, + status: { + baseName: "status", + type: "ServiceCheckStatus", + required: true, + format: "int32", + }, + tags: { + baseName: "tags", + type: "Array", + required: true, + }, + timestamp: { + baseName: "timestamp", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ServiceCheck.js.map + +/***/ }), + +/***/ 81925: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ServiceLevelObjective = void 0; +/** + * A service level objective object includes a service level indicator, thresholds + * for one or more timeframes, and metadata (`name`, `description`, `tags`, etc.). + */ +class ServiceLevelObjective { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ServiceLevelObjective.attributeTypeMap; + } +} +exports.ServiceLevelObjective = ServiceLevelObjective; +/** + * @ignore + */ +ServiceLevelObjective.attributeTypeMap = { + createdAt: { + baseName: "created_at", + type: "number", + format: "int64", + }, + creator: { + baseName: "creator", + type: "Creator", + }, + description: { + baseName: "description", + type: "string", + }, + groups: { + baseName: "groups", + type: "Array", + }, + id: { + baseName: "id", + type: "string", + }, + modifiedAt: { + baseName: "modified_at", + type: "number", + format: "int64", + }, + monitorIds: { + baseName: "monitor_ids", + type: "Array", + format: "int64", + }, + monitorTags: { + baseName: "monitor_tags", + type: "Array", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + query: { + baseName: "query", + type: "ServiceLevelObjectiveQuery", + }, + sliSpecification: { + baseName: "sli_specification", + type: "SLOSliSpec", + }, + tags: { + baseName: "tags", + type: "Array", + }, + targetThreshold: { + baseName: "target_threshold", + type: "number", + format: "double", + }, + thresholds: { + baseName: "thresholds", + type: "Array", + required: true, + }, + timeframe: { + baseName: "timeframe", + type: "SLOTimeframe", + }, + type: { + baseName: "type", + type: "SLOType", + required: true, + }, + warningThreshold: { + baseName: "warning_threshold", + type: "number", + format: "double", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ServiceLevelObjective.js.map + +/***/ }), + +/***/ 18369: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ServiceLevelObjectiveQuery = void 0; +/** + * A metric-based SLO. **Required if type is `metric`**. Note that Datadog only allows the sum by aggregator + * to be used because this will sum up all request counts instead of averaging them, or taking the max or + * min of all of those requests. + */ +class ServiceLevelObjectiveQuery { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ServiceLevelObjectiveQuery.attributeTypeMap; + } +} +exports.ServiceLevelObjectiveQuery = ServiceLevelObjectiveQuery; +/** + * @ignore + */ +ServiceLevelObjectiveQuery.attributeTypeMap = { + denominator: { + baseName: "denominator", + type: "string", + required: true, + }, + numerator: { + baseName: "numerator", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ServiceLevelObjectiveQuery.js.map + +/***/ }), + +/***/ 89028: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ServiceLevelObjectiveRequest = void 0; +/** + * A service level objective object includes a service level indicator, thresholds + * for one or more timeframes, and metadata (`name`, `description`, `tags`, etc.). + */ +class ServiceLevelObjectiveRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ServiceLevelObjectiveRequest.attributeTypeMap; + } +} +exports.ServiceLevelObjectiveRequest = ServiceLevelObjectiveRequest; +/** + * @ignore + */ +ServiceLevelObjectiveRequest.attributeTypeMap = { + description: { + baseName: "description", + type: "string", + }, + groups: { + baseName: "groups", + type: "Array", + }, + monitorIds: { + baseName: "monitor_ids", + type: "Array", + format: "int64", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + query: { + baseName: "query", + type: "ServiceLevelObjectiveQuery", + }, + sliSpecification: { + baseName: "sli_specification", + type: "SLOSliSpec", + }, + tags: { + baseName: "tags", + type: "Array", + }, + targetThreshold: { + baseName: "target_threshold", + type: "number", + format: "double", + }, + thresholds: { + baseName: "thresholds", + type: "Array", + required: true, + }, + timeframe: { + baseName: "timeframe", + type: "SLOTimeframe", + }, + type: { + baseName: "type", + type: "SLOType", + required: true, + }, + warningThreshold: { + baseName: "warning_threshold", + type: "number", + format: "double", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ServiceLevelObjectiveRequest.js.map + +/***/ }), + +/***/ 46245: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ServiceMapWidgetDefinition = void 0; +/** + * This widget displays a map of a service to all of the services that call it, and all of the services that it calls. + */ +class ServiceMapWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ServiceMapWidgetDefinition.attributeTypeMap; + } +} +exports.ServiceMapWidgetDefinition = ServiceMapWidgetDefinition; +/** + * @ignore + */ +ServiceMapWidgetDefinition.attributeTypeMap = { + customLinks: { + baseName: "custom_links", + type: "Array", + }, + filters: { + baseName: "filters", + type: "Array", + required: true, + }, + service: { + baseName: "service", + type: "string", + required: true, + }, + title: { + baseName: "title", + type: "string", + }, + titleAlign: { + baseName: "title_align", + type: "WidgetTextAlign", + }, + titleSize: { + baseName: "title_size", + type: "string", + }, + type: { + baseName: "type", + type: "ServiceMapWidgetDefinitionType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ServiceMapWidgetDefinition.js.map + +/***/ }), + +/***/ 71779: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ServiceSummaryWidgetDefinition = void 0; +/** + * The service summary displays the graphs of a chosen service in your screenboard. Only available on FREE layout dashboards. + */ +class ServiceSummaryWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ServiceSummaryWidgetDefinition.attributeTypeMap; + } +} +exports.ServiceSummaryWidgetDefinition = ServiceSummaryWidgetDefinition; +/** + * @ignore + */ +ServiceSummaryWidgetDefinition.attributeTypeMap = { + displayFormat: { + baseName: "display_format", + type: "WidgetServiceSummaryDisplayFormat", + }, + env: { + baseName: "env", + type: "string", + required: true, + }, + service: { + baseName: "service", + type: "string", + required: true, + }, + showBreakdown: { + baseName: "show_breakdown", + type: "boolean", + }, + showDistribution: { + baseName: "show_distribution", + type: "boolean", + }, + showErrors: { + baseName: "show_errors", + type: "boolean", + }, + showHits: { + baseName: "show_hits", + type: "boolean", + }, + showLatency: { + baseName: "show_latency", + type: "boolean", + }, + showResourceList: { + baseName: "show_resource_list", + type: "boolean", + }, + sizeFormat: { + baseName: "size_format", + type: "WidgetSizeFormat", + }, + spanName: { + baseName: "span_name", + type: "string", + required: true, + }, + time: { + baseName: "time", + type: "WidgetTime", + }, + title: { + baseName: "title", + type: "string", + }, + titleAlign: { + baseName: "title_align", + type: "WidgetTextAlign", + }, + titleSize: { + baseName: "title_size", + type: "string", + }, + type: { + baseName: "type", + type: "ServiceSummaryWidgetDefinitionType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ServiceSummaryWidgetDefinition.js.map + +/***/ }), + +/***/ 40692: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SharedDashboard = void 0; +/** + * The metadata object associated with how a dashboard has been/will be shared. + */ +class SharedDashboard { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SharedDashboard.attributeTypeMap; + } +} +exports.SharedDashboard = SharedDashboard; +/** + * @ignore + */ +SharedDashboard.attributeTypeMap = { + author: { + baseName: "author", + type: "SharedDashboardAuthor", + }, + createdAt: { + baseName: "created_at", + type: "Date", + format: "date-time", + }, + dashboardId: { + baseName: "dashboard_id", + type: "string", + required: true, + }, + dashboardType: { + baseName: "dashboard_type", + type: "DashboardType", + required: true, + }, + globalTime: { + baseName: "global_time", + type: "DashboardGlobalTime", + }, + globalTimeSelectableEnabled: { + baseName: "global_time_selectable_enabled", + type: "boolean", + }, + publicUrl: { + baseName: "public_url", + type: "string", + }, + selectableTemplateVars: { + baseName: "selectable_template_vars", + type: "Array", + }, + shareList: { + baseName: "share_list", + type: "Array", + }, + shareType: { + baseName: "share_type", + type: "DashboardShareType", + }, + token: { + baseName: "token", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SharedDashboard.js.map + +/***/ }), + +/***/ 60655: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SharedDashboardAuthor = void 0; +/** + * User who shared the dashboard. + */ +class SharedDashboardAuthor { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SharedDashboardAuthor.attributeTypeMap; + } +} +exports.SharedDashboardAuthor = SharedDashboardAuthor; +/** + * @ignore + */ +SharedDashboardAuthor.attributeTypeMap = { + handle: { + baseName: "handle", + type: "string", + }, + name: { + baseName: "name", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SharedDashboardAuthor.js.map + +/***/ }), + +/***/ 8784: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SharedDashboardInvites = void 0; +/** + * Invitations data and metadata that exists for a shared dashboard returned by the API. + */ +class SharedDashboardInvites { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SharedDashboardInvites.attributeTypeMap; + } +} +exports.SharedDashboardInvites = SharedDashboardInvites; +/** + * @ignore + */ +SharedDashboardInvites.attributeTypeMap = { + data: { + baseName: "data", + type: "SharedDashboardInvitesData", + required: true, + }, + meta: { + baseName: "meta", + type: "SharedDashboardInvitesMeta", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SharedDashboardInvites.js.map + +/***/ }), + +/***/ 88703: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SharedDashboardInvitesDataObject = void 0; +/** + * Object containing the information for an invitation to a shared dashboard. + */ +class SharedDashboardInvitesDataObject { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SharedDashboardInvitesDataObject.attributeTypeMap; + } +} +exports.SharedDashboardInvitesDataObject = SharedDashboardInvitesDataObject; +/** + * @ignore + */ +SharedDashboardInvitesDataObject.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "SharedDashboardInvitesDataObjectAttributes", + required: true, + }, + type: { + baseName: "type", + type: "DashboardInviteType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SharedDashboardInvitesDataObject.js.map + +/***/ }), + +/***/ 61210: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SharedDashboardInvitesDataObjectAttributes = void 0; +/** + * Attributes of the shared dashboard invitation + */ +class SharedDashboardInvitesDataObjectAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SharedDashboardInvitesDataObjectAttributes.attributeTypeMap; + } +} +exports.SharedDashboardInvitesDataObjectAttributes = SharedDashboardInvitesDataObjectAttributes; +/** + * @ignore + */ +SharedDashboardInvitesDataObjectAttributes.attributeTypeMap = { + createdAt: { + baseName: "created_at", + type: "Date", + format: "date-time", + }, + email: { + baseName: "email", + type: "string", + }, + hasSession: { + baseName: "has_session", + type: "boolean", + }, + invitationExpiry: { + baseName: "invitation_expiry", + type: "Date", + format: "date-time", + }, + sessionExpiry: { + baseName: "session_expiry", + type: "Date", + format: "date-time", + }, + shareToken: { + baseName: "share_token", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SharedDashboardInvitesDataObjectAttributes.js.map + +/***/ }), + +/***/ 51449: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SharedDashboardInvitesMeta = void 0; +/** + * Pagination metadata returned by the API. + */ +class SharedDashboardInvitesMeta { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SharedDashboardInvitesMeta.attributeTypeMap; + } +} +exports.SharedDashboardInvitesMeta = SharedDashboardInvitesMeta; +/** + * @ignore + */ +SharedDashboardInvitesMeta.attributeTypeMap = { + page: { + baseName: "page", + type: "SharedDashboardInvitesMetaPage", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SharedDashboardInvitesMeta.js.map + +/***/ }), + +/***/ 51446: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SharedDashboardInvitesMetaPage = void 0; +/** + * Object containing the total count of invitations across all pages + */ +class SharedDashboardInvitesMetaPage { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SharedDashboardInvitesMetaPage.attributeTypeMap; + } +} +exports.SharedDashboardInvitesMetaPage = SharedDashboardInvitesMetaPage; +/** + * @ignore + */ +SharedDashboardInvitesMetaPage.attributeTypeMap = { + totalCount: { + baseName: "total_count", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SharedDashboardInvitesMetaPage.js.map + +/***/ }), + +/***/ 28008: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SharedDashboardUpdateRequest = void 0; +/** + * Update a shared dashboard's settings. + */ +class SharedDashboardUpdateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SharedDashboardUpdateRequest.attributeTypeMap; + } +} +exports.SharedDashboardUpdateRequest = SharedDashboardUpdateRequest; +/** + * @ignore + */ +SharedDashboardUpdateRequest.attributeTypeMap = { + globalTime: { + baseName: "global_time", + type: "SharedDashboardUpdateRequestGlobalTime", + required: true, + }, + globalTimeSelectableEnabled: { + baseName: "global_time_selectable_enabled", + type: "boolean", + }, + selectableTemplateVars: { + baseName: "selectable_template_vars", + type: "Array", + }, + shareList: { + baseName: "share_list", + type: "Array", + }, + shareType: { + baseName: "share_type", + type: "DashboardShareType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SharedDashboardUpdateRequest.js.map + +/***/ }), + +/***/ 30610: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SharedDashboardUpdateRequestGlobalTime = void 0; +/** + * Timeframe setting for the shared dashboard. + */ +class SharedDashboardUpdateRequestGlobalTime { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SharedDashboardUpdateRequestGlobalTime.attributeTypeMap; + } +} +exports.SharedDashboardUpdateRequestGlobalTime = SharedDashboardUpdateRequestGlobalTime; +/** + * @ignore + */ +SharedDashboardUpdateRequestGlobalTime.attributeTypeMap = { + liveSpan: { + baseName: "live_span", + type: "DashboardGlobalTimeLiveSpan", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SharedDashboardUpdateRequestGlobalTime.js.map + +/***/ }), + +/***/ 38948: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SignalAssigneeUpdateRequest = void 0; +/** + * Attributes describing an assignee update operation over a security signal. + */ +class SignalAssigneeUpdateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SignalAssigneeUpdateRequest.attributeTypeMap; + } +} +exports.SignalAssigneeUpdateRequest = SignalAssigneeUpdateRequest; +/** + * @ignore + */ +SignalAssigneeUpdateRequest.attributeTypeMap = { + assignee: { + baseName: "assignee", + type: "string", + required: true, + }, + version: { + baseName: "version", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SignalAssigneeUpdateRequest.js.map + +/***/ }), + +/***/ 78862: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SignalStateUpdateRequest = void 0; +/** + * Attributes describing the change of state for a given state. + */ +class SignalStateUpdateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SignalStateUpdateRequest.attributeTypeMap; + } +} +exports.SignalStateUpdateRequest = SignalStateUpdateRequest; +/** + * @ignore + */ +SignalStateUpdateRequest.attributeTypeMap = { + archiveComment: { + baseName: "archiveComment", + type: "string", + }, + archiveReason: { + baseName: "archiveReason", + type: "SignalArchiveReason", + }, + state: { + baseName: "state", + type: "SignalTriageState", + required: true, + }, + version: { + baseName: "version", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SignalStateUpdateRequest.js.map + +/***/ }), + +/***/ 82082: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SlackIntegrationChannel = void 0; +/** + * The Slack channel configuration. + */ +class SlackIntegrationChannel { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SlackIntegrationChannel.attributeTypeMap; + } +} +exports.SlackIntegrationChannel = SlackIntegrationChannel; +/** + * @ignore + */ +SlackIntegrationChannel.attributeTypeMap = { + display: { + baseName: "display", + type: "SlackIntegrationChannelDisplay", + }, + name: { + baseName: "name", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SlackIntegrationChannel.js.map + +/***/ }), + +/***/ 27122: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SlackIntegrationChannelDisplay = void 0; +/** + * Configuration options for what is shown in an alert event message. + */ +class SlackIntegrationChannelDisplay { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SlackIntegrationChannelDisplay.attributeTypeMap; + } +} +exports.SlackIntegrationChannelDisplay = SlackIntegrationChannelDisplay; +/** + * @ignore + */ +SlackIntegrationChannelDisplay.attributeTypeMap = { + message: { + baseName: "message", + type: "boolean", + }, + notified: { + baseName: "notified", + type: "boolean", + }, + snapshot: { + baseName: "snapshot", + type: "boolean", + }, + tags: { + baseName: "tags", + type: "boolean", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SlackIntegrationChannelDisplay.js.map + +/***/ }), + +/***/ 49749: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SplitConfig = void 0; +/** + * Encapsulates all user choices about how to split a graph. + */ +class SplitConfig { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SplitConfig.attributeTypeMap; + } +} +exports.SplitConfig = SplitConfig; +/** + * @ignore + */ +SplitConfig.attributeTypeMap = { + limit: { + baseName: "limit", + type: "number", + required: true, + format: "int64", + }, + sort: { + baseName: "sort", + type: "SplitSort", + required: true, + }, + splitDimensions: { + baseName: "split_dimensions", + type: "[SplitDimension]", + required: true, + }, + staticSplits: { + baseName: "static_splits", + type: "Array>", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SplitConfig.js.map + +/***/ }), + +/***/ 1012: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SplitConfigSortCompute = void 0; +/** + * Defines the metric and aggregation used as the sort value. + */ +class SplitConfigSortCompute { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SplitConfigSortCompute.attributeTypeMap; + } +} +exports.SplitConfigSortCompute = SplitConfigSortCompute; +/** + * @ignore + */ +SplitConfigSortCompute.attributeTypeMap = { + aggregation: { + baseName: "aggregation", + type: "string", + required: true, + }, + metric: { + baseName: "metric", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SplitConfigSortCompute.js.map + +/***/ }), + +/***/ 58623: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SplitDimension = void 0; +/** + * The property by which the graph splits + */ +class SplitDimension { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SplitDimension.attributeTypeMap; + } +} +exports.SplitDimension = SplitDimension; +/** + * @ignore + */ +SplitDimension.attributeTypeMap = { + oneGraphPer: { + baseName: "one_graph_per", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SplitDimension.js.map + +/***/ }), + +/***/ 62478: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SplitGraphWidgetDefinition = void 0; +/** + * The split graph widget allows you to create repeating units of a graph - one for each value in a group (for example: one per service) + */ +class SplitGraphWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SplitGraphWidgetDefinition.attributeTypeMap; + } +} +exports.SplitGraphWidgetDefinition = SplitGraphWidgetDefinition; +/** + * @ignore + */ +SplitGraphWidgetDefinition.attributeTypeMap = { + hasUniformYAxes: { + baseName: "has_uniform_y_axes", + type: "boolean", + }, + size: { + baseName: "size", + type: "SplitGraphVizSize", + required: true, + }, + sourceWidgetDefinition: { + baseName: "source_widget_definition", + type: "SplitGraphSourceWidgetDefinition", + required: true, + }, + splitConfig: { + baseName: "split_config", + type: "SplitConfig", + required: true, + }, + time: { + baseName: "time", + type: "WidgetTime", + }, + title: { + baseName: "title", + type: "string", + }, + type: { + baseName: "type", + type: "SplitGraphWidgetDefinitionType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SplitGraphWidgetDefinition.js.map + +/***/ }), + +/***/ 33119: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SplitSort = void 0; +/** + * Controls the order in which graphs appear in the split. + */ +class SplitSort { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SplitSort.attributeTypeMap; + } +} +exports.SplitSort = SplitSort; +/** + * @ignore + */ +SplitSort.attributeTypeMap = { + compute: { + baseName: "compute", + type: "SplitConfigSortCompute", + }, + order: { + baseName: "order", + type: "WidgetSort", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SplitSort.js.map + +/***/ }), + +/***/ 90225: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SplitVectorEntryItem = void 0; +/** + * The split graph list contains a graph for each value of the split dimension. + */ +class SplitVectorEntryItem { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SplitVectorEntryItem.attributeTypeMap; + } +} +exports.SplitVectorEntryItem = SplitVectorEntryItem; +/** + * @ignore + */ +SplitVectorEntryItem.attributeTypeMap = { + tagKey: { + baseName: "tag_key", + type: "string", + required: true, + }, + tagValues: { + baseName: "tag_values", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SplitVectorEntryItem.js.map + +/***/ }), + +/***/ 2487: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SuccessfulSignalUpdateResponse = void 0; +/** + * Updated signal data following a successfully performed update. + */ +class SuccessfulSignalUpdateResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SuccessfulSignalUpdateResponse.attributeTypeMap; + } +} +exports.SuccessfulSignalUpdateResponse = SuccessfulSignalUpdateResponse; +/** + * @ignore + */ +SuccessfulSignalUpdateResponse.attributeTypeMap = { + status: { + baseName: "status", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SuccessfulSignalUpdateResponse.js.map + +/***/ }), + +/***/ 74406: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SunburstWidgetDefinition = void 0; +/** + * Sunbursts are spot on to highlight how groups contribute to the total of a query. + */ +class SunburstWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SunburstWidgetDefinition.attributeTypeMap; + } +} +exports.SunburstWidgetDefinition = SunburstWidgetDefinition; +/** + * @ignore + */ +SunburstWidgetDefinition.attributeTypeMap = { + customLinks: { + baseName: "custom_links", + type: "Array", + }, + hideTotal: { + baseName: "hide_total", + type: "boolean", + }, + legend: { + baseName: "legend", + type: "SunburstWidgetLegend", + }, + requests: { + baseName: "requests", + type: "Array", + required: true, + }, + time: { + baseName: "time", + type: "WidgetTime", + }, + title: { + baseName: "title", + type: "string", + }, + titleAlign: { + baseName: "title_align", + type: "WidgetTextAlign", + }, + titleSize: { + baseName: "title_size", + type: "string", + }, + type: { + baseName: "type", + type: "SunburstWidgetDefinitionType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SunburstWidgetDefinition.js.map + +/***/ }), + +/***/ 63288: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SunburstWidgetLegendInlineAutomatic = void 0; +/** + * Configuration of inline or automatic legends. + */ +class SunburstWidgetLegendInlineAutomatic { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SunburstWidgetLegendInlineAutomatic.attributeTypeMap; + } +} +exports.SunburstWidgetLegendInlineAutomatic = SunburstWidgetLegendInlineAutomatic; +/** + * @ignore + */ +SunburstWidgetLegendInlineAutomatic.attributeTypeMap = { + hidePercent: { + baseName: "hide_percent", + type: "boolean", + }, + hideValue: { + baseName: "hide_value", + type: "boolean", + }, + type: { + baseName: "type", + type: "SunburstWidgetLegendInlineAutomaticType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SunburstWidgetLegendInlineAutomatic.js.map + +/***/ }), + +/***/ 18956: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SunburstWidgetLegendTable = void 0; +/** + * Configuration of table-based legend. + */ +class SunburstWidgetLegendTable { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SunburstWidgetLegendTable.attributeTypeMap; + } +} +exports.SunburstWidgetLegendTable = SunburstWidgetLegendTable; +/** + * @ignore + */ +SunburstWidgetLegendTable.attributeTypeMap = { + type: { + baseName: "type", + type: "SunburstWidgetLegendTableType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SunburstWidgetLegendTable.js.map + +/***/ }), + +/***/ 43526: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SunburstWidgetRequest = void 0; +/** + * Request definition of sunburst widget. + */ +class SunburstWidgetRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SunburstWidgetRequest.attributeTypeMap; + } +} +exports.SunburstWidgetRequest = SunburstWidgetRequest; +/** + * @ignore + */ +SunburstWidgetRequest.attributeTypeMap = { + apmQuery: { + baseName: "apm_query", + type: "LogQueryDefinition", + }, + auditQuery: { + baseName: "audit_query", + type: "LogQueryDefinition", + }, + eventQuery: { + baseName: "event_query", + type: "LogQueryDefinition", + }, + formulas: { + baseName: "formulas", + type: "Array", + }, + logQuery: { + baseName: "log_query", + type: "LogQueryDefinition", + }, + networkQuery: { + baseName: "network_query", + type: "LogQueryDefinition", + }, + processQuery: { + baseName: "process_query", + type: "ProcessQueryDefinition", + }, + profileMetricsQuery: { + baseName: "profile_metrics_query", + type: "LogQueryDefinition", + }, + q: { + baseName: "q", + type: "string", + }, + queries: { + baseName: "queries", + type: "Array", + }, + responseFormat: { + baseName: "response_format", + type: "FormulaAndFunctionResponseFormat", + }, + rumQuery: { + baseName: "rum_query", + type: "LogQueryDefinition", + }, + securityQuery: { + baseName: "security_query", + type: "LogQueryDefinition", + }, + style: { + baseName: "style", + type: "WidgetStyle", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SunburstWidgetRequest.js.map + +/***/ }), + +/***/ 45711: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsAPITest = void 0; +/** + * Object containing details about a Synthetic API test. + */ +class SyntheticsAPITest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsAPITest.attributeTypeMap; + } +} +exports.SyntheticsAPITest = SyntheticsAPITest; +/** + * @ignore + */ +SyntheticsAPITest.attributeTypeMap = { + config: { + baseName: "config", + type: "SyntheticsAPITestConfig", + required: true, + }, + locations: { + baseName: "locations", + type: "Array", + required: true, + }, + message: { + baseName: "message", + type: "string", + required: true, + }, + monitorId: { + baseName: "monitor_id", + type: "number", + format: "int64", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + options: { + baseName: "options", + type: "SyntheticsTestOptions", + required: true, + }, + publicId: { + baseName: "public_id", + type: "string", + }, + status: { + baseName: "status", + type: "SyntheticsTestPauseStatus", + }, + subtype: { + baseName: "subtype", + type: "SyntheticsTestDetailsSubType", + }, + tags: { + baseName: "tags", + type: "Array", + }, + type: { + baseName: "type", + type: "SyntheticsAPITestType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsAPITest.js.map + +/***/ }), + +/***/ 793: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsAPITestConfig = void 0; +/** + * Configuration object for a Synthetic API test. + */ +class SyntheticsAPITestConfig { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsAPITestConfig.attributeTypeMap; + } +} +exports.SyntheticsAPITestConfig = SyntheticsAPITestConfig; +/** + * @ignore + */ +SyntheticsAPITestConfig.attributeTypeMap = { + assertions: { + baseName: "assertions", + type: "Array", + }, + configVariables: { + baseName: "configVariables", + type: "Array", + }, + request: { + baseName: "request", + type: "SyntheticsTestRequest", + }, + steps: { + baseName: "steps", + type: "Array", + }, + variablesFromScript: { + baseName: "variablesFromScript", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsAPITestConfig.js.map + +/***/ }), + +/***/ 50034: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsAPITestResultData = void 0; +/** + * Object containing results for your Synthetic API test. + */ +class SyntheticsAPITestResultData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsAPITestResultData.attributeTypeMap; + } +} +exports.SyntheticsAPITestResultData = SyntheticsAPITestResultData; +/** + * @ignore + */ +SyntheticsAPITestResultData.attributeTypeMap = { + cert: { + baseName: "cert", + type: "SyntheticsSSLCertificate", + }, + eventType: { + baseName: "eventType", + type: "SyntheticsTestProcessStatus", + }, + failure: { + baseName: "failure", + type: "SyntheticsApiTestResultFailure", + }, + httpStatusCode: { + baseName: "httpStatusCode", + type: "number", + format: "int64", + }, + requestHeaders: { + baseName: "requestHeaders", + type: "{ [key: string]: any; }", + }, + responseBody: { + baseName: "responseBody", + type: "string", + }, + responseHeaders: { + baseName: "responseHeaders", + type: "{ [key: string]: any; }", + }, + responseSize: { + baseName: "responseSize", + type: "number", + format: "int64", + }, + timings: { + baseName: "timings", + type: "SyntheticsTiming", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsAPITestResultData.js.map + +/***/ }), + +/***/ 72015: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsAPITestResultFull = void 0; +/** + * Object returned describing a API test result. + */ +class SyntheticsAPITestResultFull { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsAPITestResultFull.attributeTypeMap; + } +} +exports.SyntheticsAPITestResultFull = SyntheticsAPITestResultFull; +/** + * @ignore + */ +SyntheticsAPITestResultFull.attributeTypeMap = { + check: { + baseName: "check", + type: "SyntheticsAPITestResultFullCheck", + }, + checkTime: { + baseName: "check_time", + type: "number", + format: "double", + }, + checkVersion: { + baseName: "check_version", + type: "number", + format: "int64", + }, + probeDc: { + baseName: "probe_dc", + type: "string", + }, + result: { + baseName: "result", + type: "SyntheticsAPITestResultData", + }, + resultId: { + baseName: "result_id", + type: "string", + }, + status: { + baseName: "status", + type: "SyntheticsTestMonitorStatus", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsAPITestResultFull.js.map + +/***/ }), + +/***/ 63335: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsAPITestResultFullCheck = void 0; +/** + * Object describing the API test configuration. + */ +class SyntheticsAPITestResultFullCheck { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsAPITestResultFullCheck.attributeTypeMap; + } +} +exports.SyntheticsAPITestResultFullCheck = SyntheticsAPITestResultFullCheck; +/** + * @ignore + */ +SyntheticsAPITestResultFullCheck.attributeTypeMap = { + config: { + baseName: "config", + type: "SyntheticsTestConfig", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsAPITestResultFullCheck.js.map + +/***/ }), + +/***/ 52834: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsAPITestResultShort = void 0; +/** + * Object with the results of a single Synthetic API test. + */ +class SyntheticsAPITestResultShort { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsAPITestResultShort.attributeTypeMap; + } +} +exports.SyntheticsAPITestResultShort = SyntheticsAPITestResultShort; +/** + * @ignore + */ +SyntheticsAPITestResultShort.attributeTypeMap = { + checkTime: { + baseName: "check_time", + type: "number", + format: "double", + }, + probeDc: { + baseName: "probe_dc", + type: "string", + }, + result: { + baseName: "result", + type: "SyntheticsAPITestResultShortResult", + }, + resultId: { + baseName: "result_id", + type: "string", + }, + status: { + baseName: "status", + type: "SyntheticsTestMonitorStatus", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsAPITestResultShort.js.map + +/***/ }), + +/***/ 14215: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsAPITestResultShortResult = void 0; +/** + * Result of the last API test run. + */ +class SyntheticsAPITestResultShortResult { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsAPITestResultShortResult.attributeTypeMap; + } +} +exports.SyntheticsAPITestResultShortResult = SyntheticsAPITestResultShortResult; +/** + * @ignore + */ +SyntheticsAPITestResultShortResult.attributeTypeMap = { + passed: { + baseName: "passed", + type: "boolean", + }, + timings: { + baseName: "timings", + type: "SyntheticsTiming", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsAPITestResultShortResult.js.map + +/***/ }), + +/***/ 5285: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsAPITestStep = void 0; +/** + * The Test step used in a Synthetic multi-step API test. + */ +class SyntheticsAPITestStep { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsAPITestStep.attributeTypeMap; + } +} +exports.SyntheticsAPITestStep = SyntheticsAPITestStep; +/** + * @ignore + */ +SyntheticsAPITestStep.attributeTypeMap = { + allowFailure: { + baseName: "allowFailure", + type: "boolean", + }, + assertions: { + baseName: "assertions", + type: "Array", + required: true, + }, + exitIfSucceed: { + baseName: "exitIfSucceed", + type: "boolean", + }, + extractedValues: { + baseName: "extractedValues", + type: "Array", + }, + isCritical: { + baseName: "isCritical", + type: "boolean", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + request: { + baseName: "request", + type: "SyntheticsTestRequest", + required: true, + }, + retry: { + baseName: "retry", + type: "SyntheticsTestOptionsRetry", + }, + subtype: { + baseName: "subtype", + type: "SyntheticsAPITestStepSubtype", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsAPITestStep.js.map + +/***/ }), + +/***/ 88244: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsAPIWaitStep = void 0; +/** + * The Wait step used in a Synthetic multi-step API test. + */ +class SyntheticsAPIWaitStep { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsAPIWaitStep.attributeTypeMap; + } +} +exports.SyntheticsAPIWaitStep = SyntheticsAPIWaitStep; +/** + * @ignore + */ +SyntheticsAPIWaitStep.attributeTypeMap = { + name: { + baseName: "name", + type: "string", + required: true, + }, + subtype: { + baseName: "subtype", + type: "SyntheticsAPIWaitStepSubtype", + required: true, + }, + value: { + baseName: "value", + type: "number", + required: true, + format: "int32", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsAPIWaitStep.js.map + +/***/ }), + +/***/ 1526: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsApiTestResultFailure = void 0; +/** + * The API test failure details. + */ +class SyntheticsApiTestResultFailure { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsApiTestResultFailure.attributeTypeMap; + } +} +exports.SyntheticsApiTestResultFailure = SyntheticsApiTestResultFailure; +/** + * @ignore + */ +SyntheticsApiTestResultFailure.attributeTypeMap = { + code: { + baseName: "code", + type: "SyntheticsApiTestFailureCode", + }, + message: { + baseName: "message", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsApiTestResultFailure.js.map + +/***/ }), + +/***/ 62014: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsAssertionBodyHashTarget = void 0; +/** + * An assertion which targets body hash. + */ +class SyntheticsAssertionBodyHashTarget { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsAssertionBodyHashTarget.attributeTypeMap; + } +} +exports.SyntheticsAssertionBodyHashTarget = SyntheticsAssertionBodyHashTarget; +/** + * @ignore + */ +SyntheticsAssertionBodyHashTarget.attributeTypeMap = { + operator: { + baseName: "operator", + type: "SyntheticsAssertionBodyHashOperator", + required: true, + }, + target: { + baseName: "target", + type: "any", + required: true, + }, + type: { + baseName: "type", + type: "SyntheticsAssertionBodyHashType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsAssertionBodyHashTarget.js.map + +/***/ }), + +/***/ 43995: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsAssertionJSONPathTarget = void 0; +/** + * An assertion for the `validatesJSONPath` operator. + */ +class SyntheticsAssertionJSONPathTarget { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsAssertionJSONPathTarget.attributeTypeMap; + } +} +exports.SyntheticsAssertionJSONPathTarget = SyntheticsAssertionJSONPathTarget; +/** + * @ignore + */ +SyntheticsAssertionJSONPathTarget.attributeTypeMap = { + operator: { + baseName: "operator", + type: "SyntheticsAssertionJSONPathOperator", + required: true, + }, + property: { + baseName: "property", + type: "string", + }, + target: { + baseName: "target", + type: "SyntheticsAssertionJSONPathTargetTarget", + }, + type: { + baseName: "type", + type: "SyntheticsAssertionType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsAssertionJSONPathTarget.js.map + +/***/ }), + +/***/ 91534: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsAssertionJSONPathTargetTarget = void 0; +/** + * Composed target for `validatesJSONPath` operator. + */ +class SyntheticsAssertionJSONPathTargetTarget { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsAssertionJSONPathTargetTarget.attributeTypeMap; + } +} +exports.SyntheticsAssertionJSONPathTargetTarget = SyntheticsAssertionJSONPathTargetTarget; +/** + * @ignore + */ +SyntheticsAssertionJSONPathTargetTarget.attributeTypeMap = { + elementsOperator: { + baseName: "elementsOperator", + type: "string", + }, + jsonPath: { + baseName: "jsonPath", + type: "string", + }, + operator: { + baseName: "operator", + type: "string", + }, + targetValue: { + baseName: "targetValue", + type: "any", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsAssertionJSONPathTargetTarget.js.map + +/***/ }), + +/***/ 38103: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsAssertionJSONSchemaTarget = void 0; +/** + * An assertion for the `validatesJSONSchema` operator. + */ +class SyntheticsAssertionJSONSchemaTarget { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsAssertionJSONSchemaTarget.attributeTypeMap; + } +} +exports.SyntheticsAssertionJSONSchemaTarget = SyntheticsAssertionJSONSchemaTarget; +/** + * @ignore + */ +SyntheticsAssertionJSONSchemaTarget.attributeTypeMap = { + operator: { + baseName: "operator", + type: "SyntheticsAssertionJSONSchemaOperator", + required: true, + }, + target: { + baseName: "target", + type: "SyntheticsAssertionJSONSchemaTargetTarget", + }, + type: { + baseName: "type", + type: "SyntheticsAssertionType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsAssertionJSONSchemaTarget.js.map + +/***/ }), + +/***/ 97658: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsAssertionJSONSchemaTargetTarget = void 0; +/** + * Composed target for `validatesJSONSchema` operator. + */ +class SyntheticsAssertionJSONSchemaTargetTarget { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsAssertionJSONSchemaTargetTarget.attributeTypeMap; + } +} +exports.SyntheticsAssertionJSONSchemaTargetTarget = SyntheticsAssertionJSONSchemaTargetTarget; +/** + * @ignore + */ +SyntheticsAssertionJSONSchemaTargetTarget.attributeTypeMap = { + jsonSchema: { + baseName: "jsonSchema", + type: "string", + }, + metaSchema: { + baseName: "metaSchema", + type: "SyntheticsAssertionJSONSchemaMetaSchema", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsAssertionJSONSchemaTargetTarget.js.map + +/***/ }), + +/***/ 21760: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsAssertionJavascript = void 0; +/** + * A JavaScript assertion. + */ +class SyntheticsAssertionJavascript { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsAssertionJavascript.attributeTypeMap; + } +} +exports.SyntheticsAssertionJavascript = SyntheticsAssertionJavascript; +/** + * @ignore + */ +SyntheticsAssertionJavascript.attributeTypeMap = { + code: { + baseName: "code", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "SyntheticsAssertionJavascriptType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsAssertionJavascript.js.map + +/***/ }), + +/***/ 35309: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsAssertionTarget = void 0; +/** + * An assertion which uses a simple target. + */ +class SyntheticsAssertionTarget { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsAssertionTarget.attributeTypeMap; + } +} +exports.SyntheticsAssertionTarget = SyntheticsAssertionTarget; +/** + * @ignore + */ +SyntheticsAssertionTarget.attributeTypeMap = { + operator: { + baseName: "operator", + type: "SyntheticsAssertionOperator", + required: true, + }, + property: { + baseName: "property", + type: "string", + }, + target: { + baseName: "target", + type: "any", + required: true, + }, + timingsScope: { + baseName: "timingsScope", + type: "SyntheticsAssertionTimingsScope", + }, + type: { + baseName: "type", + type: "SyntheticsAssertionType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsAssertionTarget.js.map + +/***/ }), + +/***/ 52733: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsAssertionXPathTarget = void 0; +/** + * An assertion for the `validatesXPath` operator. + */ +class SyntheticsAssertionXPathTarget { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsAssertionXPathTarget.attributeTypeMap; + } +} +exports.SyntheticsAssertionXPathTarget = SyntheticsAssertionXPathTarget; +/** + * @ignore + */ +SyntheticsAssertionXPathTarget.attributeTypeMap = { + operator: { + baseName: "operator", + type: "SyntheticsAssertionXPathOperator", + required: true, + }, + property: { + baseName: "property", + type: "string", + }, + target: { + baseName: "target", + type: "SyntheticsAssertionXPathTargetTarget", + }, + type: { + baseName: "type", + type: "SyntheticsAssertionType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsAssertionXPathTarget.js.map + +/***/ }), + +/***/ 40864: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsAssertionXPathTargetTarget = void 0; +/** + * Composed target for `validatesXPath` operator. + */ +class SyntheticsAssertionXPathTargetTarget { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsAssertionXPathTargetTarget.attributeTypeMap; + } +} +exports.SyntheticsAssertionXPathTargetTarget = SyntheticsAssertionXPathTargetTarget; +/** + * @ignore + */ +SyntheticsAssertionXPathTargetTarget.attributeTypeMap = { + operator: { + baseName: "operator", + type: "string", + }, + targetValue: { + baseName: "targetValue", + type: "any", + }, + xPath: { + baseName: "xPath", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsAssertionXPathTargetTarget.js.map + +/***/ }), + +/***/ 21247: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsBasicAuthDigest = void 0; +/** + * Object to handle digest authentication when performing the test. + */ +class SyntheticsBasicAuthDigest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsBasicAuthDigest.attributeTypeMap; + } +} +exports.SyntheticsBasicAuthDigest = SyntheticsBasicAuthDigest; +/** + * @ignore + */ +SyntheticsBasicAuthDigest.attributeTypeMap = { + password: { + baseName: "password", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "SyntheticsBasicAuthDigestType", + required: true, + }, + username: { + baseName: "username", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsBasicAuthDigest.js.map + +/***/ }), + +/***/ 13558: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsBasicAuthNTLM = void 0; +/** + * Object to handle `NTLM` authentication when performing the test. + */ +class SyntheticsBasicAuthNTLM { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsBasicAuthNTLM.attributeTypeMap; + } +} +exports.SyntheticsBasicAuthNTLM = SyntheticsBasicAuthNTLM; +/** + * @ignore + */ +SyntheticsBasicAuthNTLM.attributeTypeMap = { + domain: { + baseName: "domain", + type: "string", + }, + password: { + baseName: "password", + type: "string", + }, + type: { + baseName: "type", + type: "SyntheticsBasicAuthNTLMType", + required: true, + }, + username: { + baseName: "username", + type: "string", + }, + workstation: { + baseName: "workstation", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsBasicAuthNTLM.js.map + +/***/ }), + +/***/ 91327: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsBasicAuthOauthClient = void 0; +/** + * Object to handle `oauth client` authentication when performing the test. + */ +class SyntheticsBasicAuthOauthClient { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsBasicAuthOauthClient.attributeTypeMap; + } +} +exports.SyntheticsBasicAuthOauthClient = SyntheticsBasicAuthOauthClient; +/** + * @ignore + */ +SyntheticsBasicAuthOauthClient.attributeTypeMap = { + accessTokenUrl: { + baseName: "accessTokenUrl", + type: "string", + required: true, + }, + audience: { + baseName: "audience", + type: "string", + }, + clientId: { + baseName: "clientId", + type: "string", + required: true, + }, + clientSecret: { + baseName: "clientSecret", + type: "string", + required: true, + }, + resource: { + baseName: "resource", + type: "string", + }, + scope: { + baseName: "scope", + type: "string", + }, + tokenApiAuthentication: { + baseName: "tokenApiAuthentication", + type: "SyntheticsBasicAuthOauthTokenApiAuthentication", + required: true, + }, + type: { + baseName: "type", + type: "SyntheticsBasicAuthOauthClientType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsBasicAuthOauthClient.js.map + +/***/ }), + +/***/ 99671: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsBasicAuthOauthROP = void 0; +/** + * Object to handle `oauth rop` authentication when performing the test. + */ +class SyntheticsBasicAuthOauthROP { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsBasicAuthOauthROP.attributeTypeMap; + } +} +exports.SyntheticsBasicAuthOauthROP = SyntheticsBasicAuthOauthROP; +/** + * @ignore + */ +SyntheticsBasicAuthOauthROP.attributeTypeMap = { + accessTokenUrl: { + baseName: "accessTokenUrl", + type: "string", + required: true, + }, + audience: { + baseName: "audience", + type: "string", + }, + clientId: { + baseName: "clientId", + type: "string", + }, + clientSecret: { + baseName: "clientSecret", + type: "string", + }, + password: { + baseName: "password", + type: "string", + required: true, + }, + resource: { + baseName: "resource", + type: "string", + }, + scope: { + baseName: "scope", + type: "string", + }, + tokenApiAuthentication: { + baseName: "tokenApiAuthentication", + type: "SyntheticsBasicAuthOauthTokenApiAuthentication", + required: true, + }, + type: { + baseName: "type", + type: "SyntheticsBasicAuthOauthROPType", + required: true, + }, + username: { + baseName: "username", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsBasicAuthOauthROP.js.map + +/***/ }), + +/***/ 41599: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsBasicAuthSigv4 = void 0; +/** + * Object to handle `SIGV4` authentication when performing the test. + */ +class SyntheticsBasicAuthSigv4 { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsBasicAuthSigv4.attributeTypeMap; + } +} +exports.SyntheticsBasicAuthSigv4 = SyntheticsBasicAuthSigv4; +/** + * @ignore + */ +SyntheticsBasicAuthSigv4.attributeTypeMap = { + accessKey: { + baseName: "accessKey", + type: "string", + required: true, + }, + region: { + baseName: "region", + type: "string", + }, + secretKey: { + baseName: "secretKey", + type: "string", + required: true, + }, + serviceName: { + baseName: "serviceName", + type: "string", + }, + sessionToken: { + baseName: "sessionToken", + type: "string", + }, + type: { + baseName: "type", + type: "SyntheticsBasicAuthSigv4Type", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsBasicAuthSigv4.js.map + +/***/ }), + +/***/ 5361: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsBasicAuthWeb = void 0; +/** + * Object to handle basic authentication when performing the test. + */ +class SyntheticsBasicAuthWeb { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsBasicAuthWeb.attributeTypeMap; + } +} +exports.SyntheticsBasicAuthWeb = SyntheticsBasicAuthWeb; +/** + * @ignore + */ +SyntheticsBasicAuthWeb.attributeTypeMap = { + password: { + baseName: "password", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "SyntheticsBasicAuthWebType", + }, + username: { + baseName: "username", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsBasicAuthWeb.js.map + +/***/ }), + +/***/ 58426: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsBatchDetails = void 0; +/** + * Details about a batch response. + */ +class SyntheticsBatchDetails { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsBatchDetails.attributeTypeMap; + } +} +exports.SyntheticsBatchDetails = SyntheticsBatchDetails; +/** + * @ignore + */ +SyntheticsBatchDetails.attributeTypeMap = { + data: { + baseName: "data", + type: "SyntheticsBatchDetailsData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsBatchDetails.js.map + +/***/ }), + +/***/ 28013: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsBatchDetailsData = void 0; +/** + * Wrapper object that contains the details of a batch. + */ +class SyntheticsBatchDetailsData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsBatchDetailsData.attributeTypeMap; + } +} +exports.SyntheticsBatchDetailsData = SyntheticsBatchDetailsData; +/** + * @ignore + */ +SyntheticsBatchDetailsData.attributeTypeMap = { + metadata: { + baseName: "metadata", + type: "SyntheticsCIBatchMetadata", + }, + results: { + baseName: "results", + type: "Array", + }, + status: { + baseName: "status", + type: "SyntheticsBatchStatus", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsBatchDetailsData.js.map + +/***/ }), + +/***/ 82846: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsBatchResult = void 0; +/** + * Object with the results of a Synthetic batch. + */ +class SyntheticsBatchResult { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsBatchResult.attributeTypeMap; + } +} +exports.SyntheticsBatchResult = SyntheticsBatchResult; +/** + * @ignore + */ +SyntheticsBatchResult.attributeTypeMap = { + device: { + baseName: "device", + type: "string", + }, + duration: { + baseName: "duration", + type: "number", + format: "double", + }, + executionRule: { + baseName: "execution_rule", + type: "SyntheticsTestExecutionRule", + }, + location: { + baseName: "location", + type: "string", + }, + resultId: { + baseName: "result_id", + type: "string", + }, + retries: { + baseName: "retries", + type: "number", + format: "double", + }, + status: { + baseName: "status", + type: "SyntheticsBatchStatus", + }, + testName: { + baseName: "test_name", + type: "string", + }, + testPublicId: { + baseName: "test_public_id", + type: "string", + }, + testType: { + baseName: "test_type", + type: "SyntheticsTestDetailsType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsBatchResult.js.map + +/***/ }), + +/***/ 52333: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsBrowserError = void 0; +/** + * Error response object for a browser test. + */ +class SyntheticsBrowserError { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsBrowserError.attributeTypeMap; + } +} +exports.SyntheticsBrowserError = SyntheticsBrowserError; +/** + * @ignore + */ +SyntheticsBrowserError.attributeTypeMap = { + description: { + baseName: "description", + type: "string", + required: true, + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + status: { + baseName: "status", + type: "number", + format: "int64", + }, + type: { + baseName: "type", + type: "SyntheticsBrowserErrorType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsBrowserError.js.map + +/***/ }), + +/***/ 8551: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsBrowserTest = void 0; +/** + * Object containing details about a Synthetic browser test. + */ +class SyntheticsBrowserTest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsBrowserTest.attributeTypeMap; + } +} +exports.SyntheticsBrowserTest = SyntheticsBrowserTest; +/** + * @ignore + */ +SyntheticsBrowserTest.attributeTypeMap = { + config: { + baseName: "config", + type: "SyntheticsBrowserTestConfig", + required: true, + }, + locations: { + baseName: "locations", + type: "Array", + required: true, + }, + message: { + baseName: "message", + type: "string", + required: true, + }, + monitorId: { + baseName: "monitor_id", + type: "number", + format: "int64", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + options: { + baseName: "options", + type: "SyntheticsTestOptions", + required: true, + }, + publicId: { + baseName: "public_id", + type: "string", + }, + status: { + baseName: "status", + type: "SyntheticsTestPauseStatus", + }, + steps: { + baseName: "steps", + type: "Array", + }, + tags: { + baseName: "tags", + type: "Array", + }, + type: { + baseName: "type", + type: "SyntheticsBrowserTestType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsBrowserTest.js.map + +/***/ }), + +/***/ 5793: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsBrowserTestConfig = void 0; +/** + * Configuration object for a Synthetic browser test. + */ +class SyntheticsBrowserTestConfig { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsBrowserTestConfig.attributeTypeMap; + } +} +exports.SyntheticsBrowserTestConfig = SyntheticsBrowserTestConfig; +/** + * @ignore + */ +SyntheticsBrowserTestConfig.attributeTypeMap = { + assertions: { + baseName: "assertions", + type: "Array", + required: true, + }, + configVariables: { + baseName: "configVariables", + type: "Array", + }, + request: { + baseName: "request", + type: "SyntheticsTestRequest", + required: true, + }, + setCookie: { + baseName: "setCookie", + type: "string", + }, + variables: { + baseName: "variables", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsBrowserTestConfig.js.map + +/***/ }), + +/***/ 91226: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsBrowserTestResultData = void 0; +/** + * Object containing results for your Synthetic browser test. + */ +class SyntheticsBrowserTestResultData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsBrowserTestResultData.attributeTypeMap; + } +} +exports.SyntheticsBrowserTestResultData = SyntheticsBrowserTestResultData; +/** + * @ignore + */ +SyntheticsBrowserTestResultData.attributeTypeMap = { + browserType: { + baseName: "browserType", + type: "string", + }, + browserVersion: { + baseName: "browserVersion", + type: "string", + }, + device: { + baseName: "device", + type: "SyntheticsDevice", + }, + duration: { + baseName: "duration", + type: "number", + format: "double", + }, + error: { + baseName: "error", + type: "string", + }, + failure: { + baseName: "failure", + type: "SyntheticsBrowserTestResultFailure", + }, + passed: { + baseName: "passed", + type: "boolean", + }, + receivedEmailCount: { + baseName: "receivedEmailCount", + type: "number", + format: "int64", + }, + startUrl: { + baseName: "startUrl", + type: "string", + }, + stepDetails: { + baseName: "stepDetails", + type: "Array", + }, + thumbnailsBucketKey: { + baseName: "thumbnailsBucketKey", + type: "boolean", + }, + timeToInteractive: { + baseName: "timeToInteractive", + type: "number", + format: "double", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsBrowserTestResultData.js.map + +/***/ }), + +/***/ 56110: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsBrowserTestResultFailure = void 0; +/** + * The browser test failure details. + */ +class SyntheticsBrowserTestResultFailure { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsBrowserTestResultFailure.attributeTypeMap; + } +} +exports.SyntheticsBrowserTestResultFailure = SyntheticsBrowserTestResultFailure; +/** + * @ignore + */ +SyntheticsBrowserTestResultFailure.attributeTypeMap = { + code: { + baseName: "code", + type: "SyntheticsBrowserTestFailureCode", + }, + message: { + baseName: "message", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsBrowserTestResultFailure.js.map + +/***/ }), + +/***/ 56567: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsBrowserTestResultFull = void 0; +/** + * Object returned describing a browser test result. + */ +class SyntheticsBrowserTestResultFull { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsBrowserTestResultFull.attributeTypeMap; + } +} +exports.SyntheticsBrowserTestResultFull = SyntheticsBrowserTestResultFull; +/** + * @ignore + */ +SyntheticsBrowserTestResultFull.attributeTypeMap = { + check: { + baseName: "check", + type: "SyntheticsBrowserTestResultFullCheck", + }, + checkTime: { + baseName: "check_time", + type: "number", + format: "double", + }, + checkVersion: { + baseName: "check_version", + type: "number", + format: "int64", + }, + probeDc: { + baseName: "probe_dc", + type: "string", + }, + result: { + baseName: "result", + type: "SyntheticsBrowserTestResultData", + }, + resultId: { + baseName: "result_id", + type: "string", + }, + status: { + baseName: "status", + type: "SyntheticsTestMonitorStatus", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsBrowserTestResultFull.js.map + +/***/ }), + +/***/ 17343: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsBrowserTestResultFullCheck = void 0; +/** + * Object describing the browser test configuration. + */ +class SyntheticsBrowserTestResultFullCheck { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsBrowserTestResultFullCheck.attributeTypeMap; + } +} +exports.SyntheticsBrowserTestResultFullCheck = SyntheticsBrowserTestResultFullCheck; +/** + * @ignore + */ +SyntheticsBrowserTestResultFullCheck.attributeTypeMap = { + config: { + baseName: "config", + type: "SyntheticsTestConfig", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsBrowserTestResultFullCheck.js.map + +/***/ }), + +/***/ 14458: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsBrowserTestResultShort = void 0; +/** + * Object with the results of a single Synthetic browser test. + */ +class SyntheticsBrowserTestResultShort { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsBrowserTestResultShort.attributeTypeMap; + } +} +exports.SyntheticsBrowserTestResultShort = SyntheticsBrowserTestResultShort; +/** + * @ignore + */ +SyntheticsBrowserTestResultShort.attributeTypeMap = { + checkTime: { + baseName: "check_time", + type: "number", + format: "double", + }, + probeDc: { + baseName: "probe_dc", + type: "string", + }, + result: { + baseName: "result", + type: "SyntheticsBrowserTestResultShortResult", + }, + resultId: { + baseName: "result_id", + type: "string", + }, + status: { + baseName: "status", + type: "SyntheticsTestMonitorStatus", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsBrowserTestResultShort.js.map + +/***/ }), + +/***/ 92175: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsBrowserTestResultShortResult = void 0; +/** + * Object with the result of the last browser test run. + */ +class SyntheticsBrowserTestResultShortResult { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsBrowserTestResultShortResult.attributeTypeMap; + } +} +exports.SyntheticsBrowserTestResultShortResult = SyntheticsBrowserTestResultShortResult; +/** + * @ignore + */ +SyntheticsBrowserTestResultShortResult.attributeTypeMap = { + device: { + baseName: "device", + type: "SyntheticsDevice", + }, + duration: { + baseName: "duration", + type: "number", + format: "double", + }, + errorCount: { + baseName: "errorCount", + type: "number", + format: "int64", + }, + stepCountCompleted: { + baseName: "stepCountCompleted", + type: "number", + format: "int64", + }, + stepCountTotal: { + baseName: "stepCountTotal", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsBrowserTestResultShortResult.js.map + +/***/ }), + +/***/ 50098: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsBrowserTestRumSettings = void 0; +/** + * The RUM data collection settings for the Synthetic browser test. + * **Note:** There are 3 ways to format RUM settings: + * + * `{ isEnabled: false }` + * RUM data is not collected. + * + * `{ isEnabled: true }` + * RUM data is collected from the Synthetic test's default application. + * + * `{ isEnabled: true, applicationId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", clientTokenId: 12345 }` + * RUM data is collected using the specified application. + */ +class SyntheticsBrowserTestRumSettings { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsBrowserTestRumSettings.attributeTypeMap; + } +} +exports.SyntheticsBrowserTestRumSettings = SyntheticsBrowserTestRumSettings; +/** + * @ignore + */ +SyntheticsBrowserTestRumSettings.attributeTypeMap = { + applicationId: { + baseName: "applicationId", + type: "string", + }, + clientTokenId: { + baseName: "clientTokenId", + type: "number", + format: "int64", + }, + isEnabled: { + baseName: "isEnabled", + type: "boolean", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsBrowserTestRumSettings.js.map + +/***/ }), + +/***/ 51979: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsBrowserVariable = void 0; +/** + * Object defining a variable that can be used in your browser test. + * See the [Recording Steps documentation](https://docs.datadoghq.com/synthetics/browser_tests/actions/?tab=testanelementontheactivepage#variables). + */ +class SyntheticsBrowserVariable { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsBrowserVariable.attributeTypeMap; + } +} +exports.SyntheticsBrowserVariable = SyntheticsBrowserVariable; +/** + * @ignore + */ +SyntheticsBrowserVariable.attributeTypeMap = { + example: { + baseName: "example", + type: "string", + }, + id: { + baseName: "id", + type: "string", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + pattern: { + baseName: "pattern", + type: "string", + }, + secure: { + baseName: "secure", + type: "boolean", + }, + type: { + baseName: "type", + type: "SyntheticsBrowserVariableType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsBrowserVariable.js.map + +/***/ }), + +/***/ 51250: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsCIBatchMetadata = void 0; +/** + * Metadata for the Synthetic tests run. + */ +class SyntheticsCIBatchMetadata { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsCIBatchMetadata.attributeTypeMap; + } +} +exports.SyntheticsCIBatchMetadata = SyntheticsCIBatchMetadata; +/** + * @ignore + */ +SyntheticsCIBatchMetadata.attributeTypeMap = { + ci: { + baseName: "ci", + type: "SyntheticsCIBatchMetadataCI", + }, + git: { + baseName: "git", + type: "SyntheticsCIBatchMetadataGit", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsCIBatchMetadata.js.map + +/***/ }), + +/***/ 12838: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsCIBatchMetadataCI = void 0; +/** + * Description of the CI provider. + */ +class SyntheticsCIBatchMetadataCI { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsCIBatchMetadataCI.attributeTypeMap; + } +} +exports.SyntheticsCIBatchMetadataCI = SyntheticsCIBatchMetadataCI; +/** + * @ignore + */ +SyntheticsCIBatchMetadataCI.attributeTypeMap = { + pipeline: { + baseName: "pipeline", + type: "SyntheticsCIBatchMetadataPipeline", + }, + provider: { + baseName: "provider", + type: "SyntheticsCIBatchMetadataProvider", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsCIBatchMetadataCI.js.map + +/***/ }), + +/***/ 41855: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsCIBatchMetadataGit = void 0; +/** + * Git information. + */ +class SyntheticsCIBatchMetadataGit { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsCIBatchMetadataGit.attributeTypeMap; + } +} +exports.SyntheticsCIBatchMetadataGit = SyntheticsCIBatchMetadataGit; +/** + * @ignore + */ +SyntheticsCIBatchMetadataGit.attributeTypeMap = { + branch: { + baseName: "branch", + type: "string", + }, + commitSha: { + baseName: "commitSha", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsCIBatchMetadataGit.js.map + +/***/ }), + +/***/ 74532: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsCIBatchMetadataPipeline = void 0; +/** + * Description of the CI pipeline. + */ +class SyntheticsCIBatchMetadataPipeline { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsCIBatchMetadataPipeline.attributeTypeMap; + } +} +exports.SyntheticsCIBatchMetadataPipeline = SyntheticsCIBatchMetadataPipeline; +/** + * @ignore + */ +SyntheticsCIBatchMetadataPipeline.attributeTypeMap = { + url: { + baseName: "url", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsCIBatchMetadataPipeline.js.map + +/***/ }), + +/***/ 4111: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsCIBatchMetadataProvider = void 0; +/** + * Description of the CI provider. + */ +class SyntheticsCIBatchMetadataProvider { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsCIBatchMetadataProvider.attributeTypeMap; + } +} +exports.SyntheticsCIBatchMetadataProvider = SyntheticsCIBatchMetadataProvider; +/** + * @ignore + */ +SyntheticsCIBatchMetadataProvider.attributeTypeMap = { + name: { + baseName: "name", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsCIBatchMetadataProvider.js.map + +/***/ }), + +/***/ 10527: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsCITest = void 0; +/** + * Configuration for Continuous Testing. + */ +class SyntheticsCITest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsCITest.attributeTypeMap; + } +} +exports.SyntheticsCITest = SyntheticsCITest; +/** + * @ignore + */ +SyntheticsCITest.attributeTypeMap = { + allowInsecureCertificates: { + baseName: "allowInsecureCertificates", + type: "boolean", + }, + basicAuth: { + baseName: "basicAuth", + type: "SyntheticsBasicAuth", + }, + body: { + baseName: "body", + type: "string", + }, + bodyType: { + baseName: "bodyType", + type: "string", + }, + cookies: { + baseName: "cookies", + type: "string", + }, + deviceIds: { + baseName: "deviceIds", + type: "Array", + }, + followRedirects: { + baseName: "followRedirects", + type: "boolean", + }, + headers: { + baseName: "headers", + type: "{ [key: string]: string; }", + }, + locations: { + baseName: "locations", + type: "Array", + }, + metadata: { + baseName: "metadata", + type: "SyntheticsCIBatchMetadata", + }, + publicId: { + baseName: "public_id", + type: "string", + required: true, + }, + retry: { + baseName: "retry", + type: "SyntheticsTestOptionsRetry", + }, + startUrl: { + baseName: "startUrl", + type: "string", + }, + variables: { + baseName: "variables", + type: "{ [key: string]: string; }", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsCITest.js.map + +/***/ }), + +/***/ 33379: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsCITestBody = void 0; +/** + * Object describing the synthetics tests to trigger. + */ +class SyntheticsCITestBody { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsCITestBody.attributeTypeMap; + } +} +exports.SyntheticsCITestBody = SyntheticsCITestBody; +/** + * @ignore + */ +SyntheticsCITestBody.attributeTypeMap = { + tests: { + baseName: "tests", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsCITestBody.js.map + +/***/ }), + +/***/ 69633: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsConfigVariable = void 0; +/** + * Object defining a variable that can be used in your test configuration. + */ +class SyntheticsConfigVariable { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsConfigVariable.attributeTypeMap; + } +} +exports.SyntheticsConfigVariable = SyntheticsConfigVariable; +/** + * @ignore + */ +SyntheticsConfigVariable.attributeTypeMap = { + example: { + baseName: "example", + type: "string", + }, + id: { + baseName: "id", + type: "string", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + pattern: { + baseName: "pattern", + type: "string", + }, + secure: { + baseName: "secure", + type: "boolean", + }, + type: { + baseName: "type", + type: "SyntheticsConfigVariableType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsConfigVariable.js.map + +/***/ }), + +/***/ 61867: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsCoreWebVitals = void 0; +/** + * Core Web Vitals attached to a browser test step. + */ +class SyntheticsCoreWebVitals { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsCoreWebVitals.attributeTypeMap; + } +} +exports.SyntheticsCoreWebVitals = SyntheticsCoreWebVitals; +/** + * @ignore + */ +SyntheticsCoreWebVitals.attributeTypeMap = { + cls: { + baseName: "cls", + type: "number", + format: "double", + }, + lcp: { + baseName: "lcp", + type: "number", + format: "double", + }, + url: { + baseName: "url", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsCoreWebVitals.js.map + +/***/ }), + +/***/ 61689: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsDeleteTestsPayload = void 0; +/** + * A JSON list of the ID or IDs of the Synthetic tests that you want + * to delete. + */ +class SyntheticsDeleteTestsPayload { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsDeleteTestsPayload.attributeTypeMap; + } +} +exports.SyntheticsDeleteTestsPayload = SyntheticsDeleteTestsPayload; +/** + * @ignore + */ +SyntheticsDeleteTestsPayload.attributeTypeMap = { + forceDeleteDependencies: { + baseName: "force_delete_dependencies", + type: "boolean", + }, + publicIds: { + baseName: "public_ids", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsDeleteTestsPayload.js.map + +/***/ }), + +/***/ 2940: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsDeleteTestsResponse = void 0; +/** + * Response object for deleting Synthetic tests. + */ +class SyntheticsDeleteTestsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsDeleteTestsResponse.attributeTypeMap; + } +} +exports.SyntheticsDeleteTestsResponse = SyntheticsDeleteTestsResponse; +/** + * @ignore + */ +SyntheticsDeleteTestsResponse.attributeTypeMap = { + deletedTests: { + baseName: "deleted_tests", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsDeleteTestsResponse.js.map + +/***/ }), + +/***/ 34914: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsDeletedTest = void 0; +/** + * Object containing a deleted Synthetic test ID with the associated + * deletion timestamp. + */ +class SyntheticsDeletedTest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsDeletedTest.attributeTypeMap; + } +} +exports.SyntheticsDeletedTest = SyntheticsDeletedTest; +/** + * @ignore + */ +SyntheticsDeletedTest.attributeTypeMap = { + deletedAt: { + baseName: "deleted_at", + type: "Date", + format: "date-time", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsDeletedTest.js.map + +/***/ }), + +/***/ 29585: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsDevice = void 0; +/** + * Object describing the device used to perform the Synthetic test. + */ +class SyntheticsDevice { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsDevice.attributeTypeMap; + } +} +exports.SyntheticsDevice = SyntheticsDevice; +/** + * @ignore + */ +SyntheticsDevice.attributeTypeMap = { + height: { + baseName: "height", + type: "number", + required: true, + format: "int64", + }, + id: { + baseName: "id", + type: "string", + required: true, + }, + isMobile: { + baseName: "isMobile", + type: "boolean", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + width: { + baseName: "width", + type: "number", + required: true, + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsDevice.js.map + +/***/ }), + +/***/ 69642: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsFetchUptimesPayload = void 0; +/** + * Object containing IDs of Synthetic tests and a timeframe. + */ +class SyntheticsFetchUptimesPayload { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsFetchUptimesPayload.attributeTypeMap; + } +} +exports.SyntheticsFetchUptimesPayload = SyntheticsFetchUptimesPayload; +/** + * @ignore + */ +SyntheticsFetchUptimesPayload.attributeTypeMap = { + fromTs: { + baseName: "from_ts", + type: "number", + required: true, + format: "int64", + }, + publicIds: { + baseName: "public_ids", + type: "Array", + required: true, + }, + toTs: { + baseName: "to_ts", + type: "number", + required: true, + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsFetchUptimesPayload.js.map + +/***/ }), + +/***/ 15747: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsGetAPITestLatestResultsResponse = void 0; +/** + * Object with the latest Synthetic API test run. + */ +class SyntheticsGetAPITestLatestResultsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsGetAPITestLatestResultsResponse.attributeTypeMap; + } +} +exports.SyntheticsGetAPITestLatestResultsResponse = SyntheticsGetAPITestLatestResultsResponse; +/** + * @ignore + */ +SyntheticsGetAPITestLatestResultsResponse.attributeTypeMap = { + lastTimestampFetched: { + baseName: "last_timestamp_fetched", + type: "number", + format: "int64", + }, + results: { + baseName: "results", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsGetAPITestLatestResultsResponse.js.map + +/***/ }), + +/***/ 47763: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsGetBrowserTestLatestResultsResponse = void 0; +/** + * Object with the latest Synthetic browser test run. + */ +class SyntheticsGetBrowserTestLatestResultsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsGetBrowserTestLatestResultsResponse.attributeTypeMap; + } +} +exports.SyntheticsGetBrowserTestLatestResultsResponse = SyntheticsGetBrowserTestLatestResultsResponse; +/** + * @ignore + */ +SyntheticsGetBrowserTestLatestResultsResponse.attributeTypeMap = { + lastTimestampFetched: { + baseName: "last_timestamp_fetched", + type: "number", + format: "int64", + }, + results: { + baseName: "results", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsGetBrowserTestLatestResultsResponse.js.map + +/***/ }), + +/***/ 71956: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsGlobalVariable = void 0; +/** + * Synthetic global variable. + */ +class SyntheticsGlobalVariable { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsGlobalVariable.attributeTypeMap; + } +} +exports.SyntheticsGlobalVariable = SyntheticsGlobalVariable; +/** + * @ignore + */ +SyntheticsGlobalVariable.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "SyntheticsGlobalVariableAttributes", + }, + description: { + baseName: "description", + type: "string", + required: true, + }, + id: { + baseName: "id", + type: "string", + }, + isFido: { + baseName: "is_fido", + type: "boolean", + }, + isTotp: { + baseName: "is_totp", + type: "boolean", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + parseTestOptions: { + baseName: "parse_test_options", + type: "SyntheticsGlobalVariableParseTestOptions", + }, + parseTestPublicId: { + baseName: "parse_test_public_id", + type: "string", + }, + tags: { + baseName: "tags", + type: "Array", + required: true, + }, + value: { + baseName: "value", + type: "SyntheticsGlobalVariableValue", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsGlobalVariable.js.map + +/***/ }), + +/***/ 43605: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsGlobalVariableAttributes = void 0; +/** + * Attributes of the global variable. + */ +class SyntheticsGlobalVariableAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsGlobalVariableAttributes.attributeTypeMap; + } +} +exports.SyntheticsGlobalVariableAttributes = SyntheticsGlobalVariableAttributes; +/** + * @ignore + */ +SyntheticsGlobalVariableAttributes.attributeTypeMap = { + restrictedRoles: { + baseName: "restricted_roles", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsGlobalVariableAttributes.js.map + +/***/ }), + +/***/ 52464: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsGlobalVariableOptions = void 0; +/** + * Options for the Global Variable for MFA. + */ +class SyntheticsGlobalVariableOptions { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsGlobalVariableOptions.attributeTypeMap; + } +} +exports.SyntheticsGlobalVariableOptions = SyntheticsGlobalVariableOptions; +/** + * @ignore + */ +SyntheticsGlobalVariableOptions.attributeTypeMap = { + totpParameters: { + baseName: "totp_parameters", + type: "SyntheticsGlobalVariableTOTPParameters", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsGlobalVariableOptions.js.map + +/***/ }), + +/***/ 5115: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsGlobalVariableParseTestOptions = void 0; +/** + * Parser options to use for retrieving a Synthetic global variable from a Synthetic test. Used in conjunction with `parse_test_public_id`. + */ +class SyntheticsGlobalVariableParseTestOptions { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsGlobalVariableParseTestOptions.attributeTypeMap; + } +} +exports.SyntheticsGlobalVariableParseTestOptions = SyntheticsGlobalVariableParseTestOptions; +/** + * @ignore + */ +SyntheticsGlobalVariableParseTestOptions.attributeTypeMap = { + field: { + baseName: "field", + type: "string", + }, + localVariableName: { + baseName: "localVariableName", + type: "string", + }, + parser: { + baseName: "parser", + type: "SyntheticsVariableParser", + }, + type: { + baseName: "type", + type: "SyntheticsGlobalVariableParseTestOptionsType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsGlobalVariableParseTestOptions.js.map + +/***/ }), + +/***/ 76863: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsGlobalVariableRequest = void 0; +/** + * Details of the global variable to create. + */ +class SyntheticsGlobalVariableRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsGlobalVariableRequest.attributeTypeMap; + } +} +exports.SyntheticsGlobalVariableRequest = SyntheticsGlobalVariableRequest; +/** + * @ignore + */ +SyntheticsGlobalVariableRequest.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "SyntheticsGlobalVariableAttributes", + }, + description: { + baseName: "description", + type: "string", + required: true, + }, + id: { + baseName: "id", + type: "string", + }, + isFido: { + baseName: "is_fido", + type: "boolean", + }, + isTotp: { + baseName: "is_totp", + type: "boolean", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + parseTestOptions: { + baseName: "parse_test_options", + type: "SyntheticsGlobalVariableParseTestOptions", + }, + parseTestPublicId: { + baseName: "parse_test_public_id", + type: "string", + }, + tags: { + baseName: "tags", + type: "Array", + required: true, + }, + value: { + baseName: "value", + type: "SyntheticsGlobalVariableValue", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsGlobalVariableRequest.js.map + +/***/ }), + +/***/ 17529: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsGlobalVariableTOTPParameters = void 0; +/** + * Parameters for the TOTP/MFA variable + */ +class SyntheticsGlobalVariableTOTPParameters { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsGlobalVariableTOTPParameters.attributeTypeMap; + } +} +exports.SyntheticsGlobalVariableTOTPParameters = SyntheticsGlobalVariableTOTPParameters; +/** + * @ignore + */ +SyntheticsGlobalVariableTOTPParameters.attributeTypeMap = { + digits: { + baseName: "digits", + type: "number", + format: "int32", + }, + refreshInterval: { + baseName: "refresh_interval", + type: "number", + format: "int32", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsGlobalVariableTOTPParameters.js.map + +/***/ }), + +/***/ 84235: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsGlobalVariableValue = void 0; +/** + * Value of the global variable. + */ +class SyntheticsGlobalVariableValue { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsGlobalVariableValue.attributeTypeMap; + } +} +exports.SyntheticsGlobalVariableValue = SyntheticsGlobalVariableValue; +/** + * @ignore + */ +SyntheticsGlobalVariableValue.attributeTypeMap = { + options: { + baseName: "options", + type: "SyntheticsGlobalVariableOptions", + }, + secure: { + baseName: "secure", + type: "boolean", + }, + value: { + baseName: "value", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsGlobalVariableValue.js.map + +/***/ }), + +/***/ 29936: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsListGlobalVariablesResponse = void 0; +/** + * Object containing an array of Synthetic global variables. + */ +class SyntheticsListGlobalVariablesResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsListGlobalVariablesResponse.attributeTypeMap; + } +} +exports.SyntheticsListGlobalVariablesResponse = SyntheticsListGlobalVariablesResponse; +/** + * @ignore + */ +SyntheticsListGlobalVariablesResponse.attributeTypeMap = { + variables: { + baseName: "variables", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsListGlobalVariablesResponse.js.map + +/***/ }), + +/***/ 98869: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsListTestsResponse = void 0; +/** + * Object containing an array of Synthetic tests configuration. + */ +class SyntheticsListTestsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsListTestsResponse.attributeTypeMap; + } +} +exports.SyntheticsListTestsResponse = SyntheticsListTestsResponse; +/** + * @ignore + */ +SyntheticsListTestsResponse.attributeTypeMap = { + tests: { + baseName: "tests", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsListTestsResponse.js.map + +/***/ }), + +/***/ 48808: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsLocation = void 0; +/** + * Synthetic location that can be used when creating or editing a + * test. + */ +class SyntheticsLocation { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsLocation.attributeTypeMap; + } +} +exports.SyntheticsLocation = SyntheticsLocation; +/** + * @ignore + */ +SyntheticsLocation.attributeTypeMap = { + id: { + baseName: "id", + type: "string", + }, + name: { + baseName: "name", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsLocation.js.map + +/***/ }), + +/***/ 60311: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsLocations = void 0; +/** + * List of Synthetic locations. + */ +class SyntheticsLocations { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsLocations.attributeTypeMap; + } +} +exports.SyntheticsLocations = SyntheticsLocations; +/** + * @ignore + */ +SyntheticsLocations.attributeTypeMap = { + locations: { + baseName: "locations", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsLocations.js.map + +/***/ }), + +/***/ 29339: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsMobileStep = void 0; +/** + * The steps used in a Synthetic mobile test. + */ +class SyntheticsMobileStep { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsMobileStep.attributeTypeMap; + } +} +exports.SyntheticsMobileStep = SyntheticsMobileStep; +/** + * @ignore + */ +SyntheticsMobileStep.attributeTypeMap = { + allowFailure: { + baseName: "allowFailure", + type: "boolean", + }, + hasNewStepElement: { + baseName: "hasNewStepElement", + type: "boolean", + }, + isCritical: { + baseName: "isCritical", + type: "boolean", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + noScreenshot: { + baseName: "noScreenshot", + type: "boolean", + }, + params: { + baseName: "params", + type: "SyntheticsMobileStepParams", + required: true, + }, + publicId: { + baseName: "publicId", + type: "string", + }, + timeout: { + baseName: "timeout", + type: "number", + format: "int64", + }, + type: { + baseName: "type", + type: "SyntheticsMobileStepType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsMobileStep.js.map + +/***/ }), + +/***/ 88637: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsMobileStepParams = void 0; +/** + * The parameters of a mobile step. + */ +class SyntheticsMobileStepParams { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsMobileStepParams.attributeTypeMap; + } +} +exports.SyntheticsMobileStepParams = SyntheticsMobileStepParams; +/** + * @ignore + */ +SyntheticsMobileStepParams.attributeTypeMap = { + check: { + baseName: "check", + type: "SyntheticsCheckType", + }, + delay: { + baseName: "delay", + type: "number", + format: "int64", + }, + direction: { + baseName: "direction", + type: "SyntheticsMobileStepParamsDirection", + }, + element: { + baseName: "element", + type: "SyntheticsMobileStepParamsElement", + }, + enabled: { + baseName: "enabled", + type: "boolean", + }, + maxScrolls: { + baseName: "maxScrolls", + type: "number", + format: "int64", + }, + positions: { + baseName: "positions", + type: "Array", + }, + subtestPublicId: { + baseName: "subtestPublicId", + type: "string", + }, + value: { + baseName: "value", + type: "SyntheticsMobileStepParamsValue", + }, + variable: { + baseName: "variable", + type: "SyntheticsMobileStepParamsVariable", + }, + withEnter: { + baseName: "withEnter", + type: "boolean", + }, + x: { + baseName: "x", + type: "number", + format: "double", + }, + y: { + baseName: "y", + type: "number", + format: "double", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsMobileStepParams.js.map + +/***/ }), + +/***/ 41301: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsMobileStepParamsElement = void 0; +/** + * Information about the element used for a step. + */ +class SyntheticsMobileStepParamsElement { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsMobileStepParamsElement.attributeTypeMap; + } +} +exports.SyntheticsMobileStepParamsElement = SyntheticsMobileStepParamsElement; +/** + * @ignore + */ +SyntheticsMobileStepParamsElement.attributeTypeMap = { + context: { + baseName: "context", + type: "string", + }, + contextType: { + baseName: "contextType", + type: "SyntheticsMobileStepParamsElementContextType", + }, + elementDescription: { + baseName: "elementDescription", + type: "string", + }, + multiLocator: { + baseName: "multiLocator", + type: "any", + }, + relativePosition: { + baseName: "relativePosition", + type: "SyntheticsMobileStepParamsElementRelativePosition", + }, + textContent: { + baseName: "textContent", + type: "string", + }, + userLocator: { + baseName: "userLocator", + type: "SyntheticsMobileStepParamsElementUserLocator", + }, + viewName: { + baseName: "viewName", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsMobileStepParamsElement.js.map + +/***/ }), + +/***/ 76550: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsMobileStepParamsElementRelativePosition = void 0; +/** + * Position of the action relative to the element. + */ +class SyntheticsMobileStepParamsElementRelativePosition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsMobileStepParamsElementRelativePosition.attributeTypeMap; + } +} +exports.SyntheticsMobileStepParamsElementRelativePosition = SyntheticsMobileStepParamsElementRelativePosition; +/** + * @ignore + */ +SyntheticsMobileStepParamsElementRelativePosition.attributeTypeMap = { + x: { + baseName: "x", + type: "number", + format: "double", + }, + y: { + baseName: "y", + type: "number", + format: "double", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsMobileStepParamsElementRelativePosition.js.map + +/***/ }), + +/***/ 36934: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsMobileStepParamsElementUserLocator = void 0; +/** + * User locator to find the element. + */ +class SyntheticsMobileStepParamsElementUserLocator { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsMobileStepParamsElementUserLocator.attributeTypeMap; + } +} +exports.SyntheticsMobileStepParamsElementUserLocator = SyntheticsMobileStepParamsElementUserLocator; +/** + * @ignore + */ +SyntheticsMobileStepParamsElementUserLocator.attributeTypeMap = { + failTestOnCannotLocate: { + baseName: "failTestOnCannotLocate", + type: "boolean", + }, + values: { + baseName: "values", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsMobileStepParamsElementUserLocator.js.map + +/***/ }), + +/***/ 76750: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsMobileStepParamsElementUserLocatorValuesItems = void 0; +/** + * A single user locator object. + */ +class SyntheticsMobileStepParamsElementUserLocatorValuesItems { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsMobileStepParamsElementUserLocatorValuesItems.attributeTypeMap; + } +} +exports.SyntheticsMobileStepParamsElementUserLocatorValuesItems = SyntheticsMobileStepParamsElementUserLocatorValuesItems; +/** + * @ignore + */ +SyntheticsMobileStepParamsElementUserLocatorValuesItems.attributeTypeMap = { + type: { + baseName: "type", + type: "SyntheticsMobileStepParamsElementUserLocatorValuesItemsType", + }, + value: { + baseName: "value", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsMobileStepParamsElementUserLocatorValuesItems.js.map + +/***/ }), + +/***/ 77873: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsMobileStepParamsPositionsItems = void 0; +/** + * A description of a single position for a `flick` step type. + */ +class SyntheticsMobileStepParamsPositionsItems { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsMobileStepParamsPositionsItems.attributeTypeMap; + } +} +exports.SyntheticsMobileStepParamsPositionsItems = SyntheticsMobileStepParamsPositionsItems; +/** + * @ignore + */ +SyntheticsMobileStepParamsPositionsItems.attributeTypeMap = { + x: { + baseName: "x", + type: "number", + format: "double", + }, + y: { + baseName: "y", + type: "number", + format: "double", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsMobileStepParamsPositionsItems.js.map + +/***/ }), + +/***/ 11617: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsMobileStepParamsVariable = void 0; +/** + * Variable object for `extractVariable` step type. + */ +class SyntheticsMobileStepParamsVariable { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsMobileStepParamsVariable.attributeTypeMap; + } +} +exports.SyntheticsMobileStepParamsVariable = SyntheticsMobileStepParamsVariable; +/** + * @ignore + */ +SyntheticsMobileStepParamsVariable.attributeTypeMap = { + example: { + baseName: "example", + type: "string", + required: true, + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsMobileStepParamsVariable.js.map + +/***/ }), + +/***/ 26705: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsMobileTest = void 0; +/** + * Object containing details about a Synthetic mobile test. + */ +class SyntheticsMobileTest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsMobileTest.attributeTypeMap; + } +} +exports.SyntheticsMobileTest = SyntheticsMobileTest; +/** + * @ignore + */ +SyntheticsMobileTest.attributeTypeMap = { + config: { + baseName: "config", + type: "SyntheticsMobileTestConfig", + required: true, + }, + deviceIds: { + baseName: "device_ids", + type: "Array", + }, + message: { + baseName: "message", + type: "string", + }, + monitorId: { + baseName: "monitor_id", + type: "number", + format: "int64", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + options: { + baseName: "options", + type: "SyntheticsMobileTestOptions", + required: true, + }, + publicId: { + baseName: "public_id", + type: "string", + }, + status: { + baseName: "status", + type: "SyntheticsTestPauseStatus", + }, + steps: { + baseName: "steps", + type: "Array", + }, + tags: { + baseName: "tags", + type: "Array", + }, + type: { + baseName: "type", + type: "SyntheticsMobileTestType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsMobileTest.js.map + +/***/ }), + +/***/ 20223: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsMobileTestConfig = void 0; +/** + * Configuration object for a Synthetic mobile test. + */ +class SyntheticsMobileTestConfig { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsMobileTestConfig.attributeTypeMap; + } +} +exports.SyntheticsMobileTestConfig = SyntheticsMobileTestConfig; +/** + * @ignore + */ +SyntheticsMobileTestConfig.attributeTypeMap = { + initialApplicationArguments: { + baseName: "initialApplicationArguments", + type: "{ [key: string]: string; }", + }, + variables: { + baseName: "variables", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsMobileTestConfig.js.map + +/***/ }), + +/***/ 13407: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsMobileTestOptions = void 0; +/** + * Object describing the extra options for a Synthetic test. + */ +class SyntheticsMobileTestOptions { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsMobileTestOptions.attributeTypeMap; + } +} +exports.SyntheticsMobileTestOptions = SyntheticsMobileTestOptions; +/** + * @ignore + */ +SyntheticsMobileTestOptions.attributeTypeMap = { + allowApplicationCrash: { + baseName: "allowApplicationCrash", + type: "boolean", + }, + bindings: { + baseName: "bindings", + type: "Array", + }, + ci: { + baseName: "ci", + type: "SyntheticsTestCiOptions", + }, + defaultStepTimeout: { + baseName: "defaultStepTimeout", + type: "number", + format: "int32", + }, + deviceIds: { + baseName: "device_ids", + type: "Array", + required: true, + }, + disableAutoAcceptAlert: { + baseName: "disableAutoAcceptAlert", + type: "boolean", + }, + minFailureDuration: { + baseName: "min_failure_duration", + type: "number", + format: "int64", + }, + mobileApplication: { + baseName: "mobileApplication", + type: "SyntheticsMobileTestsMobileApplication", + required: true, + }, + monitorName: { + baseName: "monitor_name", + type: "string", + }, + monitorOptions: { + baseName: "monitor_options", + type: "SyntheticsTestOptionsMonitorOptions", + }, + monitorPriority: { + baseName: "monitor_priority", + type: "number", + format: "int32", + }, + noScreenshot: { + baseName: "noScreenshot", + type: "boolean", + }, + restrictedRoles: { + baseName: "restricted_roles", + type: "Array", + }, + retry: { + baseName: "retry", + type: "SyntheticsTestOptionsRetry", + }, + scheduling: { + baseName: "scheduling", + type: "SyntheticsTestOptionsScheduling", + }, + tickEvery: { + baseName: "tick_every", + type: "number", + required: true, + format: "int64", + }, + verbosity: { + baseName: "verbosity", + type: "number", + format: "int32", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsMobileTestOptions.js.map + +/***/ }), + +/***/ 25634: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsMobileTestsMobileApplication = void 0; +/** + * Mobile application for mobile synthetics test. + */ +class SyntheticsMobileTestsMobileApplication { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsMobileTestsMobileApplication.attributeTypeMap; + } +} +exports.SyntheticsMobileTestsMobileApplication = SyntheticsMobileTestsMobileApplication; +/** + * @ignore + */ +SyntheticsMobileTestsMobileApplication.attributeTypeMap = { + applicationId: { + baseName: "applicationId", + type: "string", + required: true, + }, + referenceId: { + baseName: "referenceId", + type: "string", + required: true, + }, + referenceType: { + baseName: "referenceType", + type: "SyntheticsMobileTestsMobileApplicationReferenceType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsMobileTestsMobileApplication.js.map + +/***/ }), + +/***/ 44261: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsParsingOptions = void 0; +/** + * Parsing options for variables to extract. + */ +class SyntheticsParsingOptions { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsParsingOptions.attributeTypeMap; + } +} +exports.SyntheticsParsingOptions = SyntheticsParsingOptions; +/** + * @ignore + */ +SyntheticsParsingOptions.attributeTypeMap = { + field: { + baseName: "field", + type: "string", + }, + name: { + baseName: "name", + type: "string", + }, + parser: { + baseName: "parser", + type: "SyntheticsVariableParser", + }, + secure: { + baseName: "secure", + type: "boolean", + }, + type: { + baseName: "type", + type: "SyntheticsLocalVariableParsingOptionsType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsParsingOptions.js.map + +/***/ }), + +/***/ 95665: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsPatchTestBody = void 0; +/** + * Wrapper around an array of [JSON Patch](https://jsonpatch.com) operations to perform on the test + */ +class SyntheticsPatchTestBody { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsPatchTestBody.attributeTypeMap; + } +} +exports.SyntheticsPatchTestBody = SyntheticsPatchTestBody; +/** + * @ignore + */ +SyntheticsPatchTestBody.attributeTypeMap = { + data: { + baseName: "data", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsPatchTestBody.js.map + +/***/ }), + +/***/ 78180: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsPatchTestOperation = void 0; +/** + * A single [JSON Patch](https://jsonpatch.com) operation to perform on the test + */ +class SyntheticsPatchTestOperation { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsPatchTestOperation.attributeTypeMap; + } +} +exports.SyntheticsPatchTestOperation = SyntheticsPatchTestOperation; +/** + * @ignore + */ +SyntheticsPatchTestOperation.attributeTypeMap = { + op: { + baseName: "op", + type: "SyntheticsPatchTestOperationName", + }, + path: { + baseName: "path", + type: "string", + }, + value: { + baseName: "value", + type: "any", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsPatchTestOperation.js.map + +/***/ }), + +/***/ 81143: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsPrivateLocation = void 0; +/** + * Object containing information about the private location to create. + */ +class SyntheticsPrivateLocation { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsPrivateLocation.attributeTypeMap; + } +} +exports.SyntheticsPrivateLocation = SyntheticsPrivateLocation; +/** + * @ignore + */ +SyntheticsPrivateLocation.attributeTypeMap = { + description: { + baseName: "description", + type: "string", + required: true, + }, + id: { + baseName: "id", + type: "string", + }, + metadata: { + baseName: "metadata", + type: "SyntheticsPrivateLocationMetadata", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + secrets: { + baseName: "secrets", + type: "SyntheticsPrivateLocationSecrets", + }, + tags: { + baseName: "tags", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsPrivateLocation.js.map + +/***/ }), + +/***/ 63149: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsPrivateLocationCreationResponse = void 0; +/** + * Object that contains the new private location, the public key for result encryption, and the configuration skeleton. + */ +class SyntheticsPrivateLocationCreationResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsPrivateLocationCreationResponse.attributeTypeMap; + } +} +exports.SyntheticsPrivateLocationCreationResponse = SyntheticsPrivateLocationCreationResponse; +/** + * @ignore + */ +SyntheticsPrivateLocationCreationResponse.attributeTypeMap = { + config: { + baseName: "config", + type: "any", + }, + privateLocation: { + baseName: "private_location", + type: "SyntheticsPrivateLocation", + }, + resultEncryption: { + baseName: "result_encryption", + type: "SyntheticsPrivateLocationCreationResponseResultEncryption", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsPrivateLocationCreationResponse.js.map + +/***/ }), + +/***/ 6209: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsPrivateLocationCreationResponseResultEncryption = void 0; +/** + * Public key for the result encryption. + */ +class SyntheticsPrivateLocationCreationResponseResultEncryption { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsPrivateLocationCreationResponseResultEncryption.attributeTypeMap; + } +} +exports.SyntheticsPrivateLocationCreationResponseResultEncryption = SyntheticsPrivateLocationCreationResponseResultEncryption; +/** + * @ignore + */ +SyntheticsPrivateLocationCreationResponseResultEncryption.attributeTypeMap = { + id: { + baseName: "id", + type: "string", + }, + key: { + baseName: "key", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsPrivateLocationCreationResponseResultEncryption.js.map + +/***/ }), + +/***/ 93590: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsPrivateLocationMetadata = void 0; +/** + * Object containing metadata about the private location. + */ +class SyntheticsPrivateLocationMetadata { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsPrivateLocationMetadata.attributeTypeMap; + } +} +exports.SyntheticsPrivateLocationMetadata = SyntheticsPrivateLocationMetadata; +/** + * @ignore + */ +SyntheticsPrivateLocationMetadata.attributeTypeMap = { + restrictedRoles: { + baseName: "restricted_roles", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsPrivateLocationMetadata.js.map + +/***/ }), + +/***/ 30086: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsPrivateLocationSecrets = void 0; +/** + * Secrets for the private location. Only present in the response when creating the private location. + */ +class SyntheticsPrivateLocationSecrets { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsPrivateLocationSecrets.attributeTypeMap; + } +} +exports.SyntheticsPrivateLocationSecrets = SyntheticsPrivateLocationSecrets; +/** + * @ignore + */ +SyntheticsPrivateLocationSecrets.attributeTypeMap = { + authentication: { + baseName: "authentication", + type: "SyntheticsPrivateLocationSecretsAuthentication", + }, + configDecryption: { + baseName: "config_decryption", + type: "SyntheticsPrivateLocationSecretsConfigDecryption", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsPrivateLocationSecrets.js.map + +/***/ }), + +/***/ 85930: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsPrivateLocationSecretsAuthentication = void 0; +/** + * Authentication part of the secrets. + */ +class SyntheticsPrivateLocationSecretsAuthentication { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsPrivateLocationSecretsAuthentication.attributeTypeMap; + } +} +exports.SyntheticsPrivateLocationSecretsAuthentication = SyntheticsPrivateLocationSecretsAuthentication; +/** + * @ignore + */ +SyntheticsPrivateLocationSecretsAuthentication.attributeTypeMap = { + id: { + baseName: "id", + type: "string", + }, + key: { + baseName: "key", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsPrivateLocationSecretsAuthentication.js.map + +/***/ }), + +/***/ 15329: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsPrivateLocationSecretsConfigDecryption = void 0; +/** + * Private key for the private location. + */ +class SyntheticsPrivateLocationSecretsConfigDecryption { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsPrivateLocationSecretsConfigDecryption.attributeTypeMap; + } +} +exports.SyntheticsPrivateLocationSecretsConfigDecryption = SyntheticsPrivateLocationSecretsConfigDecryption; +/** + * @ignore + */ +SyntheticsPrivateLocationSecretsConfigDecryption.attributeTypeMap = { + key: { + baseName: "key", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsPrivateLocationSecretsConfigDecryption.js.map + +/***/ }), + +/***/ 89518: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsSSLCertificate = void 0; +/** + * Object describing the SSL certificate used for a Synthetic test. + */ +class SyntheticsSSLCertificate { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsSSLCertificate.attributeTypeMap; + } +} +exports.SyntheticsSSLCertificate = SyntheticsSSLCertificate; +/** + * @ignore + */ +SyntheticsSSLCertificate.attributeTypeMap = { + cipher: { + baseName: "cipher", + type: "string", + }, + exponent: { + baseName: "exponent", + type: "number", + format: "double", + }, + extKeyUsage: { + baseName: "extKeyUsage", + type: "Array", + }, + fingerprint: { + baseName: "fingerprint", + type: "string", + }, + fingerprint256: { + baseName: "fingerprint256", + type: "string", + }, + issuer: { + baseName: "issuer", + type: "SyntheticsSSLCertificateIssuer", + }, + modulus: { + baseName: "modulus", + type: "string", + }, + protocol: { + baseName: "protocol", + type: "string", + }, + serialNumber: { + baseName: "serialNumber", + type: "string", + }, + subject: { + baseName: "subject", + type: "SyntheticsSSLCertificateSubject", + }, + validFrom: { + baseName: "validFrom", + type: "Date", + format: "date-time", + }, + validTo: { + baseName: "validTo", + type: "Date", + format: "date-time", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsSSLCertificate.js.map + +/***/ }), + +/***/ 27625: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsSSLCertificateIssuer = void 0; +/** + * Object describing the issuer of a SSL certificate. + */ +class SyntheticsSSLCertificateIssuer { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsSSLCertificateIssuer.attributeTypeMap; + } +} +exports.SyntheticsSSLCertificateIssuer = SyntheticsSSLCertificateIssuer; +/** + * @ignore + */ +SyntheticsSSLCertificateIssuer.attributeTypeMap = { + C: { + baseName: "C", + type: "string", + }, + CN: { + baseName: "CN", + type: "string", + }, + L: { + baseName: "L", + type: "string", + }, + O: { + baseName: "O", + type: "string", + }, + OU: { + baseName: "OU", + type: "string", + }, + ST: { + baseName: "ST", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsSSLCertificateIssuer.js.map + +/***/ }), + +/***/ 59140: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsSSLCertificateSubject = void 0; +/** + * Object describing the SSL certificate used for the test. + */ +class SyntheticsSSLCertificateSubject { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsSSLCertificateSubject.attributeTypeMap; + } +} +exports.SyntheticsSSLCertificateSubject = SyntheticsSSLCertificateSubject; +/** + * @ignore + */ +SyntheticsSSLCertificateSubject.attributeTypeMap = { + C: { + baseName: "C", + type: "string", + }, + CN: { + baseName: "CN", + type: "string", + }, + L: { + baseName: "L", + type: "string", + }, + O: { + baseName: "O", + type: "string", + }, + OU: { + baseName: "OU", + type: "string", + }, + ST: { + baseName: "ST", + type: "string", + }, + altName: { + baseName: "altName", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsSSLCertificateSubject.js.map + +/***/ }), + +/***/ 18521: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsStep = void 0; +/** + * The steps used in a Synthetic browser test. + */ +class SyntheticsStep { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsStep.attributeTypeMap; + } +} +exports.SyntheticsStep = SyntheticsStep; +/** + * @ignore + */ +SyntheticsStep.attributeTypeMap = { + allowFailure: { + baseName: "allowFailure", + type: "boolean", + }, + alwaysExecute: { + baseName: "alwaysExecute", + type: "boolean", + }, + exitIfSucceed: { + baseName: "exitIfSucceed", + type: "boolean", + }, + isCritical: { + baseName: "isCritical", + type: "boolean", + }, + name: { + baseName: "name", + type: "string", + }, + noScreenshot: { + baseName: "noScreenshot", + type: "boolean", + }, + params: { + baseName: "params", + type: "any", + }, + timeout: { + baseName: "timeout", + type: "number", + format: "int64", + }, + type: { + baseName: "type", + type: "SyntheticsStepType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsStep.js.map + +/***/ }), + +/***/ 43516: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsStepDetail = void 0; +/** + * Object describing a step for a Synthetic test. + */ +class SyntheticsStepDetail { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsStepDetail.attributeTypeMap; + } +} +exports.SyntheticsStepDetail = SyntheticsStepDetail; +/** + * @ignore + */ +SyntheticsStepDetail.attributeTypeMap = { + allowFailure: { + baseName: "allowFailure", + type: "boolean", + }, + browserErrors: { + baseName: "browserErrors", + type: "Array", + }, + checkType: { + baseName: "checkType", + type: "SyntheticsCheckType", + }, + description: { + baseName: "description", + type: "string", + }, + duration: { + baseName: "duration", + type: "number", + format: "double", + }, + error: { + baseName: "error", + type: "string", + }, + failure: { + baseName: "failure", + type: "SyntheticsBrowserTestResultFailure", + }, + playingTab: { + baseName: "playingTab", + type: "SyntheticsPlayingTab", + format: "int64", + }, + screenshotBucketKey: { + baseName: "screenshotBucketKey", + type: "boolean", + }, + skipped: { + baseName: "skipped", + type: "boolean", + }, + snapshotBucketKey: { + baseName: "snapshotBucketKey", + type: "boolean", + }, + stepId: { + baseName: "stepId", + type: "number", + format: "int64", + }, + subTestStepDetails: { + baseName: "subTestStepDetails", + type: "Array", + }, + timeToInteractive: { + baseName: "timeToInteractive", + type: "number", + format: "double", + }, + type: { + baseName: "type", + type: "SyntheticsStepType", + }, + url: { + baseName: "url", + type: "string", + }, + value: { + baseName: "value", + type: "any", + }, + vitalsMetrics: { + baseName: "vitalsMetrics", + type: "Array", + }, + warnings: { + baseName: "warnings", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsStepDetail.js.map + +/***/ }), + +/***/ 15882: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsStepDetailWarning = void 0; +/** + * Object collecting warnings for a given step. + */ +class SyntheticsStepDetailWarning { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsStepDetailWarning.attributeTypeMap; + } +} +exports.SyntheticsStepDetailWarning = SyntheticsStepDetailWarning; +/** + * @ignore + */ +SyntheticsStepDetailWarning.attributeTypeMap = { + message: { + baseName: "message", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "SyntheticsWarningType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsStepDetailWarning.js.map + +/***/ }), + +/***/ 84849: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsTestCiOptions = void 0; +/** + * CI/CD options for a Synthetic test. + */ +class SyntheticsTestCiOptions { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsTestCiOptions.attributeTypeMap; + } +} +exports.SyntheticsTestCiOptions = SyntheticsTestCiOptions; +/** + * @ignore + */ +SyntheticsTestCiOptions.attributeTypeMap = { + executionRule: { + baseName: "executionRule", + type: "SyntheticsTestExecutionRule", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsTestCiOptions.js.map + +/***/ }), + +/***/ 81897: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsTestConfig = void 0; +/** + * Configuration object for a Synthetic test. + */ +class SyntheticsTestConfig { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsTestConfig.attributeTypeMap; + } +} +exports.SyntheticsTestConfig = SyntheticsTestConfig; +/** + * @ignore + */ +SyntheticsTestConfig.attributeTypeMap = { + assertions: { + baseName: "assertions", + type: "Array", + }, + configVariables: { + baseName: "configVariables", + type: "Array", + }, + request: { + baseName: "request", + type: "SyntheticsTestRequest", + }, + variables: { + baseName: "variables", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsTestConfig.js.map + +/***/ }), + +/***/ 54201: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsTestDetails = void 0; +/** + * Object containing details about your Synthetic test. + */ +class SyntheticsTestDetails { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsTestDetails.attributeTypeMap; + } +} +exports.SyntheticsTestDetails = SyntheticsTestDetails; +/** + * @ignore + */ +SyntheticsTestDetails.attributeTypeMap = { + config: { + baseName: "config", + type: "SyntheticsTestConfig", + }, + creator: { + baseName: "creator", + type: "Creator", + }, + locations: { + baseName: "locations", + type: "Array", + }, + message: { + baseName: "message", + type: "string", + }, + monitorId: { + baseName: "monitor_id", + type: "number", + format: "int64", + }, + name: { + baseName: "name", + type: "string", + }, + options: { + baseName: "options", + type: "SyntheticsTestOptions", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + status: { + baseName: "status", + type: "SyntheticsTestPauseStatus", + }, + steps: { + baseName: "steps", + type: "Array", + }, + subtype: { + baseName: "subtype", + type: "SyntheticsTestDetailsSubType", + }, + tags: { + baseName: "tags", + type: "Array", + }, + type: { + baseName: "type", + type: "SyntheticsTestDetailsType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsTestDetails.js.map + +/***/ }), + +/***/ 46177: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsTestOptions = void 0; +/** + * Object describing the extra options for a Synthetic test. + */ +class SyntheticsTestOptions { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsTestOptions.attributeTypeMap; + } +} +exports.SyntheticsTestOptions = SyntheticsTestOptions; +/** + * @ignore + */ +SyntheticsTestOptions.attributeTypeMap = { + acceptSelfSigned: { + baseName: "accept_self_signed", + type: "boolean", + }, + allowInsecure: { + baseName: "allow_insecure", + type: "boolean", + }, + checkCertificateRevocation: { + baseName: "checkCertificateRevocation", + type: "boolean", + }, + ci: { + baseName: "ci", + type: "SyntheticsTestCiOptions", + }, + deviceIds: { + baseName: "device_ids", + type: "Array", + }, + disableCors: { + baseName: "disableCors", + type: "boolean", + }, + disableCsp: { + baseName: "disableCsp", + type: "boolean", + }, + enableProfiling: { + baseName: "enableProfiling", + type: "boolean", + }, + enableSecurityTesting: { + baseName: "enableSecurityTesting", + type: "boolean", + }, + followRedirects: { + baseName: "follow_redirects", + type: "boolean", + }, + httpVersion: { + baseName: "httpVersion", + type: "SyntheticsTestOptionsHTTPVersion", + }, + ignoreServerCertificateError: { + baseName: "ignoreServerCertificateError", + type: "boolean", + }, + initialNavigationTimeout: { + baseName: "initialNavigationTimeout", + type: "number", + format: "int64", + }, + minFailureDuration: { + baseName: "min_failure_duration", + type: "number", + format: "int64", + }, + minLocationFailed: { + baseName: "min_location_failed", + type: "number", + format: "int64", + }, + monitorName: { + baseName: "monitor_name", + type: "string", + }, + monitorOptions: { + baseName: "monitor_options", + type: "SyntheticsTestOptionsMonitorOptions", + }, + monitorPriority: { + baseName: "monitor_priority", + type: "number", + format: "int32", + }, + noScreenshot: { + baseName: "noScreenshot", + type: "boolean", + }, + restrictedRoles: { + baseName: "restricted_roles", + type: "Array", + }, + retry: { + baseName: "retry", + type: "SyntheticsTestOptionsRetry", + }, + rumSettings: { + baseName: "rumSettings", + type: "SyntheticsBrowserTestRumSettings", + }, + scheduling: { + baseName: "scheduling", + type: "SyntheticsTestOptionsScheduling", + }, + tickEvery: { + baseName: "tick_every", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsTestOptions.js.map + +/***/ }), + +/***/ 67129: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsTestOptionsMonitorOptions = void 0; +/** + * Object containing the options for a Synthetic test as a monitor + * (for example, renotification). + */ +class SyntheticsTestOptionsMonitorOptions { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsTestOptionsMonitorOptions.attributeTypeMap; + } +} +exports.SyntheticsTestOptionsMonitorOptions = SyntheticsTestOptionsMonitorOptions; +/** + * @ignore + */ +SyntheticsTestOptionsMonitorOptions.attributeTypeMap = { + escalationMessage: { + baseName: "escalation_message", + type: "string", + }, + notificationPresetName: { + baseName: "notification_preset_name", + type: "SyntheticsTestOptionsMonitorOptionsNotificationPresetName", + }, + renotifyInterval: { + baseName: "renotify_interval", + type: "number", + format: "int64", + }, + renotifyOccurrences: { + baseName: "renotify_occurrences", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsTestOptionsMonitorOptions.js.map + +/***/ }), + +/***/ 93819: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsTestOptionsRetry = void 0; +/** + * Object describing the retry strategy to apply to a Synthetic test. + */ +class SyntheticsTestOptionsRetry { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsTestOptionsRetry.attributeTypeMap; + } +} +exports.SyntheticsTestOptionsRetry = SyntheticsTestOptionsRetry; +/** + * @ignore + */ +SyntheticsTestOptionsRetry.attributeTypeMap = { + count: { + baseName: "count", + type: "number", + format: "int64", + }, + interval: { + baseName: "interval", + type: "number", + format: "double", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsTestOptionsRetry.js.map + +/***/ }), + +/***/ 99995: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsTestOptionsScheduling = void 0; +/** + * Object containing timeframes and timezone used for advanced scheduling. + */ +class SyntheticsTestOptionsScheduling { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsTestOptionsScheduling.attributeTypeMap; + } +} +exports.SyntheticsTestOptionsScheduling = SyntheticsTestOptionsScheduling; +/** + * @ignore + */ +SyntheticsTestOptionsScheduling.attributeTypeMap = { + timeframes: { + baseName: "timeframes", + type: "Array", + required: true, + }, + timezone: { + baseName: "timezone", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsTestOptionsScheduling.js.map + +/***/ }), + +/***/ 51993: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsTestOptionsSchedulingTimeframe = void 0; +/** + * Object describing a timeframe. + */ +class SyntheticsTestOptionsSchedulingTimeframe { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsTestOptionsSchedulingTimeframe.attributeTypeMap; + } +} +exports.SyntheticsTestOptionsSchedulingTimeframe = SyntheticsTestOptionsSchedulingTimeframe; +/** + * @ignore + */ +SyntheticsTestOptionsSchedulingTimeframe.attributeTypeMap = { + day: { + baseName: "day", + type: "number", + required: true, + format: "int32", + }, + from: { + baseName: "from", + type: "string", + required: true, + }, + to: { + baseName: "to", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsTestOptionsSchedulingTimeframe.js.map + +/***/ }), + +/***/ 60770: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsTestRequest = void 0; +/** + * Object describing the Synthetic test request. + */ +class SyntheticsTestRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsTestRequest.attributeTypeMap; + } +} +exports.SyntheticsTestRequest = SyntheticsTestRequest; +/** + * @ignore + */ +SyntheticsTestRequest.attributeTypeMap = { + allowInsecure: { + baseName: "allow_insecure", + type: "boolean", + }, + basicAuth: { + baseName: "basicAuth", + type: "SyntheticsBasicAuth", + }, + body: { + baseName: "body", + type: "string", + }, + bodyType: { + baseName: "bodyType", + type: "SyntheticsTestRequestBodyType", + }, + callType: { + baseName: "callType", + type: "SyntheticsTestCallType", + }, + certificate: { + baseName: "certificate", + type: "SyntheticsTestRequestCertificate", + }, + certificateDomains: { + baseName: "certificateDomains", + type: "Array", + }, + compressedJsonDescriptor: { + baseName: "compressedJsonDescriptor", + type: "string", + }, + compressedProtoFile: { + baseName: "compressedProtoFile", + type: "string", + }, + dnsServer: { + baseName: "dnsServer", + type: "string", + }, + dnsServerPort: { + baseName: "dnsServerPort", + type: "string", + }, + files: { + baseName: "files", + type: "Array", + }, + followRedirects: { + baseName: "follow_redirects", + type: "boolean", + }, + headers: { + baseName: "headers", + type: "{ [key: string]: string; }", + }, + host: { + baseName: "host", + type: "string", + }, + httpVersion: { + baseName: "httpVersion", + type: "SyntheticsTestOptionsHTTPVersion", + }, + message: { + baseName: "message", + type: "string", + }, + metadata: { + baseName: "metadata", + type: "{ [key: string]: string; }", + }, + method: { + baseName: "method", + type: "string", + }, + noSavingResponseBody: { + baseName: "noSavingResponseBody", + type: "boolean", + }, + numberOfPackets: { + baseName: "numberOfPackets", + type: "number", + format: "int32", + }, + persistCookies: { + baseName: "persistCookies", + type: "boolean", + }, + port: { + baseName: "port", + type: "SyntheticsTestRequestPort", + }, + proxy: { + baseName: "proxy", + type: "SyntheticsTestRequestProxy", + }, + query: { + baseName: "query", + type: "any", + }, + servername: { + baseName: "servername", + type: "string", + }, + service: { + baseName: "service", + type: "string", + }, + shouldTrackHops: { + baseName: "shouldTrackHops", + type: "boolean", + }, + timeout: { + baseName: "timeout", + type: "number", + format: "double", + }, + url: { + baseName: "url", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsTestRequest.js.map + +/***/ }), + +/***/ 21220: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsTestRequestBodyFile = void 0; +/** + * Object describing a file to be used as part of the request in the test. + */ +class SyntheticsTestRequestBodyFile { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsTestRequestBodyFile.attributeTypeMap; + } +} +exports.SyntheticsTestRequestBodyFile = SyntheticsTestRequestBodyFile; +/** + * @ignore + */ +SyntheticsTestRequestBodyFile.attributeTypeMap = { + bucketKey: { + baseName: "bucketKey", + type: "string", + }, + content: { + baseName: "content", + type: "string", + }, + name: { + baseName: "name", + type: "string", + }, + originalFileName: { + baseName: "originalFileName", + type: "string", + }, + size: { + baseName: "size", + type: "number", + format: "int64", + }, + type: { + baseName: "type", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsTestRequestBodyFile.js.map + +/***/ }), + +/***/ 83803: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsTestRequestCertificate = void 0; +/** + * Client certificate to use when performing the test request. + */ +class SyntheticsTestRequestCertificate { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsTestRequestCertificate.attributeTypeMap; + } +} +exports.SyntheticsTestRequestCertificate = SyntheticsTestRequestCertificate; +/** + * @ignore + */ +SyntheticsTestRequestCertificate.attributeTypeMap = { + cert: { + baseName: "cert", + type: "SyntheticsTestRequestCertificateItem", + }, + key: { + baseName: "key", + type: "SyntheticsTestRequestCertificateItem", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsTestRequestCertificate.js.map + +/***/ }), + +/***/ 55448: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsTestRequestCertificateItem = void 0; +/** + * Define a request certificate. + */ +class SyntheticsTestRequestCertificateItem { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsTestRequestCertificateItem.attributeTypeMap; + } +} +exports.SyntheticsTestRequestCertificateItem = SyntheticsTestRequestCertificateItem; +/** + * @ignore + */ +SyntheticsTestRequestCertificateItem.attributeTypeMap = { + content: { + baseName: "content", + type: "string", + }, + filename: { + baseName: "filename", + type: "string", + }, + updatedAt: { + baseName: "updatedAt", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsTestRequestCertificateItem.js.map + +/***/ }), + +/***/ 18380: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsTestRequestProxy = void 0; +/** + * The proxy to perform the test. + */ +class SyntheticsTestRequestProxy { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsTestRequestProxy.attributeTypeMap; + } +} +exports.SyntheticsTestRequestProxy = SyntheticsTestRequestProxy; +/** + * @ignore + */ +SyntheticsTestRequestProxy.attributeTypeMap = { + headers: { + baseName: "headers", + type: "{ [key: string]: string; }", + }, + url: { + baseName: "url", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsTestRequestProxy.js.map + +/***/ }), + +/***/ 7698: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsTestRestrictionPolicyBinding = void 0; +/** + * Objects describing the binding used for a mobile test. + */ +class SyntheticsTestRestrictionPolicyBinding { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsTestRestrictionPolicyBinding.attributeTypeMap; + } +} +exports.SyntheticsTestRestrictionPolicyBinding = SyntheticsTestRestrictionPolicyBinding; +/** + * @ignore + */ +SyntheticsTestRestrictionPolicyBinding.attributeTypeMap = { + principals: { + baseName: "principals", + type: "Array", + }, + relation: { + baseName: "relation", + type: "SyntheticsTestRestrictionPolicyBindingRelation", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsTestRestrictionPolicyBinding.js.map + +/***/ }), + +/***/ 5187: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsTestUptime = void 0; +/** + * Object containing the uptime for a Synthetic test ID. + */ +class SyntheticsTestUptime { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsTestUptime.attributeTypeMap; + } +} +exports.SyntheticsTestUptime = SyntheticsTestUptime; +/** + * @ignore + */ +SyntheticsTestUptime.attributeTypeMap = { + fromTs: { + baseName: "from_ts", + type: "number", + format: "int64", + }, + overall: { + baseName: "overall", + type: "SyntheticsUptime", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + toTs: { + baseName: "to_ts", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsTestUptime.js.map + +/***/ }), + +/***/ 91297: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsTiming = void 0; +/** + * Object containing all metrics and their values collected for a Synthetic API test. + * See the [Synthetic Monitoring Metrics documentation](https://docs.datadoghq.com/synthetics/metrics/). + */ +class SyntheticsTiming { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsTiming.attributeTypeMap; + } +} +exports.SyntheticsTiming = SyntheticsTiming; +/** + * @ignore + */ +SyntheticsTiming.attributeTypeMap = { + dns: { + baseName: "dns", + type: "number", + format: "double", + }, + download: { + baseName: "download", + type: "number", + format: "double", + }, + firstByte: { + baseName: "firstByte", + type: "number", + format: "double", + }, + handshake: { + baseName: "handshake", + type: "number", + format: "double", + }, + redirect: { + baseName: "redirect", + type: "number", + format: "double", + }, + ssl: { + baseName: "ssl", + type: "number", + format: "double", + }, + tcp: { + baseName: "tcp", + type: "number", + format: "double", + }, + total: { + baseName: "total", + type: "number", + format: "double", + }, + wait: { + baseName: "wait", + type: "number", + format: "double", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsTiming.js.map + +/***/ }), + +/***/ 12123: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsTriggerBody = void 0; +/** + * Object describing the Synthetic tests to trigger. + */ +class SyntheticsTriggerBody { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsTriggerBody.attributeTypeMap; + } +} +exports.SyntheticsTriggerBody = SyntheticsTriggerBody; +/** + * @ignore + */ +SyntheticsTriggerBody.attributeTypeMap = { + tests: { + baseName: "tests", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsTriggerBody.js.map + +/***/ }), + +/***/ 19664: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsTriggerCITestLocation = void 0; +/** + * Synthetic location. + */ +class SyntheticsTriggerCITestLocation { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsTriggerCITestLocation.attributeTypeMap; + } +} +exports.SyntheticsTriggerCITestLocation = SyntheticsTriggerCITestLocation; +/** + * @ignore + */ +SyntheticsTriggerCITestLocation.attributeTypeMap = { + id: { + baseName: "id", + type: "number", + format: "int64", + }, + name: { + baseName: "name", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsTriggerCITestLocation.js.map + +/***/ }), + +/***/ 91623: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsTriggerCITestRunResult = void 0; +/** + * Information about a single test run. + */ +class SyntheticsTriggerCITestRunResult { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsTriggerCITestRunResult.attributeTypeMap; + } +} +exports.SyntheticsTriggerCITestRunResult = SyntheticsTriggerCITestRunResult; +/** + * @ignore + */ +SyntheticsTriggerCITestRunResult.attributeTypeMap = { + device: { + baseName: "device", + type: "string", + }, + location: { + baseName: "location", + type: "number", + format: "int64", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + resultId: { + baseName: "result_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsTriggerCITestRunResult.js.map + +/***/ }), + +/***/ 80193: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsTriggerCITestsResponse = void 0; +/** + * Object containing information about the tests triggered. + */ +class SyntheticsTriggerCITestsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsTriggerCITestsResponse.attributeTypeMap; + } +} +exports.SyntheticsTriggerCITestsResponse = SyntheticsTriggerCITestsResponse; +/** + * @ignore + */ +SyntheticsTriggerCITestsResponse.attributeTypeMap = { + batchId: { + baseName: "batch_id", + type: "string", + }, + locations: { + baseName: "locations", + type: "Array", + }, + results: { + baseName: "results", + type: "Array", + }, + triggeredCheckIds: { + baseName: "triggered_check_ids", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsTriggerCITestsResponse.js.map + +/***/ }), + +/***/ 77563: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsTriggerTest = void 0; +/** + * Test configuration for Synthetics + */ +class SyntheticsTriggerTest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsTriggerTest.attributeTypeMap; + } +} +exports.SyntheticsTriggerTest = SyntheticsTriggerTest; +/** + * @ignore + */ +SyntheticsTriggerTest.attributeTypeMap = { + metadata: { + baseName: "metadata", + type: "SyntheticsCIBatchMetadata", + }, + publicId: { + baseName: "public_id", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsTriggerTest.js.map + +/***/ }), + +/***/ 37220: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsUpdateTestPauseStatusPayload = void 0; +/** + * Object to start or pause an existing Synthetic test. + */ +class SyntheticsUpdateTestPauseStatusPayload { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsUpdateTestPauseStatusPayload.attributeTypeMap; + } +} +exports.SyntheticsUpdateTestPauseStatusPayload = SyntheticsUpdateTestPauseStatusPayload; +/** + * @ignore + */ +SyntheticsUpdateTestPauseStatusPayload.attributeTypeMap = { + newStatus: { + baseName: "new_status", + type: "SyntheticsTestPauseStatus", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsUpdateTestPauseStatusPayload.js.map + +/***/ }), + +/***/ 15815: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsUptime = void 0; +/** + * Object containing the uptime information. + */ +class SyntheticsUptime { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsUptime.attributeTypeMap; + } +} +exports.SyntheticsUptime = SyntheticsUptime; +/** + * @ignore + */ +SyntheticsUptime.attributeTypeMap = { + errors: { + baseName: "errors", + type: "Array", + }, + group: { + baseName: "group", + type: "string", + }, + history: { + baseName: "history", + type: "Array<[number, number]>", + format: "double", + }, + spanPrecision: { + baseName: "span_precision", + type: "number", + format: "double", + }, + uptime: { + baseName: "uptime", + type: "number", + format: "double", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsUptime.js.map + +/***/ }), + +/***/ 27992: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SyntheticsVariableParser = void 0; +/** + * Details of the parser to use for the global variable. + */ +class SyntheticsVariableParser { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return SyntheticsVariableParser.attributeTypeMap; + } +} +exports.SyntheticsVariableParser = SyntheticsVariableParser; +/** + * @ignore + */ +SyntheticsVariableParser.attributeTypeMap = { + type: { + baseName: "type", + type: "SyntheticsGlobalVariableParserType", + required: true, + }, + value: { + baseName: "value", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=SyntheticsVariableParser.js.map + +/***/ }), + +/***/ 30606: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.TableWidgetDefinition = void 0; +/** + * The table visualization is available on timeboards and screenboards. It displays columns of metrics grouped by tag key. + */ +class TableWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return TableWidgetDefinition.attributeTypeMap; + } +} +exports.TableWidgetDefinition = TableWidgetDefinition; +/** + * @ignore + */ +TableWidgetDefinition.attributeTypeMap = { + customLinks: { + baseName: "custom_links", + type: "Array", + }, + hasSearchBar: { + baseName: "has_search_bar", + type: "TableWidgetHasSearchBar", + }, + requests: { + baseName: "requests", + type: "Array", + required: true, + }, + time: { + baseName: "time", + type: "WidgetTime", + }, + title: { + baseName: "title", + type: "string", + }, + titleAlign: { + baseName: "title_align", + type: "WidgetTextAlign", + }, + titleSize: { + baseName: "title_size", + type: "string", + }, + type: { + baseName: "type", + type: "TableWidgetDefinitionType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=TableWidgetDefinition.js.map + +/***/ }), + +/***/ 91774: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.TableWidgetRequest = void 0; +/** + * Updated table widget. + */ +class TableWidgetRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return TableWidgetRequest.attributeTypeMap; + } +} +exports.TableWidgetRequest = TableWidgetRequest; +/** + * @ignore + */ +TableWidgetRequest.attributeTypeMap = { + aggregator: { + baseName: "aggregator", + type: "WidgetAggregator", + }, + alias: { + baseName: "alias", + type: "string", + }, + apmQuery: { + baseName: "apm_query", + type: "LogQueryDefinition", + }, + apmStatsQuery: { + baseName: "apm_stats_query", + type: "ApmStatsQueryDefinition", + }, + cellDisplayMode: { + baseName: "cell_display_mode", + type: "Array", + }, + conditionalFormats: { + baseName: "conditional_formats", + type: "Array", + }, + eventQuery: { + baseName: "event_query", + type: "LogQueryDefinition", + }, + formulas: { + baseName: "formulas", + type: "Array", + }, + limit: { + baseName: "limit", + type: "number", + format: "int64", + }, + logQuery: { + baseName: "log_query", + type: "LogQueryDefinition", + }, + networkQuery: { + baseName: "network_query", + type: "LogQueryDefinition", + }, + order: { + baseName: "order", + type: "WidgetSort", + }, + processQuery: { + baseName: "process_query", + type: "ProcessQueryDefinition", + }, + profileMetricsQuery: { + baseName: "profile_metrics_query", + type: "LogQueryDefinition", + }, + q: { + baseName: "q", + type: "string", + }, + queries: { + baseName: "queries", + type: "Array", + }, + responseFormat: { + baseName: "response_format", + type: "FormulaAndFunctionResponseFormat", + }, + rumQuery: { + baseName: "rum_query", + type: "LogQueryDefinition", + }, + securityQuery: { + baseName: "security_query", + type: "LogQueryDefinition", + }, + sort: { + baseName: "sort", + type: "WidgetSortBy", + }, + textFormats: { + baseName: "text_formats", + type: "Array>", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=TableWidgetRequest.js.map + +/***/ }), + +/***/ 74830: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.TableWidgetTextFormatMatch = void 0; +/** + * Match rule for the table widget text format. + */ +class TableWidgetTextFormatMatch { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return TableWidgetTextFormatMatch.attributeTypeMap; + } +} +exports.TableWidgetTextFormatMatch = TableWidgetTextFormatMatch; +/** + * @ignore + */ +TableWidgetTextFormatMatch.attributeTypeMap = { + type: { + baseName: "type", + type: "TableWidgetTextFormatMatchType", + required: true, + }, + value: { + baseName: "value", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=TableWidgetTextFormatMatch.js.map + +/***/ }), + +/***/ 57604: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.TableWidgetTextFormatReplaceAll = void 0; +/** + * Match All definition. + */ +class TableWidgetTextFormatReplaceAll { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return TableWidgetTextFormatReplaceAll.attributeTypeMap; + } +} +exports.TableWidgetTextFormatReplaceAll = TableWidgetTextFormatReplaceAll; +/** + * @ignore + */ +TableWidgetTextFormatReplaceAll.attributeTypeMap = { + type: { + baseName: "type", + type: "TableWidgetTextFormatReplaceAllType", + required: true, + }, + _with: { + baseName: "with", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=TableWidgetTextFormatReplaceAll.js.map + +/***/ }), + +/***/ 620: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.TableWidgetTextFormatReplaceSubstring = void 0; +/** + * Match Sub-string definition. + */ +class TableWidgetTextFormatReplaceSubstring { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return TableWidgetTextFormatReplaceSubstring.attributeTypeMap; + } +} +exports.TableWidgetTextFormatReplaceSubstring = TableWidgetTextFormatReplaceSubstring; +/** + * @ignore + */ +TableWidgetTextFormatReplaceSubstring.attributeTypeMap = { + substring: { + baseName: "substring", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "TableWidgetTextFormatReplaceSubstringType", + required: true, + }, + _with: { + baseName: "with", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=TableWidgetTextFormatReplaceSubstring.js.map + +/***/ }), + +/***/ 29597: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.TableWidgetTextFormatRule = void 0; +/** + * Text format rules. + */ +class TableWidgetTextFormatRule { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return TableWidgetTextFormatRule.attributeTypeMap; + } +} +exports.TableWidgetTextFormatRule = TableWidgetTextFormatRule; +/** + * @ignore + */ +TableWidgetTextFormatRule.attributeTypeMap = { + customBgColor: { + baseName: "custom_bg_color", + type: "string", + }, + customFgColor: { + baseName: "custom_fg_color", + type: "string", + }, + match: { + baseName: "match", + type: "TableWidgetTextFormatMatch", + required: true, + }, + palette: { + baseName: "palette", + type: "TableWidgetTextFormatPalette", + }, + replace: { + baseName: "replace", + type: "TableWidgetTextFormatReplace", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=TableWidgetTextFormatRule.js.map + +/***/ }), + +/***/ 45595: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.TagToHosts = void 0; +/** + * In this object, the key is the tag, the value is a list of host names that are reporting that tag. + */ +class TagToHosts { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return TagToHosts.attributeTypeMap; + } +} +exports.TagToHosts = TagToHosts; +/** + * @ignore + */ +TagToHosts.attributeTypeMap = { + tags: { + baseName: "tags", + type: "{ [key: string]: Array; }", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=TagToHosts.js.map + +/***/ }), + +/***/ 88107: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.TimeseriesBackground = void 0; +/** + * Set a timeseries on the widget background. + */ +class TimeseriesBackground { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return TimeseriesBackground.attributeTypeMap; + } +} +exports.TimeseriesBackground = TimeseriesBackground; +/** + * @ignore + */ +TimeseriesBackground.attributeTypeMap = { + type: { + baseName: "type", + type: "TimeseriesBackgroundType", + required: true, + }, + yaxis: { + baseName: "yaxis", + type: "WidgetAxis", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=TimeseriesBackground.js.map + +/***/ }), + +/***/ 12910: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.TimeseriesWidgetDefinition = void 0; +/** + * The timeseries visualization allows you to display the evolution of one or more metrics, log events, or Indexed Spans over time. + */ +class TimeseriesWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return TimeseriesWidgetDefinition.attributeTypeMap; + } +} +exports.TimeseriesWidgetDefinition = TimeseriesWidgetDefinition; +/** + * @ignore + */ +TimeseriesWidgetDefinition.attributeTypeMap = { + customLinks: { + baseName: "custom_links", + type: "Array", + }, + events: { + baseName: "events", + type: "Array", + }, + legendColumns: { + baseName: "legend_columns", + type: "Array", + }, + legendLayout: { + baseName: "legend_layout", + type: "TimeseriesWidgetLegendLayout", + }, + legendSize: { + baseName: "legend_size", + type: "string", + }, + markers: { + baseName: "markers", + type: "Array", + }, + requests: { + baseName: "requests", + type: "Array", + required: true, + }, + rightYaxis: { + baseName: "right_yaxis", + type: "WidgetAxis", + }, + showLegend: { + baseName: "show_legend", + type: "boolean", + }, + time: { + baseName: "time", + type: "WidgetTime", + }, + title: { + baseName: "title", + type: "string", + }, + titleAlign: { + baseName: "title_align", + type: "WidgetTextAlign", + }, + titleSize: { + baseName: "title_size", + type: "string", + }, + type: { + baseName: "type", + type: "TimeseriesWidgetDefinitionType", + required: true, + }, + yaxis: { + baseName: "yaxis", + type: "WidgetAxis", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=TimeseriesWidgetDefinition.js.map + +/***/ }), + +/***/ 99581: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.TimeseriesWidgetExpressionAlias = void 0; +/** + * Define an expression alias. + */ +class TimeseriesWidgetExpressionAlias { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return TimeseriesWidgetExpressionAlias.attributeTypeMap; + } +} +exports.TimeseriesWidgetExpressionAlias = TimeseriesWidgetExpressionAlias; +/** + * @ignore + */ +TimeseriesWidgetExpressionAlias.attributeTypeMap = { + aliasName: { + baseName: "alias_name", + type: "string", + }, + expression: { + baseName: "expression", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=TimeseriesWidgetExpressionAlias.js.map + +/***/ }), + +/***/ 6014: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.TimeseriesWidgetRequest = void 0; +/** + * Updated timeseries widget. + */ +class TimeseriesWidgetRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return TimeseriesWidgetRequest.attributeTypeMap; + } +} +exports.TimeseriesWidgetRequest = TimeseriesWidgetRequest; +/** + * @ignore + */ +TimeseriesWidgetRequest.attributeTypeMap = { + apmQuery: { + baseName: "apm_query", + type: "LogQueryDefinition", + }, + auditQuery: { + baseName: "audit_query", + type: "LogQueryDefinition", + }, + displayType: { + baseName: "display_type", + type: "WidgetDisplayType", + }, + eventQuery: { + baseName: "event_query", + type: "LogQueryDefinition", + }, + formulas: { + baseName: "formulas", + type: "Array", + }, + logQuery: { + baseName: "log_query", + type: "LogQueryDefinition", + }, + metadata: { + baseName: "metadata", + type: "Array", + }, + networkQuery: { + baseName: "network_query", + type: "LogQueryDefinition", + }, + onRightYaxis: { + baseName: "on_right_yaxis", + type: "boolean", + }, + processQuery: { + baseName: "process_query", + type: "ProcessQueryDefinition", + }, + profileMetricsQuery: { + baseName: "profile_metrics_query", + type: "LogQueryDefinition", + }, + q: { + baseName: "q", + type: "string", + }, + queries: { + baseName: "queries", + type: "Array", + }, + responseFormat: { + baseName: "response_format", + type: "FormulaAndFunctionResponseFormat", + }, + rumQuery: { + baseName: "rum_query", + type: "LogQueryDefinition", + }, + securityQuery: { + baseName: "security_query", + type: "LogQueryDefinition", + }, + style: { + baseName: "style", + type: "WidgetRequestStyle", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=TimeseriesWidgetRequest.js.map + +/***/ }), + +/***/ 15397: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ToplistWidgetDefinition = void 0; +/** + * The top list visualization enables you to display a list of Tag value like hostname or service with the most or least of any metric value, such as highest consumers of CPU, hosts with the least disk space, etc. + */ +class ToplistWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ToplistWidgetDefinition.attributeTypeMap; + } +} +exports.ToplistWidgetDefinition = ToplistWidgetDefinition; +/** + * @ignore + */ +ToplistWidgetDefinition.attributeTypeMap = { + customLinks: { + baseName: "custom_links", + type: "Array", + }, + requests: { + baseName: "requests", + type: "Array", + required: true, + }, + style: { + baseName: "style", + type: "ToplistWidgetStyle", + }, + time: { + baseName: "time", + type: "WidgetTime", + }, + title: { + baseName: "title", + type: "string", + }, + titleAlign: { + baseName: "title_align", + type: "WidgetTextAlign", + }, + titleSize: { + baseName: "title_size", + type: "string", + }, + type: { + baseName: "type", + type: "ToplistWidgetDefinitionType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ToplistWidgetDefinition.js.map + +/***/ }), + +/***/ 9383: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ToplistWidgetFlat = void 0; +/** + * Top list widget flat display. + */ +class ToplistWidgetFlat { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ToplistWidgetFlat.attributeTypeMap; + } +} +exports.ToplistWidgetFlat = ToplistWidgetFlat; +/** + * @ignore + */ +ToplistWidgetFlat.attributeTypeMap = { + type: { + baseName: "type", + type: "ToplistWidgetFlatType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ToplistWidgetFlat.js.map + +/***/ }), + +/***/ 75647: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ToplistWidgetRequest = void 0; +/** + * Updated top list widget. + */ +class ToplistWidgetRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ToplistWidgetRequest.attributeTypeMap; + } +} +exports.ToplistWidgetRequest = ToplistWidgetRequest; +/** + * @ignore + */ +ToplistWidgetRequest.attributeTypeMap = { + apmQuery: { + baseName: "apm_query", + type: "LogQueryDefinition", + }, + auditQuery: { + baseName: "audit_query", + type: "LogQueryDefinition", + }, + conditionalFormats: { + baseName: "conditional_formats", + type: "Array", + }, + eventQuery: { + baseName: "event_query", + type: "LogQueryDefinition", + }, + formulas: { + baseName: "formulas", + type: "Array", + }, + logQuery: { + baseName: "log_query", + type: "LogQueryDefinition", + }, + networkQuery: { + baseName: "network_query", + type: "LogQueryDefinition", + }, + processQuery: { + baseName: "process_query", + type: "ProcessQueryDefinition", + }, + profileMetricsQuery: { + baseName: "profile_metrics_query", + type: "LogQueryDefinition", + }, + q: { + baseName: "q", + type: "string", + }, + queries: { + baseName: "queries", + type: "Array", + }, + responseFormat: { + baseName: "response_format", + type: "FormulaAndFunctionResponseFormat", + }, + rumQuery: { + baseName: "rum_query", + type: "LogQueryDefinition", + }, + securityQuery: { + baseName: "security_query", + type: "LogQueryDefinition", + }, + sort: { + baseName: "sort", + type: "WidgetSortBy", + }, + style: { + baseName: "style", + type: "WidgetRequestStyle", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ToplistWidgetRequest.js.map + +/***/ }), + +/***/ 37695: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ToplistWidgetStacked = void 0; +/** + * Top list widget stacked display options. + */ +class ToplistWidgetStacked { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ToplistWidgetStacked.attributeTypeMap; + } +} +exports.ToplistWidgetStacked = ToplistWidgetStacked; +/** + * @ignore + */ +ToplistWidgetStacked.attributeTypeMap = { + legend: { + baseName: "legend", + type: "ToplistWidgetLegend", + }, + type: { + baseName: "type", + type: "ToplistWidgetStackedType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ToplistWidgetStacked.js.map + +/***/ }), + +/***/ 76663: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ToplistWidgetStyle = void 0; +/** + * Style customization for a top list widget. + */ +class ToplistWidgetStyle { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ToplistWidgetStyle.attributeTypeMap; + } +} +exports.ToplistWidgetStyle = ToplistWidgetStyle; +/** + * @ignore + */ +ToplistWidgetStyle.attributeTypeMap = { + display: { + baseName: "display", + type: "ToplistWidgetDisplay", + }, + palette: { + baseName: "palette", + type: "string", + }, + scaling: { + baseName: "scaling", + type: "ToplistWidgetScaling", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ToplistWidgetStyle.js.map + +/***/ }), + +/***/ 52511: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.TopologyMapWidgetDefinition = void 0; +/** + * This widget displays a topology of nodes and edges for different data sources. It replaces the service map widget. + */ +class TopologyMapWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return TopologyMapWidgetDefinition.attributeTypeMap; + } +} +exports.TopologyMapWidgetDefinition = TopologyMapWidgetDefinition; +/** + * @ignore + */ +TopologyMapWidgetDefinition.attributeTypeMap = { + customLinks: { + baseName: "custom_links", + type: "Array", + }, + requests: { + baseName: "requests", + type: "Array", + required: true, + }, + title: { + baseName: "title", + type: "string", + }, + titleAlign: { + baseName: "title_align", + type: "WidgetTextAlign", + }, + titleSize: { + baseName: "title_size", + type: "string", + }, + type: { + baseName: "type", + type: "TopologyMapWidgetDefinitionType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=TopologyMapWidgetDefinition.js.map + +/***/ }), + +/***/ 44468: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.TopologyQuery = void 0; +/** + * Query to service-based topology data sources like the service map or data streams. + */ +class TopologyQuery { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return TopologyQuery.attributeTypeMap; + } +} +exports.TopologyQuery = TopologyQuery; +/** + * @ignore + */ +TopologyQuery.attributeTypeMap = { + dataSource: { + baseName: "data_source", + type: "TopologyQueryDataSource", + }, + filters: { + baseName: "filters", + type: "Array", + }, + service: { + baseName: "service", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=TopologyQuery.js.map + +/***/ }), + +/***/ 52913: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.TopologyRequest = void 0; +/** + * Request that will return nodes and edges to be used by topology map. + */ +class TopologyRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return TopologyRequest.attributeTypeMap; + } +} +exports.TopologyRequest = TopologyRequest; +/** + * @ignore + */ +TopologyRequest.attributeTypeMap = { + query: { + baseName: "query", + type: "TopologyQuery", + }, + requestType: { + baseName: "request_type", + type: "TopologyRequestType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=TopologyRequest.js.map + +/***/ }), + +/***/ 49988: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.TreeMapWidgetDefinition = void 0; +/** + * The treemap visualization enables you to display hierarchical and nested data. It is well suited for queries that describe part-whole relationships, such as resource usage by availability zone, data center, or team. + */ +class TreeMapWidgetDefinition { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return TreeMapWidgetDefinition.attributeTypeMap; + } +} +exports.TreeMapWidgetDefinition = TreeMapWidgetDefinition; +/** + * @ignore + */ +TreeMapWidgetDefinition.attributeTypeMap = { + colorBy: { + baseName: "color_by", + type: "TreeMapColorBy", + }, + customLinks: { + baseName: "custom_links", + type: "Array", + }, + groupBy: { + baseName: "group_by", + type: "TreeMapGroupBy", + }, + requests: { + baseName: "requests", + type: "[TreeMapWidgetRequest]", + required: true, + }, + sizeBy: { + baseName: "size_by", + type: "TreeMapSizeBy", + }, + time: { + baseName: "time", + type: "WidgetTime", + }, + title: { + baseName: "title", + type: "string", + }, + type: { + baseName: "type", + type: "TreeMapWidgetDefinitionType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=TreeMapWidgetDefinition.js.map + +/***/ }), + +/***/ 93000: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.TreeMapWidgetRequest = void 0; +/** + * An updated treemap widget. + */ +class TreeMapWidgetRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return TreeMapWidgetRequest.attributeTypeMap; + } +} +exports.TreeMapWidgetRequest = TreeMapWidgetRequest; +/** + * @ignore + */ +TreeMapWidgetRequest.attributeTypeMap = { + formulas: { + baseName: "formulas", + type: "Array", + }, + q: { + baseName: "q", + type: "string", + }, + queries: { + baseName: "queries", + type: "Array", + }, + responseFormat: { + baseName: "response_format", + type: "FormulaAndFunctionResponseFormat", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=TreeMapWidgetRequest.js.map + +/***/ }), + +/***/ 23001: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageAnalyzedLogsHour = void 0; +/** + * The number of analyzed logs for each hour for a given organization. + */ +class UsageAnalyzedLogsHour { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageAnalyzedLogsHour.attributeTypeMap; + } +} +exports.UsageAnalyzedLogsHour = UsageAnalyzedLogsHour; +/** + * @ignore + */ +UsageAnalyzedLogsHour.attributeTypeMap = { + analyzedLogs: { + baseName: "analyzed_logs", + type: "number", + format: "int64", + }, + hour: { + baseName: "hour", + type: "Date", + format: "date-time", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageAnalyzedLogsHour.js.map + +/***/ }), + +/***/ 24884: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageAnalyzedLogsResponse = void 0; +/** + * A response containing the number of analyzed logs for each hour for a given organization. + */ +class UsageAnalyzedLogsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageAnalyzedLogsResponse.attributeTypeMap; + } +} +exports.UsageAnalyzedLogsResponse = UsageAnalyzedLogsResponse; +/** + * @ignore + */ +UsageAnalyzedLogsResponse.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageAnalyzedLogsResponse.js.map + +/***/ }), + +/***/ 5419: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageAttributionAggregatesBody = void 0; +/** + * The object containing the aggregates. + */ +class UsageAttributionAggregatesBody { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageAttributionAggregatesBody.attributeTypeMap; + } +} +exports.UsageAttributionAggregatesBody = UsageAttributionAggregatesBody; +/** + * @ignore + */ +UsageAttributionAggregatesBody.attributeTypeMap = { + aggType: { + baseName: "agg_type", + type: "string", + }, + field: { + baseName: "field", + type: "string", + }, + value: { + baseName: "value", + type: "number", + format: "double", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageAttributionAggregatesBody.js.map + +/***/ }), + +/***/ 6328: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageAuditLogsHour = void 0; +/** + * Audit logs usage for a given organization for a given hour. + */ +class UsageAuditLogsHour { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageAuditLogsHour.attributeTypeMap; + } +} +exports.UsageAuditLogsHour = UsageAuditLogsHour; +/** + * @ignore + */ +UsageAuditLogsHour.attributeTypeMap = { + hour: { + baseName: "hour", + type: "Date", + format: "date-time", + }, + linesIndexed: { + baseName: "lines_indexed", + type: "number", + format: "int64", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageAuditLogsHour.js.map + +/***/ }), + +/***/ 4597: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageAuditLogsResponse = void 0; +/** + * Response containing the audit logs usage for each hour for a given organization. + */ +class UsageAuditLogsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageAuditLogsResponse.attributeTypeMap; + } +} +exports.UsageAuditLogsResponse = UsageAuditLogsResponse; +/** + * @ignore + */ +UsageAuditLogsResponse.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageAuditLogsResponse.js.map + +/***/ }), + +/***/ 37005: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageBillableSummaryBody = void 0; +/** + * Response with properties for each aggregated usage type. + */ +class UsageBillableSummaryBody { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageBillableSummaryBody.attributeTypeMap; + } +} +exports.UsageBillableSummaryBody = UsageBillableSummaryBody; +/** + * @ignore + */ +UsageBillableSummaryBody.attributeTypeMap = { + accountBillableUsage: { + baseName: "account_billable_usage", + type: "number", + format: "int64", + }, + elapsedUsageHours: { + baseName: "elapsed_usage_hours", + type: "number", + format: "int64", + }, + firstBillableUsageHour: { + baseName: "first_billable_usage_hour", + type: "Date", + format: "date-time", + }, + lastBillableUsageHour: { + baseName: "last_billable_usage_hour", + type: "Date", + format: "date-time", + }, + orgBillableUsage: { + baseName: "org_billable_usage", + type: "number", + format: "int64", + }, + percentageInAccount: { + baseName: "percentage_in_account", + type: "number", + format: "double", + }, + usageUnit: { + baseName: "usage_unit", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageBillableSummaryBody.js.map + +/***/ }), + +/***/ 34427: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageBillableSummaryHour = void 0; +/** + * Response with monthly summary of data billed by Datadog. + */ +class UsageBillableSummaryHour { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageBillableSummaryHour.attributeTypeMap; + } +} +exports.UsageBillableSummaryHour = UsageBillableSummaryHour; +/** + * @ignore + */ +UsageBillableSummaryHour.attributeTypeMap = { + accountName: { + baseName: "account_name", + type: "string", + }, + accountPublicId: { + baseName: "account_public_id", + type: "string", + }, + billingPlan: { + baseName: "billing_plan", + type: "string", + }, + endDate: { + baseName: "end_date", + type: "Date", + format: "date-time", + }, + numOrgs: { + baseName: "num_orgs", + type: "number", + format: "int64", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + ratioInMonth: { + baseName: "ratio_in_month", + type: "number", + format: "double", + }, + region: { + baseName: "region", + type: "string", + }, + startDate: { + baseName: "start_date", + type: "Date", + format: "date-time", + }, + usage: { + baseName: "usage", + type: "UsageBillableSummaryKeys", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageBillableSummaryHour.js.map + +/***/ }), + +/***/ 99157: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageBillableSummaryKeys = void 0; +/** + * Response with aggregated usage types. + */ +class UsageBillableSummaryKeys { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageBillableSummaryKeys.attributeTypeMap; + } +} +exports.UsageBillableSummaryKeys = UsageBillableSummaryKeys; +/** + * @ignore + */ +UsageBillableSummaryKeys.attributeTypeMap = { + apmFargateAverage: { + baseName: "apm_fargate_average", + type: "UsageBillableSummaryBody", + }, + apmFargateSum: { + baseName: "apm_fargate_sum", + type: "UsageBillableSummaryBody", + }, + apmHostSum: { + baseName: "apm_host_sum", + type: "UsageBillableSummaryBody", + }, + apmHostTop99p: { + baseName: "apm_host_top99p", + type: "UsageBillableSummaryBody", + }, + apmProfilerHostSum: { + baseName: "apm_profiler_host_sum", + type: "UsageBillableSummaryBody", + }, + apmProfilerHostTop99p: { + baseName: "apm_profiler_host_top99p", + type: "UsageBillableSummaryBody", + }, + apmTraceSearchSum: { + baseName: "apm_trace_search_sum", + type: "UsageBillableSummaryBody", + }, + applicationSecurityFargateAverage: { + baseName: "application_security_fargate_average", + type: "UsageBillableSummaryBody", + }, + applicationSecurityHostSum: { + baseName: "application_security_host_sum", + type: "UsageBillableSummaryBody", + }, + applicationSecurityHostTop99p: { + baseName: "application_security_host_top99p", + type: "UsageBillableSummaryBody", + }, + ciPipelineIndexedSpansSum: { + baseName: "ci_pipeline_indexed_spans_sum", + type: "UsageBillableSummaryBody", + }, + ciPipelineMaximum: { + baseName: "ci_pipeline_maximum", + type: "UsageBillableSummaryBody", + }, + ciPipelineSum: { + baseName: "ci_pipeline_sum", + type: "UsageBillableSummaryBody", + }, + ciTestIndexedSpansSum: { + baseName: "ci_test_indexed_spans_sum", + type: "UsageBillableSummaryBody", + }, + ciTestingMaximum: { + baseName: "ci_testing_maximum", + type: "UsageBillableSummaryBody", + }, + ciTestingSum: { + baseName: "ci_testing_sum", + type: "UsageBillableSummaryBody", + }, + cloudCostManagementAverage: { + baseName: "cloud_cost_management_average", + type: "UsageBillableSummaryBody", + }, + cloudCostManagementSum: { + baseName: "cloud_cost_management_sum", + type: "UsageBillableSummaryBody", + }, + cspmContainerSum: { + baseName: "cspm_container_sum", + type: "UsageBillableSummaryBody", + }, + cspmHostSum: { + baseName: "cspm_host_sum", + type: "UsageBillableSummaryBody", + }, + cspmHostTop99p: { + baseName: "cspm_host_top99p", + type: "UsageBillableSummaryBody", + }, + customEventSum: { + baseName: "custom_event_sum", + type: "UsageBillableSummaryBody", + }, + cwsContainerSum: { + baseName: "cws_container_sum", + type: "UsageBillableSummaryBody", + }, + cwsHostSum: { + baseName: "cws_host_sum", + type: "UsageBillableSummaryBody", + }, + cwsHostTop99p: { + baseName: "cws_host_top99p", + type: "UsageBillableSummaryBody", + }, + dbmHostSum: { + baseName: "dbm_host_sum", + type: "UsageBillableSummaryBody", + }, + dbmHostTop99p: { + baseName: "dbm_host_top99p", + type: "UsageBillableSummaryBody", + }, + dbmNormalizedQueriesAverage: { + baseName: "dbm_normalized_queries_average", + type: "UsageBillableSummaryBody", + }, + dbmNormalizedQueriesSum: { + baseName: "dbm_normalized_queries_sum", + type: "UsageBillableSummaryBody", + }, + fargateContainerApmAndProfilerAverage: { + baseName: "fargate_container_apm_and_profiler_average", + type: "UsageBillableSummaryBody", + }, + fargateContainerApmAndProfilerSum: { + baseName: "fargate_container_apm_and_profiler_sum", + type: "UsageBillableSummaryBody", + }, + fargateContainerAverage: { + baseName: "fargate_container_average", + type: "UsageBillableSummaryBody", + }, + fargateContainerProfilerAverage: { + baseName: "fargate_container_profiler_average", + type: "UsageBillableSummaryBody", + }, + fargateContainerProfilerSum: { + baseName: "fargate_container_profiler_sum", + type: "UsageBillableSummaryBody", + }, + fargateContainerSum: { + baseName: "fargate_container_sum", + type: "UsageBillableSummaryBody", + }, + incidentManagementMaximum: { + baseName: "incident_management_maximum", + type: "UsageBillableSummaryBody", + }, + incidentManagementSum: { + baseName: "incident_management_sum", + type: "UsageBillableSummaryBody", + }, + infraAndApmHostSum: { + baseName: "infra_and_apm_host_sum", + type: "UsageBillableSummaryBody", + }, + infraAndApmHostTop99p: { + baseName: "infra_and_apm_host_top99p", + type: "UsageBillableSummaryBody", + }, + infraContainerSum: { + baseName: "infra_container_sum", + type: "UsageBillableSummaryBody", + }, + infraHostSum: { + baseName: "infra_host_sum", + type: "UsageBillableSummaryBody", + }, + infraHostTop99p: { + baseName: "infra_host_top99p", + type: "UsageBillableSummaryBody", + }, + ingestedSpansSum: { + baseName: "ingested_spans_sum", + type: "UsageBillableSummaryBody", + }, + ingestedTimeseriesAverage: { + baseName: "ingested_timeseries_average", + type: "UsageBillableSummaryBody", + }, + ingestedTimeseriesSum: { + baseName: "ingested_timeseries_sum", + type: "UsageBillableSummaryBody", + }, + iotSum: { + baseName: "iot_sum", + type: "UsageBillableSummaryBody", + }, + iotTop99p: { + baseName: "iot_top99p", + type: "UsageBillableSummaryBody", + }, + lambdaFunctionAverage: { + baseName: "lambda_function_average", + type: "UsageBillableSummaryBody", + }, + lambdaFunctionSum: { + baseName: "lambda_function_sum", + type: "UsageBillableSummaryBody", + }, + logsForwardingSum: { + baseName: "logs_forwarding_sum", + type: "UsageBillableSummaryBody", + }, + logsIndexed15daySum: { + baseName: "logs_indexed_15day_sum", + type: "UsageBillableSummaryBody", + }, + logsIndexed180daySum: { + baseName: "logs_indexed_180day_sum", + type: "UsageBillableSummaryBody", + }, + logsIndexed1daySum: { + baseName: "logs_indexed_1day_sum", + type: "UsageBillableSummaryBody", + }, + logsIndexed30daySum: { + baseName: "logs_indexed_30day_sum", + type: "UsageBillableSummaryBody", + }, + logsIndexed360daySum: { + baseName: "logs_indexed_360day_sum", + type: "UsageBillableSummaryBody", + }, + logsIndexed3daySum: { + baseName: "logs_indexed_3day_sum", + type: "UsageBillableSummaryBody", + }, + logsIndexed45daySum: { + baseName: "logs_indexed_45day_sum", + type: "UsageBillableSummaryBody", + }, + logsIndexed60daySum: { + baseName: "logs_indexed_60day_sum", + type: "UsageBillableSummaryBody", + }, + logsIndexed7daySum: { + baseName: "logs_indexed_7day_sum", + type: "UsageBillableSummaryBody", + }, + logsIndexed90daySum: { + baseName: "logs_indexed_90day_sum", + type: "UsageBillableSummaryBody", + }, + logsIndexedCustomRetentionSum: { + baseName: "logs_indexed_custom_retention_sum", + type: "UsageBillableSummaryBody", + }, + logsIndexedSum: { + baseName: "logs_indexed_sum", + type: "UsageBillableSummaryBody", + }, + logsIngestedSum: { + baseName: "logs_ingested_sum", + type: "UsageBillableSummaryBody", + }, + networkDeviceSum: { + baseName: "network_device_sum", + type: "UsageBillableSummaryBody", + }, + networkDeviceTop99p: { + baseName: "network_device_top99p", + type: "UsageBillableSummaryBody", + }, + npmFlowSum: { + baseName: "npm_flow_sum", + type: "UsageBillableSummaryBody", + }, + npmHostSum: { + baseName: "npm_host_sum", + type: "UsageBillableSummaryBody", + }, + npmHostTop99p: { + baseName: "npm_host_top99p", + type: "UsageBillableSummaryBody", + }, + observabilityPipelineSum: { + baseName: "observability_pipeline_sum", + type: "UsageBillableSummaryBody", + }, + onlineArchiveSum: { + baseName: "online_archive_sum", + type: "UsageBillableSummaryBody", + }, + profContainerSum: { + baseName: "prof_container_sum", + type: "UsageBillableSummaryBody", + }, + profHostSum: { + baseName: "prof_host_sum", + type: "UsageBillableSummaryBody", + }, + profHostTop99p: { + baseName: "prof_host_top99p", + type: "UsageBillableSummaryBody", + }, + rumLiteSum: { + baseName: "rum_lite_sum", + type: "UsageBillableSummaryBody", + }, + rumReplaySum: { + baseName: "rum_replay_sum", + type: "UsageBillableSummaryBody", + }, + rumSum: { + baseName: "rum_sum", + type: "UsageBillableSummaryBody", + }, + rumUnitsSum: { + baseName: "rum_units_sum", + type: "UsageBillableSummaryBody", + }, + sensitiveDataScannerSum: { + baseName: "sensitive_data_scanner_sum", + type: "UsageBillableSummaryBody", + }, + serverlessApmSum: { + baseName: "serverless_apm_sum", + type: "UsageBillableSummaryBody", + }, + serverlessInfraAverage: { + baseName: "serverless_infra_average", + type: "UsageBillableSummaryBody", + }, + serverlessInfraSum: { + baseName: "serverless_infra_sum", + type: "UsageBillableSummaryBody", + }, + serverlessInvocationSum: { + baseName: "serverless_invocation_sum", + type: "UsageBillableSummaryBody", + }, + siemSum: { + baseName: "siem_sum", + type: "UsageBillableSummaryBody", + }, + standardTimeseriesAverage: { + baseName: "standard_timeseries_average", + type: "UsageBillableSummaryBody", + }, + syntheticsApiTestsSum: { + baseName: "synthetics_api_tests_sum", + type: "UsageBillableSummaryBody", + }, + syntheticsAppTestingMaximum: { + baseName: "synthetics_app_testing_maximum", + type: "UsageBillableSummaryBody", + }, + syntheticsBrowserChecksSum: { + baseName: "synthetics_browser_checks_sum", + type: "UsageBillableSummaryBody", + }, + timeseriesAverage: { + baseName: "timeseries_average", + type: "UsageBillableSummaryBody", + }, + timeseriesSum: { + baseName: "timeseries_sum", + type: "UsageBillableSummaryBody", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageBillableSummaryKeys.js.map + +/***/ }), + +/***/ 72402: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageBillableSummaryResponse = void 0; +/** + * Response with monthly summary of data billed by Datadog. + */ +class UsageBillableSummaryResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageBillableSummaryResponse.attributeTypeMap; + } +} +exports.UsageBillableSummaryResponse = UsageBillableSummaryResponse; +/** + * @ignore + */ +UsageBillableSummaryResponse.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageBillableSummaryResponse.js.map + +/***/ }), + +/***/ 82834: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageCIVisibilityHour = void 0; +/** + * CI visibility usage in a given hour. + */ +class UsageCIVisibilityHour { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageCIVisibilityHour.attributeTypeMap; + } +} +exports.UsageCIVisibilityHour = UsageCIVisibilityHour; +/** + * @ignore + */ +UsageCIVisibilityHour.attributeTypeMap = { + ciPipelineIndexedSpans: { + baseName: "ci_pipeline_indexed_spans", + type: "number", + format: "int64", + }, + ciTestIndexedSpans: { + baseName: "ci_test_indexed_spans", + type: "number", + format: "int64", + }, + ciVisibilityItrCommitters: { + baseName: "ci_visibility_itr_committers", + type: "number", + format: "int64", + }, + ciVisibilityPipelineCommitters: { + baseName: "ci_visibility_pipeline_committers", + type: "number", + format: "int64", + }, + ciVisibilityTestCommitters: { + baseName: "ci_visibility_test_committers", + type: "number", + format: "int64", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageCIVisibilityHour.js.map + +/***/ }), + +/***/ 96403: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageCIVisibilityResponse = void 0; +/** + * CI visibility usage response + */ +class UsageCIVisibilityResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageCIVisibilityResponse.attributeTypeMap; + } +} +exports.UsageCIVisibilityResponse = UsageCIVisibilityResponse; +/** + * @ignore + */ +UsageCIVisibilityResponse.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageCIVisibilityResponse.js.map + +/***/ }), + +/***/ 41111: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageCWSHour = void 0; +/** + * Cloud Workload Security usage for a given organization for a given hour. + */ +class UsageCWSHour { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageCWSHour.attributeTypeMap; + } +} +exports.UsageCWSHour = UsageCWSHour; +/** + * @ignore + */ +UsageCWSHour.attributeTypeMap = { + cwsContainerCount: { + baseName: "cws_container_count", + type: "number", + format: "int64", + }, + cwsHostCount: { + baseName: "cws_host_count", + type: "number", + format: "int64", + }, + hour: { + baseName: "hour", + type: "Date", + format: "date-time", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageCWSHour.js.map + +/***/ }), + +/***/ 76206: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageCWSResponse = void 0; +/** + * Response containing the Cloud Workload Security usage for each hour for a given organization. + */ +class UsageCWSResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageCWSResponse.attributeTypeMap; + } +} +exports.UsageCWSResponse = UsageCWSResponse; +/** + * @ignore + */ +UsageCWSResponse.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageCWSResponse.js.map + +/***/ }), + +/***/ 90004: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageCloudSecurityPostureManagementHour = void 0; +/** + * Cloud Security Management Pro usage for a given organization for a given hour. + */ +class UsageCloudSecurityPostureManagementHour { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageCloudSecurityPostureManagementHour.attributeTypeMap; + } +} +exports.UsageCloudSecurityPostureManagementHour = UsageCloudSecurityPostureManagementHour; +/** + * @ignore + */ +UsageCloudSecurityPostureManagementHour.attributeTypeMap = { + aasHostCount: { + baseName: "aas_host_count", + type: "number", + format: "double", + }, + awsHostCount: { + baseName: "aws_host_count", + type: "number", + format: "double", + }, + azureHostCount: { + baseName: "azure_host_count", + type: "number", + format: "double", + }, + complianceHostCount: { + baseName: "compliance_host_count", + type: "number", + format: "double", + }, + containerCount: { + baseName: "container_count", + type: "number", + format: "double", + }, + gcpHostCount: { + baseName: "gcp_host_count", + type: "number", + format: "double", + }, + hostCount: { + baseName: "host_count", + type: "number", + format: "double", + }, + hour: { + baseName: "hour", + type: "Date", + format: "date-time", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageCloudSecurityPostureManagementHour.js.map + +/***/ }), + +/***/ 67585: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageCloudSecurityPostureManagementResponse = void 0; +/** + * The response containing the Cloud Security Management Pro usage for each hour for a given organization. + */ +class UsageCloudSecurityPostureManagementResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageCloudSecurityPostureManagementResponse.attributeTypeMap; + } +} +exports.UsageCloudSecurityPostureManagementResponse = UsageCloudSecurityPostureManagementResponse; +/** + * @ignore + */ +UsageCloudSecurityPostureManagementResponse.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageCloudSecurityPostureManagementResponse.js.map + +/***/ }), + +/***/ 13553: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageCustomReportsAttributes = void 0; +/** + * The response containing attributes for custom reports. + */ +class UsageCustomReportsAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageCustomReportsAttributes.attributeTypeMap; + } +} +exports.UsageCustomReportsAttributes = UsageCustomReportsAttributes; +/** + * @ignore + */ +UsageCustomReportsAttributes.attributeTypeMap = { + computedOn: { + baseName: "computed_on", + type: "string", + }, + endDate: { + baseName: "end_date", + type: "string", + }, + size: { + baseName: "size", + type: "number", + format: "int64", + }, + startDate: { + baseName: "start_date", + type: "string", + }, + tags: { + baseName: "tags", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageCustomReportsAttributes.js.map + +/***/ }), + +/***/ 31488: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageCustomReportsData = void 0; +/** + * The response containing the date and type for custom reports. + */ +class UsageCustomReportsData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageCustomReportsData.attributeTypeMap; + } +} +exports.UsageCustomReportsData = UsageCustomReportsData; +/** + * @ignore + */ +UsageCustomReportsData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "UsageCustomReportsAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "UsageReportsType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageCustomReportsData.js.map + +/***/ }), + +/***/ 63793: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageCustomReportsMeta = void 0; +/** + * The object containing document metadata. + */ +class UsageCustomReportsMeta { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageCustomReportsMeta.attributeTypeMap; + } +} +exports.UsageCustomReportsMeta = UsageCustomReportsMeta; +/** + * @ignore + */ +UsageCustomReportsMeta.attributeTypeMap = { + page: { + baseName: "page", + type: "UsageCustomReportsPage", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageCustomReportsMeta.js.map + +/***/ }), + +/***/ 46055: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageCustomReportsPage = void 0; +/** + * The object containing page total count. + */ +class UsageCustomReportsPage { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageCustomReportsPage.attributeTypeMap; + } +} +exports.UsageCustomReportsPage = UsageCustomReportsPage; +/** + * @ignore + */ +UsageCustomReportsPage.attributeTypeMap = { + totalCount: { + baseName: "total_count", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageCustomReportsPage.js.map + +/***/ }), + +/***/ 63503: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageCustomReportsResponse = void 0; +/** + * Response containing available custom reports. + */ +class UsageCustomReportsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageCustomReportsResponse.attributeTypeMap; + } +} +exports.UsageCustomReportsResponse = UsageCustomReportsResponse; +/** + * @ignore + */ +UsageCustomReportsResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "Array", + }, + meta: { + baseName: "meta", + type: "UsageCustomReportsMeta", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageCustomReportsResponse.js.map + +/***/ }), + +/***/ 95033: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageDBMHour = void 0; +/** + * Database Monitoring usage for a given organization for a given hour. + */ +class UsageDBMHour { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageDBMHour.attributeTypeMap; + } +} +exports.UsageDBMHour = UsageDBMHour; +/** + * @ignore + */ +UsageDBMHour.attributeTypeMap = { + dbmHostCount: { + baseName: "dbm_host_count", + type: "number", + format: "int64", + }, + dbmQueriesCount: { + baseName: "dbm_queries_count", + type: "number", + format: "int64", + }, + hour: { + baseName: "hour", + type: "Date", + format: "date-time", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageDBMHour.js.map + +/***/ }), + +/***/ 67700: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageDBMResponse = void 0; +/** + * Response containing the Database Monitoring usage for each hour for a given organization. + */ +class UsageDBMResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageDBMResponse.attributeTypeMap; + } +} +exports.UsageDBMResponse = UsageDBMResponse; +/** + * @ignore + */ +UsageDBMResponse.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageDBMResponse.js.map + +/***/ }), + +/***/ 20578: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageFargateHour = void 0; +/** + * Number of Fargate tasks run and hourly usage. + */ +class UsageFargateHour { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageFargateHour.attributeTypeMap; + } +} +exports.UsageFargateHour = UsageFargateHour; +/** + * @ignore + */ +UsageFargateHour.attributeTypeMap = { + apmFargateCount: { + baseName: "apm_fargate_count", + type: "number", + format: "int64", + }, + appsecFargateCount: { + baseName: "appsec_fargate_count", + type: "number", + format: "int64", + }, + avgProfiledFargateTasks: { + baseName: "avg_profiled_fargate_tasks", + type: "number", + format: "int64", + }, + hour: { + baseName: "hour", + type: "Date", + format: "date-time", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + tasksCount: { + baseName: "tasks_count", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageFargateHour.js.map + +/***/ }), + +/***/ 48131: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageFargateResponse = void 0; +/** + * Response containing the number of Fargate tasks run and hourly usage. + */ +class UsageFargateResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageFargateResponse.attributeTypeMap; + } +} +exports.UsageFargateResponse = UsageFargateResponse; +/** + * @ignore + */ +UsageFargateResponse.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageFargateResponse.js.map + +/***/ }), + +/***/ 41068: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageHostHour = void 0; +/** + * Number of hosts/containers recorded for each hour for a given organization. + */ +class UsageHostHour { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageHostHour.attributeTypeMap; + } +} +exports.UsageHostHour = UsageHostHour; +/** + * @ignore + */ +UsageHostHour.attributeTypeMap = { + agentHostCount: { + baseName: "agent_host_count", + type: "number", + format: "int64", + }, + alibabaHostCount: { + baseName: "alibaba_host_count", + type: "number", + format: "int64", + }, + apmAzureAppServiceHostCount: { + baseName: "apm_azure_app_service_host_count", + type: "number", + format: "int64", + }, + apmHostCount: { + baseName: "apm_host_count", + type: "number", + format: "int64", + }, + awsHostCount: { + baseName: "aws_host_count", + type: "number", + format: "int64", + }, + azureHostCount: { + baseName: "azure_host_count", + type: "number", + format: "int64", + }, + containerCount: { + baseName: "container_count", + type: "number", + format: "int64", + }, + gcpHostCount: { + baseName: "gcp_host_count", + type: "number", + format: "int64", + }, + herokuHostCount: { + baseName: "heroku_host_count", + type: "number", + format: "int64", + }, + hostCount: { + baseName: "host_count", + type: "number", + format: "int64", + }, + hour: { + baseName: "hour", + type: "Date", + format: "date-time", + }, + infraAzureAppService: { + baseName: "infra_azure_app_service", + type: "number", + format: "int64", + }, + opentelemetryApmHostCount: { + baseName: "opentelemetry_apm_host_count", + type: "number", + format: "int64", + }, + opentelemetryHostCount: { + baseName: "opentelemetry_host_count", + type: "number", + format: "int64", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + vsphereHostCount: { + baseName: "vsphere_host_count", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageHostHour.js.map + +/***/ }), + +/***/ 10846: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageHostsResponse = void 0; +/** + * Host usage response. + */ +class UsageHostsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageHostsResponse.attributeTypeMap; + } +} +exports.UsageHostsResponse = UsageHostsResponse; +/** + * @ignore + */ +UsageHostsResponse.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageHostsResponse.js.map + +/***/ }), + +/***/ 19759: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageIncidentManagementHour = void 0; +/** + * Incident management usage for a given organization for a given hour. + */ +class UsageIncidentManagementHour { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageIncidentManagementHour.attributeTypeMap; + } +} +exports.UsageIncidentManagementHour = UsageIncidentManagementHour; +/** + * @ignore + */ +UsageIncidentManagementHour.attributeTypeMap = { + hour: { + baseName: "hour", + type: "Date", + format: "date-time", + }, + monthlyActiveUsers: { + baseName: "monthly_active_users", + type: "number", + format: "int64", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageIncidentManagementHour.js.map + +/***/ }), + +/***/ 87430: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageIncidentManagementResponse = void 0; +/** + * Response containing the incident management usage for each hour for a given organization. + */ +class UsageIncidentManagementResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageIncidentManagementResponse.attributeTypeMap; + } +} +exports.UsageIncidentManagementResponse = UsageIncidentManagementResponse; +/** + * @ignore + */ +UsageIncidentManagementResponse.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageIncidentManagementResponse.js.map + +/***/ }), + +/***/ 68016: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageIndexedSpansHour = void 0; +/** + * The hours of indexed spans usage. + */ +class UsageIndexedSpansHour { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageIndexedSpansHour.attributeTypeMap; + } +} +exports.UsageIndexedSpansHour = UsageIndexedSpansHour; +/** + * @ignore + */ +UsageIndexedSpansHour.attributeTypeMap = { + hour: { + baseName: "hour", + type: "Date", + format: "date-time", + }, + indexedEventsCount: { + baseName: "indexed_events_count", + type: "number", + format: "int64", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageIndexedSpansHour.js.map + +/***/ }), + +/***/ 18189: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageIndexedSpansResponse = void 0; +/** + * A response containing indexed spans usage. + */ +class UsageIndexedSpansResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageIndexedSpansResponse.attributeTypeMap; + } +} +exports.UsageIndexedSpansResponse = UsageIndexedSpansResponse; +/** + * @ignore + */ +UsageIndexedSpansResponse.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageIndexedSpansResponse.js.map + +/***/ }), + +/***/ 28386: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageIngestedSpansHour = void 0; +/** + * Ingested spans usage for a given organization for a given hour. + */ +class UsageIngestedSpansHour { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageIngestedSpansHour.attributeTypeMap; + } +} +exports.UsageIngestedSpansHour = UsageIngestedSpansHour; +/** + * @ignore + */ +UsageIngestedSpansHour.attributeTypeMap = { + hour: { + baseName: "hour", + type: "Date", + format: "date-time", + }, + ingestedEventsBytes: { + baseName: "ingested_events_bytes", + type: "number", + format: "int64", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageIngestedSpansHour.js.map + +/***/ }), + +/***/ 34627: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageIngestedSpansResponse = void 0; +/** + * Response containing the ingested spans usage for each hour for a given organization. + */ +class UsageIngestedSpansResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageIngestedSpansResponse.attributeTypeMap; + } +} +exports.UsageIngestedSpansResponse = UsageIngestedSpansResponse; +/** + * @ignore + */ +UsageIngestedSpansResponse.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageIngestedSpansResponse.js.map + +/***/ }), + +/***/ 30380: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageIoTHour = void 0; +/** + * IoT usage for a given organization for a given hour. + */ +class UsageIoTHour { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageIoTHour.attributeTypeMap; + } +} +exports.UsageIoTHour = UsageIoTHour; +/** + * @ignore + */ +UsageIoTHour.attributeTypeMap = { + hour: { + baseName: "hour", + type: "Date", + format: "date-time", + }, + iotDeviceCount: { + baseName: "iot_device_count", + type: "number", + format: "int64", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageIoTHour.js.map + +/***/ }), + +/***/ 30937: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageIoTResponse = void 0; +/** + * Response containing the IoT usage for each hour for a given organization. + */ +class UsageIoTResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageIoTResponse.attributeTypeMap; + } +} +exports.UsageIoTResponse = UsageIoTResponse; +/** + * @ignore + */ +UsageIoTResponse.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageIoTResponse.js.map + +/***/ }), + +/***/ 86845: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageLambdaHour = void 0; +/** + * Number of Lambda functions and sum of the invocations of all Lambda functions + * for each hour for a given organization. + */ +class UsageLambdaHour { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageLambdaHour.attributeTypeMap; + } +} +exports.UsageLambdaHour = UsageLambdaHour; +/** + * @ignore + */ +UsageLambdaHour.attributeTypeMap = { + funcCount: { + baseName: "func_count", + type: "number", + format: "int64", + }, + hour: { + baseName: "hour", + type: "Date", + format: "date-time", + }, + invocationsSum: { + baseName: "invocations_sum", + type: "number", + format: "int64", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageLambdaHour.js.map + +/***/ }), + +/***/ 71896: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageLambdaResponse = void 0; +/** + * Response containing the number of Lambda functions and sum of the invocations of all Lambda functions + * for each hour for a given organization. + */ +class UsageLambdaResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageLambdaResponse.attributeTypeMap; + } +} +exports.UsageLambdaResponse = UsageLambdaResponse; +/** + * @ignore + */ +UsageLambdaResponse.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageLambdaResponse.js.map + +/***/ }), + +/***/ 95598: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageLogsByIndexHour = void 0; +/** + * Number of indexed logs for each hour and index for a given organization. + */ +class UsageLogsByIndexHour { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageLogsByIndexHour.attributeTypeMap; + } +} +exports.UsageLogsByIndexHour = UsageLogsByIndexHour; +/** + * @ignore + */ +UsageLogsByIndexHour.attributeTypeMap = { + eventCount: { + baseName: "event_count", + type: "number", + format: "int64", + }, + hour: { + baseName: "hour", + type: "Date", + format: "date-time", + }, + indexId: { + baseName: "index_id", + type: "string", + }, + indexName: { + baseName: "index_name", + type: "string", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + retention: { + baseName: "retention", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageLogsByIndexHour.js.map + +/***/ }), + +/***/ 43711: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageLogsByIndexResponse = void 0; +/** + * Response containing the number of indexed logs for each hour and index for a given organization. + */ +class UsageLogsByIndexResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageLogsByIndexResponse.attributeTypeMap; + } +} +exports.UsageLogsByIndexResponse = UsageLogsByIndexResponse; +/** + * @ignore + */ +UsageLogsByIndexResponse.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageLogsByIndexResponse.js.map + +/***/ }), + +/***/ 14968: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageLogsByRetentionHour = void 0; +/** + * The number of indexed logs for each hour for a given organization broken down by retention period. + */ +class UsageLogsByRetentionHour { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageLogsByRetentionHour.attributeTypeMap; + } +} +exports.UsageLogsByRetentionHour = UsageLogsByRetentionHour; +/** + * @ignore + */ +UsageLogsByRetentionHour.attributeTypeMap = { + indexedEventsCount: { + baseName: "indexed_events_count", + type: "number", + format: "int64", + }, + liveIndexedEventsCount: { + baseName: "live_indexed_events_count", + type: "number", + format: "int64", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + rehydratedIndexedEventsCount: { + baseName: "rehydrated_indexed_events_count", + type: "number", + format: "int64", + }, + retention: { + baseName: "retention", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageLogsByRetentionHour.js.map + +/***/ }), + +/***/ 65077: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageLogsByRetentionResponse = void 0; +/** + * Response containing the indexed logs usage broken down by retention period for an organization during a given hour. + */ +class UsageLogsByRetentionResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageLogsByRetentionResponse.attributeTypeMap; + } +} +exports.UsageLogsByRetentionResponse = UsageLogsByRetentionResponse; +/** + * @ignore + */ +UsageLogsByRetentionResponse.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageLogsByRetentionResponse.js.map + +/***/ }), + +/***/ 61777: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageLogsHour = void 0; +/** + * Hour usage for logs. + */ +class UsageLogsHour { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageLogsHour.attributeTypeMap; + } +} +exports.UsageLogsHour = UsageLogsHour; +/** + * @ignore + */ +UsageLogsHour.attributeTypeMap = { + billableIngestedBytes: { + baseName: "billable_ingested_bytes", + type: "number", + format: "int64", + }, + hour: { + baseName: "hour", + type: "Date", + format: "date-time", + }, + indexedEventsCount: { + baseName: "indexed_events_count", + type: "number", + format: "int64", + }, + ingestedEventsBytes: { + baseName: "ingested_events_bytes", + type: "number", + format: "int64", + }, + logsForwardingEventsBytes: { + baseName: "logs_forwarding_events_bytes", + type: "number", + format: "int64", + }, + logsLiveIndexedCount: { + baseName: "logs_live_indexed_count", + type: "number", + format: "int64", + }, + logsLiveIngestedBytes: { + baseName: "logs_live_ingested_bytes", + type: "number", + format: "int64", + }, + logsRehydratedIndexedCount: { + baseName: "logs_rehydrated_indexed_count", + type: "number", + format: "int64", + }, + logsRehydratedIngestedBytes: { + baseName: "logs_rehydrated_ingested_bytes", + type: "number", + format: "int64", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageLogsHour.js.map + +/***/ }), + +/***/ 97740: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageLogsResponse = void 0; +/** + * Response containing the number of logs for each hour. + */ +class UsageLogsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageLogsResponse.attributeTypeMap; + } +} +exports.UsageLogsResponse = UsageLogsResponse; +/** + * @ignore + */ +UsageLogsResponse.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageLogsResponse.js.map + +/***/ }), + +/***/ 46997: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageNetworkFlowsHour = void 0; +/** + * Number of netflow events indexed for each hour for a given organization. + */ +class UsageNetworkFlowsHour { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageNetworkFlowsHour.attributeTypeMap; + } +} +exports.UsageNetworkFlowsHour = UsageNetworkFlowsHour; +/** + * @ignore + */ +UsageNetworkFlowsHour.attributeTypeMap = { + hour: { + baseName: "hour", + type: "Date", + format: "date-time", + }, + indexedEventsCount: { + baseName: "indexed_events_count", + type: "number", + format: "int64", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageNetworkFlowsHour.js.map + +/***/ }), + +/***/ 38416: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageNetworkFlowsResponse = void 0; +/** + * Response containing the number of netflow events indexed for each hour for a given organization. + */ +class UsageNetworkFlowsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageNetworkFlowsResponse.attributeTypeMap; + } +} +exports.UsageNetworkFlowsResponse = UsageNetworkFlowsResponse; +/** + * @ignore + */ +UsageNetworkFlowsResponse.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageNetworkFlowsResponse.js.map + +/***/ }), + +/***/ 37519: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageNetworkHostsHour = void 0; +/** + * Number of active NPM hosts for each hour for a given organization. + */ +class UsageNetworkHostsHour { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageNetworkHostsHour.attributeTypeMap; + } +} +exports.UsageNetworkHostsHour = UsageNetworkHostsHour; +/** + * @ignore + */ +UsageNetworkHostsHour.attributeTypeMap = { + hostCount: { + baseName: "host_count", + type: "number", + format: "int64", + }, + hour: { + baseName: "hour", + type: "Date", + format: "date-time", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageNetworkHostsHour.js.map + +/***/ }), + +/***/ 95238: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageNetworkHostsResponse = void 0; +/** + * Response containing the number of active NPM hosts for each hour for a given organization. + */ +class UsageNetworkHostsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageNetworkHostsResponse.attributeTypeMap; + } +} +exports.UsageNetworkHostsResponse = UsageNetworkHostsResponse; +/** + * @ignore + */ +UsageNetworkHostsResponse.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageNetworkHostsResponse.js.map + +/***/ }), + +/***/ 94207: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageOnlineArchiveHour = void 0; +/** + * Online Archive usage in a given hour. + */ +class UsageOnlineArchiveHour { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageOnlineArchiveHour.attributeTypeMap; + } +} +exports.UsageOnlineArchiveHour = UsageOnlineArchiveHour; +/** + * @ignore + */ +UsageOnlineArchiveHour.attributeTypeMap = { + hour: { + baseName: "hour", + type: "Date", + format: "date-time", + }, + onlineArchiveEventsCount: { + baseName: "online_archive_events_count", + type: "number", + format: "int64", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageOnlineArchiveHour.js.map + +/***/ }), + +/***/ 53014: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageOnlineArchiveResponse = void 0; +/** + * Online Archive usage response. + */ +class UsageOnlineArchiveResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageOnlineArchiveResponse.attributeTypeMap; + } +} +exports.UsageOnlineArchiveResponse = UsageOnlineArchiveResponse; +/** + * @ignore + */ +UsageOnlineArchiveResponse.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageOnlineArchiveResponse.js.map + +/***/ }), + +/***/ 63370: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageProfilingHour = void 0; +/** + * The number of profiled hosts for each hour for a given organization. + */ +class UsageProfilingHour { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageProfilingHour.attributeTypeMap; + } +} +exports.UsageProfilingHour = UsageProfilingHour; +/** + * @ignore + */ +UsageProfilingHour.attributeTypeMap = { + aasCount: { + baseName: "aas_count", + type: "number", + format: "int64", + }, + avgContainerAgentCount: { + baseName: "avg_container_agent_count", + type: "number", + format: "int64", + }, + hostCount: { + baseName: "host_count", + type: "number", + format: "int64", + }, + hour: { + baseName: "hour", + type: "Date", + format: "date-time", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageProfilingHour.js.map + +/***/ }), + +/***/ 23819: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageProfilingResponse = void 0; +/** + * Response containing the number of profiled hosts for each hour for a given organization. + */ +class UsageProfilingResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageProfilingResponse.attributeTypeMap; + } +} +exports.UsageProfilingResponse = UsageProfilingResponse; +/** + * @ignore + */ +UsageProfilingResponse.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageProfilingResponse.js.map + +/***/ }), + +/***/ 73621: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageRumSessionsHour = void 0; +/** + * Number of RUM sessions recorded for each hour for a given organization. + */ +class UsageRumSessionsHour { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageRumSessionsHour.attributeTypeMap; + } +} +exports.UsageRumSessionsHour = UsageRumSessionsHour; +/** + * @ignore + */ +UsageRumSessionsHour.attributeTypeMap = { + hour: { + baseName: "hour", + type: "Date", + format: "date-time", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + replaySessionCount: { + baseName: "replay_session_count", + type: "number", + format: "int64", + }, + sessionCount: { + baseName: "session_count", + type: "number", + format: "int64", + }, + sessionCountAndroid: { + baseName: "session_count_android", + type: "number", + format: "int64", + }, + sessionCountFlutter: { + baseName: "session_count_flutter", + type: "number", + format: "int64", + }, + sessionCountIos: { + baseName: "session_count_ios", + type: "number", + format: "int64", + }, + sessionCountReactnative: { + baseName: "session_count_reactnative", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageRumSessionsHour.js.map + +/***/ }), + +/***/ 54448: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageRumSessionsResponse = void 0; +/** + * Response containing the number of RUM sessions for each hour for a given organization. + */ +class UsageRumSessionsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageRumSessionsResponse.attributeTypeMap; + } +} +exports.UsageRumSessionsResponse = UsageRumSessionsResponse; +/** + * @ignore + */ +UsageRumSessionsResponse.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageRumSessionsResponse.js.map + +/***/ }), + +/***/ 56093: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageRumUnitsHour = void 0; +/** + * Number of RUM Units used for each hour for a given organization (data available as of November 1, 2021). + */ +class UsageRumUnitsHour { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageRumUnitsHour.attributeTypeMap; + } +} +exports.UsageRumUnitsHour = UsageRumUnitsHour; +/** + * @ignore + */ +UsageRumUnitsHour.attributeTypeMap = { + browserRumUnits: { + baseName: "browser_rum_units", + type: "number", + format: "int64", + }, + mobileRumUnits: { + baseName: "mobile_rum_units", + type: "number", + format: "int64", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + rumUnits: { + baseName: "rum_units", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageRumUnitsHour.js.map + +/***/ }), + +/***/ 99608: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageRumUnitsResponse = void 0; +/** + * Response containing the number of RUM Units for each hour for a given organization. + */ +class UsageRumUnitsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageRumUnitsResponse.attributeTypeMap; + } +} +exports.UsageRumUnitsResponse = UsageRumUnitsResponse; +/** + * @ignore + */ +UsageRumUnitsResponse.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageRumUnitsResponse.js.map + +/***/ }), + +/***/ 2428: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageSDSHour = void 0; +/** + * Sensitive Data Scanner usage for a given organization for a given hour. + */ +class UsageSDSHour { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageSDSHour.attributeTypeMap; + } +} +exports.UsageSDSHour = UsageSDSHour; +/** + * @ignore + */ +UsageSDSHour.attributeTypeMap = { + apmScannedBytes: { + baseName: "apm_scanned_bytes", + type: "number", + format: "int64", + }, + eventsScannedBytes: { + baseName: "events_scanned_bytes", + type: "number", + format: "int64", + }, + hour: { + baseName: "hour", + type: "Date", + format: "date-time", + }, + logsScannedBytes: { + baseName: "logs_scanned_bytes", + type: "number", + format: "int64", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + rumScannedBytes: { + baseName: "rum_scanned_bytes", + type: "number", + format: "int64", + }, + totalScannedBytes: { + baseName: "total_scanned_bytes", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageSDSHour.js.map + +/***/ }), + +/***/ 93929: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageSDSResponse = void 0; +/** + * Response containing the Sensitive Data Scanner usage for each hour for a given organization. + */ +class UsageSDSResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageSDSResponse.attributeTypeMap; + } +} +exports.UsageSDSResponse = UsageSDSResponse; +/** + * @ignore + */ +UsageSDSResponse.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageSDSResponse.js.map + +/***/ }), + +/***/ 12698: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageSNMPHour = void 0; +/** + * The number of SNMP devices for each hour for a given organization. + */ +class UsageSNMPHour { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageSNMPHour.attributeTypeMap; + } +} +exports.UsageSNMPHour = UsageSNMPHour; +/** + * @ignore + */ +UsageSNMPHour.attributeTypeMap = { + hour: { + baseName: "hour", + type: "Date", + format: "date-time", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + snmpDevices: { + baseName: "snmp_devices", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageSNMPHour.js.map + +/***/ }), + +/***/ 1563: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageSNMPResponse = void 0; +/** + * Response containing the number of SNMP devices for each hour for a given organization. + */ +class UsageSNMPResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageSNMPResponse.attributeTypeMap; + } +} +exports.UsageSNMPResponse = UsageSNMPResponse; +/** + * @ignore + */ +UsageSNMPResponse.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageSNMPResponse.js.map + +/***/ }), + +/***/ 12517: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageSpecifiedCustomReportsAttributes = void 0; +/** + * The response containing attributes for specified custom reports. + */ +class UsageSpecifiedCustomReportsAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageSpecifiedCustomReportsAttributes.attributeTypeMap; + } +} +exports.UsageSpecifiedCustomReportsAttributes = UsageSpecifiedCustomReportsAttributes; +/** + * @ignore + */ +UsageSpecifiedCustomReportsAttributes.attributeTypeMap = { + computedOn: { + baseName: "computed_on", + type: "string", + }, + endDate: { + baseName: "end_date", + type: "string", + }, + location: { + baseName: "location", + type: "string", + }, + size: { + baseName: "size", + type: "number", + format: "int64", + }, + startDate: { + baseName: "start_date", + type: "string", + }, + tags: { + baseName: "tags", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageSpecifiedCustomReportsAttributes.js.map + +/***/ }), + +/***/ 86924: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageSpecifiedCustomReportsData = void 0; +/** + * Response containing date and type for specified custom reports. + */ +class UsageSpecifiedCustomReportsData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageSpecifiedCustomReportsData.attributeTypeMap; + } +} +exports.UsageSpecifiedCustomReportsData = UsageSpecifiedCustomReportsData; +/** + * @ignore + */ +UsageSpecifiedCustomReportsData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "UsageSpecifiedCustomReportsAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "UsageReportsType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageSpecifiedCustomReportsData.js.map + +/***/ }), + +/***/ 89077: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageSpecifiedCustomReportsMeta = void 0; +/** + * The object containing document metadata. + */ +class UsageSpecifiedCustomReportsMeta { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageSpecifiedCustomReportsMeta.attributeTypeMap; + } +} +exports.UsageSpecifiedCustomReportsMeta = UsageSpecifiedCustomReportsMeta; +/** + * @ignore + */ +UsageSpecifiedCustomReportsMeta.attributeTypeMap = { + page: { + baseName: "page", + type: "UsageSpecifiedCustomReportsPage", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageSpecifiedCustomReportsMeta.js.map + +/***/ }), + +/***/ 33427: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageSpecifiedCustomReportsPage = void 0; +/** + * The object containing page total count for specified ID. + */ +class UsageSpecifiedCustomReportsPage { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageSpecifiedCustomReportsPage.attributeTypeMap; + } +} +exports.UsageSpecifiedCustomReportsPage = UsageSpecifiedCustomReportsPage; +/** + * @ignore + */ +UsageSpecifiedCustomReportsPage.attributeTypeMap = { + totalCount: { + baseName: "total_count", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageSpecifiedCustomReportsPage.js.map + +/***/ }), + +/***/ 18507: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageSpecifiedCustomReportsResponse = void 0; +/** + * Returns available specified custom reports. + */ +class UsageSpecifiedCustomReportsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageSpecifiedCustomReportsResponse.attributeTypeMap; + } +} +exports.UsageSpecifiedCustomReportsResponse = UsageSpecifiedCustomReportsResponse; +/** + * @ignore + */ +UsageSpecifiedCustomReportsResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "UsageSpecifiedCustomReportsData", + }, + meta: { + baseName: "meta", + type: "UsageSpecifiedCustomReportsMeta", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageSpecifiedCustomReportsResponse.js.map + +/***/ }), + +/***/ 1434: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageSummaryDate = void 0; +/** + * Response with hourly report of all data billed by Datadog all organizations. + */ +class UsageSummaryDate { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageSummaryDate.attributeTypeMap; + } +} +exports.UsageSummaryDate = UsageSummaryDate; +/** + * @ignore + */ +UsageSummaryDate.attributeTypeMap = { + agentHostTop99p: { + baseName: "agent_host_top99p", + type: "number", + format: "int64", + }, + apmAzureAppServiceHostTop99p: { + baseName: "apm_azure_app_service_host_top99p", + type: "number", + format: "int64", + }, + apmDevsecopsHostTop99p: { + baseName: "apm_devsecops_host_top99p", + type: "number", + format: "int64", + }, + apmFargateCountAvg: { + baseName: "apm_fargate_count_avg", + type: "number", + format: "int64", + }, + apmHostTop99p: { + baseName: "apm_host_top99p", + type: "number", + format: "int64", + }, + appsecFargateCountAvg: { + baseName: "appsec_fargate_count_avg", + type: "number", + format: "int64", + }, + asmServerlessSum: { + baseName: "asm_serverless_sum", + type: "number", + format: "int64", + }, + auditLogsLinesIndexedSum: { + baseName: "audit_logs_lines_indexed_sum", + type: "number", + format: "int64", + }, + auditTrailEnabledHwm: { + baseName: "audit_trail_enabled_hwm", + type: "number", + format: "int64", + }, + avgProfiledFargateTasks: { + baseName: "avg_profiled_fargate_tasks", + type: "number", + format: "int64", + }, + awsHostTop99p: { + baseName: "aws_host_top99p", + type: "number", + format: "int64", + }, + awsLambdaFuncCount: { + baseName: "aws_lambda_func_count", + type: "number", + format: "int64", + }, + awsLambdaInvocationsSum: { + baseName: "aws_lambda_invocations_sum", + type: "number", + format: "int64", + }, + azureAppServiceTop99p: { + baseName: "azure_app_service_top99p", + type: "number", + format: "int64", + }, + billableIngestedBytesSum: { + baseName: "billable_ingested_bytes_sum", + type: "number", + format: "int64", + }, + browserRumLiteSessionCountSum: { + baseName: "browser_rum_lite_session_count_sum", + type: "number", + format: "int64", + }, + browserRumReplaySessionCountSum: { + baseName: "browser_rum_replay_session_count_sum", + type: "number", + format: "int64", + }, + browserRumUnitsSum: { + baseName: "browser_rum_units_sum", + type: "number", + format: "int64", + }, + ciPipelineIndexedSpansSum: { + baseName: "ci_pipeline_indexed_spans_sum", + type: "number", + format: "int64", + }, + ciTestIndexedSpansSum: { + baseName: "ci_test_indexed_spans_sum", + type: "number", + format: "int64", + }, + ciVisibilityItrCommittersHwm: { + baseName: "ci_visibility_itr_committers_hwm", + type: "number", + format: "int64", + }, + ciVisibilityPipelineCommittersHwm: { + baseName: "ci_visibility_pipeline_committers_hwm", + type: "number", + format: "int64", + }, + ciVisibilityTestCommittersHwm: { + baseName: "ci_visibility_test_committers_hwm", + type: "number", + format: "int64", + }, + cloudCostManagementAwsHostCountAvg: { + baseName: "cloud_cost_management_aws_host_count_avg", + type: "number", + format: "int64", + }, + cloudCostManagementAzureHostCountAvg: { + baseName: "cloud_cost_management_azure_host_count_avg", + type: "number", + format: "int64", + }, + cloudCostManagementGcpHostCountAvg: { + baseName: "cloud_cost_management_gcp_host_count_avg", + type: "number", + format: "int64", + }, + cloudCostManagementHostCountAvg: { + baseName: "cloud_cost_management_host_count_avg", + type: "number", + format: "int64", + }, + cloudSiemEventsSum: { + baseName: "cloud_siem_events_sum", + type: "number", + format: "int64", + }, + codeAnalysisSaCommittersHwm: { + baseName: "code_analysis_sa_committers_hwm", + type: "number", + format: "int64", + }, + codeAnalysisScaCommittersHwm: { + baseName: "code_analysis_sca_committers_hwm", + type: "number", + format: "int64", + }, + codeSecurityHostTop99p: { + baseName: "code_security_host_top99p", + type: "number", + format: "int64", + }, + containerAvg: { + baseName: "container_avg", + type: "number", + format: "int64", + }, + containerExclAgentAvg: { + baseName: "container_excl_agent_avg", + type: "number", + format: "int64", + }, + containerHwm: { + baseName: "container_hwm", + type: "number", + format: "int64", + }, + csmContainerEnterpriseComplianceCountSum: { + baseName: "csm_container_enterprise_compliance_count_sum", + type: "number", + format: "int64", + }, + csmContainerEnterpriseCwsCountSum: { + baseName: "csm_container_enterprise_cws_count_sum", + type: "number", + format: "int64", + }, + csmContainerEnterpriseTotalCountSum: { + baseName: "csm_container_enterprise_total_count_sum", + type: "number", + format: "int64", + }, + csmHostEnterpriseAasHostCountTop99p: { + baseName: "csm_host_enterprise_aas_host_count_top99p", + type: "number", + format: "int64", + }, + csmHostEnterpriseAwsHostCountTop99p: { + baseName: "csm_host_enterprise_aws_host_count_top99p", + type: "number", + format: "int64", + }, + csmHostEnterpriseAzureHostCountTop99p: { + baseName: "csm_host_enterprise_azure_host_count_top99p", + type: "number", + format: "int64", + }, + csmHostEnterpriseComplianceHostCountTop99p: { + baseName: "csm_host_enterprise_compliance_host_count_top99p", + type: "number", + format: "int64", + }, + csmHostEnterpriseCwsHostCountTop99p: { + baseName: "csm_host_enterprise_cws_host_count_top99p", + type: "number", + format: "int64", + }, + csmHostEnterpriseGcpHostCountTop99p: { + baseName: "csm_host_enterprise_gcp_host_count_top99p", + type: "number", + format: "int64", + }, + csmHostEnterpriseTotalHostCountTop99p: { + baseName: "csm_host_enterprise_total_host_count_top99p", + type: "number", + format: "int64", + }, + cspmAasHostTop99p: { + baseName: "cspm_aas_host_top99p", + type: "number", + format: "int64", + }, + cspmAwsHostTop99p: { + baseName: "cspm_aws_host_top99p", + type: "number", + format: "int64", + }, + cspmAzureHostTop99p: { + baseName: "cspm_azure_host_top99p", + type: "number", + format: "int64", + }, + cspmContainerAvg: { + baseName: "cspm_container_avg", + type: "number", + format: "int64", + }, + cspmContainerHwm: { + baseName: "cspm_container_hwm", + type: "number", + format: "int64", + }, + cspmGcpHostTop99p: { + baseName: "cspm_gcp_host_top99p", + type: "number", + format: "int64", + }, + cspmHostTop99p: { + baseName: "cspm_host_top99p", + type: "number", + format: "int64", + }, + customTsAvg: { + baseName: "custom_ts_avg", + type: "number", + format: "int64", + }, + cwsContainerCountAvg: { + baseName: "cws_container_count_avg", + type: "number", + format: "int64", + }, + cwsFargateTaskAvg: { + baseName: "cws_fargate_task_avg", + type: "number", + format: "int64", + }, + cwsHostTop99p: { + baseName: "cws_host_top99p", + type: "number", + format: "int64", + }, + dataJobsMonitoringHostHrSum: { + baseName: "data_jobs_monitoring_host_hr_sum", + type: "number", + format: "int64", + }, + date: { + baseName: "date", + type: "Date", + format: "date-time", + }, + dbmHostTop99p: { + baseName: "dbm_host_top99p", + type: "number", + format: "int64", + }, + dbmQueriesCountAvg: { + baseName: "dbm_queries_count_avg", + type: "number", + format: "int64", + }, + errorTrackingErrorEventsSum: { + baseName: "error_tracking_error_events_sum", + type: "number", + format: "int64", + }, + errorTrackingEventsSum: { + baseName: "error_tracking_events_sum", + type: "number", + format: "int64", + }, + errorTrackingRumErrorEventsSum: { + baseName: "error_tracking_rum_error_events_sum", + type: "number", + format: "int64", + }, + fargateTasksCountAvg: { + baseName: "fargate_tasks_count_avg", + type: "number", + format: "int64", + }, + fargateTasksCountHwm: { + baseName: "fargate_tasks_count_hwm", + type: "number", + format: "int64", + }, + flexLogsComputeLargeAvg: { + baseName: "flex_logs_compute_large_avg", + type: "number", + format: "int64", + }, + flexLogsComputeMediumAvg: { + baseName: "flex_logs_compute_medium_avg", + type: "number", + format: "int64", + }, + flexLogsComputeSmallAvg: { + baseName: "flex_logs_compute_small_avg", + type: "number", + format: "int64", + }, + flexLogsComputeXsmallAvg: { + baseName: "flex_logs_compute_xsmall_avg", + type: "number", + format: "int64", + }, + flexLogsStarterAvg: { + baseName: "flex_logs_starter_avg", + type: "number", + format: "int64", + }, + flexLogsStarterStorageIndexAvg: { + baseName: "flex_logs_starter_storage_index_avg", + type: "number", + format: "int64", + }, + flexLogsStarterStorageRetentionAdjustmentAvg: { + baseName: "flex_logs_starter_storage_retention_adjustment_avg", + type: "number", + format: "int64", + }, + flexStoredLogsAvg: { + baseName: "flex_stored_logs_avg", + type: "number", + format: "int64", + }, + forwardingEventsBytesSum: { + baseName: "forwarding_events_bytes_sum", + type: "number", + format: "int64", + }, + gcpHostTop99p: { + baseName: "gcp_host_top99p", + type: "number", + format: "int64", + }, + herokuHostTop99p: { + baseName: "heroku_host_top99p", + type: "number", + format: "int64", + }, + incidentManagementMonthlyActiveUsersHwm: { + baseName: "incident_management_monthly_active_users_hwm", + type: "number", + format: "int64", + }, + indexedEventsCountSum: { + baseName: "indexed_events_count_sum", + type: "number", + format: "int64", + }, + infraHostTop99p: { + baseName: "infra_host_top99p", + type: "number", + format: "int64", + }, + ingestedEventsBytesSum: { + baseName: "ingested_events_bytes_sum", + type: "number", + format: "int64", + }, + iotDeviceSum: { + baseName: "iot_device_sum", + type: "number", + format: "int64", + }, + iotDeviceTop99p: { + baseName: "iot_device_top99p", + type: "number", + format: "int64", + }, + mobileRumLiteSessionCountSum: { + baseName: "mobile_rum_lite_session_count_sum", + type: "number", + format: "int64", + }, + mobileRumSessionCountAndroidSum: { + baseName: "mobile_rum_session_count_android_sum", + type: "number", + format: "int64", + }, + mobileRumSessionCountFlutterSum: { + baseName: "mobile_rum_session_count_flutter_sum", + type: "number", + format: "int64", + }, + mobileRumSessionCountIosSum: { + baseName: "mobile_rum_session_count_ios_sum", + type: "number", + format: "int64", + }, + mobileRumSessionCountReactnativeSum: { + baseName: "mobile_rum_session_count_reactnative_sum", + type: "number", + format: "int64", + }, + mobileRumSessionCountRokuSum: { + baseName: "mobile_rum_session_count_roku_sum", + type: "number", + format: "int64", + }, + mobileRumSessionCountSum: { + baseName: "mobile_rum_session_count_sum", + type: "number", + format: "int64", + }, + mobileRumUnitsSum: { + baseName: "mobile_rum_units_sum", + type: "number", + format: "int64", + }, + ndmNetflowEventsSum: { + baseName: "ndm_netflow_events_sum", + type: "number", + format: "int64", + }, + netflowIndexedEventsCountSum: { + baseName: "netflow_indexed_events_count_sum", + type: "number", + format: "int64", + }, + npmHostTop99p: { + baseName: "npm_host_top99p", + type: "number", + format: "int64", + }, + observabilityPipelinesBytesProcessedSum: { + baseName: "observability_pipelines_bytes_processed_sum", + type: "number", + format: "int64", + }, + ociHostSum: { + baseName: "oci_host_sum", + type: "number", + format: "int64", + }, + ociHostTop99p: { + baseName: "oci_host_top99p", + type: "number", + format: "int64", + }, + onlineArchiveEventsCountSum: { + baseName: "online_archive_events_count_sum", + type: "number", + format: "int64", + }, + opentelemetryApmHostTop99p: { + baseName: "opentelemetry_apm_host_top99p", + type: "number", + format: "int64", + }, + opentelemetryHostTop99p: { + baseName: "opentelemetry_host_top99p", + type: "number", + format: "int64", + }, + orgs: { + baseName: "orgs", + type: "Array", + }, + profilingAasCountTop99p: { + baseName: "profiling_aas_count_top99p", + type: "number", + format: "int64", + }, + profilingHostTop99p: { + baseName: "profiling_host_top99p", + type: "number", + format: "int64", + }, + rumBrowserAndMobileSessionCount: { + baseName: "rum_browser_and_mobile_session_count", + type: "number", + format: "int64", + }, + rumBrowserLegacySessionCountSum: { + baseName: "rum_browser_legacy_session_count_sum", + type: "number", + format: "int64", + }, + rumBrowserLiteSessionCountSum: { + baseName: "rum_browser_lite_session_count_sum", + type: "number", + format: "int64", + }, + rumBrowserReplaySessionCountSum: { + baseName: "rum_browser_replay_session_count_sum", + type: "number", + format: "int64", + }, + rumLiteSessionCountSum: { + baseName: "rum_lite_session_count_sum", + type: "number", + format: "int64", + }, + rumMobileLegacySessionCountAndroidSum: { + baseName: "rum_mobile_legacy_session_count_android_sum", + type: "number", + format: "int64", + }, + rumMobileLegacySessionCountFlutterSum: { + baseName: "rum_mobile_legacy_session_count_flutter_sum", + type: "number", + format: "int64", + }, + rumMobileLegacySessionCountIosSum: { + baseName: "rum_mobile_legacy_session_count_ios_sum", + type: "number", + format: "int64", + }, + rumMobileLegacySessionCountReactnativeSum: { + baseName: "rum_mobile_legacy_session_count_reactnative_sum", + type: "number", + format: "int64", + }, + rumMobileLegacySessionCountRokuSum: { + baseName: "rum_mobile_legacy_session_count_roku_sum", + type: "number", + format: "int64", + }, + rumMobileLiteSessionCountAndroidSum: { + baseName: "rum_mobile_lite_session_count_android_sum", + type: "number", + format: "int64", + }, + rumMobileLiteSessionCountFlutterSum: { + baseName: "rum_mobile_lite_session_count_flutter_sum", + type: "number", + format: "int64", + }, + rumMobileLiteSessionCountIosSum: { + baseName: "rum_mobile_lite_session_count_ios_sum", + type: "number", + format: "int64", + }, + rumMobileLiteSessionCountReactnativeSum: { + baseName: "rum_mobile_lite_session_count_reactnative_sum", + type: "number", + format: "int64", + }, + rumMobileLiteSessionCountRokuSum: { + baseName: "rum_mobile_lite_session_count_roku_sum", + type: "number", + format: "int64", + }, + rumReplaySessionCountSum: { + baseName: "rum_replay_session_count_sum", + type: "number", + format: "int64", + }, + rumSessionCountSum: { + baseName: "rum_session_count_sum", + type: "number", + format: "int64", + }, + rumTotalSessionCountSum: { + baseName: "rum_total_session_count_sum", + type: "number", + format: "int64", + }, + rumUnitsSum: { + baseName: "rum_units_sum", + type: "number", + format: "int64", + }, + scaFargateCountAvg: { + baseName: "sca_fargate_count_avg", + type: "number", + format: "int64", + }, + scaFargateCountHwm: { + baseName: "sca_fargate_count_hwm", + type: "number", + format: "int64", + }, + sdsApmScannedBytesSum: { + baseName: "sds_apm_scanned_bytes_sum", + type: "number", + format: "int64", + }, + sdsEventsScannedBytesSum: { + baseName: "sds_events_scanned_bytes_sum", + type: "number", + format: "int64", + }, + sdsLogsScannedBytesSum: { + baseName: "sds_logs_scanned_bytes_sum", + type: "number", + format: "int64", + }, + sdsRumScannedBytesSum: { + baseName: "sds_rum_scanned_bytes_sum", + type: "number", + format: "int64", + }, + sdsTotalScannedBytesSum: { + baseName: "sds_total_scanned_bytes_sum", + type: "number", + format: "int64", + }, + serverlessAppsAzureCountAvg: { + baseName: "serverless_apps_azure_count_avg", + type: "number", + format: "int64", + }, + serverlessAppsGoogleCountAvg: { + baseName: "serverless_apps_google_count_avg", + type: "number", + format: "int64", + }, + serverlessAppsTotalCountAvg: { + baseName: "serverless_apps_total_count_avg", + type: "number", + format: "int64", + }, + siemAnalyzedLogsAddOnCountSum: { + baseName: "siem_analyzed_logs_add_on_count_sum", + type: "number", + format: "int64", + }, + syntheticsBrowserCheckCallsCountSum: { + baseName: "synthetics_browser_check_calls_count_sum", + type: "number", + format: "int64", + }, + syntheticsCheckCallsCountSum: { + baseName: "synthetics_check_calls_count_sum", + type: "number", + format: "int64", + }, + syntheticsMobileTestRunsSum: { + baseName: "synthetics_mobile_test_runs_sum", + type: "number", + format: "int64", + }, + syntheticsParallelTestingMaxSlotsHwm: { + baseName: "synthetics_parallel_testing_max_slots_hwm", + type: "number", + format: "int64", + }, + traceSearchIndexedEventsCountSum: { + baseName: "trace_search_indexed_events_count_sum", + type: "number", + format: "int64", + }, + twolIngestedEventsBytesSum: { + baseName: "twol_ingested_events_bytes_sum", + type: "number", + format: "int64", + }, + universalServiceMonitoringHostTop99p: { + baseName: "universal_service_monitoring_host_top99p", + type: "number", + format: "int64", + }, + vsphereHostTop99p: { + baseName: "vsphere_host_top99p", + type: "number", + format: "int64", + }, + vulnManagementHostCountTop99p: { + baseName: "vuln_management_host_count_top99p", + type: "number", + format: "int64", + }, + workflowExecutionsUsageSum: { + baseName: "workflow_executions_usage_sum", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageSummaryDate.js.map + +/***/ }), + +/***/ 38054: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageSummaryDateOrg = void 0; +/** + * Global hourly report of all data billed by Datadog for a given organization. + */ +class UsageSummaryDateOrg { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageSummaryDateOrg.attributeTypeMap; + } +} +exports.UsageSummaryDateOrg = UsageSummaryDateOrg; +/** + * @ignore + */ +UsageSummaryDateOrg.attributeTypeMap = { + accountName: { + baseName: "account_name", + type: "string", + }, + accountPublicId: { + baseName: "account_public_id", + type: "string", + }, + agentHostTop99p: { + baseName: "agent_host_top99p", + type: "number", + format: "int64", + }, + apmAzureAppServiceHostTop99p: { + baseName: "apm_azure_app_service_host_top99p", + type: "number", + format: "int64", + }, + apmDevsecopsHostTop99p: { + baseName: "apm_devsecops_host_top99p", + type: "number", + format: "int64", + }, + apmFargateCountAvg: { + baseName: "apm_fargate_count_avg", + type: "number", + format: "int64", + }, + apmHostTop99p: { + baseName: "apm_host_top99p", + type: "number", + format: "int64", + }, + appsecFargateCountAvg: { + baseName: "appsec_fargate_count_avg", + type: "number", + format: "int64", + }, + asmServerlessSum: { + baseName: "asm_serverless_sum", + type: "number", + format: "int64", + }, + auditLogsLinesIndexedSum: { + baseName: "audit_logs_lines_indexed_sum", + type: "number", + format: "int64", + }, + auditTrailEnabledHwm: { + baseName: "audit_trail_enabled_hwm", + type: "number", + format: "int64", + }, + avgProfiledFargateTasks: { + baseName: "avg_profiled_fargate_tasks", + type: "number", + format: "int64", + }, + awsHostTop99p: { + baseName: "aws_host_top99p", + type: "number", + format: "int64", + }, + awsLambdaFuncCount: { + baseName: "aws_lambda_func_count", + type: "number", + format: "int64", + }, + awsLambdaInvocationsSum: { + baseName: "aws_lambda_invocations_sum", + type: "number", + format: "int64", + }, + azureAppServiceTop99p: { + baseName: "azure_app_service_top99p", + type: "number", + format: "int64", + }, + billableIngestedBytesSum: { + baseName: "billable_ingested_bytes_sum", + type: "number", + format: "int64", + }, + browserRumLiteSessionCountSum: { + baseName: "browser_rum_lite_session_count_sum", + type: "number", + format: "int64", + }, + browserRumReplaySessionCountSum: { + baseName: "browser_rum_replay_session_count_sum", + type: "number", + format: "int64", + }, + browserRumUnitsSum: { + baseName: "browser_rum_units_sum", + type: "number", + format: "int64", + }, + ciPipelineIndexedSpansSum: { + baseName: "ci_pipeline_indexed_spans_sum", + type: "number", + format: "int64", + }, + ciTestIndexedSpansSum: { + baseName: "ci_test_indexed_spans_sum", + type: "number", + format: "int64", + }, + ciVisibilityItrCommittersHwm: { + baseName: "ci_visibility_itr_committers_hwm", + type: "number", + format: "int64", + }, + ciVisibilityPipelineCommittersHwm: { + baseName: "ci_visibility_pipeline_committers_hwm", + type: "number", + format: "int64", + }, + ciVisibilityTestCommittersHwm: { + baseName: "ci_visibility_test_committers_hwm", + type: "number", + format: "int64", + }, + cloudCostManagementAwsHostCountAvg: { + baseName: "cloud_cost_management_aws_host_count_avg", + type: "number", + format: "int64", + }, + cloudCostManagementAzureHostCountAvg: { + baseName: "cloud_cost_management_azure_host_count_avg", + type: "number", + format: "int64", + }, + cloudCostManagementGcpHostCountAvg: { + baseName: "cloud_cost_management_gcp_host_count_avg", + type: "number", + format: "int64", + }, + cloudCostManagementHostCountAvg: { + baseName: "cloud_cost_management_host_count_avg", + type: "number", + format: "int64", + }, + cloudSiemEventsSum: { + baseName: "cloud_siem_events_sum", + type: "number", + format: "int64", + }, + codeAnalysisSaCommittersHwm: { + baseName: "code_analysis_sa_committers_hwm", + type: "number", + format: "int64", + }, + codeAnalysisScaCommittersHwm: { + baseName: "code_analysis_sca_committers_hwm", + type: "number", + format: "int64", + }, + codeSecurityHostTop99p: { + baseName: "code_security_host_top99p", + type: "number", + format: "int64", + }, + containerAvg: { + baseName: "container_avg", + type: "number", + format: "int64", + }, + containerExclAgentAvg: { + baseName: "container_excl_agent_avg", + type: "number", + format: "int64", + }, + containerHwm: { + baseName: "container_hwm", + type: "number", + format: "int64", + }, + csmContainerEnterpriseComplianceCountSum: { + baseName: "csm_container_enterprise_compliance_count_sum", + type: "number", + format: "int64", + }, + csmContainerEnterpriseCwsCountSum: { + baseName: "csm_container_enterprise_cws_count_sum", + type: "number", + format: "int64", + }, + csmContainerEnterpriseTotalCountSum: { + baseName: "csm_container_enterprise_total_count_sum", + type: "number", + format: "int64", + }, + csmHostEnterpriseAasHostCountTop99p: { + baseName: "csm_host_enterprise_aas_host_count_top99p", + type: "number", + format: "int64", + }, + csmHostEnterpriseAwsHostCountTop99p: { + baseName: "csm_host_enterprise_aws_host_count_top99p", + type: "number", + format: "int64", + }, + csmHostEnterpriseAzureHostCountTop99p: { + baseName: "csm_host_enterprise_azure_host_count_top99p", + type: "number", + format: "int64", + }, + csmHostEnterpriseComplianceHostCountTop99p: { + baseName: "csm_host_enterprise_compliance_host_count_top99p", + type: "number", + format: "int64", + }, + csmHostEnterpriseCwsHostCountTop99p: { + baseName: "csm_host_enterprise_cws_host_count_top99p", + type: "number", + format: "int64", + }, + csmHostEnterpriseGcpHostCountTop99p: { + baseName: "csm_host_enterprise_gcp_host_count_top99p", + type: "number", + format: "int64", + }, + csmHostEnterpriseTotalHostCountTop99p: { + baseName: "csm_host_enterprise_total_host_count_top99p", + type: "number", + format: "int64", + }, + cspmAasHostTop99p: { + baseName: "cspm_aas_host_top99p", + type: "number", + format: "int64", + }, + cspmAwsHostTop99p: { + baseName: "cspm_aws_host_top99p", + type: "number", + format: "int64", + }, + cspmAzureHostTop99p: { + baseName: "cspm_azure_host_top99p", + type: "number", + format: "int64", + }, + cspmContainerAvg: { + baseName: "cspm_container_avg", + type: "number", + format: "int64", + }, + cspmContainerHwm: { + baseName: "cspm_container_hwm", + type: "number", + format: "int64", + }, + cspmGcpHostTop99p: { + baseName: "cspm_gcp_host_top99p", + type: "number", + format: "int64", + }, + cspmHostTop99p: { + baseName: "cspm_host_top99p", + type: "number", + format: "int64", + }, + customHistoricalTsAvg: { + baseName: "custom_historical_ts_avg", + type: "number", + format: "int64", + }, + customLiveTsAvg: { + baseName: "custom_live_ts_avg", + type: "number", + format: "int64", + }, + customTsAvg: { + baseName: "custom_ts_avg", + type: "number", + format: "int64", + }, + cwsContainerCountAvg: { + baseName: "cws_container_count_avg", + type: "number", + format: "int64", + }, + cwsFargateTaskAvg: { + baseName: "cws_fargate_task_avg", + type: "number", + format: "int64", + }, + cwsHostTop99p: { + baseName: "cws_host_top99p", + type: "number", + format: "int64", + }, + dataJobsMonitoringHostHrSum: { + baseName: "data_jobs_monitoring_host_hr_sum", + type: "number", + format: "int64", + }, + dbmHostTop99pSum: { + baseName: "dbm_host_top99p_sum", + type: "number", + format: "int64", + }, + dbmQueriesAvgSum: { + baseName: "dbm_queries_avg_sum", + type: "number", + format: "int64", + }, + errorTrackingErrorEventsSum: { + baseName: "error_tracking_error_events_sum", + type: "number", + format: "int64", + }, + errorTrackingEventsSum: { + baseName: "error_tracking_events_sum", + type: "number", + format: "int64", + }, + errorTrackingRumErrorEventsSum: { + baseName: "error_tracking_rum_error_events_sum", + type: "number", + format: "int64", + }, + fargateTasksCountAvg: { + baseName: "fargate_tasks_count_avg", + type: "number", + format: "int64", + }, + fargateTasksCountHwm: { + baseName: "fargate_tasks_count_hwm", + type: "number", + format: "int64", + }, + flexLogsComputeLargeAvg: { + baseName: "flex_logs_compute_large_avg", + type: "number", + format: "int64", + }, + flexLogsComputeMediumAvg: { + baseName: "flex_logs_compute_medium_avg", + type: "number", + format: "int64", + }, + flexLogsComputeSmallAvg: { + baseName: "flex_logs_compute_small_avg", + type: "number", + format: "int64", + }, + flexLogsComputeXsmallAvg: { + baseName: "flex_logs_compute_xsmall_avg", + type: "number", + format: "int64", + }, + flexLogsStarterAvg: { + baseName: "flex_logs_starter_avg", + type: "number", + format: "int64", + }, + flexLogsStarterStorageIndexAvg: { + baseName: "flex_logs_starter_storage_index_avg", + type: "number", + format: "int64", + }, + flexLogsStarterStorageRetentionAdjustmentAvg: { + baseName: "flex_logs_starter_storage_retention_adjustment_avg", + type: "number", + format: "int64", + }, + flexStoredLogsAvg: { + baseName: "flex_stored_logs_avg", + type: "number", + format: "int64", + }, + forwardingEventsBytesSum: { + baseName: "forwarding_events_bytes_sum", + type: "number", + format: "int64", + }, + gcpHostTop99p: { + baseName: "gcp_host_top99p", + type: "number", + format: "int64", + }, + herokuHostTop99p: { + baseName: "heroku_host_top99p", + type: "number", + format: "int64", + }, + id: { + baseName: "id", + type: "string", + }, + incidentManagementMonthlyActiveUsersHwm: { + baseName: "incident_management_monthly_active_users_hwm", + type: "number", + format: "int64", + }, + indexedEventsCountSum: { + baseName: "indexed_events_count_sum", + type: "number", + format: "int64", + }, + infraHostTop99p: { + baseName: "infra_host_top99p", + type: "number", + format: "int64", + }, + ingestedEventsBytesSum: { + baseName: "ingested_events_bytes_sum", + type: "number", + format: "int64", + }, + iotDeviceAggSum: { + baseName: "iot_device_agg_sum", + type: "number", + format: "int64", + }, + iotDeviceTop99pSum: { + baseName: "iot_device_top99p_sum", + type: "number", + format: "int64", + }, + mobileRumLiteSessionCountSum: { + baseName: "mobile_rum_lite_session_count_sum", + type: "number", + format: "int64", + }, + mobileRumSessionCountAndroidSum: { + baseName: "mobile_rum_session_count_android_sum", + type: "number", + format: "int64", + }, + mobileRumSessionCountFlutterSum: { + baseName: "mobile_rum_session_count_flutter_sum", + type: "number", + format: "int64", + }, + mobileRumSessionCountIosSum: { + baseName: "mobile_rum_session_count_ios_sum", + type: "number", + format: "int64", + }, + mobileRumSessionCountReactnativeSum: { + baseName: "mobile_rum_session_count_reactnative_sum", + type: "number", + format: "int64", + }, + mobileRumSessionCountRokuSum: { + baseName: "mobile_rum_session_count_roku_sum", + type: "number", + format: "int64", + }, + mobileRumSessionCountSum: { + baseName: "mobile_rum_session_count_sum", + type: "number", + format: "int64", + }, + mobileRumUnitsSum: { + baseName: "mobile_rum_units_sum", + type: "number", + format: "int64", + }, + name: { + baseName: "name", + type: "string", + }, + ndmNetflowEventsSum: { + baseName: "ndm_netflow_events_sum", + type: "number", + format: "int64", + }, + netflowIndexedEventsCountSum: { + baseName: "netflow_indexed_events_count_sum", + type: "number", + format: "int64", + }, + npmHostTop99p: { + baseName: "npm_host_top99p", + type: "number", + format: "int64", + }, + observabilityPipelinesBytesProcessedSum: { + baseName: "observability_pipelines_bytes_processed_sum", + type: "number", + format: "int64", + }, + ociHostSum: { + baseName: "oci_host_sum", + type: "number", + format: "int64", + }, + ociHostTop99p: { + baseName: "oci_host_top99p", + type: "number", + format: "int64", + }, + onlineArchiveEventsCountSum: { + baseName: "online_archive_events_count_sum", + type: "number", + format: "int64", + }, + opentelemetryApmHostTop99p: { + baseName: "opentelemetry_apm_host_top99p", + type: "number", + format: "int64", + }, + opentelemetryHostTop99p: { + baseName: "opentelemetry_host_top99p", + type: "number", + format: "int64", + }, + profilingAasCountTop99p: { + baseName: "profiling_aas_count_top99p", + type: "number", + format: "int64", + }, + profilingHostTop99p: { + baseName: "profiling_host_top99p", + type: "number", + format: "int64", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + region: { + baseName: "region", + type: "string", + }, + rumBrowserAndMobileSessionCount: { + baseName: "rum_browser_and_mobile_session_count", + type: "number", + format: "int64", + }, + rumBrowserLegacySessionCountSum: { + baseName: "rum_browser_legacy_session_count_sum", + type: "number", + format: "int64", + }, + rumBrowserLiteSessionCountSum: { + baseName: "rum_browser_lite_session_count_sum", + type: "number", + format: "int64", + }, + rumBrowserReplaySessionCountSum: { + baseName: "rum_browser_replay_session_count_sum", + type: "number", + format: "int64", + }, + rumLiteSessionCountSum: { + baseName: "rum_lite_session_count_sum", + type: "number", + format: "int64", + }, + rumMobileLegacySessionCountAndroidSum: { + baseName: "rum_mobile_legacy_session_count_android_sum", + type: "number", + format: "int64", + }, + rumMobileLegacySessionCountFlutterSum: { + baseName: "rum_mobile_legacy_session_count_flutter_sum", + type: "number", + format: "int64", + }, + rumMobileLegacySessionCountIosSum: { + baseName: "rum_mobile_legacy_session_count_ios_sum", + type: "number", + format: "int64", + }, + rumMobileLegacySessionCountReactnativeSum: { + baseName: "rum_mobile_legacy_session_count_reactnative_sum", + type: "number", + format: "int64", + }, + rumMobileLegacySessionCountRokuSum: { + baseName: "rum_mobile_legacy_session_count_roku_sum", + type: "number", + format: "int64", + }, + rumMobileLiteSessionCountAndroidSum: { + baseName: "rum_mobile_lite_session_count_android_sum", + type: "number", + format: "int64", + }, + rumMobileLiteSessionCountFlutterSum: { + baseName: "rum_mobile_lite_session_count_flutter_sum", + type: "number", + format: "int64", + }, + rumMobileLiteSessionCountIosSum: { + baseName: "rum_mobile_lite_session_count_ios_sum", + type: "number", + format: "int64", + }, + rumMobileLiteSessionCountReactnativeSum: { + baseName: "rum_mobile_lite_session_count_reactnative_sum", + type: "number", + format: "int64", + }, + rumMobileLiteSessionCountRokuSum: { + baseName: "rum_mobile_lite_session_count_roku_sum", + type: "number", + format: "int64", + }, + rumReplaySessionCountSum: { + baseName: "rum_replay_session_count_sum", + type: "number", + format: "int64", + }, + rumSessionCountSum: { + baseName: "rum_session_count_sum", + type: "number", + format: "int64", + }, + rumTotalSessionCountSum: { + baseName: "rum_total_session_count_sum", + type: "number", + format: "int64", + }, + rumUnitsSum: { + baseName: "rum_units_sum", + type: "number", + format: "int64", + }, + scaFargateCountAvg: { + baseName: "sca_fargate_count_avg", + type: "number", + format: "int64", + }, + scaFargateCountHwm: { + baseName: "sca_fargate_count_hwm", + type: "number", + format: "int64", + }, + sdsApmScannedBytesSum: { + baseName: "sds_apm_scanned_bytes_sum", + type: "number", + format: "int64", + }, + sdsEventsScannedBytesSum: { + baseName: "sds_events_scanned_bytes_sum", + type: "number", + format: "int64", + }, + sdsLogsScannedBytesSum: { + baseName: "sds_logs_scanned_bytes_sum", + type: "number", + format: "int64", + }, + sdsRumScannedBytesSum: { + baseName: "sds_rum_scanned_bytes_sum", + type: "number", + format: "int64", + }, + sdsTotalScannedBytesSum: { + baseName: "sds_total_scanned_bytes_sum", + type: "number", + format: "int64", + }, + serverlessAppsAzureCountAvg: { + baseName: "serverless_apps_azure_count_avg", + type: "number", + format: "int64", + }, + serverlessAppsGoogleCountAvg: { + baseName: "serverless_apps_google_count_avg", + type: "number", + format: "int64", + }, + serverlessAppsTotalCountAvg: { + baseName: "serverless_apps_total_count_avg", + type: "number", + format: "int64", + }, + siemAnalyzedLogsAddOnCountSum: { + baseName: "siem_analyzed_logs_add_on_count_sum", + type: "number", + format: "int64", + }, + syntheticsBrowserCheckCallsCountSum: { + baseName: "synthetics_browser_check_calls_count_sum", + type: "number", + format: "int64", + }, + syntheticsCheckCallsCountSum: { + baseName: "synthetics_check_calls_count_sum", + type: "number", + format: "int64", + }, + syntheticsMobileTestRunsSum: { + baseName: "synthetics_mobile_test_runs_sum", + type: "number", + format: "int64", + }, + syntheticsParallelTestingMaxSlotsHwm: { + baseName: "synthetics_parallel_testing_max_slots_hwm", + type: "number", + format: "int64", + }, + traceSearchIndexedEventsCountSum: { + baseName: "trace_search_indexed_events_count_sum", + type: "number", + format: "int64", + }, + twolIngestedEventsBytesSum: { + baseName: "twol_ingested_events_bytes_sum", + type: "number", + format: "int64", + }, + universalServiceMonitoringHostTop99p: { + baseName: "universal_service_monitoring_host_top99p", + type: "number", + format: "int64", + }, + vsphereHostTop99p: { + baseName: "vsphere_host_top99p", + type: "number", + format: "int64", + }, + vulnManagementHostCountTop99p: { + baseName: "vuln_management_host_count_top99p", + type: "number", + format: "int64", + }, + workflowExecutionsUsageSum: { + baseName: "workflow_executions_usage_sum", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageSummaryDateOrg.js.map + +/***/ }), + +/***/ 17097: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageSummaryResponse = void 0; +/** + * Response summarizing all usage aggregated across the months in the request for all organizations, and broken down by month and by organization. + */ +class UsageSummaryResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageSummaryResponse.attributeTypeMap; + } +} +exports.UsageSummaryResponse = UsageSummaryResponse; +/** + * @ignore + */ +UsageSummaryResponse.attributeTypeMap = { + agentHostTop99pSum: { + baseName: "agent_host_top99p_sum", + type: "number", + format: "int64", + }, + apmAzureAppServiceHostTop99pSum: { + baseName: "apm_azure_app_service_host_top99p_sum", + type: "number", + format: "int64", + }, + apmDevsecopsHostTop99pSum: { + baseName: "apm_devsecops_host_top99p_sum", + type: "number", + format: "int64", + }, + apmFargateCountAvgSum: { + baseName: "apm_fargate_count_avg_sum", + type: "number", + format: "int64", + }, + apmHostTop99pSum: { + baseName: "apm_host_top99p_sum", + type: "number", + format: "int64", + }, + appsecFargateCountAvgSum: { + baseName: "appsec_fargate_count_avg_sum", + type: "number", + format: "int64", + }, + asmServerlessAggSum: { + baseName: "asm_serverless_agg_sum", + type: "number", + format: "int64", + }, + auditLogsLinesIndexedAggSum: { + baseName: "audit_logs_lines_indexed_agg_sum", + type: "number", + format: "int64", + }, + auditTrailEnabledHwmSum: { + baseName: "audit_trail_enabled_hwm_sum", + type: "number", + format: "int64", + }, + avgProfiledFargateTasksSum: { + baseName: "avg_profiled_fargate_tasks_sum", + type: "number", + format: "int64", + }, + awsHostTop99pSum: { + baseName: "aws_host_top99p_sum", + type: "number", + format: "int64", + }, + awsLambdaFuncCount: { + baseName: "aws_lambda_func_count", + type: "number", + format: "int64", + }, + awsLambdaInvocationsSum: { + baseName: "aws_lambda_invocations_sum", + type: "number", + format: "int64", + }, + azureAppServiceTop99pSum: { + baseName: "azure_app_service_top99p_sum", + type: "number", + format: "int64", + }, + azureHostTop99pSum: { + baseName: "azure_host_top99p_sum", + type: "number", + format: "int64", + }, + billableIngestedBytesAggSum: { + baseName: "billable_ingested_bytes_agg_sum", + type: "number", + format: "int64", + }, + browserRumLiteSessionCountAggSum: { + baseName: "browser_rum_lite_session_count_agg_sum", + type: "number", + format: "int64", + }, + browserRumReplaySessionCountAggSum: { + baseName: "browser_rum_replay_session_count_agg_sum", + type: "number", + format: "int64", + }, + browserRumUnitsAggSum: { + baseName: "browser_rum_units_agg_sum", + type: "number", + format: "int64", + }, + ciPipelineIndexedSpansAggSum: { + baseName: "ci_pipeline_indexed_spans_agg_sum", + type: "number", + format: "int64", + }, + ciTestIndexedSpansAggSum: { + baseName: "ci_test_indexed_spans_agg_sum", + type: "number", + format: "int64", + }, + ciVisibilityItrCommittersHwmSum: { + baseName: "ci_visibility_itr_committers_hwm_sum", + type: "number", + format: "int64", + }, + ciVisibilityPipelineCommittersHwmSum: { + baseName: "ci_visibility_pipeline_committers_hwm_sum", + type: "number", + format: "int64", + }, + ciVisibilityTestCommittersHwmSum: { + baseName: "ci_visibility_test_committers_hwm_sum", + type: "number", + format: "int64", + }, + cloudCostManagementAwsHostCountAvgSum: { + baseName: "cloud_cost_management_aws_host_count_avg_sum", + type: "number", + format: "int64", + }, + cloudCostManagementAzureHostCountAvgSum: { + baseName: "cloud_cost_management_azure_host_count_avg_sum", + type: "number", + format: "int64", + }, + cloudCostManagementGcpHostCountAvgSum: { + baseName: "cloud_cost_management_gcp_host_count_avg_sum", + type: "number", + format: "int64", + }, + cloudCostManagementHostCountAvgSum: { + baseName: "cloud_cost_management_host_count_avg_sum", + type: "number", + format: "int64", + }, + cloudSiemEventsAggSum: { + baseName: "cloud_siem_events_agg_sum", + type: "number", + format: "int64", + }, + codeAnalysisSaCommittersHwmSum: { + baseName: "code_analysis_sa_committers_hwm_sum", + type: "number", + format: "int64", + }, + codeAnalysisScaCommittersHwmSum: { + baseName: "code_analysis_sca_committers_hwm_sum", + type: "number", + format: "int64", + }, + codeSecurityHostTop99pSum: { + baseName: "code_security_host_top99p_sum", + type: "number", + format: "int64", + }, + containerAvgSum: { + baseName: "container_avg_sum", + type: "number", + format: "int64", + }, + containerExclAgentAvgSum: { + baseName: "container_excl_agent_avg_sum", + type: "number", + format: "int64", + }, + containerHwmSum: { + baseName: "container_hwm_sum", + type: "number", + format: "int64", + }, + csmContainerEnterpriseComplianceCountAggSum: { + baseName: "csm_container_enterprise_compliance_count_agg_sum", + type: "number", + format: "int64", + }, + csmContainerEnterpriseCwsCountAggSum: { + baseName: "csm_container_enterprise_cws_count_agg_sum", + type: "number", + format: "int64", + }, + csmContainerEnterpriseTotalCountAggSum: { + baseName: "csm_container_enterprise_total_count_agg_sum", + type: "number", + format: "int64", + }, + csmHostEnterpriseAasHostCountTop99pSum: { + baseName: "csm_host_enterprise_aas_host_count_top99p_sum", + type: "number", + format: "int64", + }, + csmHostEnterpriseAwsHostCountTop99pSum: { + baseName: "csm_host_enterprise_aws_host_count_top99p_sum", + type: "number", + format: "int64", + }, + csmHostEnterpriseAzureHostCountTop99pSum: { + baseName: "csm_host_enterprise_azure_host_count_top99p_sum", + type: "number", + format: "int64", + }, + csmHostEnterpriseComplianceHostCountTop99pSum: { + baseName: "csm_host_enterprise_compliance_host_count_top99p_sum", + type: "number", + format: "int64", + }, + csmHostEnterpriseCwsHostCountTop99pSum: { + baseName: "csm_host_enterprise_cws_host_count_top99p_sum", + type: "number", + format: "int64", + }, + csmHostEnterpriseGcpHostCountTop99pSum: { + baseName: "csm_host_enterprise_gcp_host_count_top99p_sum", + type: "number", + format: "int64", + }, + csmHostEnterpriseTotalHostCountTop99pSum: { + baseName: "csm_host_enterprise_total_host_count_top99p_sum", + type: "number", + format: "int64", + }, + cspmAasHostTop99pSum: { + baseName: "cspm_aas_host_top99p_sum", + type: "number", + format: "int64", + }, + cspmAwsHostTop99pSum: { + baseName: "cspm_aws_host_top99p_sum", + type: "number", + format: "int64", + }, + cspmAzureHostTop99pSum: { + baseName: "cspm_azure_host_top99p_sum", + type: "number", + format: "int64", + }, + cspmContainerAvgSum: { + baseName: "cspm_container_avg_sum", + type: "number", + format: "int64", + }, + cspmContainerHwmSum: { + baseName: "cspm_container_hwm_sum", + type: "number", + format: "int64", + }, + cspmGcpHostTop99pSum: { + baseName: "cspm_gcp_host_top99p_sum", + type: "number", + format: "int64", + }, + cspmHostTop99pSum: { + baseName: "cspm_host_top99p_sum", + type: "number", + format: "int64", + }, + customHistoricalTsSum: { + baseName: "custom_historical_ts_sum", + type: "number", + format: "int64", + }, + customLiveTsSum: { + baseName: "custom_live_ts_sum", + type: "number", + format: "int64", + }, + customTsSum: { + baseName: "custom_ts_sum", + type: "number", + format: "int64", + }, + cwsContainerAvgSum: { + baseName: "cws_container_avg_sum", + type: "number", + format: "int64", + }, + cwsFargateTaskAvgSum: { + baseName: "cws_fargate_task_avg_sum", + type: "number", + format: "int64", + }, + cwsHostTop99pSum: { + baseName: "cws_host_top99p_sum", + type: "number", + format: "int64", + }, + dataJobsMonitoringHostHrAggSum: { + baseName: "data_jobs_monitoring_host_hr_agg_sum", + type: "number", + format: "int64", + }, + dbmHostTop99pSum: { + baseName: "dbm_host_top99p_sum", + type: "number", + format: "int64", + }, + dbmQueriesAvgSum: { + baseName: "dbm_queries_avg_sum", + type: "number", + format: "int64", + }, + endDate: { + baseName: "end_date", + type: "Date", + format: "date-time", + }, + errorTrackingErrorEventsAggSum: { + baseName: "error_tracking_error_events_agg_sum", + type: "number", + format: "int64", + }, + errorTrackingEventsAggSum: { + baseName: "error_tracking_events_agg_sum", + type: "number", + format: "int64", + }, + errorTrackingRumErrorEventsAggSum: { + baseName: "error_tracking_rum_error_events_agg_sum", + type: "number", + format: "int64", + }, + fargateTasksCountAvgSum: { + baseName: "fargate_tasks_count_avg_sum", + type: "number", + format: "int64", + }, + fargateTasksCountHwmSum: { + baseName: "fargate_tasks_count_hwm_sum", + type: "number", + format: "int64", + }, + flexLogsComputeLargeAvgSum: { + baseName: "flex_logs_compute_large_avg_sum", + type: "number", + format: "int64", + }, + flexLogsComputeMediumAvgSum: { + baseName: "flex_logs_compute_medium_avg_sum", + type: "number", + format: "int64", + }, + flexLogsComputeSmallAvgSum: { + baseName: "flex_logs_compute_small_avg_sum", + type: "number", + format: "int64", + }, + flexLogsComputeXsmallAvgSum: { + baseName: "flex_logs_compute_xsmall_avg_sum", + type: "number", + format: "int64", + }, + flexLogsStarterAvgSum: { + baseName: "flex_logs_starter_avg_sum", + type: "number", + format: "int64", + }, + flexLogsStarterStorageIndexAvgSum: { + baseName: "flex_logs_starter_storage_index_avg_sum", + type: "number", + format: "int64", + }, + flexLogsStarterStorageRetentionAdjustmentAvgSum: { + baseName: "flex_logs_starter_storage_retention_adjustment_avg_sum", + type: "number", + format: "int64", + }, + flexStoredLogsAvgSum: { + baseName: "flex_stored_logs_avg_sum", + type: "number", + format: "int64", + }, + forwardingEventsBytesAggSum: { + baseName: "forwarding_events_bytes_agg_sum", + type: "number", + format: "int64", + }, + gcpHostTop99pSum: { + baseName: "gcp_host_top99p_sum", + type: "number", + format: "int64", + }, + herokuHostTop99pSum: { + baseName: "heroku_host_top99p_sum", + type: "number", + format: "int64", + }, + incidentManagementMonthlyActiveUsersHwmSum: { + baseName: "incident_management_monthly_active_users_hwm_sum", + type: "number", + format: "int64", + }, + indexedEventsCountAggSum: { + baseName: "indexed_events_count_agg_sum", + type: "number", + format: "int64", + }, + infraHostTop99pSum: { + baseName: "infra_host_top99p_sum", + type: "number", + format: "int64", + }, + ingestedEventsBytesAggSum: { + baseName: "ingested_events_bytes_agg_sum", + type: "number", + format: "int64", + }, + iotDeviceAggSum: { + baseName: "iot_device_agg_sum", + type: "number", + format: "int64", + }, + iotDeviceTop99pSum: { + baseName: "iot_device_top99p_sum", + type: "number", + format: "int64", + }, + lastUpdated: { + baseName: "last_updated", + type: "Date", + format: "date-time", + }, + liveIndexedEventsAggSum: { + baseName: "live_indexed_events_agg_sum", + type: "number", + format: "int64", + }, + liveIngestedBytesAggSum: { + baseName: "live_ingested_bytes_agg_sum", + type: "number", + format: "int64", + }, + logsByRetention: { + baseName: "logs_by_retention", + type: "LogsByRetention", + }, + mobileRumLiteSessionCountAggSum: { + baseName: "mobile_rum_lite_session_count_agg_sum", + type: "number", + format: "int64", + }, + mobileRumSessionCountAggSum: { + baseName: "mobile_rum_session_count_agg_sum", + type: "number", + format: "int64", + }, + mobileRumSessionCountAndroidAggSum: { + baseName: "mobile_rum_session_count_android_agg_sum", + type: "number", + format: "int64", + }, + mobileRumSessionCountFlutterAggSum: { + baseName: "mobile_rum_session_count_flutter_agg_sum", + type: "number", + format: "int64", + }, + mobileRumSessionCountIosAggSum: { + baseName: "mobile_rum_session_count_ios_agg_sum", + type: "number", + format: "int64", + }, + mobileRumSessionCountReactnativeAggSum: { + baseName: "mobile_rum_session_count_reactnative_agg_sum", + type: "number", + format: "int64", + }, + mobileRumSessionCountRokuAggSum: { + baseName: "mobile_rum_session_count_roku_agg_sum", + type: "number", + format: "int64", + }, + mobileRumUnitsAggSum: { + baseName: "mobile_rum_units_agg_sum", + type: "number", + format: "int64", + }, + ndmNetflowEventsAggSum: { + baseName: "ndm_netflow_events_agg_sum", + type: "number", + format: "int64", + }, + netflowIndexedEventsCountAggSum: { + baseName: "netflow_indexed_events_count_agg_sum", + type: "number", + format: "int64", + }, + npmHostTop99pSum: { + baseName: "npm_host_top99p_sum", + type: "number", + format: "int64", + }, + observabilityPipelinesBytesProcessedAggSum: { + baseName: "observability_pipelines_bytes_processed_agg_sum", + type: "number", + format: "int64", + }, + ociHostAggSum: { + baseName: "oci_host_agg_sum", + type: "number", + format: "int64", + }, + ociHostTop99pSum: { + baseName: "oci_host_top99p_sum", + type: "number", + format: "int64", + }, + onlineArchiveEventsCountAggSum: { + baseName: "online_archive_events_count_agg_sum", + type: "number", + format: "int64", + }, + opentelemetryApmHostTop99pSum: { + baseName: "opentelemetry_apm_host_top99p_sum", + type: "number", + format: "int64", + }, + opentelemetryHostTop99pSum: { + baseName: "opentelemetry_host_top99p_sum", + type: "number", + format: "int64", + }, + profilingAasCountTop99pSum: { + baseName: "profiling_aas_count_top99p_sum", + type: "number", + format: "int64", + }, + profilingContainerAgentCountAvg: { + baseName: "profiling_container_agent_count_avg", + type: "number", + format: "int64", + }, + profilingHostCountTop99pSum: { + baseName: "profiling_host_count_top99p_sum", + type: "number", + format: "int64", + }, + rehydratedIndexedEventsAggSum: { + baseName: "rehydrated_indexed_events_agg_sum", + type: "number", + format: "int64", + }, + rehydratedIngestedBytesAggSum: { + baseName: "rehydrated_ingested_bytes_agg_sum", + type: "number", + format: "int64", + }, + rumBrowserAndMobileSessionCount: { + baseName: "rum_browser_and_mobile_session_count", + type: "number", + format: "int64", + }, + rumBrowserLegacySessionCountAggSum: { + baseName: "rum_browser_legacy_session_count_agg_sum", + type: "number", + format: "int64", + }, + rumBrowserLiteSessionCountAggSum: { + baseName: "rum_browser_lite_session_count_agg_sum", + type: "number", + format: "int64", + }, + rumBrowserReplaySessionCountAggSum: { + baseName: "rum_browser_replay_session_count_agg_sum", + type: "number", + format: "int64", + }, + rumLiteSessionCountAggSum: { + baseName: "rum_lite_session_count_agg_sum", + type: "number", + format: "int64", + }, + rumMobileLegacySessionCountAndroidAggSum: { + baseName: "rum_mobile_legacy_session_count_android_agg_sum", + type: "number", + format: "int64", + }, + rumMobileLegacySessionCountFlutterAggSum: { + baseName: "rum_mobile_legacy_session_count_flutter_agg_sum", + type: "number", + format: "int64", + }, + rumMobileLegacySessionCountIosAggSum: { + baseName: "rum_mobile_legacy_session_count_ios_agg_sum", + type: "number", + format: "int64", + }, + rumMobileLegacySessionCountReactnativeAggSum: { + baseName: "rum_mobile_legacy_session_count_reactnative_agg_sum", + type: "number", + format: "int64", + }, + rumMobileLegacySessionCountRokuAggSum: { + baseName: "rum_mobile_legacy_session_count_roku_agg_sum", + type: "number", + format: "int64", + }, + rumMobileLiteSessionCountAndroidAggSum: { + baseName: "rum_mobile_lite_session_count_android_agg_sum", + type: "number", + format: "int64", + }, + rumMobileLiteSessionCountFlutterAggSum: { + baseName: "rum_mobile_lite_session_count_flutter_agg_sum", + type: "number", + format: "int64", + }, + rumMobileLiteSessionCountIosAggSum: { + baseName: "rum_mobile_lite_session_count_ios_agg_sum", + type: "number", + format: "int64", + }, + rumMobileLiteSessionCountReactnativeAggSum: { + baseName: "rum_mobile_lite_session_count_reactnative_agg_sum", + type: "number", + format: "int64", + }, + rumMobileLiteSessionCountRokuAggSum: { + baseName: "rum_mobile_lite_session_count_roku_agg_sum", + type: "number", + format: "int64", + }, + rumReplaySessionCountAggSum: { + baseName: "rum_replay_session_count_agg_sum", + type: "number", + format: "int64", + }, + rumSessionCountAggSum: { + baseName: "rum_session_count_agg_sum", + type: "number", + format: "int64", + }, + rumTotalSessionCountAggSum: { + baseName: "rum_total_session_count_agg_sum", + type: "number", + format: "int64", + }, + rumUnitsAggSum: { + baseName: "rum_units_agg_sum", + type: "number", + format: "int64", + }, + scaFargateCountAvgSum: { + baseName: "sca_fargate_count_avg_sum", + type: "number", + format: "int64", + }, + scaFargateCountHwmSum: { + baseName: "sca_fargate_count_hwm_sum", + type: "number", + format: "int64", + }, + sdsApmScannedBytesSum: { + baseName: "sds_apm_scanned_bytes_sum", + type: "number", + format: "int64", + }, + sdsEventsScannedBytesSum: { + baseName: "sds_events_scanned_bytes_sum", + type: "number", + format: "int64", + }, + sdsLogsScannedBytesSum: { + baseName: "sds_logs_scanned_bytes_sum", + type: "number", + format: "int64", + }, + sdsRumScannedBytesSum: { + baseName: "sds_rum_scanned_bytes_sum", + type: "number", + format: "int64", + }, + sdsTotalScannedBytesSum: { + baseName: "sds_total_scanned_bytes_sum", + type: "number", + format: "int64", + }, + serverlessAppsAzureCountAvgSum: { + baseName: "serverless_apps_azure_count_avg_sum", + type: "number", + format: "int64", + }, + serverlessAppsGoogleCountAvgSum: { + baseName: "serverless_apps_google_count_avg_sum", + type: "number", + format: "int64", + }, + serverlessAppsTotalCountAvgSum: { + baseName: "serverless_apps_total_count_avg_sum", + type: "number", + format: "int64", + }, + siemAnalyzedLogsAddOnCountAggSum: { + baseName: "siem_analyzed_logs_add_on_count_agg_sum", + type: "number", + format: "int64", + }, + startDate: { + baseName: "start_date", + type: "Date", + format: "date-time", + }, + syntheticsBrowserCheckCallsCountAggSum: { + baseName: "synthetics_browser_check_calls_count_agg_sum", + type: "number", + format: "int64", + }, + syntheticsCheckCallsCountAggSum: { + baseName: "synthetics_check_calls_count_agg_sum", + type: "number", + format: "int64", + }, + syntheticsMobileTestRunsAggSum: { + baseName: "synthetics_mobile_test_runs_agg_sum", + type: "number", + format: "int64", + }, + syntheticsParallelTestingMaxSlotsHwmSum: { + baseName: "synthetics_parallel_testing_max_slots_hwm_sum", + type: "number", + format: "int64", + }, + traceSearchIndexedEventsCountAggSum: { + baseName: "trace_search_indexed_events_count_agg_sum", + type: "number", + format: "int64", + }, + twolIngestedEventsBytesAggSum: { + baseName: "twol_ingested_events_bytes_agg_sum", + type: "number", + format: "int64", + }, + universalServiceMonitoringHostTop99pSum: { + baseName: "universal_service_monitoring_host_top99p_sum", + type: "number", + format: "int64", + }, + usage: { + baseName: "usage", + type: "Array", + }, + vsphereHostTop99pSum: { + baseName: "vsphere_host_top99p_sum", + type: "number", + format: "int64", + }, + vulnManagementHostCountTop99pSum: { + baseName: "vuln_management_host_count_top99p_sum", + type: "number", + format: "int64", + }, + workflowExecutionsUsageAggSum: { + baseName: "workflow_executions_usage_agg_sum", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageSummaryResponse.js.map + +/***/ }), + +/***/ 44452: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageSyntheticsAPIHour = void 0; +/** + * Number of Synthetics API tests run for each hour for a given organization. + */ +class UsageSyntheticsAPIHour { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageSyntheticsAPIHour.attributeTypeMap; + } +} +exports.UsageSyntheticsAPIHour = UsageSyntheticsAPIHour; +/** + * @ignore + */ +UsageSyntheticsAPIHour.attributeTypeMap = { + checkCallsCount: { + baseName: "check_calls_count", + type: "number", + format: "int64", + }, + hour: { + baseName: "hour", + type: "Date", + format: "date-time", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageSyntheticsAPIHour.js.map + +/***/ }), + +/***/ 24913: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageSyntheticsAPIResponse = void 0; +/** + * Response containing the number of Synthetics API tests run for each hour for a given organization. + */ +class UsageSyntheticsAPIResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageSyntheticsAPIResponse.attributeTypeMap; + } +} +exports.UsageSyntheticsAPIResponse = UsageSyntheticsAPIResponse; +/** + * @ignore + */ +UsageSyntheticsAPIResponse.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageSyntheticsAPIResponse.js.map + +/***/ }), + +/***/ 89308: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageSyntheticsBrowserHour = void 0; +/** + * Number of Synthetics Browser tests run for each hour for a given organization. + */ +class UsageSyntheticsBrowserHour { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageSyntheticsBrowserHour.attributeTypeMap; + } +} +exports.UsageSyntheticsBrowserHour = UsageSyntheticsBrowserHour; +/** + * @ignore + */ +UsageSyntheticsBrowserHour.attributeTypeMap = { + browserCheckCallsCount: { + baseName: "browser_check_calls_count", + type: "number", + format: "int64", + }, + hour: { + baseName: "hour", + type: "Date", + format: "date-time", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageSyntheticsBrowserHour.js.map + +/***/ }), + +/***/ 60489: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageSyntheticsBrowserResponse = void 0; +/** + * Response containing the number of Synthetics Browser tests run for each hour for a given organization. + */ +class UsageSyntheticsBrowserResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageSyntheticsBrowserResponse.attributeTypeMap; + } +} +exports.UsageSyntheticsBrowserResponse = UsageSyntheticsBrowserResponse; +/** + * @ignore + */ +UsageSyntheticsBrowserResponse.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageSyntheticsBrowserResponse.js.map + +/***/ }), + +/***/ 30002: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageSyntheticsHour = void 0; +/** + * The number of synthetics tests run for each hour for a given organization. + */ +class UsageSyntheticsHour { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageSyntheticsHour.attributeTypeMap; + } +} +exports.UsageSyntheticsHour = UsageSyntheticsHour; +/** + * @ignore + */ +UsageSyntheticsHour.attributeTypeMap = { + checkCallsCount: { + baseName: "check_calls_count", + type: "number", + format: "int64", + }, + hour: { + baseName: "hour", + type: "Date", + format: "date-time", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageSyntheticsHour.js.map + +/***/ }), + +/***/ 53043: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageSyntheticsResponse = void 0; +/** + * Response containing the number of Synthetics API tests run for each hour for a given organization. + */ +class UsageSyntheticsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageSyntheticsResponse.attributeTypeMap; + } +} +exports.UsageSyntheticsResponse = UsageSyntheticsResponse; +/** + * @ignore + */ +UsageSyntheticsResponse.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageSyntheticsResponse.js.map + +/***/ }), + +/***/ 27566: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageTimeseriesHour = void 0; +/** + * The hourly usage of timeseries. + */ +class UsageTimeseriesHour { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageTimeseriesHour.attributeTypeMap; + } +} +exports.UsageTimeseriesHour = UsageTimeseriesHour; +/** + * @ignore + */ +UsageTimeseriesHour.attributeTypeMap = { + hour: { + baseName: "hour", + type: "Date", + format: "date-time", + }, + numCustomInputTimeseries: { + baseName: "num_custom_input_timeseries", + type: "number", + format: "int64", + }, + numCustomOutputTimeseries: { + baseName: "num_custom_output_timeseries", + type: "number", + format: "int64", + }, + numCustomTimeseries: { + baseName: "num_custom_timeseries", + type: "number", + format: "int64", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageTimeseriesHour.js.map + +/***/ }), + +/***/ 36383: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageTimeseriesResponse = void 0; +/** + * Response containing hourly usage of timeseries. + */ +class UsageTimeseriesResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageTimeseriesResponse.attributeTypeMap; + } +} +exports.UsageTimeseriesResponse = UsageTimeseriesResponse; +/** + * @ignore + */ +UsageTimeseriesResponse.attributeTypeMap = { + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageTimeseriesResponse.js.map + +/***/ }), + +/***/ 84166: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageTopAvgMetricsHour = void 0; +/** + * Number of hourly recorded custom metrics for a given organization. + */ +class UsageTopAvgMetricsHour { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageTopAvgMetricsHour.attributeTypeMap; + } +} +exports.UsageTopAvgMetricsHour = UsageTopAvgMetricsHour; +/** + * @ignore + */ +UsageTopAvgMetricsHour.attributeTypeMap = { + avgMetricHour: { + baseName: "avg_metric_hour", + type: "number", + format: "int64", + }, + maxMetricHour: { + baseName: "max_metric_hour", + type: "number", + format: "int64", + }, + metricCategory: { + baseName: "metric_category", + type: "UsageMetricCategory", + }, + metricName: { + baseName: "metric_name", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageTopAvgMetricsHour.js.map + +/***/ }), + +/***/ 40793: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageTopAvgMetricsMetadata = void 0; +/** + * The object containing document metadata. + */ +class UsageTopAvgMetricsMetadata { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageTopAvgMetricsMetadata.attributeTypeMap; + } +} +exports.UsageTopAvgMetricsMetadata = UsageTopAvgMetricsMetadata; +/** + * @ignore + */ +UsageTopAvgMetricsMetadata.attributeTypeMap = { + day: { + baseName: "day", + type: "Date", + format: "date-time", + }, + month: { + baseName: "month", + type: "Date", + format: "date-time", + }, + pagination: { + baseName: "pagination", + type: "UsageTopAvgMetricsPagination", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageTopAvgMetricsMetadata.js.map + +/***/ }), + +/***/ 99556: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageTopAvgMetricsPagination = void 0; +/** + * The metadata for the current pagination. + */ +class UsageTopAvgMetricsPagination { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageTopAvgMetricsPagination.attributeTypeMap; + } +} +exports.UsageTopAvgMetricsPagination = UsageTopAvgMetricsPagination; +/** + * @ignore + */ +UsageTopAvgMetricsPagination.attributeTypeMap = { + limit: { + baseName: "limit", + type: "number", + format: "int64", + }, + nextRecordId: { + baseName: "next_record_id", + type: "string", + }, + totalNumberOfRecords: { + baseName: "total_number_of_records", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageTopAvgMetricsPagination.js.map + +/***/ }), + +/***/ 95095: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsageTopAvgMetricsResponse = void 0; +/** + * Response containing the number of hourly recorded custom metrics for a given organization. + */ +class UsageTopAvgMetricsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UsageTopAvgMetricsResponse.attributeTypeMap; + } +} +exports.UsageTopAvgMetricsResponse = UsageTopAvgMetricsResponse; +/** + * @ignore + */ +UsageTopAvgMetricsResponse.attributeTypeMap = { + metadata: { + baseName: "metadata", + type: "UsageTopAvgMetricsMetadata", + }, + usage: { + baseName: "usage", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UsageTopAvgMetricsResponse.js.map + +/***/ }), + +/***/ 24948: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.User = void 0; +/** + * Create, edit, and disable users. + */ +class User { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return User.attributeTypeMap; + } +} +exports.User = User; +/** + * @ignore + */ +User.attributeTypeMap = { + accessRole: { + baseName: "access_role", + type: "AccessRole", + }, + disabled: { + baseName: "disabled", + type: "boolean", + }, + email: { + baseName: "email", + type: "string", + }, + handle: { + baseName: "handle", + type: "string", + }, + icon: { + baseName: "icon", + type: "string", + }, + name: { + baseName: "name", + type: "string", + }, + verified: { + baseName: "verified", + type: "boolean", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=User.js.map + +/***/ }), + +/***/ 22373: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UserDisableResponse = void 0; +/** + * Array of user disabled for a given organization. + */ +class UserDisableResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UserDisableResponse.attributeTypeMap; + } +} +exports.UserDisableResponse = UserDisableResponse; +/** + * @ignore + */ +UserDisableResponse.attributeTypeMap = { + message: { + baseName: "message", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UserDisableResponse.js.map + +/***/ }), + +/***/ 6403: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UserListResponse = void 0; +/** + * Array of Datadog users for a given organization. + */ +class UserListResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UserListResponse.attributeTypeMap; + } +} +exports.UserListResponse = UserListResponse; +/** + * @ignore + */ +UserListResponse.attributeTypeMap = { + users: { + baseName: "users", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UserListResponse.js.map + +/***/ }), + +/***/ 89659: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UserResponse = void 0; +/** + * A Datadog User. + */ +class UserResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return UserResponse.attributeTypeMap; + } +} +exports.UserResponse = UserResponse; +/** + * @ignore + */ +UserResponse.attributeTypeMap = { + user: { + baseName: "user", + type: "User", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=UserResponse.js.map + +/***/ }), + +/***/ 13075: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.WebhooksIntegration = void 0; +/** + * Datadog-Webhooks integration. + */ +class WebhooksIntegration { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return WebhooksIntegration.attributeTypeMap; + } +} +exports.WebhooksIntegration = WebhooksIntegration; +/** + * @ignore + */ +WebhooksIntegration.attributeTypeMap = { + customHeaders: { + baseName: "custom_headers", + type: "string", + }, + encodeAs: { + baseName: "encode_as", + type: "WebhooksIntegrationEncoding", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + payload: { + baseName: "payload", + type: "string", + }, + url: { + baseName: "url", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=WebhooksIntegration.js.map + +/***/ }), + +/***/ 13096: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.WebhooksIntegrationCustomVariable = void 0; +/** + * Custom variable for Webhook integration. + */ +class WebhooksIntegrationCustomVariable { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return WebhooksIntegrationCustomVariable.attributeTypeMap; + } +} +exports.WebhooksIntegrationCustomVariable = WebhooksIntegrationCustomVariable; +/** + * @ignore + */ +WebhooksIntegrationCustomVariable.attributeTypeMap = { + isSecret: { + baseName: "is_secret", + type: "boolean", + required: true, + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + value: { + baseName: "value", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=WebhooksIntegrationCustomVariable.js.map + +/***/ }), + +/***/ 48351: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.WebhooksIntegrationCustomVariableResponse = void 0; +/** + * Custom variable for Webhook integration. + */ +class WebhooksIntegrationCustomVariableResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return WebhooksIntegrationCustomVariableResponse.attributeTypeMap; + } +} +exports.WebhooksIntegrationCustomVariableResponse = WebhooksIntegrationCustomVariableResponse; +/** + * @ignore + */ +WebhooksIntegrationCustomVariableResponse.attributeTypeMap = { + isSecret: { + baseName: "is_secret", + type: "boolean", + required: true, + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + value: { + baseName: "value", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=WebhooksIntegrationCustomVariableResponse.js.map + +/***/ }), + +/***/ 94500: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.WebhooksIntegrationCustomVariableUpdateRequest = void 0; +/** + * Update request of a custom variable object. + * + * *All properties are optional.* + */ +class WebhooksIntegrationCustomVariableUpdateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return WebhooksIntegrationCustomVariableUpdateRequest.attributeTypeMap; + } +} +exports.WebhooksIntegrationCustomVariableUpdateRequest = WebhooksIntegrationCustomVariableUpdateRequest; +/** + * @ignore + */ +WebhooksIntegrationCustomVariableUpdateRequest.attributeTypeMap = { + isSecret: { + baseName: "is_secret", + type: "boolean", + }, + name: { + baseName: "name", + type: "string", + }, + value: { + baseName: "value", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=WebhooksIntegrationCustomVariableUpdateRequest.js.map + +/***/ }), + +/***/ 32341: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.WebhooksIntegrationUpdateRequest = void 0; +/** + * Update request of a Webhooks integration object. + * + * *All properties are optional.* + */ +class WebhooksIntegrationUpdateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return WebhooksIntegrationUpdateRequest.attributeTypeMap; + } +} +exports.WebhooksIntegrationUpdateRequest = WebhooksIntegrationUpdateRequest; +/** + * @ignore + */ +WebhooksIntegrationUpdateRequest.attributeTypeMap = { + customHeaders: { + baseName: "custom_headers", + type: "string", + }, + encodeAs: { + baseName: "encode_as", + type: "WebhooksIntegrationEncoding", + }, + name: { + baseName: "name", + type: "string", + }, + payload: { + baseName: "payload", + type: "string", + }, + url: { + baseName: "url", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=WebhooksIntegrationUpdateRequest.js.map + +/***/ }), + +/***/ 10895: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Widget = void 0; +/** + * Information about widget. + * + * **Note**: The `layout` property is required for widgets in dashboards with `free` `layout_type`. + * For the **new dashboard layout**, the `layout` property depends on the `reflow_type` of the dashboard. + * - If `reflow_type` is `fixed`, `layout` is required. + * - If `reflow_type` is `auto`, `layout` should not be set. + */ +class Widget { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return Widget.attributeTypeMap; + } +} +exports.Widget = Widget; +/** + * @ignore + */ +Widget.attributeTypeMap = { + definition: { + baseName: "definition", + type: "WidgetDefinition", + required: true, + }, + id: { + baseName: "id", + type: "number", + format: "int64", + }, + layout: { + baseName: "layout", + type: "WidgetLayout", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=Widget.js.map + +/***/ }), + +/***/ 78426: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.WidgetAxis = void 0; +/** + * Axis controls for the widget. + */ +class WidgetAxis { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return WidgetAxis.attributeTypeMap; + } +} +exports.WidgetAxis = WidgetAxis; +/** + * @ignore + */ +WidgetAxis.attributeTypeMap = { + includeZero: { + baseName: "include_zero", + type: "boolean", + }, + label: { + baseName: "label", + type: "string", + }, + max: { + baseName: "max", + type: "string", + }, + min: { + baseName: "min", + type: "string", + }, + scale: { + baseName: "scale", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=WidgetAxis.js.map + +/***/ }), + +/***/ 57848: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.WidgetConditionalFormat = void 0; +/** + * Define a conditional format for the widget. + */ +class WidgetConditionalFormat { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return WidgetConditionalFormat.attributeTypeMap; + } +} +exports.WidgetConditionalFormat = WidgetConditionalFormat; +/** + * @ignore + */ +WidgetConditionalFormat.attributeTypeMap = { + comparator: { + baseName: "comparator", + type: "WidgetComparator", + required: true, + }, + customBgColor: { + baseName: "custom_bg_color", + type: "string", + }, + customFgColor: { + baseName: "custom_fg_color", + type: "string", + }, + hideValue: { + baseName: "hide_value", + type: "boolean", + }, + imageUrl: { + baseName: "image_url", + type: "string", + }, + metric: { + baseName: "metric", + type: "string", + }, + palette: { + baseName: "palette", + type: "WidgetPalette", + required: true, + }, + timeframe: { + baseName: "timeframe", + type: "string", + }, + value: { + baseName: "value", + type: "number", + required: true, + format: "double", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=WidgetConditionalFormat.js.map + +/***/ }), + +/***/ 90412: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.WidgetCustomLink = void 0; +/** + * Custom links help you connect a data value to a URL, like a Datadog page or your AWS console. + */ +class WidgetCustomLink { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return WidgetCustomLink.attributeTypeMap; + } +} +exports.WidgetCustomLink = WidgetCustomLink; +/** + * @ignore + */ +WidgetCustomLink.attributeTypeMap = { + isHidden: { + baseName: "is_hidden", + type: "boolean", + }, + label: { + baseName: "label", + type: "string", + }, + link: { + baseName: "link", + type: "string", + }, + overrideLabel: { + baseName: "override_label", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=WidgetCustomLink.js.map + +/***/ }), + +/***/ 93799: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.WidgetEvent = void 0; +/** + * Event overlay control options. + * + * See the dedicated [Events JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/widget_json/#events-schema) + * to learn how to build the ``. + */ +class WidgetEvent { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return WidgetEvent.attributeTypeMap; + } +} +exports.WidgetEvent = WidgetEvent; +/** + * @ignore + */ +WidgetEvent.attributeTypeMap = { + q: { + baseName: "q", + type: "string", + required: true, + }, + tagsExecution: { + baseName: "tags_execution", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=WidgetEvent.js.map + +/***/ }), + +/***/ 33743: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.WidgetFieldSort = void 0; +/** + * Which column and order to sort by + */ +class WidgetFieldSort { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return WidgetFieldSort.attributeTypeMap; + } +} +exports.WidgetFieldSort = WidgetFieldSort; +/** + * @ignore + */ +WidgetFieldSort.attributeTypeMap = { + column: { + baseName: "column", + type: "string", + required: true, + }, + order: { + baseName: "order", + type: "WidgetSort", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=WidgetFieldSort.js.map + +/***/ }), + +/***/ 62557: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.WidgetFormula = void 0; +/** + * Formula to be used in a widget query. + */ +class WidgetFormula { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return WidgetFormula.attributeTypeMap; + } +} +exports.WidgetFormula = WidgetFormula; +/** + * @ignore + */ +WidgetFormula.attributeTypeMap = { + alias: { + baseName: "alias", + type: "string", + }, + cellDisplayMode: { + baseName: "cell_display_mode", + type: "TableWidgetCellDisplayMode", + }, + conditionalFormats: { + baseName: "conditional_formats", + type: "Array", + }, + formula: { + baseName: "formula", + type: "string", + required: true, + }, + limit: { + baseName: "limit", + type: "WidgetFormulaLimit", + }, + style: { + baseName: "style", + type: "WidgetFormulaStyle", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=WidgetFormula.js.map + +/***/ }), + +/***/ 68818: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.WidgetFormulaLimit = void 0; +/** + * Options for limiting results returned. + */ +class WidgetFormulaLimit { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return WidgetFormulaLimit.attributeTypeMap; + } +} +exports.WidgetFormulaLimit = WidgetFormulaLimit; +/** + * @ignore + */ +WidgetFormulaLimit.attributeTypeMap = { + count: { + baseName: "count", + type: "number", + format: "int64", + }, + order: { + baseName: "order", + type: "QuerySortOrder", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=WidgetFormulaLimit.js.map + +/***/ }), + +/***/ 3709: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.WidgetFormulaSort = void 0; +/** + * The formula to sort the widget by. + */ +class WidgetFormulaSort { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return WidgetFormulaSort.attributeTypeMap; + } +} +exports.WidgetFormulaSort = WidgetFormulaSort; +/** + * @ignore + */ +WidgetFormulaSort.attributeTypeMap = { + index: { + baseName: "index", + type: "number", + required: true, + format: "int64", + }, + order: { + baseName: "order", + type: "WidgetSort", + required: true, + }, + type: { + baseName: "type", + type: "FormulaType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=WidgetFormulaSort.js.map + +/***/ }), + +/***/ 67692: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.WidgetFormulaStyle = void 0; +/** + * Styling options for widget formulas. + */ +class WidgetFormulaStyle { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return WidgetFormulaStyle.attributeTypeMap; + } +} +exports.WidgetFormulaStyle = WidgetFormulaStyle; +/** + * @ignore + */ +WidgetFormulaStyle.attributeTypeMap = { + palette: { + baseName: "palette", + type: "string", + }, + paletteIndex: { + baseName: "palette_index", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=WidgetFormulaStyle.js.map + +/***/ }), + +/***/ 99376: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.WidgetGroupSort = void 0; +/** + * The group to sort the widget by. + */ +class WidgetGroupSort { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return WidgetGroupSort.attributeTypeMap; + } +} +exports.WidgetGroupSort = WidgetGroupSort; +/** + * @ignore + */ +WidgetGroupSort.attributeTypeMap = { + name: { + baseName: "name", + type: "string", + required: true, + }, + order: { + baseName: "order", + type: "WidgetSort", + required: true, + }, + type: { + baseName: "type", + type: "GroupType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=WidgetGroupSort.js.map + +/***/ }), + +/***/ 55073: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.WidgetLayout = void 0; +/** + * The layout for a widget on a `free` or **new dashboard layout** dashboard. + */ +class WidgetLayout { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return WidgetLayout.attributeTypeMap; + } +} +exports.WidgetLayout = WidgetLayout; +/** + * @ignore + */ +WidgetLayout.attributeTypeMap = { + height: { + baseName: "height", + type: "number", + required: true, + format: "int64", + }, + isColumnBreak: { + baseName: "is_column_break", + type: "boolean", + }, + width: { + baseName: "width", + type: "number", + required: true, + format: "int64", + }, + x: { + baseName: "x", + type: "number", + required: true, + format: "int64", + }, + y: { + baseName: "y", + type: "number", + required: true, + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=WidgetLayout.js.map + +/***/ }), + +/***/ 21106: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.WidgetLegacyLiveSpan = void 0; +/** + * Wrapper for live span + */ +class WidgetLegacyLiveSpan { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return WidgetLegacyLiveSpan.attributeTypeMap; + } +} +exports.WidgetLegacyLiveSpan = WidgetLegacyLiveSpan; +/** + * @ignore + */ +WidgetLegacyLiveSpan.attributeTypeMap = { + liveSpan: { + baseName: "live_span", + type: "WidgetLiveSpan", + }, +}; +//# sourceMappingURL=WidgetLegacyLiveSpan.js.map + +/***/ }), + +/***/ 45085: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.WidgetMarker = void 0; +/** + * Markers allow you to add visual conditional formatting for your graphs. + */ +class WidgetMarker { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return WidgetMarker.attributeTypeMap; + } +} +exports.WidgetMarker = WidgetMarker; +/** + * @ignore + */ +WidgetMarker.attributeTypeMap = { + displayType: { + baseName: "display_type", + type: "string", + }, + label: { + baseName: "label", + type: "string", + }, + time: { + baseName: "time", + type: "string", + }, + value: { + baseName: "value", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=WidgetMarker.js.map + +/***/ }), + +/***/ 84319: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.WidgetNewFixedSpan = void 0; +/** + * Used for fixed span times, such as 'March 1 to March 7'. + */ +class WidgetNewFixedSpan { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return WidgetNewFixedSpan.attributeTypeMap; + } +} +exports.WidgetNewFixedSpan = WidgetNewFixedSpan; +/** + * @ignore + */ +WidgetNewFixedSpan.attributeTypeMap = { + from: { + baseName: "from", + type: "number", + required: true, + format: "int64", + }, + to: { + baseName: "to", + type: "number", + required: true, + format: "int64", + }, + type: { + baseName: "type", + type: "WidgetNewFixedSpanType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=WidgetNewFixedSpan.js.map + +/***/ }), + +/***/ 96155: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.WidgetNewLiveSpan = void 0; +/** + * Used for arbitrary live span times, such as 17 minutes or 6 hours. + */ +class WidgetNewLiveSpan { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return WidgetNewLiveSpan.attributeTypeMap; + } +} +exports.WidgetNewLiveSpan = WidgetNewLiveSpan; +/** + * @ignore + */ +WidgetNewLiveSpan.attributeTypeMap = { + type: { + baseName: "type", + type: "WidgetNewLiveSpanType", + required: true, + }, + unit: { + baseName: "unit", + type: "WidgetLiveSpanUnit", + required: true, + }, + value: { + baseName: "value", + type: "number", + required: true, + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=WidgetNewLiveSpan.js.map + +/***/ }), + +/***/ 31597: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.WidgetRequestStyle = void 0; +/** + * Define request widget style. + */ +class WidgetRequestStyle { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return WidgetRequestStyle.attributeTypeMap; + } +} +exports.WidgetRequestStyle = WidgetRequestStyle; +/** + * @ignore + */ +WidgetRequestStyle.attributeTypeMap = { + lineType: { + baseName: "line_type", + type: "WidgetLineType", + }, + lineWidth: { + baseName: "line_width", + type: "WidgetLineWidth", + }, + palette: { + baseName: "palette", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=WidgetRequestStyle.js.map + +/***/ }), + +/***/ 42610: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.WidgetSortBy = void 0; +/** + * The controls for sorting the widget. + */ +class WidgetSortBy { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return WidgetSortBy.attributeTypeMap; + } +} +exports.WidgetSortBy = WidgetSortBy; +/** + * @ignore + */ +WidgetSortBy.attributeTypeMap = { + count: { + baseName: "count", + type: "number", + format: "int64", + }, + orderBy: { + baseName: "order_by", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=WidgetSortBy.js.map + +/***/ }), + +/***/ 60150: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.WidgetStyle = void 0; +/** + * Widget style definition. + */ +class WidgetStyle { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return WidgetStyle.attributeTypeMap; + } +} +exports.WidgetStyle = WidgetStyle; +/** + * @ignore + */ +WidgetStyle.attributeTypeMap = { + palette: { + baseName: "palette", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=WidgetStyle.js.map + +/***/ }), + +/***/ 75194: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.APIManagementApi = exports.APIManagementApiResponseProcessor = exports.APIManagementApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const form_data_1 = __importDefault(__nccwpck_require__(2691)); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class APIManagementApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createOpenAPI(openapiSpecFile, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'createOpenAPI'"); + if (!_config.unstableOperations["v2.createOpenAPI"]) { + throw new Error("Unstable operation 'createOpenAPI' is disabled"); + } + // Path Params + const localVarPath = "/api/v2/apicatalog/openapi"; + // Make Request Context + const requestContext = _config + .getServer("v2.APIManagementApi.createOpenAPI") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Form Params + const localVarFormParams = new form_data_1.default(); + if (openapiSpecFile !== undefined) { + // TODO: replace .append with .set + localVarFormParams.append("openapi_spec_file", openapiSpecFile.data, openapiSpecFile.name); + } + requestContext.setBody(localVarFormParams); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteOpenAPI(id, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'deleteOpenAPI'"); + if (!_config.unstableOperations["v2.deleteOpenAPI"]) { + throw new Error("Unstable operation 'deleteOpenAPI' is disabled"); + } + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new baseapi_1.RequiredError("id", "deleteOpenAPI"); + } + // Path Params + const localVarPath = "/api/v2/apicatalog/api/{id}".replace("{id}", encodeURIComponent(String(id))); + // Make Request Context + const requestContext = _config + .getServer("v2.APIManagementApi.deleteOpenAPI") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getOpenAPI(id, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'getOpenAPI'"); + if (!_config.unstableOperations["v2.getOpenAPI"]) { + throw new Error("Unstable operation 'getOpenAPI' is disabled"); + } + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new baseapi_1.RequiredError("id", "getOpenAPI"); + } + // Path Params + const localVarPath = "/api/v2/apicatalog/api/{id}/openapi".replace("{id}", encodeURIComponent(String(id))); + // Make Request Context + const requestContext = _config + .getServer("v2.APIManagementApi.getOpenAPI") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "multipart/form-data, application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listAPIs(query, pageLimit, pageOffset, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'listAPIs'"); + if (!_config.unstableOperations["v2.listAPIs"]) { + throw new Error("Unstable operation 'listAPIs' is disabled"); + } + // Path Params + const localVarPath = "/api/v2/apicatalog/api"; + // Make Request Context + const requestContext = _config + .getServer("v2.APIManagementApi.listAPIs") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (query !== undefined) { + requestContext.setQueryParam("query", ObjectSerializer_1.ObjectSerializer.serialize(query, "string", ""), ""); + } + if (pageLimit !== undefined) { + requestContext.setQueryParam("page[limit]", ObjectSerializer_1.ObjectSerializer.serialize(pageLimit, "number", "int64"), ""); + } + if (pageOffset !== undefined) { + requestContext.setQueryParam("page[offset]", ObjectSerializer_1.ObjectSerializer.serialize(pageOffset, "number", "int64"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateOpenAPI(id, openapiSpecFile, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'updateOpenAPI'"); + if (!_config.unstableOperations["v2.updateOpenAPI"]) { + throw new Error("Unstable operation 'updateOpenAPI' is disabled"); + } + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new baseapi_1.RequiredError("id", "updateOpenAPI"); + } + // Path Params + const localVarPath = "/api/v2/apicatalog/api/{id}/openapi".replace("{id}", encodeURIComponent(String(id))); + // Make Request Context + const requestContext = _config + .getServer("v2.APIManagementApi.updateOpenAPI") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Form Params + const localVarFormParams = new form_data_1.default(); + if (openapiSpecFile !== undefined) { + // TODO: replace .append with .set + localVarFormParams.append("openapi_spec_file", openapiSpecFile.data, openapiSpecFile.name); + } + requestContext.setBody(localVarFormParams); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.APIManagementApiRequestFactory = APIManagementApiRequestFactory; +class APIManagementApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createOpenAPI + * @throws ApiException if the response code was not in [200, 299] + */ + createOpenAPI(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CreateOpenAPIResponse"); + return body; + } + if (response.httpStatusCode === 400 || response.httpStatusCode === 403) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "JSONAPIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CreateOpenAPIResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteOpenAPI + * @throws ApiException if the response code was not in [200, 299] + */ + deleteOpenAPI(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "JSONAPIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getOpenAPI + * @throws ApiException if the response code was not in [200, 299] + */ + getOpenAPI(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = (yield response.getBodyAsFile()); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "JSONAPIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = (yield response.getBodyAsFile()); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listAPIs + * @throws ApiException if the response code was not in [200, 299] + */ + listAPIs(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListAPIsResponse"); + return body; + } + if (response.httpStatusCode === 400 || response.httpStatusCode === 403) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "JSONAPIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListAPIsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateOpenAPI + * @throws ApiException if the response code was not in [200, 299] + */ + updateOpenAPI(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UpdateOpenAPIResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "JSONAPIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UpdateOpenAPIResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.APIManagementApiResponseProcessor = APIManagementApiResponseProcessor; +class APIManagementApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new APIManagementApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new APIManagementApiResponseProcessor(); + } + /** + * Create a new API from the [OpenAPI](https://spec.openapis.org/oas/latest.html) specification given. + * See the [API Catalog documentation](https://docs.datadoghq.com/api_catalog/add_metadata/) for additional + * information about the possible metadata. + * It returns the created API ID. + * @param param The request object + */ + createOpenAPI(param = {}, options) { + const requestContextPromise = this.requestFactory.createOpenAPI(param.openapiSpecFile, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createOpenAPI(responseContext); + }); + }); + } + /** + * Delete a specific API by ID. + * @param param The request object + */ + deleteOpenAPI(param, options) { + const requestContextPromise = this.requestFactory.deleteOpenAPI(param.id, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteOpenAPI(responseContext); + }); + }); + } + /** + * Retrieve information about a specific API in [OpenAPI](https://spec.openapis.org/oas/latest.html) format file. + * @param param The request object + */ + getOpenAPI(param, options) { + const requestContextPromise = this.requestFactory.getOpenAPI(param.id, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getOpenAPI(responseContext); + }); + }); + } + /** + * List APIs and their IDs. + * @param param The request object + */ + listAPIs(param = {}, options) { + const requestContextPromise = this.requestFactory.listAPIs(param.query, param.pageLimit, param.pageOffset, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listAPIs(responseContext); + }); + }); + } + /** + * Update information about a specific API. The given content will replace all API content of the given ID. + * The ID is returned by the create API, or can be found in the URL in the API catalog UI. + * @param param The request object + */ + updateOpenAPI(param, options) { + const requestContextPromise = this.requestFactory.updateOpenAPI(param.id, param.openapiSpecFile, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateOpenAPI(responseContext); + }); + }); + } +} +exports.APIManagementApi = APIManagementApi; +//# sourceMappingURL=APIManagementApi.js.map + +/***/ }), + +/***/ 99768: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.APMRetentionFiltersApi = exports.APMRetentionFiltersApiResponseProcessor = exports.APMRetentionFiltersApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class APMRetentionFiltersApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createApmRetentionFilter(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createApmRetentionFilter"); + } + // Path Params + const localVarPath = "/api/v2/apm/config/retention-filters"; + // Make Request Context + const requestContext = _config + .getServer("v2.APMRetentionFiltersApi.createApmRetentionFilter") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "RetentionFilterCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteApmRetentionFilter(filterId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'filterId' is not null or undefined + if (filterId === null || filterId === undefined) { + throw new baseapi_1.RequiredError("filterId", "deleteApmRetentionFilter"); + } + // Path Params + const localVarPath = "/api/v2/apm/config/retention-filters/{filter_id}".replace("{filter_id}", encodeURIComponent(String(filterId))); + // Make Request Context + const requestContext = _config + .getServer("v2.APMRetentionFiltersApi.deleteApmRetentionFilter") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getApmRetentionFilter(filterId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'filterId' is not null or undefined + if (filterId === null || filterId === undefined) { + throw new baseapi_1.RequiredError("filterId", "getApmRetentionFilter"); + } + // Path Params + const localVarPath = "/api/v2/apm/config/retention-filters/{filter_id}".replace("{filter_id}", encodeURIComponent(String(filterId))); + // Make Request Context + const requestContext = _config + .getServer("v2.APMRetentionFiltersApi.getApmRetentionFilter") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listApmRetentionFilters(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/apm/config/retention-filters"; + // Make Request Context + const requestContext = _config + .getServer("v2.APMRetentionFiltersApi.listApmRetentionFilters") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + reorderApmRetentionFilters(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "reorderApmRetentionFilters"); + } + // Path Params + const localVarPath = "/api/v2/apm/config/retention-filters-execution-order"; + // Make Request Context + const requestContext = _config + .getServer("v2.APMRetentionFiltersApi.reorderApmRetentionFilters") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ReorderRetentionFiltersRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateApmRetentionFilter(filterId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'filterId' is not null or undefined + if (filterId === null || filterId === undefined) { + throw new baseapi_1.RequiredError("filterId", "updateApmRetentionFilter"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateApmRetentionFilter"); + } + // Path Params + const localVarPath = "/api/v2/apm/config/retention-filters/{filter_id}".replace("{filter_id}", encodeURIComponent(String(filterId))); + // Make Request Context + const requestContext = _config + .getServer("v2.APMRetentionFiltersApi.updateApmRetentionFilter") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "RetentionFilterUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.APMRetentionFiltersApiRequestFactory = APMRetentionFiltersApiRequestFactory; +class APMRetentionFiltersApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createApmRetentionFilter + * @throws ApiException if the response code was not in [200, 299] + */ + createApmRetentionFilter(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RetentionFilterCreateResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RetentionFilterCreateResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteApmRetentionFilter + * @throws ApiException if the response code was not in [200, 299] + */ + deleteApmRetentionFilter(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + return; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getApmRetentionFilter + * @throws ApiException if the response code was not in [200, 299] + */ + getApmRetentionFilter(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RetentionFilterResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RetentionFilterResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listApmRetentionFilters + * @throws ApiException if the response code was not in [200, 299] + */ + listApmRetentionFilters(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RetentionFiltersResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RetentionFiltersResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to reorderApmRetentionFilters + * @throws ApiException if the response code was not in [200, 299] + */ + reorderApmRetentionFilters(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateApmRetentionFilter + * @throws ApiException if the response code was not in [200, 299] + */ + updateApmRetentionFilter(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RetentionFilterResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RetentionFilterResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.APMRetentionFiltersApiResponseProcessor = APMRetentionFiltersApiResponseProcessor; +class APMRetentionFiltersApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new APMRetentionFiltersApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new APMRetentionFiltersApiResponseProcessor(); + } + /** + * Create a retention filter to index spans in your organization. + * Returns the retention filter definition when the request is successful. + * + * Default filters with types spans-errors-sampling-processor and spans-appsec-sampling-processor cannot be created. + * @param param The request object + */ + createApmRetentionFilter(param, options) { + const requestContextPromise = this.requestFactory.createApmRetentionFilter(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createApmRetentionFilter(responseContext); + }); + }); + } + /** + * Delete a specific retention filter from your organization. + * + * Default filters with types spans-errors-sampling-processor and spans-appsec-sampling-processor cannot be deleted. + * @param param The request object + */ + deleteApmRetentionFilter(param, options) { + const requestContextPromise = this.requestFactory.deleteApmRetentionFilter(param.filterId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteApmRetentionFilter(responseContext); + }); + }); + } + /** + * Get an APM retention filter. + * @param param The request object + */ + getApmRetentionFilter(param, options) { + const requestContextPromise = this.requestFactory.getApmRetentionFilter(param.filterId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getApmRetentionFilter(responseContext); + }); + }); + } + /** + * Get the list of APM retention filters. + * @param param The request object + */ + listApmRetentionFilters(options) { + const requestContextPromise = this.requestFactory.listApmRetentionFilters(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listApmRetentionFilters(responseContext); + }); + }); + } + /** + * Re-order the execution order of retention filters. + * @param param The request object + */ + reorderApmRetentionFilters(param, options) { + const requestContextPromise = this.requestFactory.reorderApmRetentionFilters(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.reorderApmRetentionFilters(responseContext); + }); + }); + } + /** + * Update a retention filter from your organization. + * + * Default filters (filters with types spans-errors-sampling-processor and spans-appsec-sampling-processor) cannot be renamed or removed. + * @param param The request object + */ + updateApmRetentionFilter(param, options) { + const requestContextPromise = this.requestFactory.updateApmRetentionFilter(param.filterId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateApmRetentionFilter(responseContext); + }); + }); + } +} +exports.APMRetentionFiltersApi = APMRetentionFiltersApi; +//# sourceMappingURL=APMRetentionFiltersApi.js.map + +/***/ }), + +/***/ 48900: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.AWSIntegrationApi = exports.AWSIntegrationApiResponseProcessor = exports.AWSIntegrationApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class AWSIntegrationApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createAWSAccount(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'createAWSAccount'"); + if (!_config.unstableOperations["v2.createAWSAccount"]) { + throw new Error("Unstable operation 'createAWSAccount' is disabled"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createAWSAccount"); + } + // Path Params + const localVarPath = "/api/v2/integration/aws/accounts"; + // Make Request Context + const requestContext = _config + .getServer("v2.AWSIntegrationApi.createAWSAccount") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "AWSAccountCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createNewAWSExternalID(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'createNewAWSExternalID'"); + if (!_config.unstableOperations["v2.createNewAWSExternalID"]) { + throw new Error("Unstable operation 'createNewAWSExternalID' is disabled"); + } + // Path Params + const localVarPath = "/api/v2/integration/aws/generate_new_external_id"; + // Make Request Context + const requestContext = _config + .getServer("v2.AWSIntegrationApi.createNewAWSExternalID") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteAWSAccount(awsAccountConfigId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'deleteAWSAccount'"); + if (!_config.unstableOperations["v2.deleteAWSAccount"]) { + throw new Error("Unstable operation 'deleteAWSAccount' is disabled"); + } + // verify required parameter 'awsAccountConfigId' is not null or undefined + if (awsAccountConfigId === null || awsAccountConfigId === undefined) { + throw new baseapi_1.RequiredError("awsAccountConfigId", "deleteAWSAccount"); + } + // Path Params + const localVarPath = "/api/v2/integration/aws/accounts/{aws_account_config_id}".replace("{aws_account_config_id}", encodeURIComponent(String(awsAccountConfigId))); + // Make Request Context + const requestContext = _config + .getServer("v2.AWSIntegrationApi.deleteAWSAccount") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getAWSAccount(awsAccountConfigId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'getAWSAccount'"); + if (!_config.unstableOperations["v2.getAWSAccount"]) { + throw new Error("Unstable operation 'getAWSAccount' is disabled"); + } + // verify required parameter 'awsAccountConfigId' is not null or undefined + if (awsAccountConfigId === null || awsAccountConfigId === undefined) { + throw new baseapi_1.RequiredError("awsAccountConfigId", "getAWSAccount"); + } + // Path Params + const localVarPath = "/api/v2/integration/aws/accounts/{aws_account_config_id}".replace("{aws_account_config_id}", encodeURIComponent(String(awsAccountConfigId))); + // Make Request Context + const requestContext = _config + .getServer("v2.AWSIntegrationApi.getAWSAccount") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listAWSAccounts(awsAccountId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'listAWSAccounts'"); + if (!_config.unstableOperations["v2.listAWSAccounts"]) { + throw new Error("Unstable operation 'listAWSAccounts' is disabled"); + } + // Path Params + const localVarPath = "/api/v2/integration/aws/accounts"; + // Make Request Context + const requestContext = _config + .getServer("v2.AWSIntegrationApi.listAWSAccounts") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (awsAccountId !== undefined) { + requestContext.setQueryParam("aws_account_id", ObjectSerializer_1.ObjectSerializer.serialize(awsAccountId, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listAWSNamespaces(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'listAWSNamespaces'"); + if (!_config.unstableOperations["v2.listAWSNamespaces"]) { + throw new Error("Unstable operation 'listAWSNamespaces' is disabled"); + } + // Path Params + const localVarPath = "/api/v2/integration/aws/available_namespaces"; + // Make Request Context + const requestContext = _config + .getServer("v2.AWSIntegrationApi.listAWSNamespaces") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateAWSAccount(awsAccountConfigId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'updateAWSAccount'"); + if (!_config.unstableOperations["v2.updateAWSAccount"]) { + throw new Error("Unstable operation 'updateAWSAccount' is disabled"); + } + // verify required parameter 'awsAccountConfigId' is not null or undefined + if (awsAccountConfigId === null || awsAccountConfigId === undefined) { + throw new baseapi_1.RequiredError("awsAccountConfigId", "updateAWSAccount"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateAWSAccount"); + } + // Path Params + const localVarPath = "/api/v2/integration/aws/accounts/{aws_account_config_id}".replace("{aws_account_config_id}", encodeURIComponent(String(awsAccountConfigId))); + // Make Request Context + const requestContext = _config + .getServer("v2.AWSIntegrationApi.updateAWSAccount") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "AWSAccountUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.AWSIntegrationApiRequestFactory = AWSIntegrationApiRequestFactory; +class AWSIntegrationApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createAWSAccount + * @throws ApiException if the response code was not in [200, 299] + */ + createAWSAccount(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSAccountResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSAccountResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createNewAWSExternalID + * @throws ApiException if the response code was not in [200, 299] + */ + createNewAWSExternalID(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSNewExternalIDResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSNewExternalIDResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteAWSAccount + * @throws ApiException if the response code was not in [200, 299] + */ + deleteAWSAccount(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getAWSAccount + * @throws ApiException if the response code was not in [200, 299] + */ + getAWSAccount(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSAccountResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSAccountResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listAWSAccounts + * @throws ApiException if the response code was not in [200, 299] + */ + listAWSAccounts(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSAccountsResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSAccountsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listAWSNamespaces + * @throws ApiException if the response code was not in [200, 299] + */ + listAWSNamespaces(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSNamespacesResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSNamespacesResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateAWSAccount + * @throws ApiException if the response code was not in [200, 299] + */ + updateAWSAccount(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSAccountResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSAccountResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.AWSIntegrationApiResponseProcessor = AWSIntegrationApiResponseProcessor; +class AWSIntegrationApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new AWSIntegrationApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new AWSIntegrationApiResponseProcessor(); + } + /** + * Create a new AWS Account Integration Config. + * @param param The request object + */ + createAWSAccount(param, options) { + const requestContextPromise = this.requestFactory.createAWSAccount(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createAWSAccount(responseContext); + }); + }); + } + /** + * Generate a new external ID for AWS role-based authentication. + * @param param The request object + */ + createNewAWSExternalID(options) { + const requestContextPromise = this.requestFactory.createNewAWSExternalID(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createNewAWSExternalID(responseContext); + }); + }); + } + /** + * Delete an AWS Account Integration Config by config ID. + * @param param The request object + */ + deleteAWSAccount(param, options) { + const requestContextPromise = this.requestFactory.deleteAWSAccount(param.awsAccountConfigId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteAWSAccount(responseContext); + }); + }); + } + /** + * Get an AWS Account Integration Config by config ID. + * @param param The request object + */ + getAWSAccount(param, options) { + const requestContextPromise = this.requestFactory.getAWSAccount(param.awsAccountConfigId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getAWSAccount(responseContext); + }); + }); + } + /** + * Get a list of AWS Account Integration Configs. + * @param param The request object + */ + listAWSAccounts(param = {}, options) { + const requestContextPromise = this.requestFactory.listAWSAccounts(param.awsAccountId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listAWSAccounts(responseContext); + }); + }); + } + /** + * Get a list of available AWS CloudWatch namespaces that can send metrics to Datadog. + * @param param The request object + */ + listAWSNamespaces(options) { + const requestContextPromise = this.requestFactory.listAWSNamespaces(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listAWSNamespaces(responseContext); + }); + }); + } + /** + * Update an AWS Account Integration Config by config ID. + * @param param The request object + */ + updateAWSAccount(param, options) { + const requestContextPromise = this.requestFactory.updateAWSAccount(param.awsAccountConfigId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateAWSAccount(responseContext); + }); + }); + } +} +exports.AWSIntegrationApi = AWSIntegrationApi; +//# sourceMappingURL=AWSIntegrationApi.js.map + +/***/ }), + +/***/ 8455: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.AWSLogsIntegrationApi = exports.AWSLogsIntegrationApiResponseProcessor = exports.AWSLogsIntegrationApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class AWSLogsIntegrationApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + listAWSLogsServices(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'listAWSLogsServices'"); + if (!_config.unstableOperations["v2.listAWSLogsServices"]) { + throw new Error("Unstable operation 'listAWSLogsServices' is disabled"); + } + // Path Params + const localVarPath = "/api/v2/integration/aws/logs/services"; + // Make Request Context + const requestContext = _config + .getServer("v2.AWSLogsIntegrationApi.listAWSLogsServices") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.AWSLogsIntegrationApiRequestFactory = AWSLogsIntegrationApiRequestFactory; +class AWSLogsIntegrationApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listAWSLogsServices + * @throws ApiException if the response code was not in [200, 299] + */ + listAWSLogsServices(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSLogsServicesResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AWSLogsServicesResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.AWSLogsIntegrationApiResponseProcessor = AWSLogsIntegrationApiResponseProcessor; +class AWSLogsIntegrationApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new AWSLogsIntegrationApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new AWSLogsIntegrationApiResponseProcessor(); + } + /** + * Get a list of AWS services that can send logs to Datadog. + * @param param The request object + */ + listAWSLogsServices(options) { + const requestContextPromise = this.requestFactory.listAWSLogsServices(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listAWSLogsServices(responseContext); + }); + }); + } +} +exports.AWSLogsIntegrationApi = AWSLogsIntegrationApi; +//# sourceMappingURL=AWSLogsIntegrationApi.js.map + +/***/ }), + +/***/ 36571: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.AppDeploymentApi = exports.AppDeploymentApiResponseProcessor = exports.AppDeploymentApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class AppDeploymentApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + deployApp(appId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'deployApp'"); + if (!_config.unstableOperations["v2.deployApp"]) { + throw new Error("Unstable operation 'deployApp' is disabled"); + } + // verify required parameter 'appId' is not null or undefined + if (appId === null || appId === undefined) { + throw new baseapi_1.RequiredError("appId", "deployApp"); + } + // Path Params + const localVarPath = "/api/v2/app-builder/apps/{app_id}/deployment".replace("{app_id}", encodeURIComponent(String(appId))); + // Make Request Context + const requestContext = _config + .getServer("v2.AppDeploymentApi.deployApp") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + disableApp(appId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'disableApp'"); + if (!_config.unstableOperations["v2.disableApp"]) { + throw new Error("Unstable operation 'disableApp' is disabled"); + } + // verify required parameter 'appId' is not null or undefined + if (appId === null || appId === undefined) { + throw new baseapi_1.RequiredError("appId", "disableApp"); + } + // Path Params + const localVarPath = "/api/v2/app-builder/apps/{app_id}/deployment".replace("{app_id}", encodeURIComponent(String(appId))); + // Make Request Context + const requestContext = _config + .getServer("v2.AppDeploymentApi.disableApp") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.AppDeploymentApiRequestFactory = AppDeploymentApiRequestFactory; +class AppDeploymentApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deployApp + * @throws ApiException if the response code was not in [200, 299] + */ + deployApp(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DeployAppResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "AppBuilderError"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DeployAppResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to disableApp + * @throws ApiException if the response code was not in [200, 299] + */ + disableApp(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DisableAppResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "AppBuilderError"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DisableAppResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.AppDeploymentApiResponseProcessor = AppDeploymentApiResponseProcessor; +class AppDeploymentApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new AppDeploymentApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new AppDeploymentApiResponseProcessor(); + } + /** + * Deploy (publish) an app by ID + * @param param The request object + */ + deployApp(param, options) { + const requestContextPromise = this.requestFactory.deployApp(param.appId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deployApp(responseContext); + }); + }); + } + /** + * Disable an app by ID + * @param param The request object + */ + disableApp(param, options) { + const requestContextPromise = this.requestFactory.disableApp(param.appId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.disableApp(responseContext); + }); + }); + } +} +exports.AppDeploymentApi = AppDeploymentApi; +//# sourceMappingURL=AppDeploymentApi.js.map + +/***/ }), + +/***/ 38439: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.AppsApi = exports.AppsApiResponseProcessor = exports.AppsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class AppsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createApp(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'createApp'"); + if (!_config.unstableOperations["v2.createApp"]) { + throw new Error("Unstable operation 'createApp' is disabled"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createApp"); + } + // Path Params + const localVarPath = "/api/v2/app-builder/apps"; + // Make Request Context + const requestContext = _config + .getServer("v2.AppsApi.createApp") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "CreateAppRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteApp(appId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'deleteApp'"); + if (!_config.unstableOperations["v2.deleteApp"]) { + throw new Error("Unstable operation 'deleteApp' is disabled"); + } + // verify required parameter 'appId' is not null or undefined + if (appId === null || appId === undefined) { + throw new baseapi_1.RequiredError("appId", "deleteApp"); + } + // Path Params + const localVarPath = "/api/v2/app-builder/apps/{app_id}".replace("{app_id}", encodeURIComponent(String(appId))); + // Make Request Context + const requestContext = _config + .getServer("v2.AppsApi.deleteApp") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteApps(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'deleteApps'"); + if (!_config.unstableOperations["v2.deleteApps"]) { + throw new Error("Unstable operation 'deleteApps' is disabled"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "deleteApps"); + } + // Path Params + const localVarPath = "/api/v2/app-builder/apps"; + // Make Request Context + const requestContext = _config + .getServer("v2.AppsApi.deleteApps") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "DeleteAppsRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getApp(appId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'getApp'"); + if (!_config.unstableOperations["v2.getApp"]) { + throw new Error("Unstable operation 'getApp' is disabled"); + } + // verify required parameter 'appId' is not null or undefined + if (appId === null || appId === undefined) { + throw new baseapi_1.RequiredError("appId", "getApp"); + } + // Path Params + const localVarPath = "/api/v2/app-builder/apps/{app_id}".replace("{app_id}", encodeURIComponent(String(appId))); + // Make Request Context + const requestContext = _config + .getServer("v2.AppsApi.getApp") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listApps(limit, page, filterUserName, filterUserUuid, filterName, filterQuery, filterDeployed, filterTags, filterFavorite, sort, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'listApps'"); + if (!_config.unstableOperations["v2.listApps"]) { + throw new Error("Unstable operation 'listApps' is disabled"); + } + // Path Params + const localVarPath = "/api/v2/app-builder/apps"; + // Make Request Context + const requestContext = _config + .getServer("v2.AppsApi.listApps") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", "int64"), ""); + } + if (page !== undefined) { + requestContext.setQueryParam("page", ObjectSerializer_1.ObjectSerializer.serialize(page, "number", "int64"), ""); + } + if (filterUserName !== undefined) { + requestContext.setQueryParam("filter[user_name]", ObjectSerializer_1.ObjectSerializer.serialize(filterUserName, "string", ""), ""); + } + if (filterUserUuid !== undefined) { + requestContext.setQueryParam("filter[user_uuid]", ObjectSerializer_1.ObjectSerializer.serialize(filterUserUuid, "string", ""), ""); + } + if (filterName !== undefined) { + requestContext.setQueryParam("filter[name]", ObjectSerializer_1.ObjectSerializer.serialize(filterName, "string", ""), ""); + } + if (filterQuery !== undefined) { + requestContext.setQueryParam("filter[query]", ObjectSerializer_1.ObjectSerializer.serialize(filterQuery, "string", ""), ""); + } + if (filterDeployed !== undefined) { + requestContext.setQueryParam("filter[deployed]", ObjectSerializer_1.ObjectSerializer.serialize(filterDeployed, "boolean", ""), ""); + } + if (filterTags !== undefined) { + requestContext.setQueryParam("filter[tags]", ObjectSerializer_1.ObjectSerializer.serialize(filterTags, "string", ""), ""); + } + if (filterFavorite !== undefined) { + requestContext.setQueryParam("filter[favorite]", ObjectSerializer_1.ObjectSerializer.serialize(filterFavorite, "boolean", ""), ""); + } + if (sort !== undefined) { + requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "Array", ""), "csv"); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateApp(appId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'updateApp'"); + if (!_config.unstableOperations["v2.updateApp"]) { + throw new Error("Unstable operation 'updateApp' is disabled"); + } + // verify required parameter 'appId' is not null or undefined + if (appId === null || appId === undefined) { + throw new baseapi_1.RequiredError("appId", "updateApp"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateApp"); + } + // Path Params + const localVarPath = "/api/v2/app-builder/apps/{app_id}".replace("{app_id}", encodeURIComponent(String(appId))); + // Make Request Context + const requestContext = _config + .getServer("v2.AppsApi.updateApp") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "UpdateAppRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.AppsApiRequestFactory = AppsApiRequestFactory; +class AppsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createApp + * @throws ApiException if the response code was not in [200, 299] + */ + createApp(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CreateAppResponse"); + return body; + } + if (response.httpStatusCode === 400 || response.httpStatusCode === 403) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "AppBuilderError"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CreateAppResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteApp + * @throws ApiException if the response code was not in [200, 299] + */ + deleteApp(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DeleteAppResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 410) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "AppBuilderError"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DeleteAppResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteApps + * @throws ApiException if the response code was not in [200, 299] + */ + deleteApps(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DeleteAppsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "AppBuilderError"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DeleteAppsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getApp + * @throws ApiException if the response code was not in [200, 299] + */ + getApp(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GetAppResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "AppBuilderError"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GetAppResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listApps + * @throws ApiException if the response code was not in [200, 299] + */ + listApps(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListAppsResponse"); + return body; + } + if (response.httpStatusCode === 400 || response.httpStatusCode === 403) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "AppBuilderError"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListAppsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateApp + * @throws ApiException if the response code was not in [200, 299] + */ + updateApp(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UpdateAppResponse"); + return body; + } + if (response.httpStatusCode === 400 || response.httpStatusCode === 403) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "AppBuilderError"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UpdateAppResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.AppsApiResponseProcessor = AppsApiResponseProcessor; +class AppsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new AppsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new AppsApiResponseProcessor(); + } + /** + * Create a new app, returning the app ID + * @param param The request object + */ + createApp(param, options) { + const requestContextPromise = this.requestFactory.createApp(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createApp(responseContext); + }); + }); + } + /** + * Delete an app by ID + * @param param The request object + */ + deleteApp(param, options) { + const requestContextPromise = this.requestFactory.deleteApp(param.appId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteApp(responseContext); + }); + }); + } + /** + * Delete multiple apps by ID + * @param param The request object + */ + deleteApps(param, options) { + const requestContextPromise = this.requestFactory.deleteApps(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteApps(responseContext); + }); + }); + } + /** + * Get the full definition of an app by ID + * @param param The request object + */ + getApp(param, options) { + const requestContextPromise = this.requestFactory.getApp(param.appId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getApp(responseContext); + }); + }); + } + /** + * List all apps, with optional filters and sorting + * @param param The request object + */ + listApps(param = {}, options) { + const requestContextPromise = this.requestFactory.listApps(param.limit, param.page, param.filterUserName, param.filterUserUuid, param.filterName, param.filterQuery, param.filterDeployed, param.filterTags, param.filterFavorite, param.sort, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listApps(responseContext); + }); + }); + } + /** + * Update an existing app by ID. Creates a new version of the app + * @param param The request object + */ + updateApp(param, options) { + const requestContextPromise = this.requestFactory.updateApp(param.appId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateApp(responseContext); + }); + }); + } +} +exports.AppsApi = AppsApi; +//# sourceMappingURL=AppsApi.js.map + +/***/ }), + +/***/ 1510: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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 __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuditApi = exports.AuditApiResponseProcessor = exports.AuditApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +const AuditLogsQueryPageOptions_1 = __nccwpck_require__(239); +const AuditLogsSearchEventsRequest_1 = __nccwpck_require__(3108); +class AuditApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + listAuditLogs(filterQuery, filterFrom, filterTo, sort, pageCursor, pageLimit, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/audit/events"; + // Make Request Context + const requestContext = _config + .getServer("v2.AuditApi.listAuditLogs") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (filterQuery !== undefined) { + requestContext.setQueryParam("filter[query]", ObjectSerializer_1.ObjectSerializer.serialize(filterQuery, "string", ""), ""); + } + if (filterFrom !== undefined) { + requestContext.setQueryParam("filter[from]", ObjectSerializer_1.ObjectSerializer.serialize(filterFrom, "Date", "date-time"), ""); + } + if (filterTo !== undefined) { + requestContext.setQueryParam("filter[to]", ObjectSerializer_1.ObjectSerializer.serialize(filterTo, "Date", "date-time"), ""); + } + if (sort !== undefined) { + requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "AuditLogsSort", ""), ""); + } + if (pageCursor !== undefined) { + requestContext.setQueryParam("page[cursor]", ObjectSerializer_1.ObjectSerializer.serialize(pageCursor, "string", ""), ""); + } + if (pageLimit !== undefined) { + requestContext.setQueryParam("page[limit]", ObjectSerializer_1.ObjectSerializer.serialize(pageLimit, "number", "int32"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + searchAuditLogs(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/audit/events/search"; + // Make Request Context + const requestContext = _config + .getServer("v2.AuditApi.searchAuditLogs") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "AuditLogsSearchEventsRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.AuditApiRequestFactory = AuditApiRequestFactory; +class AuditApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listAuditLogs + * @throws ApiException if the response code was not in [200, 299] + */ + listAuditLogs(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AuditLogsEventsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AuditLogsEventsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to searchAuditLogs + * @throws ApiException if the response code was not in [200, 299] + */ + searchAuditLogs(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AuditLogsEventsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AuditLogsEventsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.AuditApiResponseProcessor = AuditApiResponseProcessor; +class AuditApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new AuditApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new AuditApiResponseProcessor(); + } + /** + * List endpoint returns events that match a Audit Logs search query. + * [Results are paginated][1]. + * + * Use this endpoint to see your latest Audit Logs events. + * + * [1]: https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination + * @param param The request object + */ + listAuditLogs(param = {}, options) { + const requestContextPromise = this.requestFactory.listAuditLogs(param.filterQuery, param.filterFrom, param.filterTo, param.sort, param.pageCursor, param.pageLimit, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listAuditLogs(responseContext); + }); + }); + } + /** + * Provide a paginated version of listAuditLogs returning a generator with all the items. + */ + listAuditLogsWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* listAuditLogsWithPagination_1() { + let pageSize = 10; + if (param.pageLimit !== undefined) { + pageSize = param.pageLimit; + } + param.pageLimit = pageSize; + while (true) { + const requestContext = yield __await(this.requestFactory.listAuditLogs(param.filterQuery, param.filterFrom, param.filterTo, param.sort, param.pageCursor, param.pageLimit, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listAuditLogs(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + const cursorMeta = response.meta; + if (cursorMeta === undefined) { + break; + } + const cursorMetaPage = cursorMeta.page; + if (cursorMetaPage === undefined) { + break; + } + const cursorMetaPageAfter = cursorMetaPage.after; + if (cursorMetaPageAfter === undefined) { + break; + } + param.pageCursor = cursorMetaPageAfter; + } + }); + } + /** + * List endpoint returns Audit Logs events that match an Audit search query. + * [Results are paginated][1]. + * + * Use this endpoint to build complex Audit Logs events filtering and search. + * + * [1]: https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination + * @param param The request object + */ + searchAuditLogs(param = {}, options) { + const requestContextPromise = this.requestFactory.searchAuditLogs(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.searchAuditLogs(responseContext); + }); + }); + } + /** + * Provide a paginated version of searchAuditLogs returning a generator with all the items. + */ + searchAuditLogsWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* searchAuditLogsWithPagination_1() { + let pageSize = 10; + if (param.body === undefined) { + param.body = new AuditLogsSearchEventsRequest_1.AuditLogsSearchEventsRequest(); + } + if (param.body.page === undefined) { + param.body.page = new AuditLogsQueryPageOptions_1.AuditLogsQueryPageOptions(); + } + if (param.body.page.limit !== undefined) { + pageSize = param.body.page.limit; + } + param.body.page.limit = pageSize; + while (true) { + const requestContext = yield __await(this.requestFactory.searchAuditLogs(param.body, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.searchAuditLogs(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + const cursorMeta = response.meta; + if (cursorMeta === undefined) { + break; + } + const cursorMetaPage = cursorMeta.page; + if (cursorMetaPage === undefined) { + break; + } + const cursorMetaPageAfter = cursorMetaPage.after; + if (cursorMetaPageAfter === undefined) { + break; + } + param.body.page.cursor = cursorMetaPageAfter; + } + }); + } +} +exports.AuditApi = AuditApi; +//# sourceMappingURL=AuditApi.js.map + +/***/ }), + +/***/ 77478: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.AuthNMappingsApi = exports.AuthNMappingsApiResponseProcessor = exports.AuthNMappingsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class AuthNMappingsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createAuthNMapping(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createAuthNMapping"); + } + // Path Params + const localVarPath = "/api/v2/authn_mappings"; + // Make Request Context + const requestContext = _config + .getServer("v2.AuthNMappingsApi.createAuthNMapping") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "AuthNMappingCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteAuthNMapping(authnMappingId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'authnMappingId' is not null or undefined + if (authnMappingId === null || authnMappingId === undefined) { + throw new baseapi_1.RequiredError("authnMappingId", "deleteAuthNMapping"); + } + // Path Params + const localVarPath = "/api/v2/authn_mappings/{authn_mapping_id}".replace("{authn_mapping_id}", encodeURIComponent(String(authnMappingId))); + // Make Request Context + const requestContext = _config + .getServer("v2.AuthNMappingsApi.deleteAuthNMapping") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getAuthNMapping(authnMappingId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'authnMappingId' is not null or undefined + if (authnMappingId === null || authnMappingId === undefined) { + throw new baseapi_1.RequiredError("authnMappingId", "getAuthNMapping"); + } + // Path Params + const localVarPath = "/api/v2/authn_mappings/{authn_mapping_id}".replace("{authn_mapping_id}", encodeURIComponent(String(authnMappingId))); + // Make Request Context + const requestContext = _config + .getServer("v2.AuthNMappingsApi.getAuthNMapping") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listAuthNMappings(pageSize, pageNumber, sort, filter, resourceType, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/authn_mappings"; + // Make Request Context + const requestContext = _config + .getServer("v2.AuthNMappingsApi.listAuthNMappings") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (pageSize !== undefined) { + requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), ""); + } + if (pageNumber !== undefined) { + requestContext.setQueryParam("page[number]", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); + } + if (sort !== undefined) { + requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "AuthNMappingsSort", ""), ""); + } + if (filter !== undefined) { + requestContext.setQueryParam("filter", ObjectSerializer_1.ObjectSerializer.serialize(filter, "string", ""), ""); + } + if (resourceType !== undefined) { + requestContext.setQueryParam("resource_type", ObjectSerializer_1.ObjectSerializer.serialize(resourceType, "AuthNMappingResourceType", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateAuthNMapping(authnMappingId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'authnMappingId' is not null or undefined + if (authnMappingId === null || authnMappingId === undefined) { + throw new baseapi_1.RequiredError("authnMappingId", "updateAuthNMapping"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateAuthNMapping"); + } + // Path Params + const localVarPath = "/api/v2/authn_mappings/{authn_mapping_id}".replace("{authn_mapping_id}", encodeURIComponent(String(authnMappingId))); + // Make Request Context + const requestContext = _config + .getServer("v2.AuthNMappingsApi.updateAuthNMapping") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "AuthNMappingUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.AuthNMappingsApiRequestFactory = AuthNMappingsApiRequestFactory; +class AuthNMappingsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createAuthNMapping + * @throws ApiException if the response code was not in [200, 299] + */ + createAuthNMapping(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AuthNMappingResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AuthNMappingResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteAuthNMapping + * @throws ApiException if the response code was not in [200, 299] + */ + deleteAuthNMapping(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getAuthNMapping + * @throws ApiException if the response code was not in [200, 299] + */ + getAuthNMapping(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AuthNMappingResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AuthNMappingResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listAuthNMappings + * @throws ApiException if the response code was not in [200, 299] + */ + listAuthNMappings(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AuthNMappingsResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AuthNMappingsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateAuthNMapping + * @throws ApiException if the response code was not in [200, 299] + */ + updateAuthNMapping(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AuthNMappingResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 409 || + response.httpStatusCode === 422 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AuthNMappingResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.AuthNMappingsApiResponseProcessor = AuthNMappingsApiResponseProcessor; +class AuthNMappingsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new AuthNMappingsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new AuthNMappingsApiResponseProcessor(); + } + /** + * Create an AuthN Mapping. + * @param param The request object + */ + createAuthNMapping(param, options) { + const requestContextPromise = this.requestFactory.createAuthNMapping(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createAuthNMapping(responseContext); + }); + }); + } + /** + * Delete an AuthN Mapping specified by AuthN Mapping UUID. + * @param param The request object + */ + deleteAuthNMapping(param, options) { + const requestContextPromise = this.requestFactory.deleteAuthNMapping(param.authnMappingId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteAuthNMapping(responseContext); + }); + }); + } + /** + * Get an AuthN Mapping specified by the AuthN Mapping UUID. + * @param param The request object + */ + getAuthNMapping(param, options) { + const requestContextPromise = this.requestFactory.getAuthNMapping(param.authnMappingId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getAuthNMapping(responseContext); + }); + }); + } + /** + * List all AuthN Mappings in the org. + * @param param The request object + */ + listAuthNMappings(param = {}, options) { + const requestContextPromise = this.requestFactory.listAuthNMappings(param.pageSize, param.pageNumber, param.sort, param.filter, param.resourceType, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listAuthNMappings(responseContext); + }); + }); + } + /** + * Edit an AuthN Mapping. + * @param param The request object + */ + updateAuthNMapping(param, options) { + const requestContextPromise = this.requestFactory.updateAuthNMapping(param.authnMappingId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateAuthNMapping(responseContext); + }); + }); + } +} +exports.AuthNMappingsApi = AuthNMappingsApi; +//# sourceMappingURL=AuthNMappingsApi.js.map + +/***/ }), + +/***/ 21202: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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 __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIVisibilityPipelinesApi = exports.CIVisibilityPipelinesApiResponseProcessor = exports.CIVisibilityPipelinesApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +const CIAppPipelineEventsRequest_1 = __nccwpck_require__(19439); +const CIAppQueryPageOptions_1 = __nccwpck_require__(17028); +class CIVisibilityPipelinesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + aggregateCIAppPipelineEvents(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "aggregateCIAppPipelineEvents"); + } + // Path Params + const localVarPath = "/api/v2/ci/pipelines/analytics/aggregate"; + // Make Request Context + const requestContext = _config + .getServer("v2.CIVisibilityPipelinesApi.aggregateCIAppPipelineEvents") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "CIAppPipelinesAggregateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createCIAppPipelineEvent(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createCIAppPipelineEvent"); + } + // Path Params + const localVarPath = "/api/v2/ci/pipeline"; + // Make Request Context + const requestContext = _config + .getServer("v2.CIVisibilityPipelinesApi.createCIAppPipelineEvent") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "CIAppCreatePipelineEventRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, ["apiKeyAuth"]); + return requestContext; + }); + } + listCIAppPipelineEvents(filterQuery, filterFrom, filterTo, sort, pageCursor, pageLimit, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/ci/pipelines/events"; + // Make Request Context + const requestContext = _config + .getServer("v2.CIVisibilityPipelinesApi.listCIAppPipelineEvents") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (filterQuery !== undefined) { + requestContext.setQueryParam("filter[query]", ObjectSerializer_1.ObjectSerializer.serialize(filterQuery, "string", ""), ""); + } + if (filterFrom !== undefined) { + requestContext.setQueryParam("filter[from]", ObjectSerializer_1.ObjectSerializer.serialize(filterFrom, "Date", "date-time"), ""); + } + if (filterTo !== undefined) { + requestContext.setQueryParam("filter[to]", ObjectSerializer_1.ObjectSerializer.serialize(filterTo, "Date", "date-time"), ""); + } + if (sort !== undefined) { + requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "CIAppSort", ""), ""); + } + if (pageCursor !== undefined) { + requestContext.setQueryParam("page[cursor]", ObjectSerializer_1.ObjectSerializer.serialize(pageCursor, "string", ""), ""); + } + if (pageLimit !== undefined) { + requestContext.setQueryParam("page[limit]", ObjectSerializer_1.ObjectSerializer.serialize(pageLimit, "number", "int32"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + searchCIAppPipelineEvents(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/ci/pipelines/events/search"; + // Make Request Context + const requestContext = _config + .getServer("v2.CIVisibilityPipelinesApi.searchCIAppPipelineEvents") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "CIAppPipelineEventsRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.CIVisibilityPipelinesApiRequestFactory = CIVisibilityPipelinesApiRequestFactory; +class CIVisibilityPipelinesApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to aggregateCIAppPipelineEvents + * @throws ApiException if the response code was not in [200, 299] + */ + aggregateCIAppPipelineEvents(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CIAppPipelinesAnalyticsAggregateResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CIAppPipelinesAnalyticsAggregateResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createCIAppPipelineEvent + * @throws ApiException if the response code was not in [200, 299] + */ + createCIAppPipelineEvent(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 202) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 408 || + response.httpStatusCode === 413 || + response.httpStatusCode === 429 || + response.httpStatusCode === 500 || + response.httpStatusCode === 503) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "HTTPCIAppErrors"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listCIAppPipelineEvents + * @throws ApiException if the response code was not in [200, 299] + */ + listCIAppPipelineEvents(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CIAppPipelineEventsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CIAppPipelineEventsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to searchCIAppPipelineEvents + * @throws ApiException if the response code was not in [200, 299] + */ + searchCIAppPipelineEvents(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CIAppPipelineEventsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CIAppPipelineEventsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.CIVisibilityPipelinesApiResponseProcessor = CIVisibilityPipelinesApiResponseProcessor; +class CIVisibilityPipelinesApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || + new CIVisibilityPipelinesApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new CIVisibilityPipelinesApiResponseProcessor(); + } + /** + * Use this API endpoint to aggregate CI Visibility pipeline events into buckets of computed metrics and timeseries. + * @param param The request object + */ + aggregateCIAppPipelineEvents(param, options) { + const requestContextPromise = this.requestFactory.aggregateCIAppPipelineEvents(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.aggregateCIAppPipelineEvents(responseContext); + }); + }); + } + /** + * Send your pipeline event to your Datadog platform over HTTP. For details about how pipeline executions are modeled and what execution types we support, see [Pipeline Data Model And Execution Types](https://docs.datadoghq.com/continuous_integration/guides/pipeline_data_model/). + * + * Pipeline events can be submitted with a timestamp that is up to 18 hours in the past. + * @param param The request object + */ + createCIAppPipelineEvent(param, options) { + const requestContextPromise = this.requestFactory.createCIAppPipelineEvent(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createCIAppPipelineEvent(responseContext); + }); + }); + } + /** + * List endpoint returns CI Visibility pipeline events that match a [search query](https://docs.datadoghq.com/continuous_integration/explorer/search_syntax/). + * [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination). + * + * Use this endpoint to see your latest pipeline events. + * @param param The request object + */ + listCIAppPipelineEvents(param = {}, options) { + const requestContextPromise = this.requestFactory.listCIAppPipelineEvents(param.filterQuery, param.filterFrom, param.filterTo, param.sort, param.pageCursor, param.pageLimit, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listCIAppPipelineEvents(responseContext); + }); + }); + } + /** + * Provide a paginated version of listCIAppPipelineEvents returning a generator with all the items. + */ + listCIAppPipelineEventsWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* listCIAppPipelineEventsWithPagination_1() { + let pageSize = 10; + if (param.pageLimit !== undefined) { + pageSize = param.pageLimit; + } + param.pageLimit = pageSize; + while (true) { + const requestContext = yield __await(this.requestFactory.listCIAppPipelineEvents(param.filterQuery, param.filterFrom, param.filterTo, param.sort, param.pageCursor, param.pageLimit, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listCIAppPipelineEvents(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + const cursorMeta = response.meta; + if (cursorMeta === undefined) { + break; + } + const cursorMetaPage = cursorMeta.page; + if (cursorMetaPage === undefined) { + break; + } + const cursorMetaPageAfter = cursorMetaPage.after; + if (cursorMetaPageAfter === undefined) { + break; + } + param.pageCursor = cursorMetaPageAfter; + } + }); + } + /** + * List endpoint returns CI Visibility pipeline events that match a [search query](https://docs.datadoghq.com/continuous_integration/explorer/search_syntax/). + * [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination). + * + * Use this endpoint to build complex events filtering and search. + * @param param The request object + */ + searchCIAppPipelineEvents(param = {}, options) { + const requestContextPromise = this.requestFactory.searchCIAppPipelineEvents(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.searchCIAppPipelineEvents(responseContext); + }); + }); + } + /** + * Provide a paginated version of searchCIAppPipelineEvents returning a generator with all the items. + */ + searchCIAppPipelineEventsWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* searchCIAppPipelineEventsWithPagination_1() { + let pageSize = 10; + if (param.body === undefined) { + param.body = new CIAppPipelineEventsRequest_1.CIAppPipelineEventsRequest(); + } + if (param.body.page === undefined) { + param.body.page = new CIAppQueryPageOptions_1.CIAppQueryPageOptions(); + } + if (param.body.page.limit !== undefined) { + pageSize = param.body.page.limit; + } + param.body.page.limit = pageSize; + while (true) { + const requestContext = yield __await(this.requestFactory.searchCIAppPipelineEvents(param.body, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.searchCIAppPipelineEvents(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + const cursorMeta = response.meta; + if (cursorMeta === undefined) { + break; + } + const cursorMetaPage = cursorMeta.page; + if (cursorMetaPage === undefined) { + break; + } + const cursorMetaPageAfter = cursorMetaPage.after; + if (cursorMetaPageAfter === undefined) { + break; + } + param.body.page.cursor = cursorMetaPageAfter; + } + }); + } +} +exports.CIVisibilityPipelinesApi = CIVisibilityPipelinesApi; +//# sourceMappingURL=CIVisibilityPipelinesApi.js.map + +/***/ }), + +/***/ 39576: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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 __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIVisibilityTestsApi = exports.CIVisibilityTestsApiResponseProcessor = exports.CIVisibilityTestsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +const CIAppQueryPageOptions_1 = __nccwpck_require__(17028); +const CIAppTestEventsRequest_1 = __nccwpck_require__(78081); +class CIVisibilityTestsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + aggregateCIAppTestEvents(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "aggregateCIAppTestEvents"); + } + // Path Params + const localVarPath = "/api/v2/ci/tests/analytics/aggregate"; + // Make Request Context + const requestContext = _config + .getServer("v2.CIVisibilityTestsApi.aggregateCIAppTestEvents") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "CIAppTestsAggregateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listCIAppTestEvents(filterQuery, filterFrom, filterTo, sort, pageCursor, pageLimit, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/ci/tests/events"; + // Make Request Context + const requestContext = _config + .getServer("v2.CIVisibilityTestsApi.listCIAppTestEvents") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (filterQuery !== undefined) { + requestContext.setQueryParam("filter[query]", ObjectSerializer_1.ObjectSerializer.serialize(filterQuery, "string", ""), ""); + } + if (filterFrom !== undefined) { + requestContext.setQueryParam("filter[from]", ObjectSerializer_1.ObjectSerializer.serialize(filterFrom, "Date", "date-time"), ""); + } + if (filterTo !== undefined) { + requestContext.setQueryParam("filter[to]", ObjectSerializer_1.ObjectSerializer.serialize(filterTo, "Date", "date-time"), ""); + } + if (sort !== undefined) { + requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "CIAppSort", ""), ""); + } + if (pageCursor !== undefined) { + requestContext.setQueryParam("page[cursor]", ObjectSerializer_1.ObjectSerializer.serialize(pageCursor, "string", ""), ""); + } + if (pageLimit !== undefined) { + requestContext.setQueryParam("page[limit]", ObjectSerializer_1.ObjectSerializer.serialize(pageLimit, "number", "int32"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + searchCIAppTestEvents(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/ci/tests/events/search"; + // Make Request Context + const requestContext = _config + .getServer("v2.CIVisibilityTestsApi.searchCIAppTestEvents") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "CIAppTestEventsRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.CIVisibilityTestsApiRequestFactory = CIVisibilityTestsApiRequestFactory; +class CIVisibilityTestsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to aggregateCIAppTestEvents + * @throws ApiException if the response code was not in [200, 299] + */ + aggregateCIAppTestEvents(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CIAppTestsAnalyticsAggregateResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CIAppTestsAnalyticsAggregateResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listCIAppTestEvents + * @throws ApiException if the response code was not in [200, 299] + */ + listCIAppTestEvents(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CIAppTestEventsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CIAppTestEventsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to searchCIAppTestEvents + * @throws ApiException if the response code was not in [200, 299] + */ + searchCIAppTestEvents(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CIAppTestEventsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CIAppTestEventsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.CIVisibilityTestsApiResponseProcessor = CIVisibilityTestsApiResponseProcessor; +class CIVisibilityTestsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new CIVisibilityTestsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new CIVisibilityTestsApiResponseProcessor(); + } + /** + * The API endpoint to aggregate CI Visibility test events into buckets of computed metrics and timeseries. + * @param param The request object + */ + aggregateCIAppTestEvents(param, options) { + const requestContextPromise = this.requestFactory.aggregateCIAppTestEvents(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.aggregateCIAppTestEvents(responseContext); + }); + }); + } + /** + * List endpoint returns CI Visibility test events that match a [search query](https://docs.datadoghq.com/continuous_integration/explorer/search_syntax/). + * [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination). + * + * Use this endpoint to see your latest test events. + * @param param The request object + */ + listCIAppTestEvents(param = {}, options) { + const requestContextPromise = this.requestFactory.listCIAppTestEvents(param.filterQuery, param.filterFrom, param.filterTo, param.sort, param.pageCursor, param.pageLimit, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listCIAppTestEvents(responseContext); + }); + }); + } + /** + * Provide a paginated version of listCIAppTestEvents returning a generator with all the items. + */ + listCIAppTestEventsWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* listCIAppTestEventsWithPagination_1() { + let pageSize = 10; + if (param.pageLimit !== undefined) { + pageSize = param.pageLimit; + } + param.pageLimit = pageSize; + while (true) { + const requestContext = yield __await(this.requestFactory.listCIAppTestEvents(param.filterQuery, param.filterFrom, param.filterTo, param.sort, param.pageCursor, param.pageLimit, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listCIAppTestEvents(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + const cursorMeta = response.meta; + if (cursorMeta === undefined) { + break; + } + const cursorMetaPage = cursorMeta.page; + if (cursorMetaPage === undefined) { + break; + } + const cursorMetaPageAfter = cursorMetaPage.after; + if (cursorMetaPageAfter === undefined) { + break; + } + param.pageCursor = cursorMetaPageAfter; + } + }); + } + /** + * List endpoint returns CI Visibility test events that match a [search query](https://docs.datadoghq.com/continuous_integration/explorer/search_syntax/). + * [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination). + * + * Use this endpoint to build complex events filtering and search. + * @param param The request object + */ + searchCIAppTestEvents(param = {}, options) { + const requestContextPromise = this.requestFactory.searchCIAppTestEvents(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.searchCIAppTestEvents(responseContext); + }); + }); + } + /** + * Provide a paginated version of searchCIAppTestEvents returning a generator with all the items. + */ + searchCIAppTestEventsWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* searchCIAppTestEventsWithPagination_1() { + let pageSize = 10; + if (param.body === undefined) { + param.body = new CIAppTestEventsRequest_1.CIAppTestEventsRequest(); + } + if (param.body.page === undefined) { + param.body.page = new CIAppQueryPageOptions_1.CIAppQueryPageOptions(); + } + if (param.body.page.limit !== undefined) { + pageSize = param.body.page.limit; + } + param.body.page.limit = pageSize; + while (true) { + const requestContext = yield __await(this.requestFactory.searchCIAppTestEvents(param.body, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.searchCIAppTestEvents(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + const cursorMeta = response.meta; + if (cursorMeta === undefined) { + break; + } + const cursorMetaPage = cursorMeta.page; + if (cursorMetaPage === undefined) { + break; + } + const cursorMetaPageAfter = cursorMetaPage.after; + if (cursorMetaPageAfter === undefined) { + break; + } + param.body.page.cursor = cursorMetaPageAfter; + } + }); + } +} +exports.CIVisibilityTestsApi = CIVisibilityTestsApi; +//# sourceMappingURL=CIVisibilityTestsApi.js.map + +/***/ }), + +/***/ 44074: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.CSMAgentsApi = exports.CSMAgentsApiResponseProcessor = exports.CSMAgentsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class CSMAgentsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + listAllCSMAgents(page, size, query, orderDirection, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/csm/onboarding/agents"; + // Make Request Context + const requestContext = _config + .getServer("v2.CSMAgentsApi.listAllCSMAgents") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (page !== undefined) { + requestContext.setQueryParam("page", ObjectSerializer_1.ObjectSerializer.serialize(page, "number", "int32"), ""); + } + if (size !== undefined) { + requestContext.setQueryParam("size", ObjectSerializer_1.ObjectSerializer.serialize(size, "number", "int32"), ""); + } + if (query !== undefined) { + requestContext.setQueryParam("query", ObjectSerializer_1.ObjectSerializer.serialize(query, "string", ""), ""); + } + if (orderDirection !== undefined) { + requestContext.setQueryParam("order_direction", ObjectSerializer_1.ObjectSerializer.serialize(orderDirection, "OrderDirection", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listAllCSMServerlessAgents(page, size, query, orderDirection, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/csm/onboarding/serverless/agents"; + // Make Request Context + const requestContext = _config + .getServer("v2.CSMAgentsApi.listAllCSMServerlessAgents") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (page !== undefined) { + requestContext.setQueryParam("page", ObjectSerializer_1.ObjectSerializer.serialize(page, "number", "int32"), ""); + } + if (size !== undefined) { + requestContext.setQueryParam("size", ObjectSerializer_1.ObjectSerializer.serialize(size, "number", "int32"), ""); + } + if (query !== undefined) { + requestContext.setQueryParam("query", ObjectSerializer_1.ObjectSerializer.serialize(query, "string", ""), ""); + } + if (orderDirection !== undefined) { + requestContext.setQueryParam("order_direction", ObjectSerializer_1.ObjectSerializer.serialize(orderDirection, "OrderDirection", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.CSMAgentsApiRequestFactory = CSMAgentsApiRequestFactory; +class CSMAgentsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listAllCSMAgents + * @throws ApiException if the response code was not in [200, 299] + */ + listAllCSMAgents(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CsmAgentsResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CsmAgentsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listAllCSMServerlessAgents + * @throws ApiException if the response code was not in [200, 299] + */ + listAllCSMServerlessAgents(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CsmAgentsResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CsmAgentsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.CSMAgentsApiResponseProcessor = CSMAgentsApiResponseProcessor; +class CSMAgentsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new CSMAgentsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new CSMAgentsApiResponseProcessor(); + } + /** + * Get the list of all CSM Agents running on your hosts and containers. + * @param param The request object + */ + listAllCSMAgents(param = {}, options) { + const requestContextPromise = this.requestFactory.listAllCSMAgents(param.page, param.size, param.query, param.orderDirection, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listAllCSMAgents(responseContext); + }); + }); + } + /** + * Get the list of all CSM Serverless Agents running on your hosts and containers. + * @param param The request object + */ + listAllCSMServerlessAgents(param = {}, options) { + const requestContextPromise = this.requestFactory.listAllCSMServerlessAgents(param.page, param.size, param.query, param.orderDirection, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listAllCSMServerlessAgents(responseContext); + }); + }); + } +} +exports.CSMAgentsApi = CSMAgentsApi; +//# sourceMappingURL=CSMAgentsApi.js.map + +/***/ }), + +/***/ 48185: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.CSMThreatsApi = exports.CSMThreatsApiResponseProcessor = exports.CSMThreatsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class CSMThreatsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createCloudWorkloadSecurityAgentRule(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createCloudWorkloadSecurityAgentRule"); + } + // Path Params + const localVarPath = "/api/v2/security_monitoring/cloud_workload_security/agent_rules"; + // Make Request Context + const requestContext = _config + .getServer("v2.CSMThreatsApi.createCloudWorkloadSecurityAgentRule") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "CloudWorkloadSecurityAgentRuleCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createCSMThreatsAgentRule(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createCSMThreatsAgentRule"); + } + // Path Params + const localVarPath = "/api/v2/remote_config/products/cws/agent_rules"; + // Make Request Context + const requestContext = _config + .getServer("v2.CSMThreatsApi.createCSMThreatsAgentRule") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "CloudWorkloadSecurityAgentRuleCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteCloudWorkloadSecurityAgentRule(agentRuleId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'agentRuleId' is not null or undefined + if (agentRuleId === null || agentRuleId === undefined) { + throw new baseapi_1.RequiredError("agentRuleId", "deleteCloudWorkloadSecurityAgentRule"); + } + // Path Params + const localVarPath = "/api/v2/security_monitoring/cloud_workload_security/agent_rules/{agent_rule_id}".replace("{agent_rule_id}", encodeURIComponent(String(agentRuleId))); + // Make Request Context + const requestContext = _config + .getServer("v2.CSMThreatsApi.deleteCloudWorkloadSecurityAgentRule") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteCSMThreatsAgentRule(agentRuleId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'agentRuleId' is not null or undefined + if (agentRuleId === null || agentRuleId === undefined) { + throw new baseapi_1.RequiredError("agentRuleId", "deleteCSMThreatsAgentRule"); + } + // Path Params + const localVarPath = "/api/v2/remote_config/products/cws/agent_rules/{agent_rule_id}".replace("{agent_rule_id}", encodeURIComponent(String(agentRuleId))); + // Make Request Context + const requestContext = _config + .getServer("v2.CSMThreatsApi.deleteCSMThreatsAgentRule") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + downloadCloudWorkloadPolicyFile(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/security/cloud_workload/policy/download"; + // Make Request Context + const requestContext = _config + .getServer("v2.CSMThreatsApi.downloadCloudWorkloadPolicyFile") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/yaml, application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + downloadCSMThreatsPolicy(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/remote_config/products/cws/policy/download"; + // Make Request Context + const requestContext = _config + .getServer("v2.CSMThreatsApi.downloadCSMThreatsPolicy") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/zip, application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getCloudWorkloadSecurityAgentRule(agentRuleId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'agentRuleId' is not null or undefined + if (agentRuleId === null || agentRuleId === undefined) { + throw new baseapi_1.RequiredError("agentRuleId", "getCloudWorkloadSecurityAgentRule"); + } + // Path Params + const localVarPath = "/api/v2/security_monitoring/cloud_workload_security/agent_rules/{agent_rule_id}".replace("{agent_rule_id}", encodeURIComponent(String(agentRuleId))); + // Make Request Context + const requestContext = _config + .getServer("v2.CSMThreatsApi.getCloudWorkloadSecurityAgentRule") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getCSMThreatsAgentRule(agentRuleId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'agentRuleId' is not null or undefined + if (agentRuleId === null || agentRuleId === undefined) { + throw new baseapi_1.RequiredError("agentRuleId", "getCSMThreatsAgentRule"); + } + // Path Params + const localVarPath = "/api/v2/remote_config/products/cws/agent_rules/{agent_rule_id}".replace("{agent_rule_id}", encodeURIComponent(String(agentRuleId))); + // Make Request Context + const requestContext = _config + .getServer("v2.CSMThreatsApi.getCSMThreatsAgentRule") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listCloudWorkloadSecurityAgentRules(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/security_monitoring/cloud_workload_security/agent_rules"; + // Make Request Context + const requestContext = _config + .getServer("v2.CSMThreatsApi.listCloudWorkloadSecurityAgentRules") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listCSMThreatsAgentRules(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/remote_config/products/cws/agent_rules"; + // Make Request Context + const requestContext = _config + .getServer("v2.CSMThreatsApi.listCSMThreatsAgentRules") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateCloudWorkloadSecurityAgentRule(agentRuleId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'agentRuleId' is not null or undefined + if (agentRuleId === null || agentRuleId === undefined) { + throw new baseapi_1.RequiredError("agentRuleId", "updateCloudWorkloadSecurityAgentRule"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateCloudWorkloadSecurityAgentRule"); + } + // Path Params + const localVarPath = "/api/v2/security_monitoring/cloud_workload_security/agent_rules/{agent_rule_id}".replace("{agent_rule_id}", encodeURIComponent(String(agentRuleId))); + // Make Request Context + const requestContext = _config + .getServer("v2.CSMThreatsApi.updateCloudWorkloadSecurityAgentRule") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "CloudWorkloadSecurityAgentRuleUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateCSMThreatsAgentRule(agentRuleId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'agentRuleId' is not null or undefined + if (agentRuleId === null || agentRuleId === undefined) { + throw new baseapi_1.RequiredError("agentRuleId", "updateCSMThreatsAgentRule"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateCSMThreatsAgentRule"); + } + // Path Params + const localVarPath = "/api/v2/remote_config/products/cws/agent_rules/{agent_rule_id}".replace("{agent_rule_id}", encodeURIComponent(String(agentRuleId))); + // Make Request Context + const requestContext = _config + .getServer("v2.CSMThreatsApi.updateCSMThreatsAgentRule") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "CloudWorkloadSecurityAgentRuleUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.CSMThreatsApiRequestFactory = CSMThreatsApiRequestFactory; +class CSMThreatsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createCloudWorkloadSecurityAgentRule + * @throws ApiException if the response code was not in [200, 299] + */ + createCloudWorkloadSecurityAgentRule(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CloudWorkloadSecurityAgentRuleResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CloudWorkloadSecurityAgentRuleResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createCSMThreatsAgentRule + * @throws ApiException if the response code was not in [200, 299] + */ + createCSMThreatsAgentRule(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CloudWorkloadSecurityAgentRuleResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CloudWorkloadSecurityAgentRuleResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCloudWorkloadSecurityAgentRule + * @throws ApiException if the response code was not in [200, 299] + */ + deleteCloudWorkloadSecurityAgentRule(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCSMThreatsAgentRule + * @throws ApiException if the response code was not in [200, 299] + */ + deleteCSMThreatsAgentRule(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to downloadCloudWorkloadPolicyFile + * @throws ApiException if the response code was not in [200, 299] + */ + downloadCloudWorkloadPolicyFile(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = (yield response.getBodyAsFile()); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = (yield response.getBodyAsFile()); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to downloadCSMThreatsPolicy + * @throws ApiException if the response code was not in [200, 299] + */ + downloadCSMThreatsPolicy(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = (yield response.getBodyAsFile()); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = (yield response.getBodyAsFile()); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getCloudWorkloadSecurityAgentRule + * @throws ApiException if the response code was not in [200, 299] + */ + getCloudWorkloadSecurityAgentRule(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CloudWorkloadSecurityAgentRuleResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CloudWorkloadSecurityAgentRuleResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getCSMThreatsAgentRule + * @throws ApiException if the response code was not in [200, 299] + */ + getCSMThreatsAgentRule(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CloudWorkloadSecurityAgentRuleResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CloudWorkloadSecurityAgentRuleResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listCloudWorkloadSecurityAgentRules + * @throws ApiException if the response code was not in [200, 299] + */ + listCloudWorkloadSecurityAgentRules(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CloudWorkloadSecurityAgentRulesListResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CloudWorkloadSecurityAgentRulesListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listCSMThreatsAgentRules + * @throws ApiException if the response code was not in [200, 299] + */ + listCSMThreatsAgentRules(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CloudWorkloadSecurityAgentRulesListResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CloudWorkloadSecurityAgentRulesListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateCloudWorkloadSecurityAgentRule + * @throws ApiException if the response code was not in [200, 299] + */ + updateCloudWorkloadSecurityAgentRule(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CloudWorkloadSecurityAgentRuleResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CloudWorkloadSecurityAgentRuleResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateCSMThreatsAgentRule + * @throws ApiException if the response code was not in [200, 299] + */ + updateCSMThreatsAgentRule(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CloudWorkloadSecurityAgentRuleResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CloudWorkloadSecurityAgentRuleResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.CSMThreatsApiResponseProcessor = CSMThreatsApiResponseProcessor; +class CSMThreatsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new CSMThreatsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new CSMThreatsApiResponseProcessor(); + } + /** + * Create a new Agent rule with the given parameters. + * @param param The request object + */ + createCloudWorkloadSecurityAgentRule(param, options) { + const requestContextPromise = this.requestFactory.createCloudWorkloadSecurityAgentRule(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createCloudWorkloadSecurityAgentRule(responseContext); + }); + }); + } + /** + * Create a new Cloud Security Management Threats Agent rule with the given parameters. + * @param param The request object + */ + createCSMThreatsAgentRule(param, options) { + const requestContextPromise = this.requestFactory.createCSMThreatsAgentRule(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createCSMThreatsAgentRule(responseContext); + }); + }); + } + /** + * Delete a specific Agent rule. + * @param param The request object + */ + deleteCloudWorkloadSecurityAgentRule(param, options) { + const requestContextPromise = this.requestFactory.deleteCloudWorkloadSecurityAgentRule(param.agentRuleId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteCloudWorkloadSecurityAgentRule(responseContext); + }); + }); + } + /** + * Delete a specific Cloud Security Management Threats Agent rule. + * @param param The request object + */ + deleteCSMThreatsAgentRule(param, options) { + const requestContextPromise = this.requestFactory.deleteCSMThreatsAgentRule(param.agentRuleId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteCSMThreatsAgentRule(responseContext); + }); + }); + } + /** + * The download endpoint generates a Cloud Workload Security policy file from your currently active + * Cloud Workload Security rules, and downloads them as a .policy file. This file can then be deployed to + * your Agents to update the policy running in your environment. + * @param param The request object + */ + downloadCloudWorkloadPolicyFile(options) { + const requestContextPromise = this.requestFactory.downloadCloudWorkloadPolicyFile(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.downloadCloudWorkloadPolicyFile(responseContext); + }); + }); + } + /** + * The download endpoint generates a CSM Threats policy file from your currently active + * CSM Threats rules, and downloads them as a `.policy` file. This file can then be deployed to + * your Agents to update the policy running in your environment. + * @param param The request object + */ + downloadCSMThreatsPolicy(options) { + const requestContextPromise = this.requestFactory.downloadCSMThreatsPolicy(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.downloadCSMThreatsPolicy(responseContext); + }); + }); + } + /** + * Get the details of a specific Agent rule. + * @param param The request object + */ + getCloudWorkloadSecurityAgentRule(param, options) { + const requestContextPromise = this.requestFactory.getCloudWorkloadSecurityAgentRule(param.agentRuleId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getCloudWorkloadSecurityAgentRule(responseContext); + }); + }); + } + /** + * Get the details of a specific Cloud Security Management Threats Agent rule. + * @param param The request object + */ + getCSMThreatsAgentRule(param, options) { + const requestContextPromise = this.requestFactory.getCSMThreatsAgentRule(param.agentRuleId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getCSMThreatsAgentRule(responseContext); + }); + }); + } + /** + * Get the list of Agent rules. + * @param param The request object + */ + listCloudWorkloadSecurityAgentRules(options) { + const requestContextPromise = this.requestFactory.listCloudWorkloadSecurityAgentRules(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listCloudWorkloadSecurityAgentRules(responseContext); + }); + }); + } + /** + * Get the list of Cloud Security Management Threats Agent rules. + * @param param The request object + */ + listCSMThreatsAgentRules(options) { + const requestContextPromise = this.requestFactory.listCSMThreatsAgentRules(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listCSMThreatsAgentRules(responseContext); + }); + }); + } + /** + * Update a specific Agent rule. + * Returns the Agent rule object when the request is successful. + * @param param The request object + */ + updateCloudWorkloadSecurityAgentRule(param, options) { + const requestContextPromise = this.requestFactory.updateCloudWorkloadSecurityAgentRule(param.agentRuleId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateCloudWorkloadSecurityAgentRule(responseContext); + }); + }); + } + /** + * Update a specific Cloud Security Management Threats Agent rule. + * Returns the Agent rule object when the request is successful. + * @param param The request object + */ + updateCSMThreatsAgentRule(param, options) { + const requestContextPromise = this.requestFactory.updateCSMThreatsAgentRule(param.agentRuleId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateCSMThreatsAgentRule(responseContext); + }); + }); + } +} +exports.CSMThreatsApi = CSMThreatsApi; +//# sourceMappingURL=CSMThreatsApi.js.map + +/***/ }), + +/***/ 21942: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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 __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CaseManagementApi = exports.CaseManagementApiResponseProcessor = exports.CaseManagementApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class CaseManagementApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + archiveCase(caseId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'caseId' is not null or undefined + if (caseId === null || caseId === undefined) { + throw new baseapi_1.RequiredError("caseId", "archiveCase"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "archiveCase"); + } + // Path Params + const localVarPath = "/api/v2/cases/{case_id}/archive".replace("{case_id}", encodeURIComponent(String(caseId))); + // Make Request Context + const requestContext = _config + .getServer("v2.CaseManagementApi.archiveCase") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "CaseEmptyRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + assignCase(caseId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'caseId' is not null or undefined + if (caseId === null || caseId === undefined) { + throw new baseapi_1.RequiredError("caseId", "assignCase"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "assignCase"); + } + // Path Params + const localVarPath = "/api/v2/cases/{case_id}/assign".replace("{case_id}", encodeURIComponent(String(caseId))); + // Make Request Context + const requestContext = _config + .getServer("v2.CaseManagementApi.assignCase") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "CaseAssignRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createCase(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createCase"); + } + // Path Params + const localVarPath = "/api/v2/cases"; + // Make Request Context + const requestContext = _config + .getServer("v2.CaseManagementApi.createCase") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "CaseCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createProject(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createProject"); + } + // Path Params + const localVarPath = "/api/v2/cases/projects"; + // Make Request Context + const requestContext = _config + .getServer("v2.CaseManagementApi.createProject") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ProjectCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteProject(projectId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'projectId' is not null or undefined + if (projectId === null || projectId === undefined) { + throw new baseapi_1.RequiredError("projectId", "deleteProject"); + } + // Path Params + const localVarPath = "/api/v2/cases/projects/{project_id}".replace("{project_id}", encodeURIComponent(String(projectId))); + // Make Request Context + const requestContext = _config + .getServer("v2.CaseManagementApi.deleteProject") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getCase(caseId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'caseId' is not null or undefined + if (caseId === null || caseId === undefined) { + throw new baseapi_1.RequiredError("caseId", "getCase"); + } + // Path Params + const localVarPath = "/api/v2/cases/{case_id}".replace("{case_id}", encodeURIComponent(String(caseId))); + // Make Request Context + const requestContext = _config + .getServer("v2.CaseManagementApi.getCase") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getProject(projectId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'projectId' is not null or undefined + if (projectId === null || projectId === undefined) { + throw new baseapi_1.RequiredError("projectId", "getProject"); + } + // Path Params + const localVarPath = "/api/v2/cases/projects/{project_id}".replace("{project_id}", encodeURIComponent(String(projectId))); + // Make Request Context + const requestContext = _config + .getServer("v2.CaseManagementApi.getProject") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getProjects(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/cases/projects"; + // Make Request Context + const requestContext = _config + .getServer("v2.CaseManagementApi.getProjects") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + searchCases(pageSize, pageNumber, sortField, filter, sortAsc, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/cases"; + // Make Request Context + const requestContext = _config + .getServer("v2.CaseManagementApi.searchCases") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (pageSize !== undefined) { + requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), ""); + } + if (pageNumber !== undefined) { + requestContext.setQueryParam("page[number]", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); + } + if (sortField !== undefined) { + requestContext.setQueryParam("sort[field]", ObjectSerializer_1.ObjectSerializer.serialize(sortField, "CaseSortableField", ""), ""); + } + if (filter !== undefined) { + requestContext.setQueryParam("filter", ObjectSerializer_1.ObjectSerializer.serialize(filter, "string", ""), ""); + } + if (sortAsc !== undefined) { + requestContext.setQueryParam("sort[asc]", ObjectSerializer_1.ObjectSerializer.serialize(sortAsc, "boolean", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + unarchiveCase(caseId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'caseId' is not null or undefined + if (caseId === null || caseId === undefined) { + throw new baseapi_1.RequiredError("caseId", "unarchiveCase"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "unarchiveCase"); + } + // Path Params + const localVarPath = "/api/v2/cases/{case_id}/unarchive".replace("{case_id}", encodeURIComponent(String(caseId))); + // Make Request Context + const requestContext = _config + .getServer("v2.CaseManagementApi.unarchiveCase") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "CaseEmptyRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + unassignCase(caseId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'caseId' is not null or undefined + if (caseId === null || caseId === undefined) { + throw new baseapi_1.RequiredError("caseId", "unassignCase"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "unassignCase"); + } + // Path Params + const localVarPath = "/api/v2/cases/{case_id}/unassign".replace("{case_id}", encodeURIComponent(String(caseId))); + // Make Request Context + const requestContext = _config + .getServer("v2.CaseManagementApi.unassignCase") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "CaseEmptyRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updatePriority(caseId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'caseId' is not null or undefined + if (caseId === null || caseId === undefined) { + throw new baseapi_1.RequiredError("caseId", "updatePriority"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updatePriority"); + } + // Path Params + const localVarPath = "/api/v2/cases/{case_id}/priority".replace("{case_id}", encodeURIComponent(String(caseId))); + // Make Request Context + const requestContext = _config + .getServer("v2.CaseManagementApi.updatePriority") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "CaseUpdatePriorityRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateStatus(caseId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'caseId' is not null or undefined + if (caseId === null || caseId === undefined) { + throw new baseapi_1.RequiredError("caseId", "updateStatus"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateStatus"); + } + // Path Params + const localVarPath = "/api/v2/cases/{case_id}/status".replace("{case_id}", encodeURIComponent(String(caseId))); + // Make Request Context + const requestContext = _config + .getServer("v2.CaseManagementApi.updateStatus") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "CaseUpdateStatusRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.CaseManagementApiRequestFactory = CaseManagementApiRequestFactory; +class CaseManagementApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to archiveCase + * @throws ApiException if the response code was not in [200, 299] + */ + archiveCase(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CaseResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CaseResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to assignCase + * @throws ApiException if the response code was not in [200, 299] + */ + assignCase(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CaseResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CaseResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createCase + * @throws ApiException if the response code was not in [200, 299] + */ + createCase(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CaseResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CaseResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createProject + * @throws ApiException if the response code was not in [200, 299] + */ + createProject(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ProjectResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ProjectResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteProject + * @throws ApiException if the response code was not in [200, 299] + */ + deleteProject(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getCase + * @throws ApiException if the response code was not in [200, 299] + */ + getCase(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CaseResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CaseResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getProject + * @throws ApiException if the response code was not in [200, 299] + */ + getProject(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ProjectResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ProjectResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getProjects + * @throws ApiException if the response code was not in [200, 299] + */ + getProjects(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ProjectsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ProjectsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to searchCases + * @throws ApiException if the response code was not in [200, 299] + */ + searchCases(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CasesResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CasesResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to unarchiveCase + * @throws ApiException if the response code was not in [200, 299] + */ + unarchiveCase(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CaseResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CaseResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to unassignCase + * @throws ApiException if the response code was not in [200, 299] + */ + unassignCase(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CaseResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CaseResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updatePriority + * @throws ApiException if the response code was not in [200, 299] + */ + updatePriority(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CaseResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CaseResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateStatus + * @throws ApiException if the response code was not in [200, 299] + */ + updateStatus(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CaseResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CaseResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.CaseManagementApiResponseProcessor = CaseManagementApiResponseProcessor; +class CaseManagementApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new CaseManagementApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new CaseManagementApiResponseProcessor(); + } + /** + * Archive case + * @param param The request object + */ + archiveCase(param, options) { + const requestContextPromise = this.requestFactory.archiveCase(param.caseId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.archiveCase(responseContext); + }); + }); + } + /** + * Assign case to a user + * @param param The request object + */ + assignCase(param, options) { + const requestContextPromise = this.requestFactory.assignCase(param.caseId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.assignCase(responseContext); + }); + }); + } + /** + * Create a Case + * @param param The request object + */ + createCase(param, options) { + const requestContextPromise = this.requestFactory.createCase(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createCase(responseContext); + }); + }); + } + /** + * Create a project. + * @param param The request object + */ + createProject(param, options) { + const requestContextPromise = this.requestFactory.createProject(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createProject(responseContext); + }); + }); + } + /** + * Remove a project using the project's `id`. + * @param param The request object + */ + deleteProject(param, options) { + const requestContextPromise = this.requestFactory.deleteProject(param.projectId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteProject(responseContext); + }); + }); + } + /** + * Get the details of case by `case_id` + * @param param The request object + */ + getCase(param, options) { + const requestContextPromise = this.requestFactory.getCase(param.caseId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getCase(responseContext); + }); + }); + } + /** + * Get the details of a project by `project_id`. + * @param param The request object + */ + getProject(param, options) { + const requestContextPromise = this.requestFactory.getProject(param.projectId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getProject(responseContext); + }); + }); + } + /** + * Get all projects. + * @param param The request object + */ + getProjects(options) { + const requestContextPromise = this.requestFactory.getProjects(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getProjects(responseContext); + }); + }); + } + /** + * Search cases. + * @param param The request object + */ + searchCases(param = {}, options) { + const requestContextPromise = this.requestFactory.searchCases(param.pageSize, param.pageNumber, param.sortField, param.filter, param.sortAsc, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.searchCases(responseContext); + }); + }); + } + /** + * Provide a paginated version of searchCases returning a generator with all the items. + */ + searchCasesWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* searchCasesWithPagination_1() { + let pageSize = 10; + if (param.pageSize !== undefined) { + pageSize = param.pageSize; + } + param.pageSize = pageSize; + param.pageNumber = 0; + while (true) { + const requestContext = yield __await(this.requestFactory.searchCases(param.pageSize, param.pageNumber, param.sortField, param.filter, param.sortAsc, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.searchCases(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + param.pageNumber = param.pageNumber + 1; + } + }); + } + /** + * Unarchive case + * @param param The request object + */ + unarchiveCase(param, options) { + const requestContextPromise = this.requestFactory.unarchiveCase(param.caseId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.unarchiveCase(responseContext); + }); + }); + } + /** + * Unassign case + * @param param The request object + */ + unassignCase(param, options) { + const requestContextPromise = this.requestFactory.unassignCase(param.caseId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.unassignCase(responseContext); + }); + }); + } + /** + * Update case priority + * @param param The request object + */ + updatePriority(param, options) { + const requestContextPromise = this.requestFactory.updatePriority(param.caseId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updatePriority(responseContext); + }); + }); + } + /** + * Update case status + * @param param The request object + */ + updateStatus(param, options) { + const requestContextPromise = this.requestFactory.updateStatus(param.caseId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateStatus(responseContext); + }); + }); + } +} +exports.CaseManagementApi = CaseManagementApi; +//# sourceMappingURL=CaseManagementApi.js.map + +/***/ }), + +/***/ 2222: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.CloudCostManagementApi = exports.CloudCostManagementApiResponseProcessor = exports.CloudCostManagementApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class CloudCostManagementApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createCostAWSCURConfig(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createCostAWSCURConfig"); + } + // Path Params + const localVarPath = "/api/v2/cost/aws_cur_config"; + // Make Request Context + const requestContext = _config + .getServer("v2.CloudCostManagementApi.createCostAWSCURConfig") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "AwsCURConfigPostRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createCostAzureUCConfigs(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createCostAzureUCConfigs"); + } + // Path Params + const localVarPath = "/api/v2/cost/azure_uc_config"; + // Make Request Context + const requestContext = _config + .getServer("v2.CloudCostManagementApi.createCostAzureUCConfigs") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "AzureUCConfigPostRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteCostAWSCURConfig(cloudAccountId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'cloudAccountId' is not null or undefined + if (cloudAccountId === null || cloudAccountId === undefined) { + throw new baseapi_1.RequiredError("cloudAccountId", "deleteCostAWSCURConfig"); + } + // Path Params + const localVarPath = "/api/v2/cost/aws_cur_config/{cloud_account_id}".replace("{cloud_account_id}", encodeURIComponent(String(cloudAccountId))); + // Make Request Context + const requestContext = _config + .getServer("v2.CloudCostManagementApi.deleteCostAWSCURConfig") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteCostAzureUCConfig(cloudAccountId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'cloudAccountId' is not null or undefined + if (cloudAccountId === null || cloudAccountId === undefined) { + throw new baseapi_1.RequiredError("cloudAccountId", "deleteCostAzureUCConfig"); + } + // Path Params + const localVarPath = "/api/v2/cost/azure_uc_config/{cloud_account_id}".replace("{cloud_account_id}", encodeURIComponent(String(cloudAccountId))); + // Make Request Context + const requestContext = _config + .getServer("v2.CloudCostManagementApi.deleteCostAzureUCConfig") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteCustomCostsFile(fileId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'fileId' is not null or undefined + if (fileId === null || fileId === undefined) { + throw new baseapi_1.RequiredError("fileId", "deleteCustomCostsFile"); + } + // Path Params + const localVarPath = "/api/v2/cost/custom_costs/{file_id}".replace("{file_id}", encodeURIComponent(String(fileId))); + // Make Request Context + const requestContext = _config + .getServer("v2.CloudCostManagementApi.deleteCustomCostsFile") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getCustomCostsFile(fileId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'fileId' is not null or undefined + if (fileId === null || fileId === undefined) { + throw new baseapi_1.RequiredError("fileId", "getCustomCostsFile"); + } + // Path Params + const localVarPath = "/api/v2/cost/custom_costs/{file_id}".replace("{file_id}", encodeURIComponent(String(fileId))); + // Make Request Context + const requestContext = _config + .getServer("v2.CloudCostManagementApi.getCustomCostsFile") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listCostAWSCURConfigs(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/cost/aws_cur_config"; + // Make Request Context + const requestContext = _config + .getServer("v2.CloudCostManagementApi.listCostAWSCURConfigs") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listCostAzureUCConfigs(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/cost/azure_uc_config"; + // Make Request Context + const requestContext = _config + .getServer("v2.CloudCostManagementApi.listCostAzureUCConfigs") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listCustomCostsFiles(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/cost/custom_costs"; + // Make Request Context + const requestContext = _config + .getServer("v2.CloudCostManagementApi.listCustomCostsFiles") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateCostAWSCURConfig(cloudAccountId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'cloudAccountId' is not null or undefined + if (cloudAccountId === null || cloudAccountId === undefined) { + throw new baseapi_1.RequiredError("cloudAccountId", "updateCostAWSCURConfig"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateCostAWSCURConfig"); + } + // Path Params + const localVarPath = "/api/v2/cost/aws_cur_config/{cloud_account_id}".replace("{cloud_account_id}", encodeURIComponent(String(cloudAccountId))); + // Make Request Context + const requestContext = _config + .getServer("v2.CloudCostManagementApi.updateCostAWSCURConfig") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "AwsCURConfigPatchRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateCostAzureUCConfigs(cloudAccountId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'cloudAccountId' is not null or undefined + if (cloudAccountId === null || cloudAccountId === undefined) { + throw new baseapi_1.RequiredError("cloudAccountId", "updateCostAzureUCConfigs"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateCostAzureUCConfigs"); + } + // Path Params + const localVarPath = "/api/v2/cost/azure_uc_config/{cloud_account_id}".replace("{cloud_account_id}", encodeURIComponent(String(cloudAccountId))); + // Make Request Context + const requestContext = _config + .getServer("v2.CloudCostManagementApi.updateCostAzureUCConfigs") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "AzureUCConfigPatchRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + uploadCustomCostsFile(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "uploadCustomCostsFile"); + } + // Path Params + const localVarPath = "/api/v2/cost/custom_costs"; + // Make Request Context + const requestContext = _config + .getServer("v2.CloudCostManagementApi.uploadCustomCostsFile") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "Array", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.CloudCostManagementApiRequestFactory = CloudCostManagementApiRequestFactory; +class CloudCostManagementApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createCostAWSCURConfig + * @throws ApiException if the response code was not in [200, 299] + */ + createCostAWSCURConfig(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AwsCURConfigResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AwsCURConfigResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createCostAzureUCConfigs + * @throws ApiException if the response code was not in [200, 299] + */ + createCostAzureUCConfigs(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AzureUCConfigPairsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AzureUCConfigPairsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCostAWSCURConfig + * @throws ApiException if the response code was not in [200, 299] + */ + deleteCostAWSCURConfig(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCostAzureUCConfig + * @throws ApiException if the response code was not in [200, 299] + */ + deleteCostAzureUCConfig(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCustomCostsFile + * @throws ApiException if the response code was not in [200, 299] + */ + deleteCustomCostsFile(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getCustomCostsFile + * @throws ApiException if the response code was not in [200, 299] + */ + getCustomCostsFile(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CustomCostsFileGetResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CustomCostsFileGetResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listCostAWSCURConfigs + * @throws ApiException if the response code was not in [200, 299] + */ + listCostAWSCURConfigs(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AwsCURConfigsResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AwsCURConfigsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listCostAzureUCConfigs + * @throws ApiException if the response code was not in [200, 299] + */ + listCostAzureUCConfigs(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AzureUCConfigsResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AzureUCConfigsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listCustomCostsFiles + * @throws ApiException if the response code was not in [200, 299] + */ + listCustomCostsFiles(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CustomCostsFileListResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CustomCostsFileListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateCostAWSCURConfig + * @throws ApiException if the response code was not in [200, 299] + */ + updateCostAWSCURConfig(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AwsCURConfigsResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AwsCURConfigsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateCostAzureUCConfigs + * @throws ApiException if the response code was not in [200, 299] + */ + updateCostAzureUCConfigs(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AzureUCConfigPairsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AzureUCConfigPairsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to uploadCustomCostsFile + * @throws ApiException if the response code was not in [200, 299] + */ + uploadCustomCostsFile(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 202) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CustomCostsFileUploadResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CustomCostsFileUploadResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.CloudCostManagementApiResponseProcessor = CloudCostManagementApiResponseProcessor; +class CloudCostManagementApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new CloudCostManagementApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new CloudCostManagementApiResponseProcessor(); + } + /** + * Create a Cloud Cost Management account for an AWS CUR config. + * @param param The request object + */ + createCostAWSCURConfig(param, options) { + const requestContextPromise = this.requestFactory.createCostAWSCURConfig(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createCostAWSCURConfig(responseContext); + }); + }); + } + /** + * Create a Cloud Cost Management account for an Azure config. + * @param param The request object + */ + createCostAzureUCConfigs(param, options) { + const requestContextPromise = this.requestFactory.createCostAzureUCConfigs(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createCostAzureUCConfigs(responseContext); + }); + }); + } + /** + * Archive a Cloud Cost Management Account. + * @param param The request object + */ + deleteCostAWSCURConfig(param, options) { + const requestContextPromise = this.requestFactory.deleteCostAWSCURConfig(param.cloudAccountId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteCostAWSCURConfig(responseContext); + }); + }); + } + /** + * Archive a Cloud Cost Management Account. + * @param param The request object + */ + deleteCostAzureUCConfig(param, options) { + const requestContextPromise = this.requestFactory.deleteCostAzureUCConfig(param.cloudAccountId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteCostAzureUCConfig(responseContext); + }); + }); + } + /** + * Delete the specified Custom Costs file. + * @param param The request object + */ + deleteCustomCostsFile(param, options) { + const requestContextPromise = this.requestFactory.deleteCustomCostsFile(param.fileId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteCustomCostsFile(responseContext); + }); + }); + } + /** + * Fetch the specified Custom Costs file. + * @param param The request object + */ + getCustomCostsFile(param, options) { + const requestContextPromise = this.requestFactory.getCustomCostsFile(param.fileId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getCustomCostsFile(responseContext); + }); + }); + } + /** + * List the AWS CUR configs. + * @param param The request object + */ + listCostAWSCURConfigs(options) { + const requestContextPromise = this.requestFactory.listCostAWSCURConfigs(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listCostAWSCURConfigs(responseContext); + }); + }); + } + /** + * List the Azure configs. + * @param param The request object + */ + listCostAzureUCConfigs(options) { + const requestContextPromise = this.requestFactory.listCostAzureUCConfigs(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listCostAzureUCConfigs(responseContext); + }); + }); + } + /** + * List the Custom Costs files. + * @param param The request object + */ + listCustomCostsFiles(options) { + const requestContextPromise = this.requestFactory.listCustomCostsFiles(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listCustomCostsFiles(responseContext); + }); + }); + } + /** + * Update the status of an AWS CUR config (active/archived). + * @param param The request object + */ + updateCostAWSCURConfig(param, options) { + const requestContextPromise = this.requestFactory.updateCostAWSCURConfig(param.cloudAccountId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateCostAWSCURConfig(responseContext); + }); + }); + } + /** + * Update the status of an Azure config (active/archived). + * @param param The request object + */ + updateCostAzureUCConfigs(param, options) { + const requestContextPromise = this.requestFactory.updateCostAzureUCConfigs(param.cloudAccountId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateCostAzureUCConfigs(responseContext); + }); + }); + } + /** + * Upload a Custom Costs file. + * @param param The request object + */ + uploadCustomCostsFile(param, options) { + const requestContextPromise = this.requestFactory.uploadCustomCostsFile(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.uploadCustomCostsFile(responseContext); + }); + }); + } +} +exports.CloudCostManagementApi = CloudCostManagementApi; +//# sourceMappingURL=CloudCostManagementApi.js.map + +/***/ }), + +/***/ 3010: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.CloudflareIntegrationApi = exports.CloudflareIntegrationApiResponseProcessor = exports.CloudflareIntegrationApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class CloudflareIntegrationApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createCloudflareAccount(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createCloudflareAccount"); + } + // Path Params + const localVarPath = "/api/v2/integrations/cloudflare/accounts"; + // Make Request Context + const requestContext = _config + .getServer("v2.CloudflareIntegrationApi.createCloudflareAccount") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "CloudflareAccountCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteCloudflareAccount(accountId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'accountId' is not null or undefined + if (accountId === null || accountId === undefined) { + throw new baseapi_1.RequiredError("accountId", "deleteCloudflareAccount"); + } + // Path Params + const localVarPath = "/api/v2/integrations/cloudflare/accounts/{account_id}".replace("{account_id}", encodeURIComponent(String(accountId))); + // Make Request Context + const requestContext = _config + .getServer("v2.CloudflareIntegrationApi.deleteCloudflareAccount") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getCloudflareAccount(accountId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'accountId' is not null or undefined + if (accountId === null || accountId === undefined) { + throw new baseapi_1.RequiredError("accountId", "getCloudflareAccount"); + } + // Path Params + const localVarPath = "/api/v2/integrations/cloudflare/accounts/{account_id}".replace("{account_id}", encodeURIComponent(String(accountId))); + // Make Request Context + const requestContext = _config + .getServer("v2.CloudflareIntegrationApi.getCloudflareAccount") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listCloudflareAccounts(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/integrations/cloudflare/accounts"; + // Make Request Context + const requestContext = _config + .getServer("v2.CloudflareIntegrationApi.listCloudflareAccounts") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateCloudflareAccount(accountId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'accountId' is not null or undefined + if (accountId === null || accountId === undefined) { + throw new baseapi_1.RequiredError("accountId", "updateCloudflareAccount"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateCloudflareAccount"); + } + // Path Params + const localVarPath = "/api/v2/integrations/cloudflare/accounts/{account_id}".replace("{account_id}", encodeURIComponent(String(accountId))); + // Make Request Context + const requestContext = _config + .getServer("v2.CloudflareIntegrationApi.updateCloudflareAccount") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "CloudflareAccountUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.CloudflareIntegrationApiRequestFactory = CloudflareIntegrationApiRequestFactory; +class CloudflareIntegrationApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createCloudflareAccount + * @throws ApiException if the response code was not in [200, 299] + */ + createCloudflareAccount(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CloudflareAccountResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CloudflareAccountResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCloudflareAccount + * @throws ApiException if the response code was not in [200, 299] + */ + deleteCloudflareAccount(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getCloudflareAccount + * @throws ApiException if the response code was not in [200, 299] + */ + getCloudflareAccount(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CloudflareAccountResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CloudflareAccountResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listCloudflareAccounts + * @throws ApiException if the response code was not in [200, 299] + */ + listCloudflareAccounts(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CloudflareAccountsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CloudflareAccountsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateCloudflareAccount + * @throws ApiException if the response code was not in [200, 299] + */ + updateCloudflareAccount(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CloudflareAccountResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CloudflareAccountResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.CloudflareIntegrationApiResponseProcessor = CloudflareIntegrationApiResponseProcessor; +class CloudflareIntegrationApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || + new CloudflareIntegrationApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new CloudflareIntegrationApiResponseProcessor(); + } + /** + * Create a Cloudflare account. + * @param param The request object + */ + createCloudflareAccount(param, options) { + const requestContextPromise = this.requestFactory.createCloudflareAccount(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createCloudflareAccount(responseContext); + }); + }); + } + /** + * Delete a Cloudflare account. + * @param param The request object + */ + deleteCloudflareAccount(param, options) { + const requestContextPromise = this.requestFactory.deleteCloudflareAccount(param.accountId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteCloudflareAccount(responseContext); + }); + }); + } + /** + * Get a Cloudflare account. + * @param param The request object + */ + getCloudflareAccount(param, options) { + const requestContextPromise = this.requestFactory.getCloudflareAccount(param.accountId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getCloudflareAccount(responseContext); + }); + }); + } + /** + * List Cloudflare accounts. + * @param param The request object + */ + listCloudflareAccounts(options) { + const requestContextPromise = this.requestFactory.listCloudflareAccounts(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listCloudflareAccounts(responseContext); + }); + }); + } + /** + * Update a Cloudflare account. + * @param param The request object + */ + updateCloudflareAccount(param, options) { + const requestContextPromise = this.requestFactory.updateCloudflareAccount(param.accountId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateCloudflareAccount(responseContext); + }); + }); + } +} +exports.CloudflareIntegrationApi = CloudflareIntegrationApi; +//# sourceMappingURL=CloudflareIntegrationApi.js.map + +/***/ }), + +/***/ 25610: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.ConfluentCloudApi = exports.ConfluentCloudApiResponseProcessor = exports.ConfluentCloudApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class ConfluentCloudApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createConfluentAccount(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createConfluentAccount"); + } + // Path Params + const localVarPath = "/api/v2/integrations/confluent-cloud/accounts"; + // Make Request Context + const requestContext = _config + .getServer("v2.ConfluentCloudApi.createConfluentAccount") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ConfluentAccountCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createConfluentResource(accountId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'accountId' is not null or undefined + if (accountId === null || accountId === undefined) { + throw new baseapi_1.RequiredError("accountId", "createConfluentResource"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createConfluentResource"); + } + // Path Params + const localVarPath = "/api/v2/integrations/confluent-cloud/accounts/{account_id}/resources".replace("{account_id}", encodeURIComponent(String(accountId))); + // Make Request Context + const requestContext = _config + .getServer("v2.ConfluentCloudApi.createConfluentResource") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ConfluentResourceRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteConfluentAccount(accountId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'accountId' is not null or undefined + if (accountId === null || accountId === undefined) { + throw new baseapi_1.RequiredError("accountId", "deleteConfluentAccount"); + } + // Path Params + const localVarPath = "/api/v2/integrations/confluent-cloud/accounts/{account_id}".replace("{account_id}", encodeURIComponent(String(accountId))); + // Make Request Context + const requestContext = _config + .getServer("v2.ConfluentCloudApi.deleteConfluentAccount") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteConfluentResource(accountId, resourceId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'accountId' is not null or undefined + if (accountId === null || accountId === undefined) { + throw new baseapi_1.RequiredError("accountId", "deleteConfluentResource"); + } + // verify required parameter 'resourceId' is not null or undefined + if (resourceId === null || resourceId === undefined) { + throw new baseapi_1.RequiredError("resourceId", "deleteConfluentResource"); + } + // Path Params + const localVarPath = "/api/v2/integrations/confluent-cloud/accounts/{account_id}/resources/{resource_id}" + .replace("{account_id}", encodeURIComponent(String(accountId))) + .replace("{resource_id}", encodeURIComponent(String(resourceId))); + // Make Request Context + const requestContext = _config + .getServer("v2.ConfluentCloudApi.deleteConfluentResource") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getConfluentAccount(accountId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'accountId' is not null or undefined + if (accountId === null || accountId === undefined) { + throw new baseapi_1.RequiredError("accountId", "getConfluentAccount"); + } + // Path Params + const localVarPath = "/api/v2/integrations/confluent-cloud/accounts/{account_id}".replace("{account_id}", encodeURIComponent(String(accountId))); + // Make Request Context + const requestContext = _config + .getServer("v2.ConfluentCloudApi.getConfluentAccount") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getConfluentResource(accountId, resourceId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'accountId' is not null or undefined + if (accountId === null || accountId === undefined) { + throw new baseapi_1.RequiredError("accountId", "getConfluentResource"); + } + // verify required parameter 'resourceId' is not null or undefined + if (resourceId === null || resourceId === undefined) { + throw new baseapi_1.RequiredError("resourceId", "getConfluentResource"); + } + // Path Params + const localVarPath = "/api/v2/integrations/confluent-cloud/accounts/{account_id}/resources/{resource_id}" + .replace("{account_id}", encodeURIComponent(String(accountId))) + .replace("{resource_id}", encodeURIComponent(String(resourceId))); + // Make Request Context + const requestContext = _config + .getServer("v2.ConfluentCloudApi.getConfluentResource") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listConfluentAccount(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/integrations/confluent-cloud/accounts"; + // Make Request Context + const requestContext = _config + .getServer("v2.ConfluentCloudApi.listConfluentAccount") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listConfluentResource(accountId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'accountId' is not null or undefined + if (accountId === null || accountId === undefined) { + throw new baseapi_1.RequiredError("accountId", "listConfluentResource"); + } + // Path Params + const localVarPath = "/api/v2/integrations/confluent-cloud/accounts/{account_id}/resources".replace("{account_id}", encodeURIComponent(String(accountId))); + // Make Request Context + const requestContext = _config + .getServer("v2.ConfluentCloudApi.listConfluentResource") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateConfluentAccount(accountId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'accountId' is not null or undefined + if (accountId === null || accountId === undefined) { + throw new baseapi_1.RequiredError("accountId", "updateConfluentAccount"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateConfluentAccount"); + } + // Path Params + const localVarPath = "/api/v2/integrations/confluent-cloud/accounts/{account_id}".replace("{account_id}", encodeURIComponent(String(accountId))); + // Make Request Context + const requestContext = _config + .getServer("v2.ConfluentCloudApi.updateConfluentAccount") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ConfluentAccountUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateConfluentResource(accountId, resourceId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'accountId' is not null or undefined + if (accountId === null || accountId === undefined) { + throw new baseapi_1.RequiredError("accountId", "updateConfluentResource"); + } + // verify required parameter 'resourceId' is not null or undefined + if (resourceId === null || resourceId === undefined) { + throw new baseapi_1.RequiredError("resourceId", "updateConfluentResource"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateConfluentResource"); + } + // Path Params + const localVarPath = "/api/v2/integrations/confluent-cloud/accounts/{account_id}/resources/{resource_id}" + .replace("{account_id}", encodeURIComponent(String(accountId))) + .replace("{resource_id}", encodeURIComponent(String(resourceId))); + // Make Request Context + const requestContext = _config + .getServer("v2.ConfluentCloudApi.updateConfluentResource") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ConfluentResourceRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.ConfluentCloudApiRequestFactory = ConfluentCloudApiRequestFactory; +class ConfluentCloudApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createConfluentAccount + * @throws ApiException if the response code was not in [200, 299] + */ + createConfluentAccount(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ConfluentAccountResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ConfluentAccountResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createConfluentResource + * @throws ApiException if the response code was not in [200, 299] + */ + createConfluentResource(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ConfluentResourceResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ConfluentResourceResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteConfluentAccount + * @throws ApiException if the response code was not in [200, 299] + */ + deleteConfluentAccount(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteConfluentResource + * @throws ApiException if the response code was not in [200, 299] + */ + deleteConfluentResource(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getConfluentAccount + * @throws ApiException if the response code was not in [200, 299] + */ + getConfluentAccount(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ConfluentAccountResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ConfluentAccountResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getConfluentResource + * @throws ApiException if the response code was not in [200, 299] + */ + getConfluentResource(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ConfluentResourceResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ConfluentResourceResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listConfluentAccount + * @throws ApiException if the response code was not in [200, 299] + */ + listConfluentAccount(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ConfluentAccountsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ConfluentAccountsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listConfluentResource + * @throws ApiException if the response code was not in [200, 299] + */ + listConfluentResource(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ConfluentResourcesResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ConfluentResourcesResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateConfluentAccount + * @throws ApiException if the response code was not in [200, 299] + */ + updateConfluentAccount(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ConfluentAccountResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ConfluentAccountResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateConfluentResource + * @throws ApiException if the response code was not in [200, 299] + */ + updateConfluentResource(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ConfluentResourceResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ConfluentResourceResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.ConfluentCloudApiResponseProcessor = ConfluentCloudApiResponseProcessor; +class ConfluentCloudApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new ConfluentCloudApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new ConfluentCloudApiResponseProcessor(); + } + /** + * Create a Confluent account. + * @param param The request object + */ + createConfluentAccount(param, options) { + const requestContextPromise = this.requestFactory.createConfluentAccount(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createConfluentAccount(responseContext); + }); + }); + } + /** + * Create a Confluent resource for the account associated with the provided ID. + * @param param The request object + */ + createConfluentResource(param, options) { + const requestContextPromise = this.requestFactory.createConfluentResource(param.accountId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createConfluentResource(responseContext); + }); + }); + } + /** + * Delete a Confluent account with the provided account ID. + * @param param The request object + */ + deleteConfluentAccount(param, options) { + const requestContextPromise = this.requestFactory.deleteConfluentAccount(param.accountId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteConfluentAccount(responseContext); + }); + }); + } + /** + * Delete a Confluent resource with the provided resource id for the account associated with the provided account ID. + * @param param The request object + */ + deleteConfluentResource(param, options) { + const requestContextPromise = this.requestFactory.deleteConfluentResource(param.accountId, param.resourceId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteConfluentResource(responseContext); + }); + }); + } + /** + * Get the Confluent account with the provided account ID. + * @param param The request object + */ + getConfluentAccount(param, options) { + const requestContextPromise = this.requestFactory.getConfluentAccount(param.accountId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getConfluentAccount(responseContext); + }); + }); + } + /** + * Get a Confluent resource with the provided resource id for the account associated with the provided account ID. + * @param param The request object + */ + getConfluentResource(param, options) { + const requestContextPromise = this.requestFactory.getConfluentResource(param.accountId, param.resourceId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getConfluentResource(responseContext); + }); + }); + } + /** + * List Confluent accounts. + * @param param The request object + */ + listConfluentAccount(options) { + const requestContextPromise = this.requestFactory.listConfluentAccount(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listConfluentAccount(responseContext); + }); + }); + } + /** + * Get a Confluent resource for the account associated with the provided ID. + * @param param The request object + */ + listConfluentResource(param, options) { + const requestContextPromise = this.requestFactory.listConfluentResource(param.accountId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listConfluentResource(responseContext); + }); + }); + } + /** + * Update the Confluent account with the provided account ID. + * @param param The request object + */ + updateConfluentAccount(param, options) { + const requestContextPromise = this.requestFactory.updateConfluentAccount(param.accountId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateConfluentAccount(responseContext); + }); + }); + } + /** + * Update a Confluent resource with the provided resource id for the account associated with the provided account ID. + * @param param The request object + */ + updateConfluentResource(param, options) { + const requestContextPromise = this.requestFactory.updateConfluentResource(param.accountId, param.resourceId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateConfluentResource(responseContext); + }); + }); + } +} +exports.ConfluentCloudApi = ConfluentCloudApi; +//# sourceMappingURL=ConfluentCloudApi.js.map + +/***/ }), + +/***/ 10340: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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 __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ContainerImagesApi = exports.ContainerImagesApiResponseProcessor = exports.ContainerImagesApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class ContainerImagesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + listContainerImages(filterTags, groupBy, sort, pageSize, pageCursor, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/container_images"; + // Make Request Context + const requestContext = _config + .getServer("v2.ContainerImagesApi.listContainerImages") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (filterTags !== undefined) { + requestContext.setQueryParam("filter[tags]", ObjectSerializer_1.ObjectSerializer.serialize(filterTags, "string", ""), ""); + } + if (groupBy !== undefined) { + requestContext.setQueryParam("group_by", ObjectSerializer_1.ObjectSerializer.serialize(groupBy, "string", ""), ""); + } + if (sort !== undefined) { + requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "string", ""), ""); + } + if (pageSize !== undefined) { + requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int32"), ""); + } + if (pageCursor !== undefined) { + requestContext.setQueryParam("page[cursor]", ObjectSerializer_1.ObjectSerializer.serialize(pageCursor, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.ContainerImagesApiRequestFactory = ContainerImagesApiRequestFactory; +class ContainerImagesApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listContainerImages + * @throws ApiException if the response code was not in [200, 299] + */ + listContainerImages(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ContainerImagesResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ContainerImagesResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.ContainerImagesApiResponseProcessor = ContainerImagesApiResponseProcessor; +class ContainerImagesApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new ContainerImagesApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new ContainerImagesApiResponseProcessor(); + } + /** + * Get all Container Images for your organization. + * @param param The request object + */ + listContainerImages(param = {}, options) { + const requestContextPromise = this.requestFactory.listContainerImages(param.filterTags, param.groupBy, param.sort, param.pageSize, param.pageCursor, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listContainerImages(responseContext); + }); + }); + } + /** + * Provide a paginated version of listContainerImages returning a generator with all the items. + */ + listContainerImagesWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* listContainerImagesWithPagination_1() { + let pageSize = 1000; + if (param.pageSize !== undefined) { + pageSize = param.pageSize; + } + param.pageSize = pageSize; + while (true) { + const requestContext = yield __await(this.requestFactory.listContainerImages(param.filterTags, param.groupBy, param.sort, param.pageSize, param.pageCursor, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listContainerImages(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + const cursorMeta = response.meta; + if (cursorMeta === undefined) { + break; + } + const cursorMetaPagination = cursorMeta.pagination; + if (cursorMetaPagination === undefined) { + break; + } + const cursorMetaPaginationNextCursor = cursorMetaPagination.nextCursor; + if (cursorMetaPaginationNextCursor === undefined) { + break; + } + param.pageCursor = cursorMetaPaginationNextCursor; + } + }); + } +} +exports.ContainerImagesApi = ContainerImagesApi; +//# sourceMappingURL=ContainerImagesApi.js.map + +/***/ }), + +/***/ 51331: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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 __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ContainersApi = exports.ContainersApiResponseProcessor = exports.ContainersApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class ContainersApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + listContainers(filterTags, groupBy, sort, pageSize, pageCursor, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/containers"; + // Make Request Context + const requestContext = _config + .getServer("v2.ContainersApi.listContainers") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (filterTags !== undefined) { + requestContext.setQueryParam("filter[tags]", ObjectSerializer_1.ObjectSerializer.serialize(filterTags, "string", ""), ""); + } + if (groupBy !== undefined) { + requestContext.setQueryParam("group_by", ObjectSerializer_1.ObjectSerializer.serialize(groupBy, "string", ""), ""); + } + if (sort !== undefined) { + requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "string", ""), ""); + } + if (pageSize !== undefined) { + requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int32"), ""); + } + if (pageCursor !== undefined) { + requestContext.setQueryParam("page[cursor]", ObjectSerializer_1.ObjectSerializer.serialize(pageCursor, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.ContainersApiRequestFactory = ContainersApiRequestFactory; +class ContainersApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listContainers + * @throws ApiException if the response code was not in [200, 299] + */ + listContainers(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ContainersResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ContainersResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.ContainersApiResponseProcessor = ContainersApiResponseProcessor; +class ContainersApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new ContainersApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new ContainersApiResponseProcessor(); + } + /** + * Get all containers for your organization. + * @param param The request object + */ + listContainers(param = {}, options) { + const requestContextPromise = this.requestFactory.listContainers(param.filterTags, param.groupBy, param.sort, param.pageSize, param.pageCursor, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listContainers(responseContext); + }); + }); + } + /** + * Provide a paginated version of listContainers returning a generator with all the items. + */ + listContainersWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* listContainersWithPagination_1() { + let pageSize = 1000; + if (param.pageSize !== undefined) { + pageSize = param.pageSize; + } + param.pageSize = pageSize; + while (true) { + const requestContext = yield __await(this.requestFactory.listContainers(param.filterTags, param.groupBy, param.sort, param.pageSize, param.pageCursor, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listContainers(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + const cursorMeta = response.meta; + if (cursorMeta === undefined) { + break; + } + const cursorMetaPagination = cursorMeta.pagination; + if (cursorMetaPagination === undefined) { + break; + } + const cursorMetaPaginationNextCursor = cursorMetaPagination.nextCursor; + if (cursorMetaPaginationNextCursor === undefined) { + break; + } + param.pageCursor = cursorMetaPaginationNextCursor; + } + }); + } +} +exports.ContainersApi = ContainersApi; +//# sourceMappingURL=ContainersApi.js.map + +/***/ }), + +/***/ 29956: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.DORAMetricsApi = exports.DORAMetricsApiResponseProcessor = exports.DORAMetricsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class DORAMetricsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createDORADeployment(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'createDORADeployment'"); + if (!_config.unstableOperations["v2.createDORADeployment"]) { + throw new Error("Unstable operation 'createDORADeployment' is disabled"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createDORADeployment"); + } + // Path Params + const localVarPath = "/api/v2/dora/deployment"; + // Make Request Context + const requestContext = _config + .getServer("v2.DORAMetricsApi.createDORADeployment") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "DORADeploymentRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, ["apiKeyAuth"]); + return requestContext; + }); + } + createDORAIncident(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'createDORAIncident'"); + if (!_config.unstableOperations["v2.createDORAIncident"]) { + throw new Error("Unstable operation 'createDORAIncident' is disabled"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createDORAIncident"); + } + // Path Params + const localVarPath = "/api/v2/dora/incident"; + // Make Request Context + const requestContext = _config + .getServer("v2.DORAMetricsApi.createDORAIncident") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "DORAIncidentRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, ["apiKeyAuth"]); + return requestContext; + }); + } +} +exports.DORAMetricsApiRequestFactory = DORAMetricsApiRequestFactory; +class DORAMetricsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createDORADeployment + * @throws ApiException if the response code was not in [200, 299] + */ + createDORADeployment(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200 || response.httpStatusCode === 202) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DORADeploymentResponse"); + return body; + } + if (response.httpStatusCode === 400) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "JSONAPIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DORADeploymentResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createDORAIncident + * @throws ApiException if the response code was not in [200, 299] + */ + createDORAIncident(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200 || response.httpStatusCode === 202) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DORAIncidentResponse"); + return body; + } + if (response.httpStatusCode === 400) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "JSONAPIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DORAIncidentResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.DORAMetricsApiResponseProcessor = DORAMetricsApiResponseProcessor; +class DORAMetricsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new DORAMetricsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new DORAMetricsApiResponseProcessor(); + } + /** + * Use this API endpoint to provide data about deployments for DORA metrics. + * + * This is necessary for: + * - Deployment Frequency + * - Change Lead Time + * - Change Failure Rate + * @param param The request object + */ + createDORADeployment(param, options) { + const requestContextPromise = this.requestFactory.createDORADeployment(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createDORADeployment(responseContext); + }); + }); + } + /** + * Use this API endpoint to provide data about incidents for DORA metrics. + * + * This is necessary for: + * - Change Failure Rate + * - Time to Restore + * @param param The request object + */ + createDORAIncident(param, options) { + const requestContextPromise = this.requestFactory.createDORAIncident(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createDORAIncident(responseContext); + }); + }); + } +} +exports.DORAMetricsApi = DORAMetricsApi; +//# sourceMappingURL=DORAMetricsApi.js.map + +/***/ }), + +/***/ 29364: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.DashboardListsApi = exports.DashboardListsApiResponseProcessor = exports.DashboardListsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class DashboardListsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createDashboardListItems(dashboardListId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'dashboardListId' is not null or undefined + if (dashboardListId === null || dashboardListId === undefined) { + throw new baseapi_1.RequiredError("dashboardListId", "createDashboardListItems"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createDashboardListItems"); + } + // Path Params + const localVarPath = "/api/v2/dashboard/lists/manual/{dashboard_list_id}/dashboards".replace("{dashboard_list_id}", encodeURIComponent(String(dashboardListId))); + // Make Request Context + const requestContext = _config + .getServer("v2.DashboardListsApi.createDashboardListItems") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "DashboardListAddItemsRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteDashboardListItems(dashboardListId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'dashboardListId' is not null or undefined + if (dashboardListId === null || dashboardListId === undefined) { + throw new baseapi_1.RequiredError("dashboardListId", "deleteDashboardListItems"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "deleteDashboardListItems"); + } + // Path Params + const localVarPath = "/api/v2/dashboard/lists/manual/{dashboard_list_id}/dashboards".replace("{dashboard_list_id}", encodeURIComponent(String(dashboardListId))); + // Make Request Context + const requestContext = _config + .getServer("v2.DashboardListsApi.deleteDashboardListItems") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "DashboardListDeleteItemsRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getDashboardListItems(dashboardListId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'dashboardListId' is not null or undefined + if (dashboardListId === null || dashboardListId === undefined) { + throw new baseapi_1.RequiredError("dashboardListId", "getDashboardListItems"); + } + // Path Params + const localVarPath = "/api/v2/dashboard/lists/manual/{dashboard_list_id}/dashboards".replace("{dashboard_list_id}", encodeURIComponent(String(dashboardListId))); + // Make Request Context + const requestContext = _config + .getServer("v2.DashboardListsApi.getDashboardListItems") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateDashboardListItems(dashboardListId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'dashboardListId' is not null or undefined + if (dashboardListId === null || dashboardListId === undefined) { + throw new baseapi_1.RequiredError("dashboardListId", "updateDashboardListItems"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateDashboardListItems"); + } + // Path Params + const localVarPath = "/api/v2/dashboard/lists/manual/{dashboard_list_id}/dashboards".replace("{dashboard_list_id}", encodeURIComponent(String(dashboardListId))); + // Make Request Context + const requestContext = _config + .getServer("v2.DashboardListsApi.updateDashboardListItems") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "DashboardListUpdateItemsRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.DashboardListsApiRequestFactory = DashboardListsApiRequestFactory; +class DashboardListsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createDashboardListItems + * @throws ApiException if the response code was not in [200, 299] + */ + createDashboardListItems(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DashboardListAddItemsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DashboardListAddItemsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteDashboardListItems + * @throws ApiException if the response code was not in [200, 299] + */ + deleteDashboardListItems(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DashboardListDeleteItemsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DashboardListDeleteItemsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getDashboardListItems + * @throws ApiException if the response code was not in [200, 299] + */ + getDashboardListItems(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DashboardListItems"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DashboardListItems", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateDashboardListItems + * @throws ApiException if the response code was not in [200, 299] + */ + updateDashboardListItems(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DashboardListUpdateItemsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DashboardListUpdateItemsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.DashboardListsApiResponseProcessor = DashboardListsApiResponseProcessor; +class DashboardListsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new DashboardListsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new DashboardListsApiResponseProcessor(); + } + /** + * Add dashboards to an existing dashboard list. + * @param param The request object + */ + createDashboardListItems(param, options) { + const requestContextPromise = this.requestFactory.createDashboardListItems(param.dashboardListId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createDashboardListItems(responseContext); + }); + }); + } + /** + * Delete dashboards from an existing dashboard list. + * @param param The request object + */ + deleteDashboardListItems(param, options) { + const requestContextPromise = this.requestFactory.deleteDashboardListItems(param.dashboardListId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteDashboardListItems(responseContext); + }); + }); + } + /** + * Fetch the dashboard list’s dashboard definitions. + * @param param The request object + */ + getDashboardListItems(param, options) { + const requestContextPromise = this.requestFactory.getDashboardListItems(param.dashboardListId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getDashboardListItems(responseContext); + }); + }); + } + /** + * Update dashboards of an existing dashboard list. + * @param param The request object + */ + updateDashboardListItems(param, options) { + const requestContextPromise = this.requestFactory.updateDashboardListItems(param.dashboardListId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateDashboardListItems(responseContext); + }); + }); + } +} +exports.DashboardListsApi = DashboardListsApi; +//# sourceMappingURL=DashboardListsApi.js.map + +/***/ }), + +/***/ 36169: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.DataDeletionApi = exports.DataDeletionApiResponseProcessor = exports.DataDeletionApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class DataDeletionApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + cancelDataDeletionRequest(id, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'cancelDataDeletionRequest'"); + if (!_config.unstableOperations["v2.cancelDataDeletionRequest"]) { + throw new Error("Unstable operation 'cancelDataDeletionRequest' is disabled"); + } + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new baseapi_1.RequiredError("id", "cancelDataDeletionRequest"); + } + // Path Params + const localVarPath = "/api/v2/deletion/requests/{id}/cancel".replace("{id}", encodeURIComponent(String(id))); + // Make Request Context + const requestContext = _config + .getServer("v2.DataDeletionApi.cancelDataDeletionRequest") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createDataDeletionRequest(product, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'createDataDeletionRequest'"); + if (!_config.unstableOperations["v2.createDataDeletionRequest"]) { + throw new Error("Unstable operation 'createDataDeletionRequest' is disabled"); + } + // verify required parameter 'product' is not null or undefined + if (product === null || product === undefined) { + throw new baseapi_1.RequiredError("product", "createDataDeletionRequest"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createDataDeletionRequest"); + } + // Path Params + const localVarPath = "/api/v2/deletion/data/{product}".replace("{product}", encodeURIComponent(String(product))); + // Make Request Context + const requestContext = _config + .getServer("v2.DataDeletionApi.createDataDeletionRequest") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "CreateDataDeletionRequestBody", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getDataDeletionRequests(nextPage, product, query, status, pageSize, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'getDataDeletionRequests'"); + if (!_config.unstableOperations["v2.getDataDeletionRequests"]) { + throw new Error("Unstable operation 'getDataDeletionRequests' is disabled"); + } + // Path Params + const localVarPath = "/api/v2/deletion/requests"; + // Make Request Context + const requestContext = _config + .getServer("v2.DataDeletionApi.getDataDeletionRequests") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (nextPage !== undefined) { + requestContext.setQueryParam("next_page", ObjectSerializer_1.ObjectSerializer.serialize(nextPage, "string", ""), ""); + } + if (product !== undefined) { + requestContext.setQueryParam("product", ObjectSerializer_1.ObjectSerializer.serialize(product, "string", ""), ""); + } + if (query !== undefined) { + requestContext.setQueryParam("query", ObjectSerializer_1.ObjectSerializer.serialize(query, "string", ""), ""); + } + if (status !== undefined) { + requestContext.setQueryParam("status", ObjectSerializer_1.ObjectSerializer.serialize(status, "string", ""), ""); + } + if (pageSize !== undefined) { + requestContext.setQueryParam("page_size", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.DataDeletionApiRequestFactory = DataDeletionApiRequestFactory; +class DataDeletionApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to cancelDataDeletionRequest + * @throws ApiException if the response code was not in [200, 299] + */ + cancelDataDeletionRequest(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CancelDataDeletionResponseBody"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 412 || + response.httpStatusCode === 429 || + response.httpStatusCode === 500) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CancelDataDeletionResponseBody", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createDataDeletionRequest + * @throws ApiException if the response code was not in [200, 299] + */ + createDataDeletionRequest(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CreateDataDeletionResponseBody"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 412 || + response.httpStatusCode === 429 || + response.httpStatusCode === 500) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CreateDataDeletionResponseBody", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getDataDeletionRequests + * @throws ApiException if the response code was not in [200, 299] + */ + getDataDeletionRequests(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GetDataDeletionsResponseBody"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429 || + response.httpStatusCode === 500) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GetDataDeletionsResponseBody", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.DataDeletionApiResponseProcessor = DataDeletionApiResponseProcessor; +class DataDeletionApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new DataDeletionApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new DataDeletionApiResponseProcessor(); + } + /** + * Cancels a data deletion request by providing its ID. + * @param param The request object + */ + cancelDataDeletionRequest(param, options) { + const requestContextPromise = this.requestFactory.cancelDataDeletionRequest(param.id, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.cancelDataDeletionRequest(responseContext); + }); + }); + } + /** + * Creates a data deletion request by providing a query and a timeframe targeting the proper data. + * @param param The request object + */ + createDataDeletionRequest(param, options) { + const requestContextPromise = this.requestFactory.createDataDeletionRequest(param.product, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createDataDeletionRequest(responseContext); + }); + }); + } + /** + * Gets a list of data deletion requests based on several filter parameters. + * @param param The request object + */ + getDataDeletionRequests(param = {}, options) { + const requestContextPromise = this.requestFactory.getDataDeletionRequests(param.nextPage, param.product, param.query, param.status, param.pageSize, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getDataDeletionRequests(responseContext); + }); + }); + } +} +exports.DataDeletionApi = DataDeletionApi; +//# sourceMappingURL=DataDeletionApi.js.map + +/***/ }), + +/***/ 85168: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.DomainAllowlistApi = exports.DomainAllowlistApiResponseProcessor = exports.DomainAllowlistApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class DomainAllowlistApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + getDomainAllowlist(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/domain_allowlist"; + // Make Request Context + const requestContext = _config + .getServer("v2.DomainAllowlistApi.getDomainAllowlist") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + patchDomainAllowlist(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "patchDomainAllowlist"); + } + // Path Params + const localVarPath = "/api/v2/domain_allowlist"; + // Make Request Context + const requestContext = _config + .getServer("v2.DomainAllowlistApi.patchDomainAllowlist") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "DomainAllowlistRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.DomainAllowlistApiRequestFactory = DomainAllowlistApiRequestFactory; +class DomainAllowlistApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getDomainAllowlist + * @throws ApiException if the response code was not in [200, 299] + */ + getDomainAllowlist(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DomainAllowlistResponse"); + return body; + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DomainAllowlistResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchDomainAllowlist + * @throws ApiException if the response code was not in [200, 299] + */ + patchDomainAllowlist(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DomainAllowlistResponse"); + return body; + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DomainAllowlistResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.DomainAllowlistApiResponseProcessor = DomainAllowlistApiResponseProcessor; +class DomainAllowlistApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new DomainAllowlistApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new DomainAllowlistApiResponseProcessor(); + } + /** + * Get the domain allowlist for an organization. + * @param param The request object + */ + getDomainAllowlist(options) { + const requestContextPromise = this.requestFactory.getDomainAllowlist(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getDomainAllowlist(responseContext); + }); + }); + } + /** + * Update the domain allowlist for an organization. + * @param param The request object + */ + patchDomainAllowlist(param, options) { + const requestContextPromise = this.requestFactory.patchDomainAllowlist(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.patchDomainAllowlist(responseContext); + }); + }); + } +} +exports.DomainAllowlistApi = DomainAllowlistApi; +//# sourceMappingURL=DomainAllowlistApi.js.map + +/***/ }), + +/***/ 89369: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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 __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DowntimesApi = exports.DowntimesApiResponseProcessor = exports.DowntimesApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class DowntimesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + cancelDowntime(downtimeId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'downtimeId' is not null or undefined + if (downtimeId === null || downtimeId === undefined) { + throw new baseapi_1.RequiredError("downtimeId", "cancelDowntime"); + } + // Path Params + const localVarPath = "/api/v2/downtime/{downtime_id}".replace("{downtime_id}", encodeURIComponent(String(downtimeId))); + // Make Request Context + const requestContext = _config + .getServer("v2.DowntimesApi.cancelDowntime") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createDowntime(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createDowntime"); + } + // Path Params + const localVarPath = "/api/v2/downtime"; + // Make Request Context + const requestContext = _config + .getServer("v2.DowntimesApi.createDowntime") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "DowntimeCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getDowntime(downtimeId, include, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'downtimeId' is not null or undefined + if (downtimeId === null || downtimeId === undefined) { + throw new baseapi_1.RequiredError("downtimeId", "getDowntime"); + } + // Path Params + const localVarPath = "/api/v2/downtime/{downtime_id}".replace("{downtime_id}", encodeURIComponent(String(downtimeId))); + // Make Request Context + const requestContext = _config + .getServer("v2.DowntimesApi.getDowntime") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (include !== undefined) { + requestContext.setQueryParam("include", ObjectSerializer_1.ObjectSerializer.serialize(include, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listDowntimes(currentOnly, include, pageOffset, pageLimit, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/downtime"; + // Make Request Context + const requestContext = _config + .getServer("v2.DowntimesApi.listDowntimes") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (currentOnly !== undefined) { + requestContext.setQueryParam("current_only", ObjectSerializer_1.ObjectSerializer.serialize(currentOnly, "boolean", ""), ""); + } + if (include !== undefined) { + requestContext.setQueryParam("include", ObjectSerializer_1.ObjectSerializer.serialize(include, "string", ""), ""); + } + if (pageOffset !== undefined) { + requestContext.setQueryParam("page[offset]", ObjectSerializer_1.ObjectSerializer.serialize(pageOffset, "number", "int64"), ""); + } + if (pageLimit !== undefined) { + requestContext.setQueryParam("page[limit]", ObjectSerializer_1.ObjectSerializer.serialize(pageLimit, "number", "int64"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listMonitorDowntimes(monitorId, pageOffset, pageLimit, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'monitorId' is not null or undefined + if (monitorId === null || monitorId === undefined) { + throw new baseapi_1.RequiredError("monitorId", "listMonitorDowntimes"); + } + // Path Params + const localVarPath = "/api/v2/monitor/{monitor_id}/downtime_matches".replace("{monitor_id}", encodeURIComponent(String(monitorId))); + // Make Request Context + const requestContext = _config + .getServer("v2.DowntimesApi.listMonitorDowntimes") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (pageOffset !== undefined) { + requestContext.setQueryParam("page[offset]", ObjectSerializer_1.ObjectSerializer.serialize(pageOffset, "number", "int64"), ""); + } + if (pageLimit !== undefined) { + requestContext.setQueryParam("page[limit]", ObjectSerializer_1.ObjectSerializer.serialize(pageLimit, "number", "int64"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateDowntime(downtimeId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'downtimeId' is not null or undefined + if (downtimeId === null || downtimeId === undefined) { + throw new baseapi_1.RequiredError("downtimeId", "updateDowntime"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateDowntime"); + } + // Path Params + const localVarPath = "/api/v2/downtime/{downtime_id}".replace("{downtime_id}", encodeURIComponent(String(downtimeId))); + // Make Request Context + const requestContext = _config + .getServer("v2.DowntimesApi.updateDowntime") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "DowntimeUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.DowntimesApiRequestFactory = DowntimesApiRequestFactory; +class DowntimesApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to cancelDowntime + * @throws ApiException if the response code was not in [200, 299] + */ + cancelDowntime(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createDowntime + * @throws ApiException if the response code was not in [200, 299] + */ + createDowntime(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DowntimeResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DowntimeResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getDowntime + * @throws ApiException if the response code was not in [200, 299] + */ + getDowntime(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DowntimeResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DowntimeResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listDowntimes + * @throws ApiException if the response code was not in [200, 299] + */ + listDowntimes(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListDowntimesResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListDowntimesResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listMonitorDowntimes + * @throws ApiException if the response code was not in [200, 299] + */ + listMonitorDowntimes(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonitorDowntimeMatchResponse"); + return body; + } + if (response.httpStatusCode === 404 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonitorDowntimeMatchResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateDowntime + * @throws ApiException if the response code was not in [200, 299] + */ + updateDowntime(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DowntimeResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DowntimeResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.DowntimesApiResponseProcessor = DowntimesApiResponseProcessor; +class DowntimesApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new DowntimesApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new DowntimesApiResponseProcessor(); + } + /** + * Cancel a downtime. + * @param param The request object + */ + cancelDowntime(param, options) { + const requestContextPromise = this.requestFactory.cancelDowntime(param.downtimeId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.cancelDowntime(responseContext); + }); + }); + } + /** + * Schedule a downtime. + * @param param The request object + */ + createDowntime(param, options) { + const requestContextPromise = this.requestFactory.createDowntime(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createDowntime(responseContext); + }); + }); + } + /** + * Get downtime detail by `downtime_id`. + * @param param The request object + */ + getDowntime(param, options) { + const requestContextPromise = this.requestFactory.getDowntime(param.downtimeId, param.include, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getDowntime(responseContext); + }); + }); + } + /** + * Get all scheduled downtimes. + * @param param The request object + */ + listDowntimes(param = {}, options) { + const requestContextPromise = this.requestFactory.listDowntimes(param.currentOnly, param.include, param.pageOffset, param.pageLimit, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listDowntimes(responseContext); + }); + }); + } + /** + * Provide a paginated version of listDowntimes returning a generator with all the items. + */ + listDowntimesWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* listDowntimesWithPagination_1() { + let pageSize = 30; + if (param.pageLimit !== undefined) { + pageSize = param.pageLimit; + } + param.pageLimit = pageSize; + while (true) { + const requestContext = yield __await(this.requestFactory.listDowntimes(param.currentOnly, param.include, param.pageOffset, param.pageLimit, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listDowntimes(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + if (param.pageOffset === undefined) { + param.pageOffset = pageSize; + } + else { + param.pageOffset = param.pageOffset + pageSize; + } + } + }); + } + /** + * Get all active downtimes for the specified monitor. + * @param param The request object + */ + listMonitorDowntimes(param, options) { + const requestContextPromise = this.requestFactory.listMonitorDowntimes(param.monitorId, param.pageOffset, param.pageLimit, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listMonitorDowntimes(responseContext); + }); + }); + } + /** + * Provide a paginated version of listMonitorDowntimes returning a generator with all the items. + */ + listMonitorDowntimesWithPagination(param, options) { + return __asyncGenerator(this, arguments, function* listMonitorDowntimesWithPagination_1() { + let pageSize = 30; + if (param.pageLimit !== undefined) { + pageSize = param.pageLimit; + } + param.pageLimit = pageSize; + while (true) { + const requestContext = yield __await(this.requestFactory.listMonitorDowntimes(param.monitorId, param.pageOffset, param.pageLimit, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listMonitorDowntimes(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + if (param.pageOffset === undefined) { + param.pageOffset = pageSize; + } + else { + param.pageOffset = param.pageOffset + pageSize; + } + } + }); + } + /** + * Update a downtime by `downtime_id`. + * @param param The request object + */ + updateDowntime(param, options) { + const requestContextPromise = this.requestFactory.updateDowntime(param.downtimeId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateDowntime(responseContext); + }); + }); + } +} +exports.DowntimesApi = DowntimesApi; +//# sourceMappingURL=DowntimesApi.js.map + +/***/ }), + +/***/ 71832: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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 __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.EventsApi = exports.EventsApiResponseProcessor = exports.EventsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +const EventsListRequest_1 = __nccwpck_require__(67738); +const EventsRequestPage_1 = __nccwpck_require__(31210); +class EventsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createEvent(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createEvent"); + } + // Path Params + const localVarPath = "/api/v2/events"; + // Make Request Context + const requestContext = _config + .getServer("v2.EventsApi.createEvent") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "EventCreateRequestPayload", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listEvents(filterQuery, filterFrom, filterTo, sort, pageCursor, pageLimit, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/events"; + // Make Request Context + const requestContext = _config + .getServer("v2.EventsApi.listEvents") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (filterQuery !== undefined) { + requestContext.setQueryParam("filter[query]", ObjectSerializer_1.ObjectSerializer.serialize(filterQuery, "string", ""), ""); + } + if (filterFrom !== undefined) { + requestContext.setQueryParam("filter[from]", ObjectSerializer_1.ObjectSerializer.serialize(filterFrom, "string", ""), ""); + } + if (filterTo !== undefined) { + requestContext.setQueryParam("filter[to]", ObjectSerializer_1.ObjectSerializer.serialize(filterTo, "string", ""), ""); + } + if (sort !== undefined) { + requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "EventsSort", ""), ""); + } + if (pageCursor !== undefined) { + requestContext.setQueryParam("page[cursor]", ObjectSerializer_1.ObjectSerializer.serialize(pageCursor, "string", ""), ""); + } + if (pageLimit !== undefined) { + requestContext.setQueryParam("page[limit]", ObjectSerializer_1.ObjectSerializer.serialize(pageLimit, "number", "int32"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + searchEvents(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/events/search"; + // Make Request Context + const requestContext = _config + .getServer("v2.EventsApi.searchEvents") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "EventsListRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.EventsApiRequestFactory = EventsApiRequestFactory; +class EventsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createEvent + * @throws ApiException if the response code was not in [200, 299] + */ + createEvent(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "EventCreateResponsePayload"); + return body; + } + if (response.httpStatusCode === 400 || response.httpStatusCode === 403) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "JSONAPIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "EventCreateResponsePayload", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listEvents + * @throws ApiException if the response code was not in [200, 299] + */ + listEvents(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "EventsListResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "EventsListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to searchEvents + * @throws ApiException if the response code was not in [200, 299] + */ + searchEvents(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "EventsListResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "EventsListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.EventsApiResponseProcessor = EventsApiResponseProcessor; +class EventsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new EventsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new EventsApiResponseProcessor(); + } + /** + * This endpoint allows you to post events. + * + * ✅ **Only events with the `change` category** are in General Availability. See [Change Tracking](https://docs.datadoghq.com/change_tracking) for more details. + * + * ❌ For use cases involving other event categories, please use the V1 endpoint. + * @param param The request object + */ + createEvent(param, options) { + const requestContextPromise = this.requestFactory.createEvent(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createEvent(responseContext); + }); + }); + } + /** + * List endpoint returns events that match an events search query. + * [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination). + * + * Use this endpoint to see your latest events. + * @param param The request object + */ + listEvents(param = {}, options) { + const requestContextPromise = this.requestFactory.listEvents(param.filterQuery, param.filterFrom, param.filterTo, param.sort, param.pageCursor, param.pageLimit, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listEvents(responseContext); + }); + }); + } + /** + * Provide a paginated version of listEvents returning a generator with all the items. + */ + listEventsWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* listEventsWithPagination_1() { + let pageSize = 10; + if (param.pageLimit !== undefined) { + pageSize = param.pageLimit; + } + param.pageLimit = pageSize; + while (true) { + const requestContext = yield __await(this.requestFactory.listEvents(param.filterQuery, param.filterFrom, param.filterTo, param.sort, param.pageCursor, param.pageLimit, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listEvents(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + const cursorMeta = response.meta; + if (cursorMeta === undefined) { + break; + } + const cursorMetaPage = cursorMeta.page; + if (cursorMetaPage === undefined) { + break; + } + const cursorMetaPageAfter = cursorMetaPage.after; + if (cursorMetaPageAfter === undefined) { + break; + } + param.pageCursor = cursorMetaPageAfter; + } + }); + } + /** + * List endpoint returns events that match an events search query. + * [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination). + * + * Use this endpoint to build complex events filtering and search. + * @param param The request object + */ + searchEvents(param = {}, options) { + const requestContextPromise = this.requestFactory.searchEvents(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.searchEvents(responseContext); + }); + }); + } + /** + * Provide a paginated version of searchEvents returning a generator with all the items. + */ + searchEventsWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* searchEventsWithPagination_1() { + let pageSize = 10; + if (param.body === undefined) { + param.body = new EventsListRequest_1.EventsListRequest(); + } + if (param.body.page === undefined) { + param.body.page = new EventsRequestPage_1.EventsRequestPage(); + } + if (param.body.page.limit !== undefined) { + pageSize = param.body.page.limit; + } + param.body.page.limit = pageSize; + while (true) { + const requestContext = yield __await(this.requestFactory.searchEvents(param.body, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.searchEvents(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + const cursorMeta = response.meta; + if (cursorMeta === undefined) { + break; + } + const cursorMetaPage = cursorMeta.page; + if (cursorMetaPage === undefined) { + break; + } + const cursorMetaPageAfter = cursorMetaPage.after; + if (cursorMetaPageAfter === undefined) { + break; + } + param.body.page.cursor = cursorMetaPageAfter; + } + }); + } +} +exports.EventsApi = EventsApi; +//# sourceMappingURL=EventsApi.js.map + +/***/ }), + +/***/ 48156: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.FastlyIntegrationApi = exports.FastlyIntegrationApiResponseProcessor = exports.FastlyIntegrationApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class FastlyIntegrationApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createFastlyAccount(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createFastlyAccount"); + } + // Path Params + const localVarPath = "/api/v2/integrations/fastly/accounts"; + // Make Request Context + const requestContext = _config + .getServer("v2.FastlyIntegrationApi.createFastlyAccount") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "FastlyAccountCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createFastlyService(accountId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'accountId' is not null or undefined + if (accountId === null || accountId === undefined) { + throw new baseapi_1.RequiredError("accountId", "createFastlyService"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createFastlyService"); + } + // Path Params + const localVarPath = "/api/v2/integrations/fastly/accounts/{account_id}/services".replace("{account_id}", encodeURIComponent(String(accountId))); + // Make Request Context + const requestContext = _config + .getServer("v2.FastlyIntegrationApi.createFastlyService") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "FastlyServiceRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteFastlyAccount(accountId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'accountId' is not null or undefined + if (accountId === null || accountId === undefined) { + throw new baseapi_1.RequiredError("accountId", "deleteFastlyAccount"); + } + // Path Params + const localVarPath = "/api/v2/integrations/fastly/accounts/{account_id}".replace("{account_id}", encodeURIComponent(String(accountId))); + // Make Request Context + const requestContext = _config + .getServer("v2.FastlyIntegrationApi.deleteFastlyAccount") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteFastlyService(accountId, serviceId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'accountId' is not null or undefined + if (accountId === null || accountId === undefined) { + throw new baseapi_1.RequiredError("accountId", "deleteFastlyService"); + } + // verify required parameter 'serviceId' is not null or undefined + if (serviceId === null || serviceId === undefined) { + throw new baseapi_1.RequiredError("serviceId", "deleteFastlyService"); + } + // Path Params + const localVarPath = "/api/v2/integrations/fastly/accounts/{account_id}/services/{service_id}" + .replace("{account_id}", encodeURIComponent(String(accountId))) + .replace("{service_id}", encodeURIComponent(String(serviceId))); + // Make Request Context + const requestContext = _config + .getServer("v2.FastlyIntegrationApi.deleteFastlyService") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getFastlyAccount(accountId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'accountId' is not null or undefined + if (accountId === null || accountId === undefined) { + throw new baseapi_1.RequiredError("accountId", "getFastlyAccount"); + } + // Path Params + const localVarPath = "/api/v2/integrations/fastly/accounts/{account_id}".replace("{account_id}", encodeURIComponent(String(accountId))); + // Make Request Context + const requestContext = _config + .getServer("v2.FastlyIntegrationApi.getFastlyAccount") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getFastlyService(accountId, serviceId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'accountId' is not null or undefined + if (accountId === null || accountId === undefined) { + throw new baseapi_1.RequiredError("accountId", "getFastlyService"); + } + // verify required parameter 'serviceId' is not null or undefined + if (serviceId === null || serviceId === undefined) { + throw new baseapi_1.RequiredError("serviceId", "getFastlyService"); + } + // Path Params + const localVarPath = "/api/v2/integrations/fastly/accounts/{account_id}/services/{service_id}" + .replace("{account_id}", encodeURIComponent(String(accountId))) + .replace("{service_id}", encodeURIComponent(String(serviceId))); + // Make Request Context + const requestContext = _config + .getServer("v2.FastlyIntegrationApi.getFastlyService") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listFastlyAccounts(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/integrations/fastly/accounts"; + // Make Request Context + const requestContext = _config + .getServer("v2.FastlyIntegrationApi.listFastlyAccounts") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listFastlyServices(accountId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'accountId' is not null or undefined + if (accountId === null || accountId === undefined) { + throw new baseapi_1.RequiredError("accountId", "listFastlyServices"); + } + // Path Params + const localVarPath = "/api/v2/integrations/fastly/accounts/{account_id}/services".replace("{account_id}", encodeURIComponent(String(accountId))); + // Make Request Context + const requestContext = _config + .getServer("v2.FastlyIntegrationApi.listFastlyServices") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateFastlyAccount(accountId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'accountId' is not null or undefined + if (accountId === null || accountId === undefined) { + throw new baseapi_1.RequiredError("accountId", "updateFastlyAccount"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateFastlyAccount"); + } + // Path Params + const localVarPath = "/api/v2/integrations/fastly/accounts/{account_id}".replace("{account_id}", encodeURIComponent(String(accountId))); + // Make Request Context + const requestContext = _config + .getServer("v2.FastlyIntegrationApi.updateFastlyAccount") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "FastlyAccountUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateFastlyService(accountId, serviceId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'accountId' is not null or undefined + if (accountId === null || accountId === undefined) { + throw new baseapi_1.RequiredError("accountId", "updateFastlyService"); + } + // verify required parameter 'serviceId' is not null or undefined + if (serviceId === null || serviceId === undefined) { + throw new baseapi_1.RequiredError("serviceId", "updateFastlyService"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateFastlyService"); + } + // Path Params + const localVarPath = "/api/v2/integrations/fastly/accounts/{account_id}/services/{service_id}" + .replace("{account_id}", encodeURIComponent(String(accountId))) + .replace("{service_id}", encodeURIComponent(String(serviceId))); + // Make Request Context + const requestContext = _config + .getServer("v2.FastlyIntegrationApi.updateFastlyService") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "FastlyServiceRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.FastlyIntegrationApiRequestFactory = FastlyIntegrationApiRequestFactory; +class FastlyIntegrationApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createFastlyAccount + * @throws ApiException if the response code was not in [200, 299] + */ + createFastlyAccount(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyAccountResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyAccountResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createFastlyService + * @throws ApiException if the response code was not in [200, 299] + */ + createFastlyService(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyServiceResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyServiceResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteFastlyAccount + * @throws ApiException if the response code was not in [200, 299] + */ + deleteFastlyAccount(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteFastlyService + * @throws ApiException if the response code was not in [200, 299] + */ + deleteFastlyService(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getFastlyAccount + * @throws ApiException if the response code was not in [200, 299] + */ + getFastlyAccount(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyAccountResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyAccountResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getFastlyService + * @throws ApiException if the response code was not in [200, 299] + */ + getFastlyService(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyServiceResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyServiceResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listFastlyAccounts + * @throws ApiException if the response code was not in [200, 299] + */ + listFastlyAccounts(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyAccountsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyAccountsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listFastlyServices + * @throws ApiException if the response code was not in [200, 299] + */ + listFastlyServices(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyServicesResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyServicesResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateFastlyAccount + * @throws ApiException if the response code was not in [200, 299] + */ + updateFastlyAccount(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyAccountResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyAccountResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateFastlyService + * @throws ApiException if the response code was not in [200, 299] + */ + updateFastlyService(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyServiceResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyServiceResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.FastlyIntegrationApiResponseProcessor = FastlyIntegrationApiResponseProcessor; +class FastlyIntegrationApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new FastlyIntegrationApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new FastlyIntegrationApiResponseProcessor(); + } + /** + * Create a Fastly account. + * @param param The request object + */ + createFastlyAccount(param, options) { + const requestContextPromise = this.requestFactory.createFastlyAccount(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createFastlyAccount(responseContext); + }); + }); + } + /** + * Create a Fastly service for an account. + * @param param The request object + */ + createFastlyService(param, options) { + const requestContextPromise = this.requestFactory.createFastlyService(param.accountId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createFastlyService(responseContext); + }); + }); + } + /** + * Delete a Fastly account. + * @param param The request object + */ + deleteFastlyAccount(param, options) { + const requestContextPromise = this.requestFactory.deleteFastlyAccount(param.accountId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteFastlyAccount(responseContext); + }); + }); + } + /** + * Delete a Fastly service for an account. + * @param param The request object + */ + deleteFastlyService(param, options) { + const requestContextPromise = this.requestFactory.deleteFastlyService(param.accountId, param.serviceId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteFastlyService(responseContext); + }); + }); + } + /** + * Get a Fastly account. + * @param param The request object + */ + getFastlyAccount(param, options) { + const requestContextPromise = this.requestFactory.getFastlyAccount(param.accountId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getFastlyAccount(responseContext); + }); + }); + } + /** + * Get a Fastly service for an account. + * @param param The request object + */ + getFastlyService(param, options) { + const requestContextPromise = this.requestFactory.getFastlyService(param.accountId, param.serviceId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getFastlyService(responseContext); + }); + }); + } + /** + * List Fastly accounts. + * @param param The request object + */ + listFastlyAccounts(options) { + const requestContextPromise = this.requestFactory.listFastlyAccounts(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listFastlyAccounts(responseContext); + }); + }); + } + /** + * List Fastly services for an account. + * @param param The request object + */ + listFastlyServices(param, options) { + const requestContextPromise = this.requestFactory.listFastlyServices(param.accountId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listFastlyServices(responseContext); + }); + }); + } + /** + * Update a Fastly account. + * @param param The request object + */ + updateFastlyAccount(param, options) { + const requestContextPromise = this.requestFactory.updateFastlyAccount(param.accountId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateFastlyAccount(responseContext); + }); + }); + } + /** + * Update a Fastly service for an account. + * @param param The request object + */ + updateFastlyService(param, options) { + const requestContextPromise = this.requestFactory.updateFastlyService(param.accountId, param.serviceId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateFastlyService(responseContext); + }); + }); + } +} +exports.FastlyIntegrationApi = FastlyIntegrationApi; +//# sourceMappingURL=FastlyIntegrationApi.js.map + +/***/ }), + +/***/ 75367: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.GCPIntegrationApi = exports.GCPIntegrationApiResponseProcessor = exports.GCPIntegrationApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class GCPIntegrationApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createGCPSTSAccount(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createGCPSTSAccount"); + } + // Path Params + const localVarPath = "/api/v2/integration/gcp/accounts"; + // Make Request Context + const requestContext = _config + .getServer("v2.GCPIntegrationApi.createGCPSTSAccount") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "GCPSTSServiceAccountCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteGCPSTSAccount(accountId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'accountId' is not null or undefined + if (accountId === null || accountId === undefined) { + throw new baseapi_1.RequiredError("accountId", "deleteGCPSTSAccount"); + } + // Path Params + const localVarPath = "/api/v2/integration/gcp/accounts/{account_id}".replace("{account_id}", encodeURIComponent(String(accountId))); + // Make Request Context + const requestContext = _config + .getServer("v2.GCPIntegrationApi.deleteGCPSTSAccount") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getGCPSTSDelegate(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/integration/gcp/sts_delegate"; + // Make Request Context + const requestContext = _config + .getServer("v2.GCPIntegrationApi.getGCPSTSDelegate") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listGCPSTSAccounts(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/integration/gcp/accounts"; + // Make Request Context + const requestContext = _config + .getServer("v2.GCPIntegrationApi.listGCPSTSAccounts") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + makeGCPSTSDelegate(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/integration/gcp/sts_delegate"; + // Make Request Context + const requestContext = _config + .getServer("v2.GCPIntegrationApi.makeGCPSTSDelegate") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "any", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateGCPSTSAccount(accountId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'accountId' is not null or undefined + if (accountId === null || accountId === undefined) { + throw new baseapi_1.RequiredError("accountId", "updateGCPSTSAccount"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateGCPSTSAccount"); + } + // Path Params + const localVarPath = "/api/v2/integration/gcp/accounts/{account_id}".replace("{account_id}", encodeURIComponent(String(accountId))); + // Make Request Context + const requestContext = _config + .getServer("v2.GCPIntegrationApi.updateGCPSTSAccount") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "GCPSTSServiceAccountUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.GCPIntegrationApiRequestFactory = GCPIntegrationApiRequestFactory; +class GCPIntegrationApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createGCPSTSAccount + * @throws ApiException if the response code was not in [200, 299] + */ + createGCPSTSAccount(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GCPSTSServiceAccountResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GCPSTSServiceAccountResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteGCPSTSAccount + * @throws ApiException if the response code was not in [200, 299] + */ + deleteGCPSTSAccount(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getGCPSTSDelegate + * @throws ApiException if the response code was not in [200, 299] + */ + getGCPSTSDelegate(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GCPSTSDelegateAccountResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GCPSTSDelegateAccountResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listGCPSTSAccounts + * @throws ApiException if the response code was not in [200, 299] + */ + listGCPSTSAccounts(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GCPSTSServiceAccountsResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GCPSTSServiceAccountsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to makeGCPSTSDelegate + * @throws ApiException if the response code was not in [200, 299] + */ + makeGCPSTSDelegate(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GCPSTSDelegateAccountResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GCPSTSDelegateAccountResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateGCPSTSAccount + * @throws ApiException if the response code was not in [200, 299] + */ + updateGCPSTSAccount(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GCPSTSServiceAccountResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GCPSTSServiceAccountResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.GCPIntegrationApiResponseProcessor = GCPIntegrationApiResponseProcessor; +class GCPIntegrationApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new GCPIntegrationApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new GCPIntegrationApiResponseProcessor(); + } + /** + * Create a new entry within Datadog for your STS enabled service account. + * @param param The request object + */ + createGCPSTSAccount(param, options) { + const requestContextPromise = this.requestFactory.createGCPSTSAccount(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createGCPSTSAccount(responseContext); + }); + }); + } + /** + * Delete an STS enabled GCP account from within Datadog. + * @param param The request object + */ + deleteGCPSTSAccount(param, options) { + const requestContextPromise = this.requestFactory.deleteGCPSTSAccount(param.accountId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteGCPSTSAccount(responseContext); + }); + }); + } + /** + * List your Datadog-GCP STS delegate account configured in your Datadog account. + * @param param The request object + */ + getGCPSTSDelegate(options) { + const requestContextPromise = this.requestFactory.getGCPSTSDelegate(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getGCPSTSDelegate(responseContext); + }); + }); + } + /** + * List all GCP STS-enabled service accounts configured in your Datadog account. + * @param param The request object + */ + listGCPSTSAccounts(options) { + const requestContextPromise = this.requestFactory.listGCPSTSAccounts(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listGCPSTSAccounts(responseContext); + }); + }); + } + /** + * Create a Datadog GCP principal. + * @param param The request object + */ + makeGCPSTSDelegate(param = {}, options) { + const requestContextPromise = this.requestFactory.makeGCPSTSDelegate(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.makeGCPSTSDelegate(responseContext); + }); + }); + } + /** + * Update an STS enabled service account. + * @param param The request object + */ + updateGCPSTSAccount(param, options) { + const requestContextPromise = this.requestFactory.updateGCPSTSAccount(param.accountId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateGCPSTSAccount(responseContext); + }); + }); + } +} +exports.GCPIntegrationApi = GCPIntegrationApi; +//# sourceMappingURL=GCPIntegrationApi.js.map + +/***/ }), + +/***/ 91257: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.IPAllowlistApi = exports.IPAllowlistApiResponseProcessor = exports.IPAllowlistApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class IPAllowlistApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + getIPAllowlist(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/ip_allowlist"; + // Make Request Context + const requestContext = _config + .getServer("v2.IPAllowlistApi.getIPAllowlist") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateIPAllowlist(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateIPAllowlist"); + } + // Path Params + const localVarPath = "/api/v2/ip_allowlist"; + // Make Request Context + const requestContext = _config + .getServer("v2.IPAllowlistApi.updateIPAllowlist") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "IPAllowlistUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.IPAllowlistApiRequestFactory = IPAllowlistApiRequestFactory; +class IPAllowlistApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getIPAllowlist + * @throws ApiException if the response code was not in [200, 299] + */ + getIPAllowlist(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IPAllowlistResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IPAllowlistResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateIPAllowlist + * @throws ApiException if the response code was not in [200, 299] + */ + updateIPAllowlist(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IPAllowlistResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IPAllowlistResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.IPAllowlistApiResponseProcessor = IPAllowlistApiResponseProcessor; +class IPAllowlistApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new IPAllowlistApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new IPAllowlistApiResponseProcessor(); + } + /** + * Returns the IP allowlist and its enabled or disabled state. + * @param param The request object + */ + getIPAllowlist(options) { + const requestContextPromise = this.requestFactory.getIPAllowlist(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getIPAllowlist(responseContext); + }); + }); + } + /** + * Edit the entries in the IP allowlist, and enable or disable it. + * @param param The request object + */ + updateIPAllowlist(param, options) { + const requestContextPromise = this.requestFactory.updateIPAllowlist(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateIPAllowlist(responseContext); + }); + }); + } +} +exports.IPAllowlistApi = IPAllowlistApi; +//# sourceMappingURL=IPAllowlistApi.js.map + +/***/ }), + +/***/ 46161: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.IncidentServicesApi = exports.IncidentServicesApiResponseProcessor = exports.IncidentServicesApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class IncidentServicesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createIncidentService(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'createIncidentService'"); + if (!_config.unstableOperations["v2.createIncidentService"]) { + throw new Error("Unstable operation 'createIncidentService' is disabled"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createIncidentService"); + } + // Path Params + const localVarPath = "/api/v2/services"; + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentServicesApi.createIncidentService") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "IncidentServiceCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteIncidentService(serviceId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'deleteIncidentService'"); + if (!_config.unstableOperations["v2.deleteIncidentService"]) { + throw new Error("Unstable operation 'deleteIncidentService' is disabled"); + } + // verify required parameter 'serviceId' is not null or undefined + if (serviceId === null || serviceId === undefined) { + throw new baseapi_1.RequiredError("serviceId", "deleteIncidentService"); + } + // Path Params + const localVarPath = "/api/v2/services/{service_id}".replace("{service_id}", encodeURIComponent(String(serviceId))); + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentServicesApi.deleteIncidentService") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getIncidentService(serviceId, include, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'getIncidentService'"); + if (!_config.unstableOperations["v2.getIncidentService"]) { + throw new Error("Unstable operation 'getIncidentService' is disabled"); + } + // verify required parameter 'serviceId' is not null or undefined + if (serviceId === null || serviceId === undefined) { + throw new baseapi_1.RequiredError("serviceId", "getIncidentService"); + } + // Path Params + const localVarPath = "/api/v2/services/{service_id}".replace("{service_id}", encodeURIComponent(String(serviceId))); + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentServicesApi.getIncidentService") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (include !== undefined) { + requestContext.setQueryParam("include", ObjectSerializer_1.ObjectSerializer.serialize(include, "IncidentRelatedObject", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listIncidentServices(include, pageSize, pageOffset, filter, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'listIncidentServices'"); + if (!_config.unstableOperations["v2.listIncidentServices"]) { + throw new Error("Unstable operation 'listIncidentServices' is disabled"); + } + // Path Params + const localVarPath = "/api/v2/services"; + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentServicesApi.listIncidentServices") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (include !== undefined) { + requestContext.setQueryParam("include", ObjectSerializer_1.ObjectSerializer.serialize(include, "IncidentRelatedObject", ""), ""); + } + if (pageSize !== undefined) { + requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), ""); + } + if (pageOffset !== undefined) { + requestContext.setQueryParam("page[offset]", ObjectSerializer_1.ObjectSerializer.serialize(pageOffset, "number", "int64"), ""); + } + if (filter !== undefined) { + requestContext.setQueryParam("filter", ObjectSerializer_1.ObjectSerializer.serialize(filter, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateIncidentService(serviceId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'updateIncidentService'"); + if (!_config.unstableOperations["v2.updateIncidentService"]) { + throw new Error("Unstable operation 'updateIncidentService' is disabled"); + } + // verify required parameter 'serviceId' is not null or undefined + if (serviceId === null || serviceId === undefined) { + throw new baseapi_1.RequiredError("serviceId", "updateIncidentService"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateIncidentService"); + } + // Path Params + const localVarPath = "/api/v2/services/{service_id}".replace("{service_id}", encodeURIComponent(String(serviceId))); + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentServicesApi.updateIncidentService") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "IncidentServiceUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.IncidentServicesApiRequestFactory = IncidentServicesApiRequestFactory; +class IncidentServicesApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createIncidentService + * @throws ApiException if the response code was not in [200, 299] + */ + createIncidentService(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentServiceResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentServiceResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteIncidentService + * @throws ApiException if the response code was not in [200, 299] + */ + deleteIncidentService(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getIncidentService + * @throws ApiException if the response code was not in [200, 299] + */ + getIncidentService(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentServiceResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentServiceResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listIncidentServices + * @throws ApiException if the response code was not in [200, 299] + */ + listIncidentServices(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentServicesResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentServicesResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateIncidentService + * @throws ApiException if the response code was not in [200, 299] + */ + updateIncidentService(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentServiceResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentServiceResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.IncidentServicesApiResponseProcessor = IncidentServicesApiResponseProcessor; +class IncidentServicesApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new IncidentServicesApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new IncidentServicesApiResponseProcessor(); + } + /** + * Creates a new incident service. + * @param param The request object + */ + createIncidentService(param, options) { + const requestContextPromise = this.requestFactory.createIncidentService(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createIncidentService(responseContext); + }); + }); + } + /** + * Deletes an existing incident service. + * @param param The request object + */ + deleteIncidentService(param, options) { + const requestContextPromise = this.requestFactory.deleteIncidentService(param.serviceId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteIncidentService(responseContext); + }); + }); + } + /** + * Get details of an incident service. If the `include[users]` query parameter is provided, + * the included attribute will contain the users related to these incident services. + * @param param The request object + */ + getIncidentService(param, options) { + const requestContextPromise = this.requestFactory.getIncidentService(param.serviceId, param.include, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getIncidentService(responseContext); + }); + }); + } + /** + * Get all incident services uploaded for the requesting user's organization. If the `include[users]` query parameter is provided, the included attribute will contain the users related to these incident services. + * @param param The request object + */ + listIncidentServices(param = {}, options) { + const requestContextPromise = this.requestFactory.listIncidentServices(param.include, param.pageSize, param.pageOffset, param.filter, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listIncidentServices(responseContext); + }); + }); + } + /** + * Updates an existing incident service. Only provide the attributes which should be updated as this request is a partial update. + * @param param The request object + */ + updateIncidentService(param, options) { + const requestContextPromise = this.requestFactory.updateIncidentService(param.serviceId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateIncidentService(responseContext); + }); + }); + } +} +exports.IncidentServicesApi = IncidentServicesApi; +//# sourceMappingURL=IncidentServicesApi.js.map + +/***/ }), + +/***/ 71971: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.IncidentTeamsApi = exports.IncidentTeamsApiResponseProcessor = exports.IncidentTeamsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class IncidentTeamsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createIncidentTeam(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'createIncidentTeam'"); + if (!_config.unstableOperations["v2.createIncidentTeam"]) { + throw new Error("Unstable operation 'createIncidentTeam' is disabled"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createIncidentTeam"); + } + // Path Params + const localVarPath = "/api/v2/teams"; + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentTeamsApi.createIncidentTeam") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "IncidentTeamCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteIncidentTeam(teamId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'deleteIncidentTeam'"); + if (!_config.unstableOperations["v2.deleteIncidentTeam"]) { + throw new Error("Unstable operation 'deleteIncidentTeam' is disabled"); + } + // verify required parameter 'teamId' is not null or undefined + if (teamId === null || teamId === undefined) { + throw new baseapi_1.RequiredError("teamId", "deleteIncidentTeam"); + } + // Path Params + const localVarPath = "/api/v2/teams/{team_id}".replace("{team_id}", encodeURIComponent(String(teamId))); + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentTeamsApi.deleteIncidentTeam") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getIncidentTeam(teamId, include, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'getIncidentTeam'"); + if (!_config.unstableOperations["v2.getIncidentTeam"]) { + throw new Error("Unstable operation 'getIncidentTeam' is disabled"); + } + // verify required parameter 'teamId' is not null or undefined + if (teamId === null || teamId === undefined) { + throw new baseapi_1.RequiredError("teamId", "getIncidentTeam"); + } + // Path Params + const localVarPath = "/api/v2/teams/{team_id}".replace("{team_id}", encodeURIComponent(String(teamId))); + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentTeamsApi.getIncidentTeam") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (include !== undefined) { + requestContext.setQueryParam("include", ObjectSerializer_1.ObjectSerializer.serialize(include, "IncidentRelatedObject", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listIncidentTeams(include, pageSize, pageOffset, filter, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'listIncidentTeams'"); + if (!_config.unstableOperations["v2.listIncidentTeams"]) { + throw new Error("Unstable operation 'listIncidentTeams' is disabled"); + } + // Path Params + const localVarPath = "/api/v2/teams"; + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentTeamsApi.listIncidentTeams") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (include !== undefined) { + requestContext.setQueryParam("include", ObjectSerializer_1.ObjectSerializer.serialize(include, "IncidentRelatedObject", ""), ""); + } + if (pageSize !== undefined) { + requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), ""); + } + if (pageOffset !== undefined) { + requestContext.setQueryParam("page[offset]", ObjectSerializer_1.ObjectSerializer.serialize(pageOffset, "number", "int64"), ""); + } + if (filter !== undefined) { + requestContext.setQueryParam("filter", ObjectSerializer_1.ObjectSerializer.serialize(filter, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateIncidentTeam(teamId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'updateIncidentTeam'"); + if (!_config.unstableOperations["v2.updateIncidentTeam"]) { + throw new Error("Unstable operation 'updateIncidentTeam' is disabled"); + } + // verify required parameter 'teamId' is not null or undefined + if (teamId === null || teamId === undefined) { + throw new baseapi_1.RequiredError("teamId", "updateIncidentTeam"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateIncidentTeam"); + } + // Path Params + const localVarPath = "/api/v2/teams/{team_id}".replace("{team_id}", encodeURIComponent(String(teamId))); + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentTeamsApi.updateIncidentTeam") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "IncidentTeamUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.IncidentTeamsApiRequestFactory = IncidentTeamsApiRequestFactory; +class IncidentTeamsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createIncidentTeam + * @throws ApiException if the response code was not in [200, 299] + */ + createIncidentTeam(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTeamResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTeamResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteIncidentTeam + * @throws ApiException if the response code was not in [200, 299] + */ + deleteIncidentTeam(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getIncidentTeam + * @throws ApiException if the response code was not in [200, 299] + */ + getIncidentTeam(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTeamResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTeamResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listIncidentTeams + * @throws ApiException if the response code was not in [200, 299] + */ + listIncidentTeams(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTeamsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTeamsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateIncidentTeam + * @throws ApiException if the response code was not in [200, 299] + */ + updateIncidentTeam(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTeamResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTeamResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.IncidentTeamsApiResponseProcessor = IncidentTeamsApiResponseProcessor; +class IncidentTeamsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new IncidentTeamsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new IncidentTeamsApiResponseProcessor(); + } + /** + * Creates a new incident team. + * @param param The request object + */ + createIncidentTeam(param, options) { + const requestContextPromise = this.requestFactory.createIncidentTeam(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createIncidentTeam(responseContext); + }); + }); + } + /** + * Deletes an existing incident team. + * @param param The request object + */ + deleteIncidentTeam(param, options) { + const requestContextPromise = this.requestFactory.deleteIncidentTeam(param.teamId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteIncidentTeam(responseContext); + }); + }); + } + /** + * Get details of an incident team. If the `include[users]` query parameter is provided, + * the included attribute will contain the users related to these incident teams. + * @param param The request object + */ + getIncidentTeam(param, options) { + const requestContextPromise = this.requestFactory.getIncidentTeam(param.teamId, param.include, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getIncidentTeam(responseContext); + }); + }); + } + /** + * Get all incident teams for the requesting user's organization. If the `include[users]` query parameter is provided, the included attribute will contain the users related to these incident teams. + * @param param The request object + */ + listIncidentTeams(param = {}, options) { + const requestContextPromise = this.requestFactory.listIncidentTeams(param.include, param.pageSize, param.pageOffset, param.filter, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listIncidentTeams(responseContext); + }); + }); + } + /** + * Updates an existing incident team. Only provide the attributes which should be updated as this request is a partial update. + * @param param The request object + */ + updateIncidentTeam(param, options) { + const requestContextPromise = this.requestFactory.updateIncidentTeam(param.teamId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateIncidentTeam(responseContext); + }); + }); + } +} +exports.IncidentTeamsApi = IncidentTeamsApi; +//# sourceMappingURL=IncidentTeamsApi.js.map + +/***/ }), + +/***/ 48734: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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 __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IncidentsApi = exports.IncidentsApiResponseProcessor = exports.IncidentsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class IncidentsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createIncident(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'createIncident'"); + if (!_config.unstableOperations["v2.createIncident"]) { + throw new Error("Unstable operation 'createIncident' is disabled"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createIncident"); + } + // Path Params + const localVarPath = "/api/v2/incidents"; + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentsApi.createIncident") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "IncidentCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createIncidentIntegration(incidentId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'createIncidentIntegration'"); + if (!_config.unstableOperations["v2.createIncidentIntegration"]) { + throw new Error("Unstable operation 'createIncidentIntegration' is disabled"); + } + // verify required parameter 'incidentId' is not null or undefined + if (incidentId === null || incidentId === undefined) { + throw new baseapi_1.RequiredError("incidentId", "createIncidentIntegration"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createIncidentIntegration"); + } + // Path Params + const localVarPath = "/api/v2/incidents/{incident_id}/relationships/integrations".replace("{incident_id}", encodeURIComponent(String(incidentId))); + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentsApi.createIncidentIntegration") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "IncidentIntegrationMetadataCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createIncidentTodo(incidentId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'createIncidentTodo'"); + if (!_config.unstableOperations["v2.createIncidentTodo"]) { + throw new Error("Unstable operation 'createIncidentTodo' is disabled"); + } + // verify required parameter 'incidentId' is not null or undefined + if (incidentId === null || incidentId === undefined) { + throw new baseapi_1.RequiredError("incidentId", "createIncidentTodo"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createIncidentTodo"); + } + // Path Params + const localVarPath = "/api/v2/incidents/{incident_id}/relationships/todos".replace("{incident_id}", encodeURIComponent(String(incidentId))); + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentsApi.createIncidentTodo") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "IncidentTodoCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createIncidentType(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'createIncidentType'"); + if (!_config.unstableOperations["v2.createIncidentType"]) { + throw new Error("Unstable operation 'createIncidentType' is disabled"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createIncidentType"); + } + // Path Params + const localVarPath = "/api/v2/incidents/config/types"; + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentsApi.createIncidentType") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "IncidentTypeCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteIncident(incidentId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'deleteIncident'"); + if (!_config.unstableOperations["v2.deleteIncident"]) { + throw new Error("Unstable operation 'deleteIncident' is disabled"); + } + // verify required parameter 'incidentId' is not null or undefined + if (incidentId === null || incidentId === undefined) { + throw new baseapi_1.RequiredError("incidentId", "deleteIncident"); + } + // Path Params + const localVarPath = "/api/v2/incidents/{incident_id}".replace("{incident_id}", encodeURIComponent(String(incidentId))); + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentsApi.deleteIncident") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteIncidentIntegration(incidentId, integrationMetadataId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'deleteIncidentIntegration'"); + if (!_config.unstableOperations["v2.deleteIncidentIntegration"]) { + throw new Error("Unstable operation 'deleteIncidentIntegration' is disabled"); + } + // verify required parameter 'incidentId' is not null or undefined + if (incidentId === null || incidentId === undefined) { + throw new baseapi_1.RequiredError("incidentId", "deleteIncidentIntegration"); + } + // verify required parameter 'integrationMetadataId' is not null or undefined + if (integrationMetadataId === null || integrationMetadataId === undefined) { + throw new baseapi_1.RequiredError("integrationMetadataId", "deleteIncidentIntegration"); + } + // Path Params + const localVarPath = "/api/v2/incidents/{incident_id}/relationships/integrations/{integration_metadata_id}" + .replace("{incident_id}", encodeURIComponent(String(incidentId))) + .replace("{integration_metadata_id}", encodeURIComponent(String(integrationMetadataId))); + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentsApi.deleteIncidentIntegration") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteIncidentTodo(incidentId, todoId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'deleteIncidentTodo'"); + if (!_config.unstableOperations["v2.deleteIncidentTodo"]) { + throw new Error("Unstable operation 'deleteIncidentTodo' is disabled"); + } + // verify required parameter 'incidentId' is not null or undefined + if (incidentId === null || incidentId === undefined) { + throw new baseapi_1.RequiredError("incidentId", "deleteIncidentTodo"); + } + // verify required parameter 'todoId' is not null or undefined + if (todoId === null || todoId === undefined) { + throw new baseapi_1.RequiredError("todoId", "deleteIncidentTodo"); + } + // Path Params + const localVarPath = "/api/v2/incidents/{incident_id}/relationships/todos/{todo_id}" + .replace("{incident_id}", encodeURIComponent(String(incidentId))) + .replace("{todo_id}", encodeURIComponent(String(todoId))); + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentsApi.deleteIncidentTodo") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteIncidentType(incidentTypeId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'deleteIncidentType'"); + if (!_config.unstableOperations["v2.deleteIncidentType"]) { + throw new Error("Unstable operation 'deleteIncidentType' is disabled"); + } + // verify required parameter 'incidentTypeId' is not null or undefined + if (incidentTypeId === null || incidentTypeId === undefined) { + throw new baseapi_1.RequiredError("incidentTypeId", "deleteIncidentType"); + } + // Path Params + const localVarPath = "/api/v2/incidents/config/types/{incident_type_id}".replace("{incident_type_id}", encodeURIComponent(String(incidentTypeId))); + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentsApi.deleteIncidentType") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getIncident(incidentId, include, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'getIncident'"); + if (!_config.unstableOperations["v2.getIncident"]) { + throw new Error("Unstable operation 'getIncident' is disabled"); + } + // verify required parameter 'incidentId' is not null or undefined + if (incidentId === null || incidentId === undefined) { + throw new baseapi_1.RequiredError("incidentId", "getIncident"); + } + // Path Params + const localVarPath = "/api/v2/incidents/{incident_id}".replace("{incident_id}", encodeURIComponent(String(incidentId))); + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentsApi.getIncident") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (include !== undefined) { + requestContext.setQueryParam("include", ObjectSerializer_1.ObjectSerializer.serialize(include, "Array", ""), "csv"); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getIncidentIntegration(incidentId, integrationMetadataId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'getIncidentIntegration'"); + if (!_config.unstableOperations["v2.getIncidentIntegration"]) { + throw new Error("Unstable operation 'getIncidentIntegration' is disabled"); + } + // verify required parameter 'incidentId' is not null or undefined + if (incidentId === null || incidentId === undefined) { + throw new baseapi_1.RequiredError("incidentId", "getIncidentIntegration"); + } + // verify required parameter 'integrationMetadataId' is not null or undefined + if (integrationMetadataId === null || integrationMetadataId === undefined) { + throw new baseapi_1.RequiredError("integrationMetadataId", "getIncidentIntegration"); + } + // Path Params + const localVarPath = "/api/v2/incidents/{incident_id}/relationships/integrations/{integration_metadata_id}" + .replace("{incident_id}", encodeURIComponent(String(incidentId))) + .replace("{integration_metadata_id}", encodeURIComponent(String(integrationMetadataId))); + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentsApi.getIncidentIntegration") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getIncidentTodo(incidentId, todoId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'getIncidentTodo'"); + if (!_config.unstableOperations["v2.getIncidentTodo"]) { + throw new Error("Unstable operation 'getIncidentTodo' is disabled"); + } + // verify required parameter 'incidentId' is not null or undefined + if (incidentId === null || incidentId === undefined) { + throw new baseapi_1.RequiredError("incidentId", "getIncidentTodo"); + } + // verify required parameter 'todoId' is not null or undefined + if (todoId === null || todoId === undefined) { + throw new baseapi_1.RequiredError("todoId", "getIncidentTodo"); + } + // Path Params + const localVarPath = "/api/v2/incidents/{incident_id}/relationships/todos/{todo_id}" + .replace("{incident_id}", encodeURIComponent(String(incidentId))) + .replace("{todo_id}", encodeURIComponent(String(todoId))); + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentsApi.getIncidentTodo") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getIncidentType(incidentTypeId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'getIncidentType'"); + if (!_config.unstableOperations["v2.getIncidentType"]) { + throw new Error("Unstable operation 'getIncidentType' is disabled"); + } + // verify required parameter 'incidentTypeId' is not null or undefined + if (incidentTypeId === null || incidentTypeId === undefined) { + throw new baseapi_1.RequiredError("incidentTypeId", "getIncidentType"); + } + // Path Params + const localVarPath = "/api/v2/incidents/config/types/{incident_type_id}".replace("{incident_type_id}", encodeURIComponent(String(incidentTypeId))); + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentsApi.getIncidentType") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listIncidentAttachments(incidentId, include, filterAttachmentType, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'listIncidentAttachments'"); + if (!_config.unstableOperations["v2.listIncidentAttachments"]) { + throw new Error("Unstable operation 'listIncidentAttachments' is disabled"); + } + // verify required parameter 'incidentId' is not null or undefined + if (incidentId === null || incidentId === undefined) { + throw new baseapi_1.RequiredError("incidentId", "listIncidentAttachments"); + } + // Path Params + const localVarPath = "/api/v2/incidents/{incident_id}/attachments".replace("{incident_id}", encodeURIComponent(String(incidentId))); + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentsApi.listIncidentAttachments") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (include !== undefined) { + requestContext.setQueryParam("include", ObjectSerializer_1.ObjectSerializer.serialize(include, "Array", ""), "csv"); + } + if (filterAttachmentType !== undefined) { + requestContext.setQueryParam("filter[attachment_type]", ObjectSerializer_1.ObjectSerializer.serialize(filterAttachmentType, "Array", ""), "csv"); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listIncidentIntegrations(incidentId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'listIncidentIntegrations'"); + if (!_config.unstableOperations["v2.listIncidentIntegrations"]) { + throw new Error("Unstable operation 'listIncidentIntegrations' is disabled"); + } + // verify required parameter 'incidentId' is not null or undefined + if (incidentId === null || incidentId === undefined) { + throw new baseapi_1.RequiredError("incidentId", "listIncidentIntegrations"); + } + // Path Params + const localVarPath = "/api/v2/incidents/{incident_id}/relationships/integrations".replace("{incident_id}", encodeURIComponent(String(incidentId))); + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentsApi.listIncidentIntegrations") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listIncidents(include, pageSize, pageOffset, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'listIncidents'"); + if (!_config.unstableOperations["v2.listIncidents"]) { + throw new Error("Unstable operation 'listIncidents' is disabled"); + } + // Path Params + const localVarPath = "/api/v2/incidents"; + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentsApi.listIncidents") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (include !== undefined) { + requestContext.setQueryParam("include", ObjectSerializer_1.ObjectSerializer.serialize(include, "Array", ""), "csv"); + } + if (pageSize !== undefined) { + requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), ""); + } + if (pageOffset !== undefined) { + requestContext.setQueryParam("page[offset]", ObjectSerializer_1.ObjectSerializer.serialize(pageOffset, "number", "int64"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listIncidentTodos(incidentId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'listIncidentTodos'"); + if (!_config.unstableOperations["v2.listIncidentTodos"]) { + throw new Error("Unstable operation 'listIncidentTodos' is disabled"); + } + // verify required parameter 'incidentId' is not null or undefined + if (incidentId === null || incidentId === undefined) { + throw new baseapi_1.RequiredError("incidentId", "listIncidentTodos"); + } + // Path Params + const localVarPath = "/api/v2/incidents/{incident_id}/relationships/todos".replace("{incident_id}", encodeURIComponent(String(incidentId))); + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentsApi.listIncidentTodos") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listIncidentTypes(includeDeleted, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'listIncidentTypes'"); + if (!_config.unstableOperations["v2.listIncidentTypes"]) { + throw new Error("Unstable operation 'listIncidentTypes' is disabled"); + } + // Path Params + const localVarPath = "/api/v2/incidents/config/types"; + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentsApi.listIncidentTypes") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (includeDeleted !== undefined) { + requestContext.setQueryParam("include_deleted", ObjectSerializer_1.ObjectSerializer.serialize(includeDeleted, "boolean", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + searchIncidents(query, include, sort, pageSize, pageOffset, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'searchIncidents'"); + if (!_config.unstableOperations["v2.searchIncidents"]) { + throw new Error("Unstable operation 'searchIncidents' is disabled"); + } + // verify required parameter 'query' is not null or undefined + if (query === null || query === undefined) { + throw new baseapi_1.RequiredError("query", "searchIncidents"); + } + // Path Params + const localVarPath = "/api/v2/incidents/search"; + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentsApi.searchIncidents") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (include !== undefined) { + requestContext.setQueryParam("include", ObjectSerializer_1.ObjectSerializer.serialize(include, "IncidentRelatedObject", ""), ""); + } + if (query !== undefined) { + requestContext.setQueryParam("query", ObjectSerializer_1.ObjectSerializer.serialize(query, "string", ""), ""); + } + if (sort !== undefined) { + requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "IncidentSearchSortOrder", ""), ""); + } + if (pageSize !== undefined) { + requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), ""); + } + if (pageOffset !== undefined) { + requestContext.setQueryParam("page[offset]", ObjectSerializer_1.ObjectSerializer.serialize(pageOffset, "number", "int64"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateIncident(incidentId, body, include, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'updateIncident'"); + if (!_config.unstableOperations["v2.updateIncident"]) { + throw new Error("Unstable operation 'updateIncident' is disabled"); + } + // verify required parameter 'incidentId' is not null or undefined + if (incidentId === null || incidentId === undefined) { + throw new baseapi_1.RequiredError("incidentId", "updateIncident"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateIncident"); + } + // Path Params + const localVarPath = "/api/v2/incidents/{incident_id}".replace("{incident_id}", encodeURIComponent(String(incidentId))); + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentsApi.updateIncident") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (include !== undefined) { + requestContext.setQueryParam("include", ObjectSerializer_1.ObjectSerializer.serialize(include, "Array", ""), "csv"); + } + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "IncidentUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateIncidentAttachments(incidentId, body, include, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'updateIncidentAttachments'"); + if (!_config.unstableOperations["v2.updateIncidentAttachments"]) { + throw new Error("Unstable operation 'updateIncidentAttachments' is disabled"); + } + // verify required parameter 'incidentId' is not null or undefined + if (incidentId === null || incidentId === undefined) { + throw new baseapi_1.RequiredError("incidentId", "updateIncidentAttachments"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateIncidentAttachments"); + } + // Path Params + const localVarPath = "/api/v2/incidents/{incident_id}/attachments".replace("{incident_id}", encodeURIComponent(String(incidentId))); + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentsApi.updateIncidentAttachments") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (include !== undefined) { + requestContext.setQueryParam("include", ObjectSerializer_1.ObjectSerializer.serialize(include, "Array", ""), "csv"); + } + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "IncidentAttachmentUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateIncidentIntegration(incidentId, integrationMetadataId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'updateIncidentIntegration'"); + if (!_config.unstableOperations["v2.updateIncidentIntegration"]) { + throw new Error("Unstable operation 'updateIncidentIntegration' is disabled"); + } + // verify required parameter 'incidentId' is not null or undefined + if (incidentId === null || incidentId === undefined) { + throw new baseapi_1.RequiredError("incidentId", "updateIncidentIntegration"); + } + // verify required parameter 'integrationMetadataId' is not null or undefined + if (integrationMetadataId === null || integrationMetadataId === undefined) { + throw new baseapi_1.RequiredError("integrationMetadataId", "updateIncidentIntegration"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateIncidentIntegration"); + } + // Path Params + const localVarPath = "/api/v2/incidents/{incident_id}/relationships/integrations/{integration_metadata_id}" + .replace("{incident_id}", encodeURIComponent(String(incidentId))) + .replace("{integration_metadata_id}", encodeURIComponent(String(integrationMetadataId))); + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentsApi.updateIncidentIntegration") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "IncidentIntegrationMetadataPatchRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateIncidentTodo(incidentId, todoId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'updateIncidentTodo'"); + if (!_config.unstableOperations["v2.updateIncidentTodo"]) { + throw new Error("Unstable operation 'updateIncidentTodo' is disabled"); + } + // verify required parameter 'incidentId' is not null or undefined + if (incidentId === null || incidentId === undefined) { + throw new baseapi_1.RequiredError("incidentId", "updateIncidentTodo"); + } + // verify required parameter 'todoId' is not null or undefined + if (todoId === null || todoId === undefined) { + throw new baseapi_1.RequiredError("todoId", "updateIncidentTodo"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateIncidentTodo"); + } + // Path Params + const localVarPath = "/api/v2/incidents/{incident_id}/relationships/todos/{todo_id}" + .replace("{incident_id}", encodeURIComponent(String(incidentId))) + .replace("{todo_id}", encodeURIComponent(String(todoId))); + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentsApi.updateIncidentTodo") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "IncidentTodoPatchRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateIncidentType(incidentTypeId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'updateIncidentType'"); + if (!_config.unstableOperations["v2.updateIncidentType"]) { + throw new Error("Unstable operation 'updateIncidentType' is disabled"); + } + // verify required parameter 'incidentTypeId' is not null or undefined + if (incidentTypeId === null || incidentTypeId === undefined) { + throw new baseapi_1.RequiredError("incidentTypeId", "updateIncidentType"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateIncidentType"); + } + // Path Params + const localVarPath = "/api/v2/incidents/config/types/{incident_type_id}".replace("{incident_type_id}", encodeURIComponent(String(incidentTypeId))); + // Make Request Context + const requestContext = _config + .getServer("v2.IncidentsApi.updateIncidentType") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "IncidentTypePatchRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.IncidentsApiRequestFactory = IncidentsApiRequestFactory; +class IncidentsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createIncident + * @throws ApiException if the response code was not in [200, 299] + */ + createIncident(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createIncidentIntegration + * @throws ApiException if the response code was not in [200, 299] + */ + createIncidentIntegration(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentIntegrationMetadataResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentIntegrationMetadataResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createIncidentTodo + * @throws ApiException if the response code was not in [200, 299] + */ + createIncidentTodo(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTodoResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTodoResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createIncidentType + * @throws ApiException if the response code was not in [200, 299] + */ + createIncidentType(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTypeResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTypeResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteIncident + * @throws ApiException if the response code was not in [200, 299] + */ + deleteIncident(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteIncidentIntegration + * @throws ApiException if the response code was not in [200, 299] + */ + deleteIncidentIntegration(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteIncidentTodo + * @throws ApiException if the response code was not in [200, 299] + */ + deleteIncidentTodo(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteIncidentType + * @throws ApiException if the response code was not in [200, 299] + */ + deleteIncidentType(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getIncident + * @throws ApiException if the response code was not in [200, 299] + */ + getIncident(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getIncidentIntegration + * @throws ApiException if the response code was not in [200, 299] + */ + getIncidentIntegration(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentIntegrationMetadataResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentIntegrationMetadataResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getIncidentTodo + * @throws ApiException if the response code was not in [200, 299] + */ + getIncidentTodo(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTodoResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTodoResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getIncidentType + * @throws ApiException if the response code was not in [200, 299] + */ + getIncidentType(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTypeResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTypeResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listIncidentAttachments + * @throws ApiException if the response code was not in [200, 299] + */ + listIncidentAttachments(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentAttachmentsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentAttachmentsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listIncidentIntegrations + * @throws ApiException if the response code was not in [200, 299] + */ + listIncidentIntegrations(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentIntegrationMetadataListResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentIntegrationMetadataListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listIncidents + * @throws ApiException if the response code was not in [200, 299] + */ + listIncidents(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listIncidentTodos + * @throws ApiException if the response code was not in [200, 299] + */ + listIncidentTodos(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTodoListResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTodoListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listIncidentTypes + * @throws ApiException if the response code was not in [200, 299] + */ + listIncidentTypes(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTypeListResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTypeListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to searchIncidents + * @throws ApiException if the response code was not in [200, 299] + */ + searchIncidents(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentSearchResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentSearchResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateIncident + * @throws ApiException if the response code was not in [200, 299] + */ + updateIncident(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateIncidentAttachments + * @throws ApiException if the response code was not in [200, 299] + */ + updateIncidentAttachments(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentAttachmentUpdateResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentAttachmentUpdateResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateIncidentIntegration + * @throws ApiException if the response code was not in [200, 299] + */ + updateIncidentIntegration(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentIntegrationMetadataResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentIntegrationMetadataResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateIncidentTodo + * @throws ApiException if the response code was not in [200, 299] + */ + updateIncidentTodo(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTodoResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTodoResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateIncidentType + * @throws ApiException if the response code was not in [200, 299] + */ + updateIncidentType(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTypeResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentTypeResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.IncidentsApiResponseProcessor = IncidentsApiResponseProcessor; +class IncidentsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new IncidentsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new IncidentsApiResponseProcessor(); + } + /** + * Create an incident. + * @param param The request object + */ + createIncident(param, options) { + const requestContextPromise = this.requestFactory.createIncident(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createIncident(responseContext); + }); + }); + } + /** + * Create an incident integration metadata. + * @param param The request object + */ + createIncidentIntegration(param, options) { + const requestContextPromise = this.requestFactory.createIncidentIntegration(param.incidentId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createIncidentIntegration(responseContext); + }); + }); + } + /** + * Create an incident todo. + * @param param The request object + */ + createIncidentTodo(param, options) { + const requestContextPromise = this.requestFactory.createIncidentTodo(param.incidentId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createIncidentTodo(responseContext); + }); + }); + } + /** + * Create an incident type. + * @param param The request object + */ + createIncidentType(param, options) { + const requestContextPromise = this.requestFactory.createIncidentType(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createIncidentType(responseContext); + }); + }); + } + /** + * Deletes an existing incident from the users organization. + * @param param The request object + */ + deleteIncident(param, options) { + const requestContextPromise = this.requestFactory.deleteIncident(param.incidentId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteIncident(responseContext); + }); + }); + } + /** + * Delete an incident integration metadata. + * @param param The request object + */ + deleteIncidentIntegration(param, options) { + const requestContextPromise = this.requestFactory.deleteIncidentIntegration(param.incidentId, param.integrationMetadataId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteIncidentIntegration(responseContext); + }); + }); + } + /** + * Delete an incident todo. + * @param param The request object + */ + deleteIncidentTodo(param, options) { + const requestContextPromise = this.requestFactory.deleteIncidentTodo(param.incidentId, param.todoId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteIncidentTodo(responseContext); + }); + }); + } + /** + * Delete an incident type. + * @param param The request object + */ + deleteIncidentType(param, options) { + const requestContextPromise = this.requestFactory.deleteIncidentType(param.incidentTypeId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteIncidentType(responseContext); + }); + }); + } + /** + * Get the details of an incident by `incident_id`. + * @param param The request object + */ + getIncident(param, options) { + const requestContextPromise = this.requestFactory.getIncident(param.incidentId, param.include, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getIncident(responseContext); + }); + }); + } + /** + * Get incident integration metadata details. + * @param param The request object + */ + getIncidentIntegration(param, options) { + const requestContextPromise = this.requestFactory.getIncidentIntegration(param.incidentId, param.integrationMetadataId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getIncidentIntegration(responseContext); + }); + }); + } + /** + * Get incident todo details. + * @param param The request object + */ + getIncidentTodo(param, options) { + const requestContextPromise = this.requestFactory.getIncidentTodo(param.incidentId, param.todoId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getIncidentTodo(responseContext); + }); + }); + } + /** + * Get incident type details. + * @param param The request object + */ + getIncidentType(param, options) { + const requestContextPromise = this.requestFactory.getIncidentType(param.incidentTypeId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getIncidentType(responseContext); + }); + }); + } + /** + * Get all attachments for a given incident. + * @param param The request object + */ + listIncidentAttachments(param, options) { + const requestContextPromise = this.requestFactory.listIncidentAttachments(param.incidentId, param.include, param.filterAttachmentType, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listIncidentAttachments(responseContext); + }); + }); + } + /** + * Get all integration metadata for an incident. + * @param param The request object + */ + listIncidentIntegrations(param, options) { + const requestContextPromise = this.requestFactory.listIncidentIntegrations(param.incidentId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listIncidentIntegrations(responseContext); + }); + }); + } + /** + * Get all incidents for the user's organization. + * @param param The request object + */ + listIncidents(param = {}, options) { + const requestContextPromise = this.requestFactory.listIncidents(param.include, param.pageSize, param.pageOffset, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listIncidents(responseContext); + }); + }); + } + /** + * Provide a paginated version of listIncidents returning a generator with all the items. + */ + listIncidentsWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* listIncidentsWithPagination_1() { + let pageSize = 10; + if (param.pageSize !== undefined) { + pageSize = param.pageSize; + } + param.pageSize = pageSize; + while (true) { + const requestContext = yield __await(this.requestFactory.listIncidents(param.include, param.pageSize, param.pageOffset, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listIncidents(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + if (param.pageOffset === undefined) { + param.pageOffset = pageSize; + } + else { + param.pageOffset = param.pageOffset + pageSize; + } + } + }); + } + /** + * Get all todos for an incident. + * @param param The request object + */ + listIncidentTodos(param, options) { + const requestContextPromise = this.requestFactory.listIncidentTodos(param.incidentId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listIncidentTodos(responseContext); + }); + }); + } + /** + * Get all incident types. + * @param param The request object + */ + listIncidentTypes(param = {}, options) { + const requestContextPromise = this.requestFactory.listIncidentTypes(param.includeDeleted, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listIncidentTypes(responseContext); + }); + }); + } + /** + * Search for incidents matching a certain query. + * @param param The request object + */ + searchIncidents(param, options) { + const requestContextPromise = this.requestFactory.searchIncidents(param.query, param.include, param.sort, param.pageSize, param.pageOffset, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.searchIncidents(responseContext); + }); + }); + } + /** + * Provide a paginated version of searchIncidents returning a generator with all the items. + */ + searchIncidentsWithPagination(param, options) { + return __asyncGenerator(this, arguments, function* searchIncidentsWithPagination_1() { + let pageSize = 10; + if (param.pageSize !== undefined) { + pageSize = param.pageSize; + } + param.pageSize = pageSize; + while (true) { + const requestContext = yield __await(this.requestFactory.searchIncidents(param.query, param.include, param.sort, param.pageSize, param.pageOffset, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.searchIncidents(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const responseDataAttributes = responseData.attributes; + if (responseDataAttributes === undefined) { + break; + } + const responseDataAttributesIncidents = responseDataAttributes.incidents; + if (responseDataAttributesIncidents === undefined) { + break; + } + const results = responseDataAttributesIncidents; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + if (param.pageOffset === undefined) { + param.pageOffset = pageSize; + } + else { + param.pageOffset = param.pageOffset + pageSize; + } + } + }); + } + /** + * Updates an incident. Provide only the attributes that should be updated as this request is a partial update. + * @param param The request object + */ + updateIncident(param, options) { + const requestContextPromise = this.requestFactory.updateIncident(param.incidentId, param.body, param.include, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateIncident(responseContext); + }); + }); + } + /** + * The bulk update endpoint for creating, updating, and deleting attachments for a given incident. + * @param param The request object + */ + updateIncidentAttachments(param, options) { + const requestContextPromise = this.requestFactory.updateIncidentAttachments(param.incidentId, param.body, param.include, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateIncidentAttachments(responseContext); + }); + }); + } + /** + * Update an existing incident integration metadata. + * @param param The request object + */ + updateIncidentIntegration(param, options) { + const requestContextPromise = this.requestFactory.updateIncidentIntegration(param.incidentId, param.integrationMetadataId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateIncidentIntegration(responseContext); + }); + }); + } + /** + * Update an incident todo. + * @param param The request object + */ + updateIncidentTodo(param, options) { + const requestContextPromise = this.requestFactory.updateIncidentTodo(param.incidentId, param.todoId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateIncidentTodo(responseContext); + }); + }); + } + /** + * Update an incident type. + * @param param The request object + */ + updateIncidentType(param, options) { + const requestContextPromise = this.requestFactory.updateIncidentType(param.incidentTypeId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateIncidentType(responseContext); + }); + }); + } +} +exports.IncidentsApi = IncidentsApi; +//# sourceMappingURL=IncidentsApi.js.map + +/***/ }), + +/***/ 25267: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.KeyManagementApi = exports.KeyManagementApiResponseProcessor = exports.KeyManagementApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class KeyManagementApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createAPIKey(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createAPIKey"); + } + // Path Params + const localVarPath = "/api/v2/api_keys"; + // Make Request Context + const requestContext = _config + .getServer("v2.KeyManagementApi.createAPIKey") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "APIKeyCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createCurrentUserApplicationKey(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createCurrentUserApplicationKey"); + } + // Path Params + const localVarPath = "/api/v2/current_user/application_keys"; + // Make Request Context + const requestContext = _config + .getServer("v2.KeyManagementApi.createCurrentUserApplicationKey") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ApplicationKeyCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteAPIKey(apiKeyId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'apiKeyId' is not null or undefined + if (apiKeyId === null || apiKeyId === undefined) { + throw new baseapi_1.RequiredError("apiKeyId", "deleteAPIKey"); + } + // Path Params + const localVarPath = "/api/v2/api_keys/{api_key_id}".replace("{api_key_id}", encodeURIComponent(String(apiKeyId))); + // Make Request Context + const requestContext = _config + .getServer("v2.KeyManagementApi.deleteAPIKey") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteApplicationKey(appKeyId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'appKeyId' is not null or undefined + if (appKeyId === null || appKeyId === undefined) { + throw new baseapi_1.RequiredError("appKeyId", "deleteApplicationKey"); + } + // Path Params + const localVarPath = "/api/v2/application_keys/{app_key_id}".replace("{app_key_id}", encodeURIComponent(String(appKeyId))); + // Make Request Context + const requestContext = _config + .getServer("v2.KeyManagementApi.deleteApplicationKey") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteCurrentUserApplicationKey(appKeyId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'appKeyId' is not null or undefined + if (appKeyId === null || appKeyId === undefined) { + throw new baseapi_1.RequiredError("appKeyId", "deleteCurrentUserApplicationKey"); + } + // Path Params + const localVarPath = "/api/v2/current_user/application_keys/{app_key_id}".replace("{app_key_id}", encodeURIComponent(String(appKeyId))); + // Make Request Context + const requestContext = _config + .getServer("v2.KeyManagementApi.deleteCurrentUserApplicationKey") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getAPIKey(apiKeyId, include, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'apiKeyId' is not null or undefined + if (apiKeyId === null || apiKeyId === undefined) { + throw new baseapi_1.RequiredError("apiKeyId", "getAPIKey"); + } + // Path Params + const localVarPath = "/api/v2/api_keys/{api_key_id}".replace("{api_key_id}", encodeURIComponent(String(apiKeyId))); + // Make Request Context + const requestContext = _config + .getServer("v2.KeyManagementApi.getAPIKey") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (include !== undefined) { + requestContext.setQueryParam("include", ObjectSerializer_1.ObjectSerializer.serialize(include, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getApplicationKey(appKeyId, include, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'appKeyId' is not null or undefined + if (appKeyId === null || appKeyId === undefined) { + throw new baseapi_1.RequiredError("appKeyId", "getApplicationKey"); + } + // Path Params + const localVarPath = "/api/v2/application_keys/{app_key_id}".replace("{app_key_id}", encodeURIComponent(String(appKeyId))); + // Make Request Context + const requestContext = _config + .getServer("v2.KeyManagementApi.getApplicationKey") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (include !== undefined) { + requestContext.setQueryParam("include", ObjectSerializer_1.ObjectSerializer.serialize(include, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getCurrentUserApplicationKey(appKeyId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'appKeyId' is not null or undefined + if (appKeyId === null || appKeyId === undefined) { + throw new baseapi_1.RequiredError("appKeyId", "getCurrentUserApplicationKey"); + } + // Path Params + const localVarPath = "/api/v2/current_user/application_keys/{app_key_id}".replace("{app_key_id}", encodeURIComponent(String(appKeyId))); + // Make Request Context + const requestContext = _config + .getServer("v2.KeyManagementApi.getCurrentUserApplicationKey") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listAPIKeys(pageSize, pageNumber, sort, filter, filterCreatedAtStart, filterCreatedAtEnd, filterModifiedAtStart, filterModifiedAtEnd, include, filterRemoteConfigReadEnabled, filterCategory, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/api_keys"; + // Make Request Context + const requestContext = _config + .getServer("v2.KeyManagementApi.listAPIKeys") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (pageSize !== undefined) { + requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), ""); + } + if (pageNumber !== undefined) { + requestContext.setQueryParam("page[number]", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); + } + if (sort !== undefined) { + requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "APIKeysSort", ""), ""); + } + if (filter !== undefined) { + requestContext.setQueryParam("filter", ObjectSerializer_1.ObjectSerializer.serialize(filter, "string", ""), ""); + } + if (filterCreatedAtStart !== undefined) { + requestContext.setQueryParam("filter[created_at][start]", ObjectSerializer_1.ObjectSerializer.serialize(filterCreatedAtStart, "string", ""), ""); + } + if (filterCreatedAtEnd !== undefined) { + requestContext.setQueryParam("filter[created_at][end]", ObjectSerializer_1.ObjectSerializer.serialize(filterCreatedAtEnd, "string", ""), ""); + } + if (filterModifiedAtStart !== undefined) { + requestContext.setQueryParam("filter[modified_at][start]", ObjectSerializer_1.ObjectSerializer.serialize(filterModifiedAtStart, "string", ""), ""); + } + if (filterModifiedAtEnd !== undefined) { + requestContext.setQueryParam("filter[modified_at][end]", ObjectSerializer_1.ObjectSerializer.serialize(filterModifiedAtEnd, "string", ""), ""); + } + if (include !== undefined) { + requestContext.setQueryParam("include", ObjectSerializer_1.ObjectSerializer.serialize(include, "string", ""), ""); + } + if (filterRemoteConfigReadEnabled !== undefined) { + requestContext.setQueryParam("filter[remote_config_read_enabled]", ObjectSerializer_1.ObjectSerializer.serialize(filterRemoteConfigReadEnabled, "boolean", ""), ""); + } + if (filterCategory !== undefined) { + requestContext.setQueryParam("filter[category]", ObjectSerializer_1.ObjectSerializer.serialize(filterCategory, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listApplicationKeys(pageSize, pageNumber, sort, filter, filterCreatedAtStart, filterCreatedAtEnd, include, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/application_keys"; + // Make Request Context + const requestContext = _config + .getServer("v2.KeyManagementApi.listApplicationKeys") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (pageSize !== undefined) { + requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), ""); + } + if (pageNumber !== undefined) { + requestContext.setQueryParam("page[number]", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); + } + if (sort !== undefined) { + requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "ApplicationKeysSort", ""), ""); + } + if (filter !== undefined) { + requestContext.setQueryParam("filter", ObjectSerializer_1.ObjectSerializer.serialize(filter, "string", ""), ""); + } + if (filterCreatedAtStart !== undefined) { + requestContext.setQueryParam("filter[created_at][start]", ObjectSerializer_1.ObjectSerializer.serialize(filterCreatedAtStart, "string", ""), ""); + } + if (filterCreatedAtEnd !== undefined) { + requestContext.setQueryParam("filter[created_at][end]", ObjectSerializer_1.ObjectSerializer.serialize(filterCreatedAtEnd, "string", ""), ""); + } + if (include !== undefined) { + requestContext.setQueryParam("include", ObjectSerializer_1.ObjectSerializer.serialize(include, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listCurrentUserApplicationKeys(pageSize, pageNumber, sort, filter, filterCreatedAtStart, filterCreatedAtEnd, include, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/current_user/application_keys"; + // Make Request Context + const requestContext = _config + .getServer("v2.KeyManagementApi.listCurrentUserApplicationKeys") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (pageSize !== undefined) { + requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), ""); + } + if (pageNumber !== undefined) { + requestContext.setQueryParam("page[number]", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); + } + if (sort !== undefined) { + requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "ApplicationKeysSort", ""), ""); + } + if (filter !== undefined) { + requestContext.setQueryParam("filter", ObjectSerializer_1.ObjectSerializer.serialize(filter, "string", ""), ""); + } + if (filterCreatedAtStart !== undefined) { + requestContext.setQueryParam("filter[created_at][start]", ObjectSerializer_1.ObjectSerializer.serialize(filterCreatedAtStart, "string", ""), ""); + } + if (filterCreatedAtEnd !== undefined) { + requestContext.setQueryParam("filter[created_at][end]", ObjectSerializer_1.ObjectSerializer.serialize(filterCreatedAtEnd, "string", ""), ""); + } + if (include !== undefined) { + requestContext.setQueryParam("include", ObjectSerializer_1.ObjectSerializer.serialize(include, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateAPIKey(apiKeyId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'apiKeyId' is not null or undefined + if (apiKeyId === null || apiKeyId === undefined) { + throw new baseapi_1.RequiredError("apiKeyId", "updateAPIKey"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateAPIKey"); + } + // Path Params + const localVarPath = "/api/v2/api_keys/{api_key_id}".replace("{api_key_id}", encodeURIComponent(String(apiKeyId))); + // Make Request Context + const requestContext = _config + .getServer("v2.KeyManagementApi.updateAPIKey") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "APIKeyUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateApplicationKey(appKeyId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'appKeyId' is not null or undefined + if (appKeyId === null || appKeyId === undefined) { + throw new baseapi_1.RequiredError("appKeyId", "updateApplicationKey"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateApplicationKey"); + } + // Path Params + const localVarPath = "/api/v2/application_keys/{app_key_id}".replace("{app_key_id}", encodeURIComponent(String(appKeyId))); + // Make Request Context + const requestContext = _config + .getServer("v2.KeyManagementApi.updateApplicationKey") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ApplicationKeyUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateCurrentUserApplicationKey(appKeyId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'appKeyId' is not null or undefined + if (appKeyId === null || appKeyId === undefined) { + throw new baseapi_1.RequiredError("appKeyId", "updateCurrentUserApplicationKey"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateCurrentUserApplicationKey"); + } + // Path Params + const localVarPath = "/api/v2/current_user/application_keys/{app_key_id}".replace("{app_key_id}", encodeURIComponent(String(appKeyId))); + // Make Request Context + const requestContext = _config + .getServer("v2.KeyManagementApi.updateCurrentUserApplicationKey") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ApplicationKeyUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.KeyManagementApiRequestFactory = KeyManagementApiRequestFactory; +class KeyManagementApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createAPIKey + * @throws ApiException if the response code was not in [200, 299] + */ + createAPIKey(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "APIKeyResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "APIKeyResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createCurrentUserApplicationKey + * @throws ApiException if the response code was not in [200, 299] + */ + createCurrentUserApplicationKey(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApplicationKeyResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApplicationKeyResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteAPIKey + * @throws ApiException if the response code was not in [200, 299] + */ + deleteAPIKey(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteApplicationKey + * @throws ApiException if the response code was not in [200, 299] + */ + deleteApplicationKey(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCurrentUserApplicationKey + * @throws ApiException if the response code was not in [200, 299] + */ + deleteCurrentUserApplicationKey(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getAPIKey + * @throws ApiException if the response code was not in [200, 299] + */ + getAPIKey(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "APIKeyResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "APIKeyResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getApplicationKey + * @throws ApiException if the response code was not in [200, 299] + */ + getApplicationKey(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApplicationKeyResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApplicationKeyResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getCurrentUserApplicationKey + * @throws ApiException if the response code was not in [200, 299] + */ + getCurrentUserApplicationKey(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApplicationKeyResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApplicationKeyResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listAPIKeys + * @throws ApiException if the response code was not in [200, 299] + */ + listAPIKeys(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "APIKeysResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "APIKeysResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listApplicationKeys + * @throws ApiException if the response code was not in [200, 299] + */ + listApplicationKeys(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListApplicationKeysResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListApplicationKeysResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listCurrentUserApplicationKeys + * @throws ApiException if the response code was not in [200, 299] + */ + listCurrentUserApplicationKeys(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListApplicationKeysResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListApplicationKeysResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateAPIKey + * @throws ApiException if the response code was not in [200, 299] + */ + updateAPIKey(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "APIKeyResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "APIKeyResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateApplicationKey + * @throws ApiException if the response code was not in [200, 299] + */ + updateApplicationKey(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApplicationKeyResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApplicationKeyResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateCurrentUserApplicationKey + * @throws ApiException if the response code was not in [200, 299] + */ + updateCurrentUserApplicationKey(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApplicationKeyResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApplicationKeyResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.KeyManagementApiResponseProcessor = KeyManagementApiResponseProcessor; +class KeyManagementApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new KeyManagementApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new KeyManagementApiResponseProcessor(); + } + /** + * Create an API key. + * @param param The request object + */ + createAPIKey(param, options) { + const requestContextPromise = this.requestFactory.createAPIKey(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createAPIKey(responseContext); + }); + }); + } + /** + * Create an application key for current user + * @param param The request object + */ + createCurrentUserApplicationKey(param, options) { + const requestContextPromise = this.requestFactory.createCurrentUserApplicationKey(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createCurrentUserApplicationKey(responseContext); + }); + }); + } + /** + * Delete an API key. + * @param param The request object + */ + deleteAPIKey(param, options) { + const requestContextPromise = this.requestFactory.deleteAPIKey(param.apiKeyId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteAPIKey(responseContext); + }); + }); + } + /** + * Delete an application key + * @param param The request object + */ + deleteApplicationKey(param, options) { + const requestContextPromise = this.requestFactory.deleteApplicationKey(param.appKeyId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteApplicationKey(responseContext); + }); + }); + } + /** + * Delete an application key owned by current user + * @param param The request object + */ + deleteCurrentUserApplicationKey(param, options) { + const requestContextPromise = this.requestFactory.deleteCurrentUserApplicationKey(param.appKeyId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteCurrentUserApplicationKey(responseContext); + }); + }); + } + /** + * Get an API key. + * @param param The request object + */ + getAPIKey(param, options) { + const requestContextPromise = this.requestFactory.getAPIKey(param.apiKeyId, param.include, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getAPIKey(responseContext); + }); + }); + } + /** + * Get an application key for your org. + * @param param The request object + */ + getApplicationKey(param, options) { + const requestContextPromise = this.requestFactory.getApplicationKey(param.appKeyId, param.include, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getApplicationKey(responseContext); + }); + }); + } + /** + * Get an application key owned by current user + * @param param The request object + */ + getCurrentUserApplicationKey(param, options) { + const requestContextPromise = this.requestFactory.getCurrentUserApplicationKey(param.appKeyId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getCurrentUserApplicationKey(responseContext); + }); + }); + } + /** + * List all API keys available for your account. + * @param param The request object + */ + listAPIKeys(param = {}, options) { + const requestContextPromise = this.requestFactory.listAPIKeys(param.pageSize, param.pageNumber, param.sort, param.filter, param.filterCreatedAtStart, param.filterCreatedAtEnd, param.filterModifiedAtStart, param.filterModifiedAtEnd, param.include, param.filterRemoteConfigReadEnabled, param.filterCategory, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listAPIKeys(responseContext); + }); + }); + } + /** + * List all application keys available for your org + * @param param The request object + */ + listApplicationKeys(param = {}, options) { + const requestContextPromise = this.requestFactory.listApplicationKeys(param.pageSize, param.pageNumber, param.sort, param.filter, param.filterCreatedAtStart, param.filterCreatedAtEnd, param.include, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listApplicationKeys(responseContext); + }); + }); + } + /** + * List all application keys available for current user + * @param param The request object + */ + listCurrentUserApplicationKeys(param = {}, options) { + const requestContextPromise = this.requestFactory.listCurrentUserApplicationKeys(param.pageSize, param.pageNumber, param.sort, param.filter, param.filterCreatedAtStart, param.filterCreatedAtEnd, param.include, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listCurrentUserApplicationKeys(responseContext); + }); + }); + } + /** + * Update an API key. + * @param param The request object + */ + updateAPIKey(param, options) { + const requestContextPromise = this.requestFactory.updateAPIKey(param.apiKeyId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateAPIKey(responseContext); + }); + }); + } + /** + * Edit an application key + * @param param The request object + */ + updateApplicationKey(param, options) { + const requestContextPromise = this.requestFactory.updateApplicationKey(param.appKeyId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateApplicationKey(responseContext); + }); + }); + } + /** + * Edit an application key owned by current user + * @param param The request object + */ + updateCurrentUserApplicationKey(param, options) { + const requestContextPromise = this.requestFactory.updateCurrentUserApplicationKey(param.appKeyId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateCurrentUserApplicationKey(responseContext); + }); + }); + } +} +exports.KeyManagementApi = KeyManagementApi; +//# sourceMappingURL=KeyManagementApi.js.map + +/***/ }), + +/***/ 90258: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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 __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogsApi = exports.LogsApiResponseProcessor = exports.LogsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +const LogsListRequest_1 = __nccwpck_require__(18128); +const LogsListRequestPage_1 = __nccwpck_require__(7039); +class LogsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + aggregateLogs(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "aggregateLogs"); + } + // Path Params + const localVarPath = "/api/v2/logs/analytics/aggregate"; + // Make Request Context + const requestContext = _config + .getServer("v2.LogsApi.aggregateLogs") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "LogsAggregateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listLogs(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/logs/events/search"; + // Make Request Context + const requestContext = _config + .getServer("v2.LogsApi.listLogs") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "LogsListRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listLogsGet(filterQuery, filterIndexes, filterFrom, filterTo, filterStorageTier, sort, pageCursor, pageLimit, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/logs/events"; + // Make Request Context + const requestContext = _config + .getServer("v2.LogsApi.listLogsGet") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (filterQuery !== undefined) { + requestContext.setQueryParam("filter[query]", ObjectSerializer_1.ObjectSerializer.serialize(filterQuery, "string", ""), ""); + } + if (filterIndexes !== undefined) { + requestContext.setQueryParam("filter[indexes]", ObjectSerializer_1.ObjectSerializer.serialize(filterIndexes, "Array", ""), "csv"); + } + if (filterFrom !== undefined) { + requestContext.setQueryParam("filter[from]", ObjectSerializer_1.ObjectSerializer.serialize(filterFrom, "Date", "date-time"), ""); + } + if (filterTo !== undefined) { + requestContext.setQueryParam("filter[to]", ObjectSerializer_1.ObjectSerializer.serialize(filterTo, "Date", "date-time"), ""); + } + if (filterStorageTier !== undefined) { + requestContext.setQueryParam("filter[storage_tier]", ObjectSerializer_1.ObjectSerializer.serialize(filterStorageTier, "LogsStorageTier", ""), ""); + } + if (sort !== undefined) { + requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "LogsSort", ""), ""); + } + if (pageCursor !== undefined) { + requestContext.setQueryParam("page[cursor]", ObjectSerializer_1.ObjectSerializer.serialize(pageCursor, "string", ""), ""); + } + if (pageLimit !== undefined) { + requestContext.setQueryParam("page[limit]", ObjectSerializer_1.ObjectSerializer.serialize(pageLimit, "number", "int32"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + submitLog(body, contentEncoding, ddtags, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "submitLog"); + } + // Path Params + const localVarPath = "/api/v2/logs"; + // Make Request Context + const requestContext = _config + .getServer("v2.LogsApi.submitLog") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (ddtags !== undefined) { + requestContext.setQueryParam("ddtags", ObjectSerializer_1.ObjectSerializer.serialize(ddtags, "string", ""), ""); + } + // Header Params + if (contentEncoding !== undefined) { + requestContext.setHeaderParam("Content-Encoding", ObjectSerializer_1.ObjectSerializer.serialize(contentEncoding, "ContentEncoding", "")); + } + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + "application/logplex-1", + "text/plain", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "Array", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, ["apiKeyAuth"]); + return requestContext; + }); + } +} +exports.LogsApiRequestFactory = LogsApiRequestFactory; +class LogsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to aggregateLogs + * @throws ApiException if the response code was not in [200, 299] + */ + aggregateLogs(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsAggregateResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsAggregateResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listLogs + * @throws ApiException if the response code was not in [200, 299] + */ + listLogs(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsListResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listLogsGet + * @throws ApiException if the response code was not in [200, 299] + */ + listLogsGet(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsListResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to submitLog + * @throws ApiException if the response code was not in [200, 299] + */ + submitLog(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 202) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 408 || + response.httpStatusCode === 413 || + response.httpStatusCode === 429 || + response.httpStatusCode === 500 || + response.httpStatusCode === 503) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "HTTPLogErrors"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.LogsApiResponseProcessor = LogsApiResponseProcessor; +class LogsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new LogsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new LogsApiResponseProcessor(); + } + /** + * The API endpoint to aggregate events into buckets and compute metrics and timeseries. + * @param param The request object + */ + aggregateLogs(param, options) { + const requestContextPromise = this.requestFactory.aggregateLogs(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.aggregateLogs(responseContext); + }); + }); + } + /** + * List endpoint returns logs that match a log search query. + * [Results are paginated][1]. + * + * Use this endpoint to build complex logs filtering and search. + * + * **If you are considering archiving logs for your organization, + * consider use of the Datadog archive capabilities instead of the log list API. + * See [Datadog Logs Archive documentation][2].** + * + * [1]: /logs/guide/collect-multiple-logs-with-pagination + * [2]: https://docs.datadoghq.com/logs/archives + * @param param The request object + */ + listLogs(param = {}, options) { + const requestContextPromise = this.requestFactory.listLogs(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listLogs(responseContext); + }); + }); + } + /** + * Provide a paginated version of listLogs returning a generator with all the items. + */ + listLogsWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* listLogsWithPagination_1() { + let pageSize = 10; + if (param.body === undefined) { + param.body = new LogsListRequest_1.LogsListRequest(); + } + if (param.body.page === undefined) { + param.body.page = new LogsListRequestPage_1.LogsListRequestPage(); + } + if (param.body.page.limit !== undefined) { + pageSize = param.body.page.limit; + } + param.body.page.limit = pageSize; + while (true) { + const requestContext = yield __await(this.requestFactory.listLogs(param.body, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listLogs(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + const cursorMeta = response.meta; + if (cursorMeta === undefined) { + break; + } + const cursorMetaPage = cursorMeta.page; + if (cursorMetaPage === undefined) { + break; + } + const cursorMetaPageAfter = cursorMetaPage.after; + if (cursorMetaPageAfter === undefined) { + break; + } + param.body.page.cursor = cursorMetaPageAfter; + } + }); + } + /** + * List endpoint returns logs that match a log search query. + * [Results are paginated][1]. + * + * Use this endpoint to see your latest logs. + * + * **If you are considering archiving logs for your organization, + * consider use of the Datadog archive capabilities instead of the log list API. + * See [Datadog Logs Archive documentation][2].** + * + * [1]: /logs/guide/collect-multiple-logs-with-pagination + * [2]: https://docs.datadoghq.com/logs/archives + * @param param The request object + */ + listLogsGet(param = {}, options) { + const requestContextPromise = this.requestFactory.listLogsGet(param.filterQuery, param.filterIndexes, param.filterFrom, param.filterTo, param.filterStorageTier, param.sort, param.pageCursor, param.pageLimit, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listLogsGet(responseContext); + }); + }); + } + /** + * Provide a paginated version of listLogsGet returning a generator with all the items. + */ + listLogsGetWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* listLogsGetWithPagination_1() { + let pageSize = 10; + if (param.pageLimit !== undefined) { + pageSize = param.pageLimit; + } + param.pageLimit = pageSize; + while (true) { + const requestContext = yield __await(this.requestFactory.listLogsGet(param.filterQuery, param.filterIndexes, param.filterFrom, param.filterTo, param.filterStorageTier, param.sort, param.pageCursor, param.pageLimit, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listLogsGet(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + const cursorMeta = response.meta; + if (cursorMeta === undefined) { + break; + } + const cursorMetaPage = cursorMeta.page; + if (cursorMetaPage === undefined) { + break; + } + const cursorMetaPageAfter = cursorMetaPage.after; + if (cursorMetaPageAfter === undefined) { + break; + } + param.pageCursor = cursorMetaPageAfter; + } + }); + } + /** + * Send your logs to your Datadog platform over HTTP. Limits per HTTP request are: + * + * - Maximum content size per payload (uncompressed): 5MB + * - Maximum size for a single log: 1MB + * - Maximum array size if sending multiple logs in an array: 1000 entries + * + * Any log exceeding 1MB is accepted and truncated by Datadog: + * - For a single log request, the API truncates the log at 1MB and returns a 2xx. + * - For a multi-logs request, the API processes all logs, truncates only logs larger than 1MB, and returns a 2xx. + * + * Datadog recommends sending your logs compressed. + * Add the `Content-Encoding: gzip` header to the request when sending compressed logs. + * Log events can be submitted with a timestamp that is up to 18 hours in the past. + * + * The status codes answered by the HTTP API are: + * - 202: Accepted: the request has been accepted for processing + * - 400: Bad request (likely an issue in the payload formatting) + * - 401: Unauthorized (likely a missing API Key) + * - 403: Permission issue (likely using an invalid API Key) + * - 408: Request Timeout, request should be retried after some time + * - 413: Payload too large (batch is above 5MB uncompressed) + * - 429: Too Many Requests, request should be retried after some time + * - 500: Internal Server Error, the server encountered an unexpected condition that prevented it from fulfilling the request, request should be retried after some time + * - 503: Service Unavailable, the server is not ready to handle the request probably because it is overloaded, request should be retried after some time + * @param param The request object + */ + submitLog(param, options) { + const requestContextPromise = this.requestFactory.submitLog(param.body, param.contentEncoding, param.ddtags, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.submitLog(responseContext); + }); + }); + } +} +exports.LogsApi = LogsApi; +//# sourceMappingURL=LogsApi.js.map + +/***/ }), + +/***/ 4431: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.LogsArchivesApi = exports.LogsArchivesApiResponseProcessor = exports.LogsArchivesApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class LogsArchivesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + addReadRoleToArchive(archiveId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'archiveId' is not null or undefined + if (archiveId === null || archiveId === undefined) { + throw new baseapi_1.RequiredError("archiveId", "addReadRoleToArchive"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "addReadRoleToArchive"); + } + // Path Params + const localVarPath = "/api/v2/logs/config/archives/{archive_id}/readers".replace("{archive_id}", encodeURIComponent(String(archiveId))); + // Make Request Context + const requestContext = _config + .getServer("v2.LogsArchivesApi.addReadRoleToArchive") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "RelationshipToRole", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createLogsArchive(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createLogsArchive"); + } + // Path Params + const localVarPath = "/api/v2/logs/config/archives"; + // Make Request Context + const requestContext = _config + .getServer("v2.LogsArchivesApi.createLogsArchive") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "LogsArchiveCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteLogsArchive(archiveId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'archiveId' is not null or undefined + if (archiveId === null || archiveId === undefined) { + throw new baseapi_1.RequiredError("archiveId", "deleteLogsArchive"); + } + // Path Params + const localVarPath = "/api/v2/logs/config/archives/{archive_id}".replace("{archive_id}", encodeURIComponent(String(archiveId))); + // Make Request Context + const requestContext = _config + .getServer("v2.LogsArchivesApi.deleteLogsArchive") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getLogsArchive(archiveId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'archiveId' is not null or undefined + if (archiveId === null || archiveId === undefined) { + throw new baseapi_1.RequiredError("archiveId", "getLogsArchive"); + } + // Path Params + const localVarPath = "/api/v2/logs/config/archives/{archive_id}".replace("{archive_id}", encodeURIComponent(String(archiveId))); + // Make Request Context + const requestContext = _config + .getServer("v2.LogsArchivesApi.getLogsArchive") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getLogsArchiveOrder(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/logs/config/archive-order"; + // Make Request Context + const requestContext = _config + .getServer("v2.LogsArchivesApi.getLogsArchiveOrder") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listArchiveReadRoles(archiveId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'archiveId' is not null or undefined + if (archiveId === null || archiveId === undefined) { + throw new baseapi_1.RequiredError("archiveId", "listArchiveReadRoles"); + } + // Path Params + const localVarPath = "/api/v2/logs/config/archives/{archive_id}/readers".replace("{archive_id}", encodeURIComponent(String(archiveId))); + // Make Request Context + const requestContext = _config + .getServer("v2.LogsArchivesApi.listArchiveReadRoles") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listLogsArchives(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/logs/config/archives"; + // Make Request Context + const requestContext = _config + .getServer("v2.LogsArchivesApi.listLogsArchives") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + removeRoleFromArchive(archiveId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'archiveId' is not null or undefined + if (archiveId === null || archiveId === undefined) { + throw new baseapi_1.RequiredError("archiveId", "removeRoleFromArchive"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "removeRoleFromArchive"); + } + // Path Params + const localVarPath = "/api/v2/logs/config/archives/{archive_id}/readers".replace("{archive_id}", encodeURIComponent(String(archiveId))); + // Make Request Context + const requestContext = _config + .getServer("v2.LogsArchivesApi.removeRoleFromArchive") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "RelationshipToRole", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateLogsArchive(archiveId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'archiveId' is not null or undefined + if (archiveId === null || archiveId === undefined) { + throw new baseapi_1.RequiredError("archiveId", "updateLogsArchive"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateLogsArchive"); + } + // Path Params + const localVarPath = "/api/v2/logs/config/archives/{archive_id}".replace("{archive_id}", encodeURIComponent(String(archiveId))); + // Make Request Context + const requestContext = _config + .getServer("v2.LogsArchivesApi.updateLogsArchive") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "LogsArchiveCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateLogsArchiveOrder(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateLogsArchiveOrder"); + } + // Path Params + const localVarPath = "/api/v2/logs/config/archive-order"; + // Make Request Context + const requestContext = _config + .getServer("v2.LogsArchivesApi.updateLogsArchiveOrder") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "LogsArchiveOrder", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.LogsArchivesApiRequestFactory = LogsArchivesApiRequestFactory; +class LogsArchivesApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to addReadRoleToArchive + * @throws ApiException if the response code was not in [200, 299] + */ + addReadRoleToArchive(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createLogsArchive + * @throws ApiException if the response code was not in [200, 299] + */ + createLogsArchive(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsArchive"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsArchive", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteLogsArchive + * @throws ApiException if the response code was not in [200, 299] + */ + deleteLogsArchive(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getLogsArchive + * @throws ApiException if the response code was not in [200, 299] + */ + getLogsArchive(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsArchive"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsArchive", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getLogsArchiveOrder + * @throws ApiException if the response code was not in [200, 299] + */ + getLogsArchiveOrder(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsArchiveOrder"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsArchiveOrder", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listArchiveReadRoles + * @throws ApiException if the response code was not in [200, 299] + */ + listArchiveReadRoles(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RolesResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RolesResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listLogsArchives + * @throws ApiException if the response code was not in [200, 299] + */ + listLogsArchives(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsArchives"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsArchives", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to removeRoleFromArchive + * @throws ApiException if the response code was not in [200, 299] + */ + removeRoleFromArchive(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateLogsArchive + * @throws ApiException if the response code was not in [200, 299] + */ + updateLogsArchive(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsArchive"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsArchive", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateLogsArchiveOrder + * @throws ApiException if the response code was not in [200, 299] + */ + updateLogsArchiveOrder(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsArchiveOrder"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 422 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsArchiveOrder", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.LogsArchivesApiResponseProcessor = LogsArchivesApiResponseProcessor; +class LogsArchivesApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new LogsArchivesApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new LogsArchivesApiResponseProcessor(); + } + /** + * Adds a read role to an archive. ([Roles API](https://docs.datadoghq.com/api/v2/roles/)) + * @param param The request object + */ + addReadRoleToArchive(param, options) { + const requestContextPromise = this.requestFactory.addReadRoleToArchive(param.archiveId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.addReadRoleToArchive(responseContext); + }); + }); + } + /** + * Create an archive in your organization. + * @param param The request object + */ + createLogsArchive(param, options) { + const requestContextPromise = this.requestFactory.createLogsArchive(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createLogsArchive(responseContext); + }); + }); + } + /** + * Delete a given archive from your organization. + * @param param The request object + */ + deleteLogsArchive(param, options) { + const requestContextPromise = this.requestFactory.deleteLogsArchive(param.archiveId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteLogsArchive(responseContext); + }); + }); + } + /** + * Get a specific archive from your organization. + * @param param The request object + */ + getLogsArchive(param, options) { + const requestContextPromise = this.requestFactory.getLogsArchive(param.archiveId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getLogsArchive(responseContext); + }); + }); + } + /** + * Get the current order of your archives. + * This endpoint takes no JSON arguments. + * @param param The request object + */ + getLogsArchiveOrder(options) { + const requestContextPromise = this.requestFactory.getLogsArchiveOrder(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getLogsArchiveOrder(responseContext); + }); + }); + } + /** + * Returns all read roles a given archive is restricted to. + * @param param The request object + */ + listArchiveReadRoles(param, options) { + const requestContextPromise = this.requestFactory.listArchiveReadRoles(param.archiveId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listArchiveReadRoles(responseContext); + }); + }); + } + /** + * Get the list of configured logs archives with their definitions. + * @param param The request object + */ + listLogsArchives(options) { + const requestContextPromise = this.requestFactory.listLogsArchives(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listLogsArchives(responseContext); + }); + }); + } + /** + * Removes a role from an archive. ([Roles API](https://docs.datadoghq.com/api/v2/roles/)) + * @param param The request object + */ + removeRoleFromArchive(param, options) { + const requestContextPromise = this.requestFactory.removeRoleFromArchive(param.archiveId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.removeRoleFromArchive(responseContext); + }); + }); + } + /** + * Update a given archive configuration. + * + * **Note**: Using this method updates your archive configuration by **replacing** + * your current configuration with the new one sent to your Datadog organization. + * @param param The request object + */ + updateLogsArchive(param, options) { + const requestContextPromise = this.requestFactory.updateLogsArchive(param.archiveId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateLogsArchive(responseContext); + }); + }); + } + /** + * Update the order of your archives. Since logs are processed sequentially, reordering an archive may change + * the structure and content of the data processed by other archives. + * + * **Note**: Using the `PUT` method updates your archive's order by replacing the current order + * with the new one. + * @param param The request object + */ + updateLogsArchiveOrder(param, options) { + const requestContextPromise = this.requestFactory.updateLogsArchiveOrder(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateLogsArchiveOrder(responseContext); + }); + }); + } +} +exports.LogsArchivesApi = LogsArchivesApi; +//# sourceMappingURL=LogsArchivesApi.js.map + +/***/ }), + +/***/ 70584: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.LogsCustomDestinationsApi = exports.LogsCustomDestinationsApiResponseProcessor = exports.LogsCustomDestinationsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class LogsCustomDestinationsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createLogsCustomDestination(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createLogsCustomDestination"); + } + // Path Params + const localVarPath = "/api/v2/logs/config/custom-destinations"; + // Make Request Context + const requestContext = _config + .getServer("v2.LogsCustomDestinationsApi.createLogsCustomDestination") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "CustomDestinationCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteLogsCustomDestination(customDestinationId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'customDestinationId' is not null or undefined + if (customDestinationId === null || customDestinationId === undefined) { + throw new baseapi_1.RequiredError("customDestinationId", "deleteLogsCustomDestination"); + } + // Path Params + const localVarPath = "/api/v2/logs/config/custom-destinations/{custom_destination_id}".replace("{custom_destination_id}", encodeURIComponent(String(customDestinationId))); + // Make Request Context + const requestContext = _config + .getServer("v2.LogsCustomDestinationsApi.deleteLogsCustomDestination") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getLogsCustomDestination(customDestinationId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'customDestinationId' is not null or undefined + if (customDestinationId === null || customDestinationId === undefined) { + throw new baseapi_1.RequiredError("customDestinationId", "getLogsCustomDestination"); + } + // Path Params + const localVarPath = "/api/v2/logs/config/custom-destinations/{custom_destination_id}".replace("{custom_destination_id}", encodeURIComponent(String(customDestinationId))); + // Make Request Context + const requestContext = _config + .getServer("v2.LogsCustomDestinationsApi.getLogsCustomDestination") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listLogsCustomDestinations(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/logs/config/custom-destinations"; + // Make Request Context + const requestContext = _config + .getServer("v2.LogsCustomDestinationsApi.listLogsCustomDestinations") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateLogsCustomDestination(customDestinationId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'customDestinationId' is not null or undefined + if (customDestinationId === null || customDestinationId === undefined) { + throw new baseapi_1.RequiredError("customDestinationId", "updateLogsCustomDestination"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateLogsCustomDestination"); + } + // Path Params + const localVarPath = "/api/v2/logs/config/custom-destinations/{custom_destination_id}".replace("{custom_destination_id}", encodeURIComponent(String(customDestinationId))); + // Make Request Context + const requestContext = _config + .getServer("v2.LogsCustomDestinationsApi.updateLogsCustomDestination") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "CustomDestinationUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.LogsCustomDestinationsApiRequestFactory = LogsCustomDestinationsApiRequestFactory; +class LogsCustomDestinationsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createLogsCustomDestination + * @throws ApiException if the response code was not in [200, 299] + */ + createLogsCustomDestination(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CustomDestinationResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CustomDestinationResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteLogsCustomDestination + * @throws ApiException if the response code was not in [200, 299] + */ + deleteLogsCustomDestination(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getLogsCustomDestination + * @throws ApiException if the response code was not in [200, 299] + */ + getLogsCustomDestination(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CustomDestinationResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CustomDestinationResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listLogsCustomDestinations + * @throws ApiException if the response code was not in [200, 299] + */ + listLogsCustomDestinations(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CustomDestinationsResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CustomDestinationsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateLogsCustomDestination + * @throws ApiException if the response code was not in [200, 299] + */ + updateLogsCustomDestination(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CustomDestinationResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CustomDestinationResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.LogsCustomDestinationsApiResponseProcessor = LogsCustomDestinationsApiResponseProcessor; +class LogsCustomDestinationsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || + new LogsCustomDestinationsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new LogsCustomDestinationsApiResponseProcessor(); + } + /** + * Create a custom destination in your organization. + * @param param The request object + */ + createLogsCustomDestination(param, options) { + const requestContextPromise = this.requestFactory.createLogsCustomDestination(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createLogsCustomDestination(responseContext); + }); + }); + } + /** + * Delete a specific custom destination in your organization. + * @param param The request object + */ + deleteLogsCustomDestination(param, options) { + const requestContextPromise = this.requestFactory.deleteLogsCustomDestination(param.customDestinationId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteLogsCustomDestination(responseContext); + }); + }); + } + /** + * Get a specific custom destination in your organization. + * @param param The request object + */ + getLogsCustomDestination(param, options) { + const requestContextPromise = this.requestFactory.getLogsCustomDestination(param.customDestinationId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getLogsCustomDestination(responseContext); + }); + }); + } + /** + * Get the list of configured custom destinations in your organization with their definitions. + * @param param The request object + */ + listLogsCustomDestinations(options) { + const requestContextPromise = this.requestFactory.listLogsCustomDestinations(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listLogsCustomDestinations(responseContext); + }); + }); + } + /** + * Update the given fields of a specific custom destination in your organization. + * @param param The request object + */ + updateLogsCustomDestination(param, options) { + const requestContextPromise = this.requestFactory.updateLogsCustomDestination(param.customDestinationId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateLogsCustomDestination(responseContext); + }); + }); + } +} +exports.LogsCustomDestinationsApi = LogsCustomDestinationsApi; +//# sourceMappingURL=LogsCustomDestinationsApi.js.map + +/***/ }), + +/***/ 74795: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.LogsMetricsApi = exports.LogsMetricsApiResponseProcessor = exports.LogsMetricsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class LogsMetricsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createLogsMetric(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createLogsMetric"); + } + // Path Params + const localVarPath = "/api/v2/logs/config/metrics"; + // Make Request Context + const requestContext = _config + .getServer("v2.LogsMetricsApi.createLogsMetric") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "LogsMetricCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteLogsMetric(metricId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'metricId' is not null or undefined + if (metricId === null || metricId === undefined) { + throw new baseapi_1.RequiredError("metricId", "deleteLogsMetric"); + } + // Path Params + const localVarPath = "/api/v2/logs/config/metrics/{metric_id}".replace("{metric_id}", encodeURIComponent(String(metricId))); + // Make Request Context + const requestContext = _config + .getServer("v2.LogsMetricsApi.deleteLogsMetric") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getLogsMetric(metricId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'metricId' is not null or undefined + if (metricId === null || metricId === undefined) { + throw new baseapi_1.RequiredError("metricId", "getLogsMetric"); + } + // Path Params + const localVarPath = "/api/v2/logs/config/metrics/{metric_id}".replace("{metric_id}", encodeURIComponent(String(metricId))); + // Make Request Context + const requestContext = _config + .getServer("v2.LogsMetricsApi.getLogsMetric") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listLogsMetrics(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/logs/config/metrics"; + // Make Request Context + const requestContext = _config + .getServer("v2.LogsMetricsApi.listLogsMetrics") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateLogsMetric(metricId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'metricId' is not null or undefined + if (metricId === null || metricId === undefined) { + throw new baseapi_1.RequiredError("metricId", "updateLogsMetric"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateLogsMetric"); + } + // Path Params + const localVarPath = "/api/v2/logs/config/metrics/{metric_id}".replace("{metric_id}", encodeURIComponent(String(metricId))); + // Make Request Context + const requestContext = _config + .getServer("v2.LogsMetricsApi.updateLogsMetric") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "LogsMetricUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.LogsMetricsApiRequestFactory = LogsMetricsApiRequestFactory; +class LogsMetricsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createLogsMetric + * @throws ApiException if the response code was not in [200, 299] + */ + createLogsMetric(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsMetricResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsMetricResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteLogsMetric + * @throws ApiException if the response code was not in [200, 299] + */ + deleteLogsMetric(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getLogsMetric + * @throws ApiException if the response code was not in [200, 299] + */ + getLogsMetric(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsMetricResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsMetricResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listLogsMetrics + * @throws ApiException if the response code was not in [200, 299] + */ + listLogsMetrics(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsMetricsResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsMetricsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateLogsMetric + * @throws ApiException if the response code was not in [200, 299] + */ + updateLogsMetric(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsMetricResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "LogsMetricResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.LogsMetricsApiResponseProcessor = LogsMetricsApiResponseProcessor; +class LogsMetricsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new LogsMetricsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new LogsMetricsApiResponseProcessor(); + } + /** + * Create a metric based on your ingested logs in your organization. + * Returns the log-based metric object from the request body when the request is successful. + * @param param The request object + */ + createLogsMetric(param, options) { + const requestContextPromise = this.requestFactory.createLogsMetric(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createLogsMetric(responseContext); + }); + }); + } + /** + * Delete a specific log-based metric from your organization. + * @param param The request object + */ + deleteLogsMetric(param, options) { + const requestContextPromise = this.requestFactory.deleteLogsMetric(param.metricId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteLogsMetric(responseContext); + }); + }); + } + /** + * Get a specific log-based metric from your organization. + * @param param The request object + */ + getLogsMetric(param, options) { + const requestContextPromise = this.requestFactory.getLogsMetric(param.metricId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getLogsMetric(responseContext); + }); + }); + } + /** + * Get the list of configured log-based metrics with their definitions. + * @param param The request object + */ + listLogsMetrics(options) { + const requestContextPromise = this.requestFactory.listLogsMetrics(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listLogsMetrics(responseContext); + }); + }); + } + /** + * Update a specific log-based metric from your organization. + * Returns the log-based metric object from the request body when the request is successful. + * @param param The request object + */ + updateLogsMetric(param, options) { + const requestContextPromise = this.requestFactory.updateLogsMetric(param.metricId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateLogsMetric(responseContext); + }); + }); + } +} +exports.LogsMetricsApi = LogsMetricsApi; +//# sourceMappingURL=LogsMetricsApi.js.map + +/***/ }), + +/***/ 18132: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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 __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MetricsApi = exports.MetricsApiResponseProcessor = exports.MetricsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class MetricsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createBulkTagsMetricsConfiguration(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createBulkTagsMetricsConfiguration"); + } + // Path Params + const localVarPath = "/api/v2/metrics/config/bulk-tags"; + // Make Request Context + const requestContext = _config + .getServer("v2.MetricsApi.createBulkTagsMetricsConfiguration") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "MetricBulkTagConfigCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createTagConfiguration(metricName, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'metricName' is not null or undefined + if (metricName === null || metricName === undefined) { + throw new baseapi_1.RequiredError("metricName", "createTagConfiguration"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createTagConfiguration"); + } + // Path Params + const localVarPath = "/api/v2/metrics/{metric_name}/tags".replace("{metric_name}", encodeURIComponent(String(metricName))); + // Make Request Context + const requestContext = _config + .getServer("v2.MetricsApi.createTagConfiguration") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "MetricTagConfigurationCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteBulkTagsMetricsConfiguration(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "deleteBulkTagsMetricsConfiguration"); + } + // Path Params + const localVarPath = "/api/v2/metrics/config/bulk-tags"; + // Make Request Context + const requestContext = _config + .getServer("v2.MetricsApi.deleteBulkTagsMetricsConfiguration") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "MetricBulkTagConfigDeleteRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteTagConfiguration(metricName, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'metricName' is not null or undefined + if (metricName === null || metricName === undefined) { + throw new baseapi_1.RequiredError("metricName", "deleteTagConfiguration"); + } + // Path Params + const localVarPath = "/api/v2/metrics/{metric_name}/tags".replace("{metric_name}", encodeURIComponent(String(metricName))); + // Make Request Context + const requestContext = _config + .getServer("v2.MetricsApi.deleteTagConfiguration") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + estimateMetricsOutputSeries(metricName, filterGroups, filterHoursAgo, filterNumAggregations, filterPct, filterTimespanH, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'metricName' is not null or undefined + if (metricName === null || metricName === undefined) { + throw new baseapi_1.RequiredError("metricName", "estimateMetricsOutputSeries"); + } + // Path Params + const localVarPath = "/api/v2/metrics/{metric_name}/estimate".replace("{metric_name}", encodeURIComponent(String(metricName))); + // Make Request Context + const requestContext = _config + .getServer("v2.MetricsApi.estimateMetricsOutputSeries") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (filterGroups !== undefined) { + requestContext.setQueryParam("filter[groups]", ObjectSerializer_1.ObjectSerializer.serialize(filterGroups, "string", ""), ""); + } + if (filterHoursAgo !== undefined) { + requestContext.setQueryParam("filter[hours_ago]", ObjectSerializer_1.ObjectSerializer.serialize(filterHoursAgo, "number", "int32"), ""); + } + if (filterNumAggregations !== undefined) { + requestContext.setQueryParam("filter[num_aggregations]", ObjectSerializer_1.ObjectSerializer.serialize(filterNumAggregations, "number", "int32"), ""); + } + if (filterPct !== undefined) { + requestContext.setQueryParam("filter[pct]", ObjectSerializer_1.ObjectSerializer.serialize(filterPct, "boolean", ""), ""); + } + if (filterTimespanH !== undefined) { + requestContext.setQueryParam("filter[timespan_h]", ObjectSerializer_1.ObjectSerializer.serialize(filterTimespanH, "number", "int32"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listActiveMetricConfigurations(metricName, windowSeconds, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'metricName' is not null or undefined + if (metricName === null || metricName === undefined) { + throw new baseapi_1.RequiredError("metricName", "listActiveMetricConfigurations"); + } + // Path Params + const localVarPath = "/api/v2/metrics/{metric_name}/active-configurations".replace("{metric_name}", encodeURIComponent(String(metricName))); + // Make Request Context + const requestContext = _config + .getServer("v2.MetricsApi.listActiveMetricConfigurations") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (windowSeconds !== undefined) { + requestContext.setQueryParam("window[seconds]", ObjectSerializer_1.ObjectSerializer.serialize(windowSeconds, "number", "int64"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listMetricAssets(metricName, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'metricName' is not null or undefined + if (metricName === null || metricName === undefined) { + throw new baseapi_1.RequiredError("metricName", "listMetricAssets"); + } + // Path Params + const localVarPath = "/api/v2/metrics/{metric_name}/assets".replace("{metric_name}", encodeURIComponent(String(metricName))); + // Make Request Context + const requestContext = _config + .getServer("v2.MetricsApi.listMetricAssets") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listTagConfigurationByName(metricName, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'metricName' is not null or undefined + if (metricName === null || metricName === undefined) { + throw new baseapi_1.RequiredError("metricName", "listTagConfigurationByName"); + } + // Path Params + const localVarPath = "/api/v2/metrics/{metric_name}/tags".replace("{metric_name}", encodeURIComponent(String(metricName))); + // Make Request Context + const requestContext = _config + .getServer("v2.MetricsApi.listTagConfigurationByName") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listTagConfigurations(filterConfigured, filterTagsConfigured, filterMetricType, filterIncludePercentiles, filterQueried, filterTags, windowSeconds, pageSize, pageCursor, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/metrics"; + // Make Request Context + const requestContext = _config + .getServer("v2.MetricsApi.listTagConfigurations") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (filterConfigured !== undefined) { + requestContext.setQueryParam("filter[configured]", ObjectSerializer_1.ObjectSerializer.serialize(filterConfigured, "boolean", ""), ""); + } + if (filterTagsConfigured !== undefined) { + requestContext.setQueryParam("filter[tags_configured]", ObjectSerializer_1.ObjectSerializer.serialize(filterTagsConfigured, "string", ""), ""); + } + if (filterMetricType !== undefined) { + requestContext.setQueryParam("filter[metric_type]", ObjectSerializer_1.ObjectSerializer.serialize(filterMetricType, "MetricTagConfigurationMetricTypeCategory", ""), ""); + } + if (filterIncludePercentiles !== undefined) { + requestContext.setQueryParam("filter[include_percentiles]", ObjectSerializer_1.ObjectSerializer.serialize(filterIncludePercentiles, "boolean", ""), ""); + } + if (filterQueried !== undefined) { + requestContext.setQueryParam("filter[queried]", ObjectSerializer_1.ObjectSerializer.serialize(filterQueried, "boolean", ""), ""); + } + if (filterTags !== undefined) { + requestContext.setQueryParam("filter[tags]", ObjectSerializer_1.ObjectSerializer.serialize(filterTags, "string", ""), ""); + } + if (windowSeconds !== undefined) { + requestContext.setQueryParam("window[seconds]", ObjectSerializer_1.ObjectSerializer.serialize(windowSeconds, "number", "int64"), ""); + } + if (pageSize !== undefined) { + requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int32"), ""); + } + if (pageCursor !== undefined) { + requestContext.setQueryParam("page[cursor]", ObjectSerializer_1.ObjectSerializer.serialize(pageCursor, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listTagsByMetricName(metricName, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'metricName' is not null or undefined + if (metricName === null || metricName === undefined) { + throw new baseapi_1.RequiredError("metricName", "listTagsByMetricName"); + } + // Path Params + const localVarPath = "/api/v2/metrics/{metric_name}/all-tags".replace("{metric_name}", encodeURIComponent(String(metricName))); + // Make Request Context + const requestContext = _config + .getServer("v2.MetricsApi.listTagsByMetricName") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listVolumesByMetricName(metricName, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'metricName' is not null or undefined + if (metricName === null || metricName === undefined) { + throw new baseapi_1.RequiredError("metricName", "listVolumesByMetricName"); + } + // Path Params + const localVarPath = "/api/v2/metrics/{metric_name}/volumes".replace("{metric_name}", encodeURIComponent(String(metricName))); + // Make Request Context + const requestContext = _config + .getServer("v2.MetricsApi.listVolumesByMetricName") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + queryScalarData(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "queryScalarData"); + } + // Path Params + const localVarPath = "/api/v2/query/scalar"; + // Make Request Context + const requestContext = _config + .getServer("v2.MetricsApi.queryScalarData") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ScalarFormulaQueryRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + queryTimeseriesData(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "queryTimeseriesData"); + } + // Path Params + const localVarPath = "/api/v2/query/timeseries"; + // Make Request Context + const requestContext = _config + .getServer("v2.MetricsApi.queryTimeseriesData") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "TimeseriesFormulaQueryRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + submitMetrics(body, contentEncoding, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "submitMetrics"); + } + // Path Params + const localVarPath = "/api/v2/series"; + // Make Request Context + const requestContext = _config + .getServer("v2.MetricsApi.submitMetrics") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Header Params + if (contentEncoding !== undefined) { + requestContext.setHeaderParam("Content-Encoding", ObjectSerializer_1.ObjectSerializer.serialize(contentEncoding, "MetricContentEncoding", "")); + } + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "MetricPayload", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, ["apiKeyAuth"]); + return requestContext; + }); + } + updateTagConfiguration(metricName, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'metricName' is not null or undefined + if (metricName === null || metricName === undefined) { + throw new baseapi_1.RequiredError("metricName", "updateTagConfiguration"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateTagConfiguration"); + } + // Path Params + const localVarPath = "/api/v2/metrics/{metric_name}/tags".replace("{metric_name}", encodeURIComponent(String(metricName))); + // Make Request Context + const requestContext = _config + .getServer("v2.MetricsApi.updateTagConfiguration") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "MetricTagConfigurationUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.MetricsApiRequestFactory = MetricsApiRequestFactory; +class MetricsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createBulkTagsMetricsConfiguration + * @throws ApiException if the response code was not in [200, 299] + */ + createBulkTagsMetricsConfiguration(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 202) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricBulkTagConfigResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricBulkTagConfigResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createTagConfiguration + * @throws ApiException if the response code was not in [200, 299] + */ + createTagConfiguration(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricTagConfigurationResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricTagConfigurationResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteBulkTagsMetricsConfiguration + * @throws ApiException if the response code was not in [200, 299] + */ + deleteBulkTagsMetricsConfiguration(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 202) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricBulkTagConfigResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricBulkTagConfigResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteTagConfiguration + * @throws ApiException if the response code was not in [200, 299] + */ + deleteTagConfiguration(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to estimateMetricsOutputSeries + * @throws ApiException if the response code was not in [200, 299] + */ + estimateMetricsOutputSeries(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricEstimateResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricEstimateResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listActiveMetricConfigurations + * @throws ApiException if the response code was not in [200, 299] + */ + listActiveMetricConfigurations(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricSuggestedTagsAndAggregationsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricSuggestedTagsAndAggregationsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listMetricAssets + * @throws ApiException if the response code was not in [200, 299] + */ + listMetricAssets(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricAssetsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricAssetsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listTagConfigurationByName + * @throws ApiException if the response code was not in [200, 299] + */ + listTagConfigurationByName(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricTagConfigurationResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricTagConfigurationResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listTagConfigurations + * @throws ApiException if the response code was not in [200, 299] + */ + listTagConfigurations(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricsAndMetricTagConfigurationsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricsAndMetricTagConfigurationsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listTagsByMetricName + * @throws ApiException if the response code was not in [200, 299] + */ + listTagsByMetricName(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricAllTagsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricAllTagsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listVolumesByMetricName + * @throws ApiException if the response code was not in [200, 299] + */ + listVolumesByMetricName(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricVolumesResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricVolumesResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to queryScalarData + * @throws ApiException if the response code was not in [200, 299] + */ + queryScalarData(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ScalarFormulaQueryResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ScalarFormulaQueryResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to queryTimeseriesData + * @throws ApiException if the response code was not in [200, 299] + */ + queryTimeseriesData(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TimeseriesFormulaQueryResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TimeseriesFormulaQueryResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to submitMetrics + * @throws ApiException if the response code was not in [200, 299] + */ + submitMetrics(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 202) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IntakePayloadAccepted"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 408 || + response.httpStatusCode === 413 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IntakePayloadAccepted", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateTagConfiguration + * @throws ApiException if the response code was not in [200, 299] + */ + updateTagConfiguration(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricTagConfigurationResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 422 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MetricTagConfigurationResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.MetricsApiResponseProcessor = MetricsApiResponseProcessor; +class MetricsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new MetricsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new MetricsApiResponseProcessor(); + } + /** + * Create and define a list of queryable tag keys for a set of existing count, gauge, rate, and distribution metrics. + * Metrics are selected by passing a metric name prefix. Use the Delete method of this API path to remove tag configurations. + * Results can be sent to a set of account email addresses, just like the same operation in the Datadog web app. + * If multiple calls include the same metric, the last configuration applied (not by submit order) is used, do not + * expect deterministic ordering of concurrent calls. The `exclude_tags_mode` value will set all metrics that match the prefix to + * the same exclusion state, metric tag configurations do not support mixed inclusion and exclusion for tags on the same metric. + * Can only be used with application keys of users with the `Manage Tags for Metrics` permission. + * @param param The request object + */ + createBulkTagsMetricsConfiguration(param, options) { + const requestContextPromise = this.requestFactory.createBulkTagsMetricsConfiguration(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createBulkTagsMetricsConfiguration(responseContext); + }); + }); + } + /** + * Create and define a list of queryable tag keys for an existing count/gauge/rate/distribution metric. + * Optionally, include percentile aggregations on any distribution metric or configure custom aggregations + * on any count, rate, or gauge metric. By setting `exclude_tags_mode` to true the behavior is changed + * from an allow-list to a deny-list, and tags in the defined list will not be queryable. + * Can only be used with application keys of users with the `Manage Tags for Metrics` permission. + * @param param The request object + */ + createTagConfiguration(param, options) { + const requestContextPromise = this.requestFactory.createTagConfiguration(param.metricName, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createTagConfiguration(responseContext); + }); + }); + } + /** + * Delete all custom lists of queryable tag keys for a set of existing count, gauge, rate, and distribution metrics. + * Metrics are selected by passing a metric name prefix. + * Results can be sent to a set of account email addresses, just like the same operation in the Datadog web app. + * Can only be used with application keys of users with the `Manage Tags for Metrics` permission. + * @param param The request object + */ + deleteBulkTagsMetricsConfiguration(param, options) { + const requestContextPromise = this.requestFactory.deleteBulkTagsMetricsConfiguration(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteBulkTagsMetricsConfiguration(responseContext); + }); + }); + } + /** + * Deletes a metric's tag configuration. Can only be used with application + * keys from users with the `Manage Tags for Metrics` permission. + * @param param The request object + */ + deleteTagConfiguration(param, options) { + const requestContextPromise = this.requestFactory.deleteTagConfiguration(param.metricName, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteTagConfiguration(responseContext); + }); + }); + } + /** + * Returns the estimated cardinality for a metric with a given tag, percentile and number of aggregations configuration using Metrics without Limits™. + * @param param The request object + */ + estimateMetricsOutputSeries(param, options) { + const requestContextPromise = this.requestFactory.estimateMetricsOutputSeries(param.metricName, param.filterGroups, param.filterHoursAgo, param.filterNumAggregations, param.filterPct, param.filterTimespanH, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.estimateMetricsOutputSeries(responseContext); + }); + }); + } + /** + * List tags and aggregations that are actively queried on dashboards, notebooks, monitors, and the Metrics Explorer for a given metric name. + * @param param The request object + */ + listActiveMetricConfigurations(param, options) { + const requestContextPromise = this.requestFactory.listActiveMetricConfigurations(param.metricName, param.windowSeconds, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listActiveMetricConfigurations(responseContext); + }); + }); + } + /** + * Returns dashboards, monitors, notebooks, and SLOs that a metric is stored in, if any. Updated every 24 hours. + * @param param The request object + */ + listMetricAssets(param, options) { + const requestContextPromise = this.requestFactory.listMetricAssets(param.metricName, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listMetricAssets(responseContext); + }); + }); + } + /** + * Returns the tag configuration for the given metric name. + * @param param The request object + */ + listTagConfigurationByName(param, options) { + const requestContextPromise = this.requestFactory.listTagConfigurationByName(param.metricName, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listTagConfigurationByName(responseContext); + }); + }); + } + /** + * Returns all metrics that can be configured in the Metrics Summary page or with Metrics without Limits™ (matching additional filters if specified). + * Optionally, paginate by using the `page[cursor]` and/or `page[size]` query parameters. + * To fetch the first page, pass in a query parameter with either a valid `page[size]` or an empty cursor like `page[cursor]=`. To fetch the next page, pass in the `next_cursor` value from the response as the new `page[cursor]` value. + * Once the `meta.pagination.next_cursor` value is null, all pages have been retrieved. + * @param param The request object + */ + listTagConfigurations(param = {}, options) { + const requestContextPromise = this.requestFactory.listTagConfigurations(param.filterConfigured, param.filterTagsConfigured, param.filterMetricType, param.filterIncludePercentiles, param.filterQueried, param.filterTags, param.windowSeconds, param.pageSize, param.pageCursor, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listTagConfigurations(responseContext); + }); + }); + } + /** + * Provide a paginated version of listTagConfigurations returning a generator with all the items. + */ + listTagConfigurationsWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* listTagConfigurationsWithPagination_1() { + let pageSize = 10000; + if (param.pageSize !== undefined) { + pageSize = param.pageSize; + } + param.pageSize = pageSize; + while (true) { + const requestContext = yield __await(this.requestFactory.listTagConfigurations(param.filterConfigured, param.filterTagsConfigured, param.filterMetricType, param.filterIncludePercentiles, param.filterQueried, param.filterTags, param.windowSeconds, param.pageSize, param.pageCursor, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listTagConfigurations(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + const cursorMeta = response.meta; + if (cursorMeta === undefined) { + break; + } + const cursorMetaPagination = cursorMeta.pagination; + if (cursorMetaPagination === undefined) { + break; + } + const cursorMetaPaginationNextCursor = cursorMetaPagination.nextCursor; + if (cursorMetaPaginationNextCursor === undefined) { + break; + } + param.pageCursor = cursorMetaPaginationNextCursor; + } + }); + } + /** + * View indexed tag key-value pairs for a given metric name over the previous hour. + * @param param The request object + */ + listTagsByMetricName(param, options) { + const requestContextPromise = this.requestFactory.listTagsByMetricName(param.metricName, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listTagsByMetricName(responseContext); + }); + }); + } + /** + * View distinct metrics volumes for the given metric name. + * + * Custom metrics generated in-app from other products will return `null` for ingested volumes. + * @param param The request object + */ + listVolumesByMetricName(param, options) { + const requestContextPromise = this.requestFactory.listVolumesByMetricName(param.metricName, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listVolumesByMetricName(responseContext); + }); + }); + } + /** + * Query scalar values (as seen on Query Value, Table, and Toplist widgets). + * Multiple data sources are supported with the ability to + * process the data using formulas and functions. + * @param param The request object + */ + queryScalarData(param, options) { + const requestContextPromise = this.requestFactory.queryScalarData(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.queryScalarData(responseContext); + }); + }); + } + /** + * Query timeseries data across various data sources and + * process the data by applying formulas and functions. + * @param param The request object + */ + queryTimeseriesData(param, options) { + const requestContextPromise = this.requestFactory.queryTimeseriesData(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.queryTimeseriesData(responseContext); + }); + }); + } + /** + * The metrics end-point allows you to post time-series data that can be graphed on Datadog’s dashboards. + * The maximum payload size is 500 kilobytes (512000 bytes). Compressed payloads must have a decompressed size of less than 5 megabytes (5242880 bytes). + * + * If you’re submitting metrics directly to the Datadog API without using DogStatsD, expect: + * + * - 64 bits for the timestamp + * - 64 bits for the value + * - 20 bytes for the metric names + * - 50 bytes for the timeseries + * - The full payload is approximately 100 bytes. + * + * Host name is one of the resources in the Resources field. + * @param param The request object + */ + submitMetrics(param, options) { + const requestContextPromise = this.requestFactory.submitMetrics(param.body, param.contentEncoding, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.submitMetrics(responseContext); + }); + }); + } + /** + * Update the tag configuration of a metric or percentile aggregations of a distribution metric or custom aggregations + * of a count, rate, or gauge metric. By setting `exclude_tags_mode` to true the behavior is changed + * from an allow-list to a deny-list, and tags in the defined list will not be queryable. + * Can only be used with application keys from users with the `Manage Tags for Metrics` permission. This endpoint requires + * a tag configuration to be created first. + * @param param The request object + */ + updateTagConfiguration(param, options) { + const requestContextPromise = this.requestFactory.updateTagConfiguration(param.metricName, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateTagConfiguration(responseContext); + }); + }); + } +} +exports.MetricsApi = MetricsApi; +//# sourceMappingURL=MetricsApi.js.map + +/***/ }), + +/***/ 80971: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.MicrosoftTeamsIntegrationApi = exports.MicrosoftTeamsIntegrationApiResponseProcessor = exports.MicrosoftTeamsIntegrationApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class MicrosoftTeamsIntegrationApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createTenantBasedHandle(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createTenantBasedHandle"); + } + // Path Params + const localVarPath = "/api/v2/integration/ms-teams/configuration/tenant-based-handles"; + // Make Request Context + const requestContext = _config + .getServer("v2.MicrosoftTeamsIntegrationApi.createTenantBasedHandle") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "MicrosoftTeamsCreateTenantBasedHandleRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteTenantBasedHandle(handleId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'handleId' is not null or undefined + if (handleId === null || handleId === undefined) { + throw new baseapi_1.RequiredError("handleId", "deleteTenantBasedHandle"); + } + // Path Params + const localVarPath = "/api/v2/integration/ms-teams/configuration/tenant-based-handles/{handle_id}".replace("{handle_id}", encodeURIComponent(String(handleId))); + // Make Request Context + const requestContext = _config + .getServer("v2.MicrosoftTeamsIntegrationApi.deleteTenantBasedHandle") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getChannelByName(tenantName, teamName, channelName, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'tenantName' is not null or undefined + if (tenantName === null || tenantName === undefined) { + throw new baseapi_1.RequiredError("tenantName", "getChannelByName"); + } + // verify required parameter 'teamName' is not null or undefined + if (teamName === null || teamName === undefined) { + throw new baseapi_1.RequiredError("teamName", "getChannelByName"); + } + // verify required parameter 'channelName' is not null or undefined + if (channelName === null || channelName === undefined) { + throw new baseapi_1.RequiredError("channelName", "getChannelByName"); + } + // Path Params + const localVarPath = "/api/v2/integration/ms-teams/configuration/channel/{tenant_name}/{team_name}/{channel_name}" + .replace("{tenant_name}", encodeURIComponent(String(tenantName))) + .replace("{team_name}", encodeURIComponent(String(teamName))) + .replace("{channel_name}", encodeURIComponent(String(channelName))); + // Make Request Context + const requestContext = _config + .getServer("v2.MicrosoftTeamsIntegrationApi.getChannelByName") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getTenantBasedHandle(handleId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'handleId' is not null or undefined + if (handleId === null || handleId === undefined) { + throw new baseapi_1.RequiredError("handleId", "getTenantBasedHandle"); + } + // Path Params + const localVarPath = "/api/v2/integration/ms-teams/configuration/tenant-based-handles/{handle_id}".replace("{handle_id}", encodeURIComponent(String(handleId))); + // Make Request Context + const requestContext = _config + .getServer("v2.MicrosoftTeamsIntegrationApi.getTenantBasedHandle") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listTenantBasedHandles(tenantId, name, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/integration/ms-teams/configuration/tenant-based-handles"; + // Make Request Context + const requestContext = _config + .getServer("v2.MicrosoftTeamsIntegrationApi.listTenantBasedHandles") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (tenantId !== undefined) { + requestContext.setQueryParam("tenant_id", ObjectSerializer_1.ObjectSerializer.serialize(tenantId, "string", ""), ""); + } + if (name !== undefined) { + requestContext.setQueryParam("name", ObjectSerializer_1.ObjectSerializer.serialize(name, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateTenantBasedHandle(handleId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'handleId' is not null or undefined + if (handleId === null || handleId === undefined) { + throw new baseapi_1.RequiredError("handleId", "updateTenantBasedHandle"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateTenantBasedHandle"); + } + // Path Params + const localVarPath = "/api/v2/integration/ms-teams/configuration/tenant-based-handles/{handle_id}".replace("{handle_id}", encodeURIComponent(String(handleId))); + // Make Request Context + const requestContext = _config + .getServer("v2.MicrosoftTeamsIntegrationApi.updateTenantBasedHandle") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "MicrosoftTeamsUpdateTenantBasedHandleRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.MicrosoftTeamsIntegrationApiRequestFactory = MicrosoftTeamsIntegrationApiRequestFactory; +class MicrosoftTeamsIntegrationApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createTenantBasedHandle + * @throws ApiException if the response code was not in [200, 299] + */ + createTenantBasedHandle(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MicrosoftTeamsTenantBasedHandleResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 409 || + response.httpStatusCode === 412 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MicrosoftTeamsTenantBasedHandleResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteTenantBasedHandle + * @throws ApiException if the response code was not in [200, 299] + */ + deleteTenantBasedHandle(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 412 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getChannelByName + * @throws ApiException if the response code was not in [200, 299] + */ + getChannelByName(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MicrosoftTeamsGetChannelByNameResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MicrosoftTeamsGetChannelByNameResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getTenantBasedHandle + * @throws ApiException if the response code was not in [200, 299] + */ + getTenantBasedHandle(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MicrosoftTeamsTenantBasedHandleResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 412 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MicrosoftTeamsTenantBasedHandleResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listTenantBasedHandles + * @throws ApiException if the response code was not in [200, 299] + */ + listTenantBasedHandles(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MicrosoftTeamsTenantBasedHandlesResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 412 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MicrosoftTeamsTenantBasedHandlesResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateTenantBasedHandle + * @throws ApiException if the response code was not in [200, 299] + */ + updateTenantBasedHandle(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MicrosoftTeamsTenantBasedHandleResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 409 || + response.httpStatusCode === 412 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MicrosoftTeamsTenantBasedHandleResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.MicrosoftTeamsIntegrationApiResponseProcessor = MicrosoftTeamsIntegrationApiResponseProcessor; +class MicrosoftTeamsIntegrationApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || + new MicrosoftTeamsIntegrationApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new MicrosoftTeamsIntegrationApiResponseProcessor(); + } + /** + * Create a tenant-based handle in the Datadog Microsoft Teams integration. + * @param param The request object + */ + createTenantBasedHandle(param, options) { + const requestContextPromise = this.requestFactory.createTenantBasedHandle(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createTenantBasedHandle(responseContext); + }); + }); + } + /** + * Delete a tenant-based handle from the Datadog Microsoft Teams integration. + * @param param The request object + */ + deleteTenantBasedHandle(param, options) { + const requestContextPromise = this.requestFactory.deleteTenantBasedHandle(param.handleId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteTenantBasedHandle(responseContext); + }); + }); + } + /** + * Get the tenant, team, and channel ID of a channel in the Datadog Microsoft Teams integration. + * @param param The request object + */ + getChannelByName(param, options) { + const requestContextPromise = this.requestFactory.getChannelByName(param.tenantName, param.teamName, param.channelName, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getChannelByName(responseContext); + }); + }); + } + /** + * Get the tenant, team, and channel information of a tenant-based handle from the Datadog Microsoft Teams integration. + * @param param The request object + */ + getTenantBasedHandle(param, options) { + const requestContextPromise = this.requestFactory.getTenantBasedHandle(param.handleId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getTenantBasedHandle(responseContext); + }); + }); + } + /** + * Get a list of all tenant-based handles from the Datadog Microsoft Teams integration. + * @param param The request object + */ + listTenantBasedHandles(param = {}, options) { + const requestContextPromise = this.requestFactory.listTenantBasedHandles(param.tenantId, param.name, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listTenantBasedHandles(responseContext); + }); + }); + } + /** + * Update a tenant-based handle from the Datadog Microsoft Teams integration. + * @param param The request object + */ + updateTenantBasedHandle(param, options) { + const requestContextPromise = this.requestFactory.updateTenantBasedHandle(param.handleId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateTenantBasedHandle(responseContext); + }); + }); + } +} +exports.MicrosoftTeamsIntegrationApi = MicrosoftTeamsIntegrationApi; +//# sourceMappingURL=MicrosoftTeamsIntegrationApi.js.map + +/***/ }), + +/***/ 63438: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.MonitorsApi = exports.MonitorsApiResponseProcessor = exports.MonitorsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class MonitorsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createMonitorConfigPolicy(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createMonitorConfigPolicy"); + } + // Path Params + const localVarPath = "/api/v2/monitor/policy"; + // Make Request Context + const requestContext = _config + .getServer("v2.MonitorsApi.createMonitorConfigPolicy") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "MonitorConfigPolicyCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteMonitorConfigPolicy(policyId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'policyId' is not null or undefined + if (policyId === null || policyId === undefined) { + throw new baseapi_1.RequiredError("policyId", "deleteMonitorConfigPolicy"); + } + // Path Params + const localVarPath = "/api/v2/monitor/policy/{policy_id}".replace("{policy_id}", encodeURIComponent(String(policyId))); + // Make Request Context + const requestContext = _config + .getServer("v2.MonitorsApi.deleteMonitorConfigPolicy") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getMonitorConfigPolicy(policyId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'policyId' is not null or undefined + if (policyId === null || policyId === undefined) { + throw new baseapi_1.RequiredError("policyId", "getMonitorConfigPolicy"); + } + // Path Params + const localVarPath = "/api/v2/monitor/policy/{policy_id}".replace("{policy_id}", encodeURIComponent(String(policyId))); + // Make Request Context + const requestContext = _config + .getServer("v2.MonitorsApi.getMonitorConfigPolicy") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listMonitorConfigPolicies(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/monitor/policy"; + // Make Request Context + const requestContext = _config + .getServer("v2.MonitorsApi.listMonitorConfigPolicies") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateMonitorConfigPolicy(policyId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'policyId' is not null or undefined + if (policyId === null || policyId === undefined) { + throw new baseapi_1.RequiredError("policyId", "updateMonitorConfigPolicy"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateMonitorConfigPolicy"); + } + // Path Params + const localVarPath = "/api/v2/monitor/policy/{policy_id}".replace("{policy_id}", encodeURIComponent(String(policyId))); + // Make Request Context + const requestContext = _config + .getServer("v2.MonitorsApi.updateMonitorConfigPolicy") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "MonitorConfigPolicyEditRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.MonitorsApiRequestFactory = MonitorsApiRequestFactory; +class MonitorsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createMonitorConfigPolicy + * @throws ApiException if the response code was not in [200, 299] + */ + createMonitorConfigPolicy(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonitorConfigPolicyResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonitorConfigPolicyResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteMonitorConfigPolicy + * @throws ApiException if the response code was not in [200, 299] + */ + deleteMonitorConfigPolicy(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getMonitorConfigPolicy + * @throws ApiException if the response code was not in [200, 299] + */ + getMonitorConfigPolicy(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonitorConfigPolicyResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonitorConfigPolicyResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listMonitorConfigPolicies + * @throws ApiException if the response code was not in [200, 299] + */ + listMonitorConfigPolicies(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonitorConfigPolicyListResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonitorConfigPolicyListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateMonitorConfigPolicy + * @throws ApiException if the response code was not in [200, 299] + */ + updateMonitorConfigPolicy(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonitorConfigPolicyResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 422 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonitorConfigPolicyResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.MonitorsApiResponseProcessor = MonitorsApiResponseProcessor; +class MonitorsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new MonitorsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new MonitorsApiResponseProcessor(); + } + /** + * Create a monitor configuration policy. + * @param param The request object + */ + createMonitorConfigPolicy(param, options) { + const requestContextPromise = this.requestFactory.createMonitorConfigPolicy(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createMonitorConfigPolicy(responseContext); + }); + }); + } + /** + * Delete a monitor configuration policy. + * @param param The request object + */ + deleteMonitorConfigPolicy(param, options) { + const requestContextPromise = this.requestFactory.deleteMonitorConfigPolicy(param.policyId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteMonitorConfigPolicy(responseContext); + }); + }); + } + /** + * Get a monitor configuration policy by `policy_id`. + * @param param The request object + */ + getMonitorConfigPolicy(param, options) { + const requestContextPromise = this.requestFactory.getMonitorConfigPolicy(param.policyId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getMonitorConfigPolicy(responseContext); + }); + }); + } + /** + * Get all monitor configuration policies. + * @param param The request object + */ + listMonitorConfigPolicies(options) { + const requestContextPromise = this.requestFactory.listMonitorConfigPolicies(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listMonitorConfigPolicies(responseContext); + }); + }); + } + /** + * Edit a monitor configuration policy. + * @param param The request object + */ + updateMonitorConfigPolicy(param, options) { + const requestContextPromise = this.requestFactory.updateMonitorConfigPolicy(param.policyId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateMonitorConfigPolicy(responseContext); + }); + }); + } +} +exports.MonitorsApi = MonitorsApi; +//# sourceMappingURL=MonitorsApi.js.map + +/***/ }), + +/***/ 22793: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.NetworkDeviceMonitoringApi = exports.NetworkDeviceMonitoringApiResponseProcessor = exports.NetworkDeviceMonitoringApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class NetworkDeviceMonitoringApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + getDevice(deviceId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'deviceId' is not null or undefined + if (deviceId === null || deviceId === undefined) { + throw new baseapi_1.RequiredError("deviceId", "getDevice"); + } + // Path Params + const localVarPath = "/api/v2/ndm/devices/{device_id}".replace("{device_id}", encodeURIComponent(String(deviceId))); + // Make Request Context + const requestContext = _config + .getServer("v2.NetworkDeviceMonitoringApi.getDevice") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getInterfaces(deviceId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'deviceId' is not null or undefined + if (deviceId === null || deviceId === undefined) { + throw new baseapi_1.RequiredError("deviceId", "getInterfaces"); + } + // Path Params + const localVarPath = "/api/v2/ndm/interfaces"; + // Make Request Context + const requestContext = _config + .getServer("v2.NetworkDeviceMonitoringApi.getInterfaces") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (deviceId !== undefined) { + requestContext.setQueryParam("device_id", ObjectSerializer_1.ObjectSerializer.serialize(deviceId, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listDevices(pageNumber, pageSize, sort, filterTag, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/ndm/devices"; + // Make Request Context + const requestContext = _config + .getServer("v2.NetworkDeviceMonitoringApi.listDevices") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (pageNumber !== undefined) { + requestContext.setQueryParam("page[number]", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); + } + if (pageSize !== undefined) { + requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), ""); + } + if (sort !== undefined) { + requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "string", ""), ""); + } + if (filterTag !== undefined) { + requestContext.setQueryParam("filter[tag]", ObjectSerializer_1.ObjectSerializer.serialize(filterTag, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listDeviceUserTags(deviceId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'deviceId' is not null or undefined + if (deviceId === null || deviceId === undefined) { + throw new baseapi_1.RequiredError("deviceId", "listDeviceUserTags"); + } + // Path Params + const localVarPath = "/api/v2/ndm/tags/devices/{device_id}".replace("{device_id}", encodeURIComponent(String(deviceId))); + // Make Request Context + const requestContext = _config + .getServer("v2.NetworkDeviceMonitoringApi.listDeviceUserTags") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateDeviceUserTags(deviceId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'deviceId' is not null or undefined + if (deviceId === null || deviceId === undefined) { + throw new baseapi_1.RequiredError("deviceId", "updateDeviceUserTags"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateDeviceUserTags"); + } + // Path Params + const localVarPath = "/api/v2/ndm/tags/devices/{device_id}".replace("{device_id}", encodeURIComponent(String(deviceId))); + // Make Request Context + const requestContext = _config + .getServer("v2.NetworkDeviceMonitoringApi.updateDeviceUserTags") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ListTagsResponse", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.NetworkDeviceMonitoringApiRequestFactory = NetworkDeviceMonitoringApiRequestFactory; +class NetworkDeviceMonitoringApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getDevice + * @throws ApiException if the response code was not in [200, 299] + */ + getDevice(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GetDeviceResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GetDeviceResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getInterfaces + * @throws ApiException if the response code was not in [200, 299] + */ + getInterfaces(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GetInterfacesResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GetInterfacesResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listDevices + * @throws ApiException if the response code was not in [200, 299] + */ + listDevices(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListDevicesResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListDevicesResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listDeviceUserTags + * @throws ApiException if the response code was not in [200, 299] + */ + listDeviceUserTags(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListTagsResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListTagsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateDeviceUserTags + * @throws ApiException if the response code was not in [200, 299] + */ + updateDeviceUserTags(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListTagsResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListTagsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.NetworkDeviceMonitoringApiResponseProcessor = NetworkDeviceMonitoringApiResponseProcessor; +class NetworkDeviceMonitoringApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || + new NetworkDeviceMonitoringApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new NetworkDeviceMonitoringApiResponseProcessor(); + } + /** + * Get the device details. + * @param param The request object + */ + getDevice(param, options) { + const requestContextPromise = this.requestFactory.getDevice(param.deviceId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getDevice(responseContext); + }); + }); + } + /** + * Get the list of interfaces of the device. + * @param param The request object + */ + getInterfaces(param, options) { + const requestContextPromise = this.requestFactory.getInterfaces(param.deviceId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getInterfaces(responseContext); + }); + }); + } + /** + * Get the list of devices. + * @param param The request object + */ + listDevices(param = {}, options) { + const requestContextPromise = this.requestFactory.listDevices(param.pageNumber, param.pageSize, param.sort, param.filterTag, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listDevices(responseContext); + }); + }); + } + /** + * Get the list of tags for a device. + * @param param The request object + */ + listDeviceUserTags(param, options) { + const requestContextPromise = this.requestFactory.listDeviceUserTags(param.deviceId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listDeviceUserTags(responseContext); + }); + }); + } + /** + * Update the tags for a device. + * @param param The request object + */ + updateDeviceUserTags(param, options) { + const requestContextPromise = this.requestFactory.updateDeviceUserTags(param.deviceId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateDeviceUserTags(responseContext); + }); + }); + } +} +exports.NetworkDeviceMonitoringApi = NetworkDeviceMonitoringApi; +//# sourceMappingURL=NetworkDeviceMonitoringApi.js.map + +/***/ }), + +/***/ 20064: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.OktaIntegrationApi = exports.OktaIntegrationApiResponseProcessor = exports.OktaIntegrationApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class OktaIntegrationApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createOktaAccount(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createOktaAccount"); + } + // Path Params + const localVarPath = "/api/v2/integrations/okta/accounts"; + // Make Request Context + const requestContext = _config + .getServer("v2.OktaIntegrationApi.createOktaAccount") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "OktaAccountRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteOktaAccount(accountId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'accountId' is not null or undefined + if (accountId === null || accountId === undefined) { + throw new baseapi_1.RequiredError("accountId", "deleteOktaAccount"); + } + // Path Params + const localVarPath = "/api/v2/integrations/okta/accounts/{account_id}".replace("{account_id}", encodeURIComponent(String(accountId))); + // Make Request Context + const requestContext = _config + .getServer("v2.OktaIntegrationApi.deleteOktaAccount") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getOktaAccount(accountId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'accountId' is not null or undefined + if (accountId === null || accountId === undefined) { + throw new baseapi_1.RequiredError("accountId", "getOktaAccount"); + } + // Path Params + const localVarPath = "/api/v2/integrations/okta/accounts/{account_id}".replace("{account_id}", encodeURIComponent(String(accountId))); + // Make Request Context + const requestContext = _config + .getServer("v2.OktaIntegrationApi.getOktaAccount") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listOktaAccounts(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/integrations/okta/accounts"; + // Make Request Context + const requestContext = _config + .getServer("v2.OktaIntegrationApi.listOktaAccounts") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateOktaAccount(accountId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'accountId' is not null or undefined + if (accountId === null || accountId === undefined) { + throw new baseapi_1.RequiredError("accountId", "updateOktaAccount"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateOktaAccount"); + } + // Path Params + const localVarPath = "/api/v2/integrations/okta/accounts/{account_id}".replace("{account_id}", encodeURIComponent(String(accountId))); + // Make Request Context + const requestContext = _config + .getServer("v2.OktaIntegrationApi.updateOktaAccount") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "OktaAccountUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.OktaIntegrationApiRequestFactory = OktaIntegrationApiRequestFactory; +class OktaIntegrationApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createOktaAccount + * @throws ApiException if the response code was not in [200, 299] + */ + createOktaAccount(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OktaAccountResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OktaAccountResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteOktaAccount + * @throws ApiException if the response code was not in [200, 299] + */ + deleteOktaAccount(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getOktaAccount + * @throws ApiException if the response code was not in [200, 299] + */ + getOktaAccount(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OktaAccountResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OktaAccountResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listOktaAccounts + * @throws ApiException if the response code was not in [200, 299] + */ + listOktaAccounts(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OktaAccountsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OktaAccountsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateOktaAccount + * @throws ApiException if the response code was not in [200, 299] + */ + updateOktaAccount(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OktaAccountResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OktaAccountResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.OktaIntegrationApiResponseProcessor = OktaIntegrationApiResponseProcessor; +class OktaIntegrationApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new OktaIntegrationApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new OktaIntegrationApiResponseProcessor(); + } + /** + * Create an Okta account. + * @param param The request object + */ + createOktaAccount(param, options) { + const requestContextPromise = this.requestFactory.createOktaAccount(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createOktaAccount(responseContext); + }); + }); + } + /** + * Delete an Okta account. + * @param param The request object + */ + deleteOktaAccount(param, options) { + const requestContextPromise = this.requestFactory.deleteOktaAccount(param.accountId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteOktaAccount(responseContext); + }); + }); + } + /** + * Get an Okta account. + * @param param The request object + */ + getOktaAccount(param, options) { + const requestContextPromise = this.requestFactory.getOktaAccount(param.accountId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getOktaAccount(responseContext); + }); + }); + } + /** + * List Okta accounts. + * @param param The request object + */ + listOktaAccounts(options) { + const requestContextPromise = this.requestFactory.listOktaAccounts(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listOktaAccounts(responseContext); + }); + }); + } + /** + * Update an Okta account. + * @param param The request object + */ + updateOktaAccount(param, options) { + const requestContextPromise = this.requestFactory.updateOktaAccount(param.accountId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateOktaAccount(responseContext); + }); + }); + } +} +exports.OktaIntegrationApi = OktaIntegrationApi; +//# sourceMappingURL=OktaIntegrationApi.js.map + +/***/ }), + +/***/ 86465: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.OpsgenieIntegrationApi = exports.OpsgenieIntegrationApiResponseProcessor = exports.OpsgenieIntegrationApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class OpsgenieIntegrationApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createOpsgenieService(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createOpsgenieService"); + } + // Path Params + const localVarPath = "/api/v2/integration/opsgenie/services"; + // Make Request Context + const requestContext = _config + .getServer("v2.OpsgenieIntegrationApi.createOpsgenieService") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "OpsgenieServiceCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteOpsgenieService(integrationServiceId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'integrationServiceId' is not null or undefined + if (integrationServiceId === null || integrationServiceId === undefined) { + throw new baseapi_1.RequiredError("integrationServiceId", "deleteOpsgenieService"); + } + // Path Params + const localVarPath = "/api/v2/integration/opsgenie/services/{integration_service_id}".replace("{integration_service_id}", encodeURIComponent(String(integrationServiceId))); + // Make Request Context + const requestContext = _config + .getServer("v2.OpsgenieIntegrationApi.deleteOpsgenieService") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getOpsgenieService(integrationServiceId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'integrationServiceId' is not null or undefined + if (integrationServiceId === null || integrationServiceId === undefined) { + throw new baseapi_1.RequiredError("integrationServiceId", "getOpsgenieService"); + } + // Path Params + const localVarPath = "/api/v2/integration/opsgenie/services/{integration_service_id}".replace("{integration_service_id}", encodeURIComponent(String(integrationServiceId))); + // Make Request Context + const requestContext = _config + .getServer("v2.OpsgenieIntegrationApi.getOpsgenieService") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listOpsgenieServices(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/integration/opsgenie/services"; + // Make Request Context + const requestContext = _config + .getServer("v2.OpsgenieIntegrationApi.listOpsgenieServices") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateOpsgenieService(integrationServiceId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'integrationServiceId' is not null or undefined + if (integrationServiceId === null || integrationServiceId === undefined) { + throw new baseapi_1.RequiredError("integrationServiceId", "updateOpsgenieService"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateOpsgenieService"); + } + // Path Params + const localVarPath = "/api/v2/integration/opsgenie/services/{integration_service_id}".replace("{integration_service_id}", encodeURIComponent(String(integrationServiceId))); + // Make Request Context + const requestContext = _config + .getServer("v2.OpsgenieIntegrationApi.updateOpsgenieService") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "OpsgenieServiceUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.OpsgenieIntegrationApiRequestFactory = OpsgenieIntegrationApiRequestFactory; +class OpsgenieIntegrationApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createOpsgenieService + * @throws ApiException if the response code was not in [200, 299] + */ + createOpsgenieService(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OpsgenieServiceResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OpsgenieServiceResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteOpsgenieService + * @throws ApiException if the response code was not in [200, 299] + */ + deleteOpsgenieService(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getOpsgenieService + * @throws ApiException if the response code was not in [200, 299] + */ + getOpsgenieService(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OpsgenieServiceResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OpsgenieServiceResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listOpsgenieServices + * @throws ApiException if the response code was not in [200, 299] + */ + listOpsgenieServices(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OpsgenieServicesResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OpsgenieServicesResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateOpsgenieService + * @throws ApiException if the response code was not in [200, 299] + */ + updateOpsgenieService(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OpsgenieServiceResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OpsgenieServiceResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.OpsgenieIntegrationApiResponseProcessor = OpsgenieIntegrationApiResponseProcessor; +class OpsgenieIntegrationApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new OpsgenieIntegrationApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new OpsgenieIntegrationApiResponseProcessor(); + } + /** + * Create a new service object in the Opsgenie integration. + * @param param The request object + */ + createOpsgenieService(param, options) { + const requestContextPromise = this.requestFactory.createOpsgenieService(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createOpsgenieService(responseContext); + }); + }); + } + /** + * Delete a single service object in the Datadog Opsgenie integration. + * @param param The request object + */ + deleteOpsgenieService(param, options) { + const requestContextPromise = this.requestFactory.deleteOpsgenieService(param.integrationServiceId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteOpsgenieService(responseContext); + }); + }); + } + /** + * Get a single service from the Datadog Opsgenie integration. + * @param param The request object + */ + getOpsgenieService(param, options) { + const requestContextPromise = this.requestFactory.getOpsgenieService(param.integrationServiceId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getOpsgenieService(responseContext); + }); + }); + } + /** + * Get a list of all services from the Datadog Opsgenie integration. + * @param param The request object + */ + listOpsgenieServices(options) { + const requestContextPromise = this.requestFactory.listOpsgenieServices(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listOpsgenieServices(responseContext); + }); + }); + } + /** + * Update a single service object in the Datadog Opsgenie integration. + * @param param The request object + */ + updateOpsgenieService(param, options) { + const requestContextPromise = this.requestFactory.updateOpsgenieService(param.integrationServiceId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateOpsgenieService(responseContext); + }); + }); + } +} +exports.OpsgenieIntegrationApi = OpsgenieIntegrationApi; +//# sourceMappingURL=OpsgenieIntegrationApi.js.map + +/***/ }), + +/***/ 81675: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.OrganizationsApi = exports.OrganizationsApiResponseProcessor = exports.OrganizationsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const form_data_1 = __importDefault(__nccwpck_require__(2691)); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class OrganizationsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + getOrgConfig(orgConfigName, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'orgConfigName' is not null or undefined + if (orgConfigName === null || orgConfigName === undefined) { + throw new baseapi_1.RequiredError("orgConfigName", "getOrgConfig"); + } + // Path Params + const localVarPath = "/api/v2/org_configs/{org_config_name}".replace("{org_config_name}", encodeURIComponent(String(orgConfigName))); + // Make Request Context + const requestContext = _config + .getServer("v2.OrganizationsApi.getOrgConfig") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listOrgConfigs(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/org_configs"; + // Make Request Context + const requestContext = _config + .getServer("v2.OrganizationsApi.listOrgConfigs") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateOrgConfig(orgConfigName, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'orgConfigName' is not null or undefined + if (orgConfigName === null || orgConfigName === undefined) { + throw new baseapi_1.RequiredError("orgConfigName", "updateOrgConfig"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateOrgConfig"); + } + // Path Params + const localVarPath = "/api/v2/org_configs/{org_config_name}".replace("{org_config_name}", encodeURIComponent(String(orgConfigName))); + // Make Request Context + const requestContext = _config + .getServer("v2.OrganizationsApi.updateOrgConfig") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "OrgConfigWriteRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + uploadIdPMetadata(idpFile, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/saml_configurations/idp_metadata"; + // Make Request Context + const requestContext = _config + .getServer("v2.OrganizationsApi.uploadIdPMetadata") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Form Params + const localVarFormParams = new form_data_1.default(); + if (idpFile !== undefined) { + // TODO: replace .append with .set + localVarFormParams.append("idp_file", idpFile.data, idpFile.name); + } + requestContext.setBody(localVarFormParams); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.OrganizationsApiRequestFactory = OrganizationsApiRequestFactory; +class OrganizationsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getOrgConfig + * @throws ApiException if the response code was not in [200, 299] + */ + getOrgConfig(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OrgConfigGetResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OrgConfigGetResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listOrgConfigs + * @throws ApiException if the response code was not in [200, 299] + */ + listOrgConfigs(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OrgConfigListResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OrgConfigListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateOrgConfig + * @throws ApiException if the response code was not in [200, 299] + */ + updateOrgConfig(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OrgConfigGetResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OrgConfigGetResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to uploadIdPMetadata + * @throws ApiException if the response code was not in [200, 299] + */ + uploadIdPMetadata(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.OrganizationsApiResponseProcessor = OrganizationsApiResponseProcessor; +class OrganizationsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new OrganizationsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new OrganizationsApiResponseProcessor(); + } + /** + * Return the name, description, and value of a specific Org Config. + * @param param The request object + */ + getOrgConfig(param, options) { + const requestContextPromise = this.requestFactory.getOrgConfig(param.orgConfigName, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getOrgConfig(responseContext); + }); + }); + } + /** + * Returns all Org Configs (name, description, and value). + * @param param The request object + */ + listOrgConfigs(options) { + const requestContextPromise = this.requestFactory.listOrgConfigs(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listOrgConfigs(responseContext); + }); + }); + } + /** + * Update the value of a specific Org Config. + * @param param The request object + */ + updateOrgConfig(param, options) { + const requestContextPromise = this.requestFactory.updateOrgConfig(param.orgConfigName, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateOrgConfig(responseContext); + }); + }); + } + /** + * Endpoint for uploading IdP metadata for SAML setup. + * + * Use this endpoint to upload or replace IdP metadata for SAML login configuration. + * @param param The request object + */ + uploadIdPMetadata(param = {}, options) { + const requestContextPromise = this.requestFactory.uploadIdPMetadata(param.idpFile, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.uploadIdPMetadata(responseContext); + }); + }); + } +} +exports.OrganizationsApi = OrganizationsApi; +//# sourceMappingURL=OrganizationsApi.js.map + +/***/ }), + +/***/ 52819: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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 __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.PowerpackApi = exports.PowerpackApiResponseProcessor = exports.PowerpackApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class PowerpackApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createPowerpack(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createPowerpack"); + } + // Path Params + const localVarPath = "/api/v2/powerpacks"; + // Make Request Context + const requestContext = _config + .getServer("v2.PowerpackApi.createPowerpack") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "Powerpack", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deletePowerpack(powerpackId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'powerpackId' is not null or undefined + if (powerpackId === null || powerpackId === undefined) { + throw new baseapi_1.RequiredError("powerpackId", "deletePowerpack"); + } + // Path Params + const localVarPath = "/api/v2/powerpacks/{powerpack_id}".replace("{powerpack_id}", encodeURIComponent(String(powerpackId))); + // Make Request Context + const requestContext = _config + .getServer("v2.PowerpackApi.deletePowerpack") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getPowerpack(powerpackId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'powerpackId' is not null or undefined + if (powerpackId === null || powerpackId === undefined) { + throw new baseapi_1.RequiredError("powerpackId", "getPowerpack"); + } + // Path Params + const localVarPath = "/api/v2/powerpacks/{powerpack_id}".replace("{powerpack_id}", encodeURIComponent(String(powerpackId))); + // Make Request Context + const requestContext = _config + .getServer("v2.PowerpackApi.getPowerpack") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listPowerpacks(pageLimit, pageOffset, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/powerpacks"; + // Make Request Context + const requestContext = _config + .getServer("v2.PowerpackApi.listPowerpacks") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (pageLimit !== undefined) { + requestContext.setQueryParam("page[limit]", ObjectSerializer_1.ObjectSerializer.serialize(pageLimit, "number", "int64"), ""); + } + if (pageOffset !== undefined) { + requestContext.setQueryParam("page[offset]", ObjectSerializer_1.ObjectSerializer.serialize(pageOffset, "number", "int64"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updatePowerpack(powerpackId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'powerpackId' is not null or undefined + if (powerpackId === null || powerpackId === undefined) { + throw new baseapi_1.RequiredError("powerpackId", "updatePowerpack"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updatePowerpack"); + } + // Path Params + const localVarPath = "/api/v2/powerpacks/{powerpack_id}".replace("{powerpack_id}", encodeURIComponent(String(powerpackId))); + // Make Request Context + const requestContext = _config + .getServer("v2.PowerpackApi.updatePowerpack") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "Powerpack", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.PowerpackApiRequestFactory = PowerpackApiRequestFactory; +class PowerpackApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createPowerpack + * @throws ApiException if the response code was not in [200, 299] + */ + createPowerpack(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "PowerpackResponse"); + return body; + } + if (response.httpStatusCode === 400 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "PowerpackResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deletePowerpack + * @throws ApiException if the response code was not in [200, 299] + */ + deletePowerpack(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 404 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getPowerpack + * @throws ApiException if the response code was not in [200, 299] + */ + getPowerpack(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "PowerpackResponse"); + return body; + } + if (response.httpStatusCode === 404 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "PowerpackResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listPowerpacks + * @throws ApiException if the response code was not in [200, 299] + */ + listPowerpacks(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListPowerpacksResponse"); + return body; + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListPowerpacksResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updatePowerpack + * @throws ApiException if the response code was not in [200, 299] + */ + updatePowerpack(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "PowerpackResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "PowerpackResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.PowerpackApiResponseProcessor = PowerpackApiResponseProcessor; +class PowerpackApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new PowerpackApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new PowerpackApiResponseProcessor(); + } + /** + * Create a powerpack. + * @param param The request object + */ + createPowerpack(param, options) { + const requestContextPromise = this.requestFactory.createPowerpack(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createPowerpack(responseContext); + }); + }); + } + /** + * Delete a powerpack. + * @param param The request object + */ + deletePowerpack(param, options) { + const requestContextPromise = this.requestFactory.deletePowerpack(param.powerpackId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deletePowerpack(responseContext); + }); + }); + } + /** + * Get a powerpack. + * @param param The request object + */ + getPowerpack(param, options) { + const requestContextPromise = this.requestFactory.getPowerpack(param.powerpackId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getPowerpack(responseContext); + }); + }); + } + /** + * Get a list of all powerpacks. + * @param param The request object + */ + listPowerpacks(param = {}, options) { + const requestContextPromise = this.requestFactory.listPowerpacks(param.pageLimit, param.pageOffset, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listPowerpacks(responseContext); + }); + }); + } + /** + * Provide a paginated version of listPowerpacks returning a generator with all the items. + */ + listPowerpacksWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* listPowerpacksWithPagination_1() { + let pageSize = 25; + if (param.pageLimit !== undefined) { + pageSize = param.pageLimit; + } + param.pageLimit = pageSize; + while (true) { + const requestContext = yield __await(this.requestFactory.listPowerpacks(param.pageLimit, param.pageOffset, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listPowerpacks(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + if (param.pageOffset === undefined) { + param.pageOffset = pageSize; + } + else { + param.pageOffset = param.pageOffset + pageSize; + } + } + }); + } + /** + * Update a powerpack. + * @param param The request object + */ + updatePowerpack(param, options) { + const requestContextPromise = this.requestFactory.updatePowerpack(param.powerpackId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updatePowerpack(responseContext); + }); + }); + } +} +exports.PowerpackApi = PowerpackApi; +//# sourceMappingURL=PowerpackApi.js.map + +/***/ }), + +/***/ 3616: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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 __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ProcessesApi = exports.ProcessesApiResponseProcessor = exports.ProcessesApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class ProcessesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + listProcesses(search, tags, from, to, pageLimit, pageCursor, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/processes"; + // Make Request Context + const requestContext = _config + .getServer("v2.ProcessesApi.listProcesses") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (search !== undefined) { + requestContext.setQueryParam("search", ObjectSerializer_1.ObjectSerializer.serialize(search, "string", ""), ""); + } + if (tags !== undefined) { + requestContext.setQueryParam("tags", ObjectSerializer_1.ObjectSerializer.serialize(tags, "string", ""), ""); + } + if (from !== undefined) { + requestContext.setQueryParam("from", ObjectSerializer_1.ObjectSerializer.serialize(from, "number", "int64"), ""); + } + if (to !== undefined) { + requestContext.setQueryParam("to", ObjectSerializer_1.ObjectSerializer.serialize(to, "number", "int64"), ""); + } + if (pageLimit !== undefined) { + requestContext.setQueryParam("page[limit]", ObjectSerializer_1.ObjectSerializer.serialize(pageLimit, "number", "int32"), ""); + } + if (pageCursor !== undefined) { + requestContext.setQueryParam("page[cursor]", ObjectSerializer_1.ObjectSerializer.serialize(pageCursor, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.ProcessesApiRequestFactory = ProcessesApiRequestFactory; +class ProcessesApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listProcesses + * @throws ApiException if the response code was not in [200, 299] + */ + listProcesses(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ProcessSummariesResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ProcessSummariesResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.ProcessesApiResponseProcessor = ProcessesApiResponseProcessor; +class ProcessesApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new ProcessesApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new ProcessesApiResponseProcessor(); + } + /** + * Get all processes for your organization. + * @param param The request object + */ + listProcesses(param = {}, options) { + const requestContextPromise = this.requestFactory.listProcesses(param.search, param.tags, param.from, param.to, param.pageLimit, param.pageCursor, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listProcesses(responseContext); + }); + }); + } + /** + * Provide a paginated version of listProcesses returning a generator with all the items. + */ + listProcessesWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* listProcessesWithPagination_1() { + let pageSize = 1000; + if (param.pageLimit !== undefined) { + pageSize = param.pageLimit; + } + param.pageLimit = pageSize; + while (true) { + const requestContext = yield __await(this.requestFactory.listProcesses(param.search, param.tags, param.from, param.to, param.pageLimit, param.pageCursor, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listProcesses(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + const cursorMeta = response.meta; + if (cursorMeta === undefined) { + break; + } + const cursorMetaPage = cursorMeta.page; + if (cursorMetaPage === undefined) { + break; + } + const cursorMetaPageAfter = cursorMetaPage.after; + if (cursorMetaPageAfter === undefined) { + break; + } + param.pageCursor = cursorMetaPageAfter; + } + }); + } +} +exports.ProcessesApi = ProcessesApi; +//# sourceMappingURL=ProcessesApi.js.map + +/***/ }), + +/***/ 85379: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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 __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.RUMApi = exports.RUMApiResponseProcessor = exports.RUMApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +const RUMQueryPageOptions_1 = __nccwpck_require__(55843); +class RUMApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + aggregateRUMEvents(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "aggregateRUMEvents"); + } + // Path Params + const localVarPath = "/api/v2/rum/analytics/aggregate"; + // Make Request Context + const requestContext = _config + .getServer("v2.RUMApi.aggregateRUMEvents") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "RUMAggregateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createRUMApplication(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createRUMApplication"); + } + // Path Params + const localVarPath = "/api/v2/rum/applications"; + // Make Request Context + const requestContext = _config + .getServer("v2.RUMApi.createRUMApplication") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "RUMApplicationCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteRUMApplication(id, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new baseapi_1.RequiredError("id", "deleteRUMApplication"); + } + // Path Params + const localVarPath = "/api/v2/rum/applications/{id}".replace("{id}", encodeURIComponent(String(id))); + // Make Request Context + const requestContext = _config + .getServer("v2.RUMApi.deleteRUMApplication") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getRUMApplication(id, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new baseapi_1.RequiredError("id", "getRUMApplication"); + } + // Path Params + const localVarPath = "/api/v2/rum/applications/{id}".replace("{id}", encodeURIComponent(String(id))); + // Make Request Context + const requestContext = _config + .getServer("v2.RUMApi.getRUMApplication") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getRUMApplications(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/rum/applications"; + // Make Request Context + const requestContext = _config + .getServer("v2.RUMApi.getRUMApplications") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listRUMEvents(filterQuery, filterFrom, filterTo, sort, pageCursor, pageLimit, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/rum/events"; + // Make Request Context + const requestContext = _config + .getServer("v2.RUMApi.listRUMEvents") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (filterQuery !== undefined) { + requestContext.setQueryParam("filter[query]", ObjectSerializer_1.ObjectSerializer.serialize(filterQuery, "string", ""), ""); + } + if (filterFrom !== undefined) { + requestContext.setQueryParam("filter[from]", ObjectSerializer_1.ObjectSerializer.serialize(filterFrom, "Date", "date-time"), ""); + } + if (filterTo !== undefined) { + requestContext.setQueryParam("filter[to]", ObjectSerializer_1.ObjectSerializer.serialize(filterTo, "Date", "date-time"), ""); + } + if (sort !== undefined) { + requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "RUMSort", ""), ""); + } + if (pageCursor !== undefined) { + requestContext.setQueryParam("page[cursor]", ObjectSerializer_1.ObjectSerializer.serialize(pageCursor, "string", ""), ""); + } + if (pageLimit !== undefined) { + requestContext.setQueryParam("page[limit]", ObjectSerializer_1.ObjectSerializer.serialize(pageLimit, "number", "int32"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + searchRUMEvents(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "searchRUMEvents"); + } + // Path Params + const localVarPath = "/api/v2/rum/events/search"; + // Make Request Context + const requestContext = _config + .getServer("v2.RUMApi.searchRUMEvents") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "RUMSearchEventsRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateRUMApplication(id, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new baseapi_1.RequiredError("id", "updateRUMApplication"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateRUMApplication"); + } + // Path Params + const localVarPath = "/api/v2/rum/applications/{id}".replace("{id}", encodeURIComponent(String(id))); + // Make Request Context + const requestContext = _config + .getServer("v2.RUMApi.updateRUMApplication") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "RUMApplicationUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.RUMApiRequestFactory = RUMApiRequestFactory; +class RUMApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to aggregateRUMEvents + * @throws ApiException if the response code was not in [200, 299] + */ + aggregateRUMEvents(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RUMAnalyticsAggregateResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RUMAnalyticsAggregateResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createRUMApplication + * @throws ApiException if the response code was not in [200, 299] + */ + createRUMApplication(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RUMApplicationResponse"); + return body; + } + if (response.httpStatusCode === 400 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RUMApplicationResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteRUMApplication + * @throws ApiException if the response code was not in [200, 299] + */ + deleteRUMApplication(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 404 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getRUMApplication + * @throws ApiException if the response code was not in [200, 299] + */ + getRUMApplication(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RUMApplicationResponse"); + return body; + } + if (response.httpStatusCode === 404 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RUMApplicationResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getRUMApplications + * @throws ApiException if the response code was not in [200, 299] + */ + getRUMApplications(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RUMApplicationsResponse"); + return body; + } + if (response.httpStatusCode === 404 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RUMApplicationsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listRUMEvents + * @throws ApiException if the response code was not in [200, 299] + */ + listRUMEvents(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RUMEventsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RUMEventsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to searchRUMEvents + * @throws ApiException if the response code was not in [200, 299] + */ + searchRUMEvents(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RUMEventsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RUMEventsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateRUMApplication + * @throws ApiException if the response code was not in [200, 299] + */ + updateRUMApplication(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RUMApplicationResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 404 || + response.httpStatusCode === 422 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RUMApplicationResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.RUMApiResponseProcessor = RUMApiResponseProcessor; +class RUMApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new RUMApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new RUMApiResponseProcessor(); + } + /** + * The API endpoint to aggregate RUM events into buckets of computed metrics and timeseries. + * @param param The request object + */ + aggregateRUMEvents(param, options) { + const requestContextPromise = this.requestFactory.aggregateRUMEvents(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.aggregateRUMEvents(responseContext); + }); + }); + } + /** + * Create a new RUM application in your organization. + * @param param The request object + */ + createRUMApplication(param, options) { + const requestContextPromise = this.requestFactory.createRUMApplication(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createRUMApplication(responseContext); + }); + }); + } + /** + * Delete an existing RUM application in your organization. + * @param param The request object + */ + deleteRUMApplication(param, options) { + const requestContextPromise = this.requestFactory.deleteRUMApplication(param.id, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteRUMApplication(responseContext); + }); + }); + } + /** + * Get the RUM application with given ID in your organization. + * @param param The request object + */ + getRUMApplication(param, options) { + const requestContextPromise = this.requestFactory.getRUMApplication(param.id, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getRUMApplication(responseContext); + }); + }); + } + /** + * List all the RUM applications in your organization. + * @param param The request object + */ + getRUMApplications(options) { + const requestContextPromise = this.requestFactory.getRUMApplications(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getRUMApplications(responseContext); + }); + }); + } + /** + * List endpoint returns events that match a RUM search query. + * [Results are paginated][1]. + * + * Use this endpoint to see your latest RUM events. + * + * [1]: https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination + * @param param The request object + */ + listRUMEvents(param = {}, options) { + const requestContextPromise = this.requestFactory.listRUMEvents(param.filterQuery, param.filterFrom, param.filterTo, param.sort, param.pageCursor, param.pageLimit, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listRUMEvents(responseContext); + }); + }); + } + /** + * Provide a paginated version of listRUMEvents returning a generator with all the items. + */ + listRUMEventsWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* listRUMEventsWithPagination_1() { + let pageSize = 10; + if (param.pageLimit !== undefined) { + pageSize = param.pageLimit; + } + param.pageLimit = pageSize; + while (true) { + const requestContext = yield __await(this.requestFactory.listRUMEvents(param.filterQuery, param.filterFrom, param.filterTo, param.sort, param.pageCursor, param.pageLimit, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listRUMEvents(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + const cursorMeta = response.meta; + if (cursorMeta === undefined) { + break; + } + const cursorMetaPage = cursorMeta.page; + if (cursorMetaPage === undefined) { + break; + } + const cursorMetaPageAfter = cursorMetaPage.after; + if (cursorMetaPageAfter === undefined) { + break; + } + param.pageCursor = cursorMetaPageAfter; + } + }); + } + /** + * List endpoint returns RUM events that match a RUM search query. + * [Results are paginated][1]. + * + * Use this endpoint to build complex RUM events filtering and search. + * + * [1]: https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination + * @param param The request object + */ + searchRUMEvents(param, options) { + const requestContextPromise = this.requestFactory.searchRUMEvents(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.searchRUMEvents(responseContext); + }); + }); + } + /** + * Provide a paginated version of searchRUMEvents returning a generator with all the items. + */ + searchRUMEventsWithPagination(param, options) { + return __asyncGenerator(this, arguments, function* searchRUMEventsWithPagination_1() { + let pageSize = 10; + if (param.body.page === undefined) { + param.body.page = new RUMQueryPageOptions_1.RUMQueryPageOptions(); + } + if (param.body.page.limit === undefined) { + param.body.page.limit = pageSize; + } + else { + pageSize = param.body.page.limit; + } + while (true) { + const requestContext = yield __await(this.requestFactory.searchRUMEvents(param.body, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.searchRUMEvents(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + const cursorMeta = response.meta; + if (cursorMeta === undefined) { + break; + } + const cursorMetaPage = cursorMeta.page; + if (cursorMetaPage === undefined) { + break; + } + const cursorMetaPageAfter = cursorMetaPage.after; + if (cursorMetaPageAfter === undefined) { + break; + } + param.body.page.cursor = cursorMetaPageAfter; + } + }); + } + /** + * Update the RUM application with given ID in your organization. + * @param param The request object + */ + updateRUMApplication(param, options) { + const requestContextPromise = this.requestFactory.updateRUMApplication(param.id, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateRUMApplication(responseContext); + }); + }); + } +} +exports.RUMApi = RUMApi; +//# sourceMappingURL=RUMApi.js.map + +/***/ }), + +/***/ 65496: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.RestrictionPoliciesApi = exports.RestrictionPoliciesApiResponseProcessor = exports.RestrictionPoliciesApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class RestrictionPoliciesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + deleteRestrictionPolicy(resourceId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'resourceId' is not null or undefined + if (resourceId === null || resourceId === undefined) { + throw new baseapi_1.RequiredError("resourceId", "deleteRestrictionPolicy"); + } + // Path Params + const localVarPath = "/api/v2/restriction_policy/{resource_id}".replace("{resource_id}", encodeURIComponent(String(resourceId))); + // Make Request Context + const requestContext = _config + .getServer("v2.RestrictionPoliciesApi.deleteRestrictionPolicy") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getRestrictionPolicy(resourceId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'resourceId' is not null or undefined + if (resourceId === null || resourceId === undefined) { + throw new baseapi_1.RequiredError("resourceId", "getRestrictionPolicy"); + } + // Path Params + const localVarPath = "/api/v2/restriction_policy/{resource_id}".replace("{resource_id}", encodeURIComponent(String(resourceId))); + // Make Request Context + const requestContext = _config + .getServer("v2.RestrictionPoliciesApi.getRestrictionPolicy") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateRestrictionPolicy(resourceId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'resourceId' is not null or undefined + if (resourceId === null || resourceId === undefined) { + throw new baseapi_1.RequiredError("resourceId", "updateRestrictionPolicy"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateRestrictionPolicy"); + } + // Path Params + const localVarPath = "/api/v2/restriction_policy/{resource_id}".replace("{resource_id}", encodeURIComponent(String(resourceId))); + // Make Request Context + const requestContext = _config + .getServer("v2.RestrictionPoliciesApi.updateRestrictionPolicy") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "RestrictionPolicyUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.RestrictionPoliciesApiRequestFactory = RestrictionPoliciesApiRequestFactory; +class RestrictionPoliciesApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteRestrictionPolicy + * @throws ApiException if the response code was not in [200, 299] + */ + deleteRestrictionPolicy(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getRestrictionPolicy + * @throws ApiException if the response code was not in [200, 299] + */ + getRestrictionPolicy(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RestrictionPolicyResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RestrictionPolicyResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateRestrictionPolicy + * @throws ApiException if the response code was not in [200, 299] + */ + updateRestrictionPolicy(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RestrictionPolicyResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RestrictionPolicyResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.RestrictionPoliciesApiResponseProcessor = RestrictionPoliciesApiResponseProcessor; +class RestrictionPoliciesApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new RestrictionPoliciesApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new RestrictionPoliciesApiResponseProcessor(); + } + /** + * Deletes the restriction policy associated with a specified resource. + * @param param The request object + */ + deleteRestrictionPolicy(param, options) { + const requestContextPromise = this.requestFactory.deleteRestrictionPolicy(param.resourceId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteRestrictionPolicy(responseContext); + }); + }); + } + /** + * Retrieves the restriction policy associated with a specified resource. + * @param param The request object + */ + getRestrictionPolicy(param, options) { + const requestContextPromise = this.requestFactory.getRestrictionPolicy(param.resourceId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getRestrictionPolicy(responseContext); + }); + }); + } + /** + * Updates the restriction policy associated with a resource. + * + * #### Supported resources + * Restriction policies can be applied to the following resources: + * - Dashboards: `dashboard` + * - Notebooks: `notebook` + * - Powerpacks: `powerpack` + * - Reference Tables: `reference-table` + * - Security Rules: `security-rule` + * - Service Level Objectives: `slo` + * - Synthetic Global Variables: `synthetics-global-variable` + * - Synthetic Tests: `synthetics-test` + * - Synthetic Private Locations: `synthetics-private-location` + * - Monitors: `monitor` + * + * #### Supported relations for resources + * Resource Type | Supported Relations + * ----------------------------|-------------------------- + * Dashboards | `viewer`, `editor` + * Notebooks | `viewer`, `editor` + * Powerpacks | `viewer`, `editor` + * Security Rules | `viewer`, `editor` + * Service Level Objectives | `viewer`, `editor` + * Synthetic Global Variables | `viewer`, `editor` + * Synthetic Tests | `viewer`, `editor` + * Synthetic Private Locations | `viewer`, `editor` + * Monitors | `viewer`, `editor` + * Reference Tables | `viewer`, `editor` + * @param param The request object + */ + updateRestrictionPolicy(param, options) { + const requestContextPromise = this.requestFactory.updateRestrictionPolicy(param.resourceId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateRestrictionPolicy(responseContext); + }); + }); + } +} +exports.RestrictionPoliciesApi = RestrictionPoliciesApi; +//# sourceMappingURL=RestrictionPoliciesApi.js.map + +/***/ }), + +/***/ 23560: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.RolesApi = exports.RolesApiResponseProcessor = exports.RolesApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class RolesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + addPermissionToRole(roleId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'roleId' is not null or undefined + if (roleId === null || roleId === undefined) { + throw new baseapi_1.RequiredError("roleId", "addPermissionToRole"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "addPermissionToRole"); + } + // Path Params + const localVarPath = "/api/v2/roles/{role_id}/permissions".replace("{role_id}", encodeURIComponent(String(roleId))); + // Make Request Context + const requestContext = _config + .getServer("v2.RolesApi.addPermissionToRole") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "RelationshipToPermission", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + addUserToRole(roleId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'roleId' is not null or undefined + if (roleId === null || roleId === undefined) { + throw new baseapi_1.RequiredError("roleId", "addUserToRole"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "addUserToRole"); + } + // Path Params + const localVarPath = "/api/v2/roles/{role_id}/users".replace("{role_id}", encodeURIComponent(String(roleId))); + // Make Request Context + const requestContext = _config + .getServer("v2.RolesApi.addUserToRole") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "RelationshipToUser", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + cloneRole(roleId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'roleId' is not null or undefined + if (roleId === null || roleId === undefined) { + throw new baseapi_1.RequiredError("roleId", "cloneRole"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "cloneRole"); + } + // Path Params + const localVarPath = "/api/v2/roles/{role_id}/clone".replace("{role_id}", encodeURIComponent(String(roleId))); + // Make Request Context + const requestContext = _config + .getServer("v2.RolesApi.cloneRole") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "RoleCloneRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createRole(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createRole"); + } + // Path Params + const localVarPath = "/api/v2/roles"; + // Make Request Context + const requestContext = _config + .getServer("v2.RolesApi.createRole") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "RoleCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteRole(roleId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'roleId' is not null or undefined + if (roleId === null || roleId === undefined) { + throw new baseapi_1.RequiredError("roleId", "deleteRole"); + } + // Path Params + const localVarPath = "/api/v2/roles/{role_id}".replace("{role_id}", encodeURIComponent(String(roleId))); + // Make Request Context + const requestContext = _config + .getServer("v2.RolesApi.deleteRole") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getRole(roleId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'roleId' is not null or undefined + if (roleId === null || roleId === undefined) { + throw new baseapi_1.RequiredError("roleId", "getRole"); + } + // Path Params + const localVarPath = "/api/v2/roles/{role_id}".replace("{role_id}", encodeURIComponent(String(roleId))); + // Make Request Context + const requestContext = _config + .getServer("v2.RolesApi.getRole") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listPermissions(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/permissions"; + // Make Request Context + const requestContext = _config + .getServer("v2.RolesApi.listPermissions") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listRolePermissions(roleId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'roleId' is not null or undefined + if (roleId === null || roleId === undefined) { + throw new baseapi_1.RequiredError("roleId", "listRolePermissions"); + } + // Path Params + const localVarPath = "/api/v2/roles/{role_id}/permissions".replace("{role_id}", encodeURIComponent(String(roleId))); + // Make Request Context + const requestContext = _config + .getServer("v2.RolesApi.listRolePermissions") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listRoles(pageSize, pageNumber, sort, filter, filterId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/roles"; + // Make Request Context + const requestContext = _config + .getServer("v2.RolesApi.listRoles") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (pageSize !== undefined) { + requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), ""); + } + if (pageNumber !== undefined) { + requestContext.setQueryParam("page[number]", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); + } + if (sort !== undefined) { + requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "RolesSort", ""), ""); + } + if (filter !== undefined) { + requestContext.setQueryParam("filter", ObjectSerializer_1.ObjectSerializer.serialize(filter, "string", ""), ""); + } + if (filterId !== undefined) { + requestContext.setQueryParam("filter[id]", ObjectSerializer_1.ObjectSerializer.serialize(filterId, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listRoleUsers(roleId, pageSize, pageNumber, sort, filter, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'roleId' is not null or undefined + if (roleId === null || roleId === undefined) { + throw new baseapi_1.RequiredError("roleId", "listRoleUsers"); + } + // Path Params + const localVarPath = "/api/v2/roles/{role_id}/users".replace("{role_id}", encodeURIComponent(String(roleId))); + // Make Request Context + const requestContext = _config + .getServer("v2.RolesApi.listRoleUsers") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (pageSize !== undefined) { + requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), ""); + } + if (pageNumber !== undefined) { + requestContext.setQueryParam("page[number]", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); + } + if (sort !== undefined) { + requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "string", ""), ""); + } + if (filter !== undefined) { + requestContext.setQueryParam("filter", ObjectSerializer_1.ObjectSerializer.serialize(filter, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + removePermissionFromRole(roleId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'roleId' is not null or undefined + if (roleId === null || roleId === undefined) { + throw new baseapi_1.RequiredError("roleId", "removePermissionFromRole"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "removePermissionFromRole"); + } + // Path Params + const localVarPath = "/api/v2/roles/{role_id}/permissions".replace("{role_id}", encodeURIComponent(String(roleId))); + // Make Request Context + const requestContext = _config + .getServer("v2.RolesApi.removePermissionFromRole") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "RelationshipToPermission", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + removeUserFromRole(roleId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'roleId' is not null or undefined + if (roleId === null || roleId === undefined) { + throw new baseapi_1.RequiredError("roleId", "removeUserFromRole"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "removeUserFromRole"); + } + // Path Params + const localVarPath = "/api/v2/roles/{role_id}/users".replace("{role_id}", encodeURIComponent(String(roleId))); + // Make Request Context + const requestContext = _config + .getServer("v2.RolesApi.removeUserFromRole") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "RelationshipToUser", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateRole(roleId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'roleId' is not null or undefined + if (roleId === null || roleId === undefined) { + throw new baseapi_1.RequiredError("roleId", "updateRole"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateRole"); + } + // Path Params + const localVarPath = "/api/v2/roles/{role_id}".replace("{role_id}", encodeURIComponent(String(roleId))); + // Make Request Context + const requestContext = _config + .getServer("v2.RolesApi.updateRole") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "RoleUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.RolesApiRequestFactory = RolesApiRequestFactory; +class RolesApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to addPermissionToRole + * @throws ApiException if the response code was not in [200, 299] + */ + addPermissionToRole(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "PermissionsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "PermissionsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to addUserToRole + * @throws ApiException if the response code was not in [200, 299] + */ + addUserToRole(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsersResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsersResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to cloneRole + * @throws ApiException if the response code was not in [200, 299] + */ + cloneRole(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RoleResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RoleResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createRole + * @throws ApiException if the response code was not in [200, 299] + */ + createRole(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RoleCreateResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RoleCreateResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteRole + * @throws ApiException if the response code was not in [200, 299] + */ + deleteRole(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getRole + * @throws ApiException if the response code was not in [200, 299] + */ + getRole(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RoleResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RoleResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listPermissions + * @throws ApiException if the response code was not in [200, 299] + */ + listPermissions(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "PermissionsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "PermissionsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listRolePermissions + * @throws ApiException if the response code was not in [200, 299] + */ + listRolePermissions(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "PermissionsResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "PermissionsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listRoles + * @throws ApiException if the response code was not in [200, 299] + */ + listRoles(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RolesResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RolesResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listRoleUsers + * @throws ApiException if the response code was not in [200, 299] + */ + listRoleUsers(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsersResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsersResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to removePermissionFromRole + * @throws ApiException if the response code was not in [200, 299] + */ + removePermissionFromRole(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "PermissionsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "PermissionsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to removeUserFromRole + * @throws ApiException if the response code was not in [200, 299] + */ + removeUserFromRole(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsersResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsersResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateRole + * @throws ApiException if the response code was not in [200, 299] + */ + updateRole(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RoleUpdateResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 422 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RoleUpdateResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.RolesApiResponseProcessor = RolesApiResponseProcessor; +class RolesApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new RolesApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new RolesApiResponseProcessor(); + } + /** + * Adds a permission to a role. + * @param param The request object + */ + addPermissionToRole(param, options) { + const requestContextPromise = this.requestFactory.addPermissionToRole(param.roleId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.addPermissionToRole(responseContext); + }); + }); + } + /** + * Adds a user to a role. + * @param param The request object + */ + addUserToRole(param, options) { + const requestContextPromise = this.requestFactory.addUserToRole(param.roleId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.addUserToRole(responseContext); + }); + }); + } + /** + * Clone an existing role + * @param param The request object + */ + cloneRole(param, options) { + const requestContextPromise = this.requestFactory.cloneRole(param.roleId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.cloneRole(responseContext); + }); + }); + } + /** + * Create a new role for your organization. + * @param param The request object + */ + createRole(param, options) { + const requestContextPromise = this.requestFactory.createRole(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createRole(responseContext); + }); + }); + } + /** + * Disables a role. + * @param param The request object + */ + deleteRole(param, options) { + const requestContextPromise = this.requestFactory.deleteRole(param.roleId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteRole(responseContext); + }); + }); + } + /** + * Get a role in the organization specified by the role’s `role_id`. + * @param param The request object + */ + getRole(param, options) { + const requestContextPromise = this.requestFactory.getRole(param.roleId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getRole(responseContext); + }); + }); + } + /** + * Returns a list of all permissions, including name, description, and ID. + * @param param The request object + */ + listPermissions(options) { + const requestContextPromise = this.requestFactory.listPermissions(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listPermissions(responseContext); + }); + }); + } + /** + * Returns a list of all permissions for a single role. + * @param param The request object + */ + listRolePermissions(param, options) { + const requestContextPromise = this.requestFactory.listRolePermissions(param.roleId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listRolePermissions(responseContext); + }); + }); + } + /** + * Returns all roles, including their names and their unique identifiers. + * @param param The request object + */ + listRoles(param = {}, options) { + const requestContextPromise = this.requestFactory.listRoles(param.pageSize, param.pageNumber, param.sort, param.filter, param.filterId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listRoles(responseContext); + }); + }); + } + /** + * Gets all users of a role. + * @param param The request object + */ + listRoleUsers(param, options) { + const requestContextPromise = this.requestFactory.listRoleUsers(param.roleId, param.pageSize, param.pageNumber, param.sort, param.filter, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listRoleUsers(responseContext); + }); + }); + } + /** + * Removes a permission from a role. + * @param param The request object + */ + removePermissionFromRole(param, options) { + const requestContextPromise = this.requestFactory.removePermissionFromRole(param.roleId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.removePermissionFromRole(responseContext); + }); + }); + } + /** + * Removes a user from a role. + * @param param The request object + */ + removeUserFromRole(param, options) { + const requestContextPromise = this.requestFactory.removeUserFromRole(param.roleId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.removeUserFromRole(responseContext); + }); + }); + } + /** + * Edit a role. Can only be used with application keys belonging to administrators. + * @param param The request object + */ + updateRole(param, options) { + const requestContextPromise = this.requestFactory.updateRole(param.roleId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateRole(responseContext); + }); + }); + } +} +exports.RolesApi = RolesApi; +//# sourceMappingURL=RolesApi.js.map + +/***/ }), + +/***/ 63016: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.RumMetricsApi = exports.RumMetricsApiResponseProcessor = exports.RumMetricsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class RumMetricsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createRumMetric(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createRumMetric"); + } + // Path Params + const localVarPath = "/api/v2/rum/config/metrics"; + // Make Request Context + const requestContext = _config + .getServer("v2.RumMetricsApi.createRumMetric") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "RumMetricCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteRumMetric(metricId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'metricId' is not null or undefined + if (metricId === null || metricId === undefined) { + throw new baseapi_1.RequiredError("metricId", "deleteRumMetric"); + } + // Path Params + const localVarPath = "/api/v2/rum/config/metrics/{metric_id}".replace("{metric_id}", encodeURIComponent(String(metricId))); + // Make Request Context + const requestContext = _config + .getServer("v2.RumMetricsApi.deleteRumMetric") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getRumMetric(metricId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'metricId' is not null or undefined + if (metricId === null || metricId === undefined) { + throw new baseapi_1.RequiredError("metricId", "getRumMetric"); + } + // Path Params + const localVarPath = "/api/v2/rum/config/metrics/{metric_id}".replace("{metric_id}", encodeURIComponent(String(metricId))); + // Make Request Context + const requestContext = _config + .getServer("v2.RumMetricsApi.getRumMetric") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listRumMetrics(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/rum/config/metrics"; + // Make Request Context + const requestContext = _config + .getServer("v2.RumMetricsApi.listRumMetrics") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateRumMetric(metricId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'metricId' is not null or undefined + if (metricId === null || metricId === undefined) { + throw new baseapi_1.RequiredError("metricId", "updateRumMetric"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateRumMetric"); + } + // Path Params + const localVarPath = "/api/v2/rum/config/metrics/{metric_id}".replace("{metric_id}", encodeURIComponent(String(metricId))); + // Make Request Context + const requestContext = _config + .getServer("v2.RumMetricsApi.updateRumMetric") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "RumMetricUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.RumMetricsApiRequestFactory = RumMetricsApiRequestFactory; +class RumMetricsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createRumMetric + * @throws ApiException if the response code was not in [200, 299] + */ + createRumMetric(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RumMetricResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RumMetricResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteRumMetric + * @throws ApiException if the response code was not in [200, 299] + */ + deleteRumMetric(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getRumMetric + * @throws ApiException if the response code was not in [200, 299] + */ + getRumMetric(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RumMetricResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RumMetricResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listRumMetrics + * @throws ApiException if the response code was not in [200, 299] + */ + listRumMetrics(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RumMetricsResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RumMetricsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateRumMetric + * @throws ApiException if the response code was not in [200, 299] + */ + updateRumMetric(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RumMetricResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RumMetricResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.RumMetricsApiResponseProcessor = RumMetricsApiResponseProcessor; +class RumMetricsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new RumMetricsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new RumMetricsApiResponseProcessor(); + } + /** + * Create a metric based on your organization's RUM data. + * Returns the rum-based metric object from the request body when the request is successful. + * @param param The request object + */ + createRumMetric(param, options) { + const requestContextPromise = this.requestFactory.createRumMetric(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createRumMetric(responseContext); + }); + }); + } + /** + * Delete a specific rum-based metric from your organization. + * @param param The request object + */ + deleteRumMetric(param, options) { + const requestContextPromise = this.requestFactory.deleteRumMetric(param.metricId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteRumMetric(responseContext); + }); + }); + } + /** + * Get a specific rum-based metric from your organization. + * @param param The request object + */ + getRumMetric(param, options) { + const requestContextPromise = this.requestFactory.getRumMetric(param.metricId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getRumMetric(responseContext); + }); + }); + } + /** + * Get the list of configured rum-based metrics with their definitions. + * @param param The request object + */ + listRumMetrics(options) { + const requestContextPromise = this.requestFactory.listRumMetrics(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listRumMetrics(responseContext); + }); + }); + } + /** + * Update a specific rum-based metric from your organization. + * Returns the rum-based metric object from the request body when the request is successful. + * @param param The request object + */ + updateRumMetric(param, options) { + const requestContextPromise = this.requestFactory.updateRumMetric(param.metricId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateRumMetric(responseContext); + }); + }); + } +} +exports.RumMetricsApi = RumMetricsApi; +//# sourceMappingURL=RumMetricsApi.js.map + +/***/ }), + +/***/ 56399: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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 __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SecurityMonitoringApi = exports.SecurityMonitoringApiResponseProcessor = exports.SecurityMonitoringApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +const SecurityMonitoringSignalListRequest_1 = __nccwpck_require__(87569); +const SecurityMonitoringSignalListRequestPage_1 = __nccwpck_require__(50030); +class SecurityMonitoringApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + cancelHistoricalJob(jobId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'cancelHistoricalJob'"); + if (!_config.unstableOperations["v2.cancelHistoricalJob"]) { + throw new Error("Unstable operation 'cancelHistoricalJob' is disabled"); + } + // verify required parameter 'jobId' is not null or undefined + if (jobId === null || jobId === undefined) { + throw new baseapi_1.RequiredError("jobId", "cancelHistoricalJob"); + } + // Path Params + const localVarPath = "/api/v2/siem-historical-detections/jobs/{job_id}/cancel".replace("{job_id}", encodeURIComponent(String(jobId))); + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.cancelHistoricalJob") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + convertExistingSecurityMonitoringRule(ruleId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'ruleId' is not null or undefined + if (ruleId === null || ruleId === undefined) { + throw new baseapi_1.RequiredError("ruleId", "convertExistingSecurityMonitoringRule"); + } + // Path Params + const localVarPath = "/api/v2/security_monitoring/rules/{rule_id}/convert".replace("{rule_id}", encodeURIComponent(String(ruleId))); + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.convertExistingSecurityMonitoringRule") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + convertJobResultToSignal(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'convertJobResultToSignal'"); + if (!_config.unstableOperations["v2.convertJobResultToSignal"]) { + throw new Error("Unstable operation 'convertJobResultToSignal' is disabled"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "convertJobResultToSignal"); + } + // Path Params + const localVarPath = "/api/v2/siem-historical-detections/jobs/signal_convert"; + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.convertJobResultToSignal") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ConvertJobResultsToSignalsRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + convertSecurityMonitoringRuleFromJSONToTerraform(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "convertSecurityMonitoringRuleFromJSONToTerraform"); + } + // Path Params + const localVarPath = "/api/v2/security_monitoring/rules/convert"; + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.convertSecurityMonitoringRuleFromJSONToTerraform") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityMonitoringRuleConvertPayload", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createSecurityFilter(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createSecurityFilter"); + } + // Path Params + const localVarPath = "/api/v2/security_monitoring/configuration/security_filters"; + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.createSecurityFilter") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityFilterCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createSecurityMonitoringRule(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createSecurityMonitoringRule"); + } + // Path Params + const localVarPath = "/api/v2/security_monitoring/rules"; + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.createSecurityMonitoringRule") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityMonitoringRuleCreatePayload", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createSecurityMonitoringSuppression(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createSecurityMonitoringSuppression"); + } + // Path Params + const localVarPath = "/api/v2/security_monitoring/configuration/suppressions"; + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.createSecurityMonitoringSuppression") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityMonitoringSuppressionCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteHistoricalJob(jobId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'deleteHistoricalJob'"); + if (!_config.unstableOperations["v2.deleteHistoricalJob"]) { + throw new Error("Unstable operation 'deleteHistoricalJob' is disabled"); + } + // verify required parameter 'jobId' is not null or undefined + if (jobId === null || jobId === undefined) { + throw new baseapi_1.RequiredError("jobId", "deleteHistoricalJob"); + } + // Path Params + const localVarPath = "/api/v2/siem-historical-detections/jobs/{job_id}".replace("{job_id}", encodeURIComponent(String(jobId))); + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.deleteHistoricalJob") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteSecurityFilter(securityFilterId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'securityFilterId' is not null or undefined + if (securityFilterId === null || securityFilterId === undefined) { + throw new baseapi_1.RequiredError("securityFilterId", "deleteSecurityFilter"); + } + // Path Params + const localVarPath = "/api/v2/security_monitoring/configuration/security_filters/{security_filter_id}".replace("{security_filter_id}", encodeURIComponent(String(securityFilterId))); + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.deleteSecurityFilter") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteSecurityMonitoringRule(ruleId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'ruleId' is not null or undefined + if (ruleId === null || ruleId === undefined) { + throw new baseapi_1.RequiredError("ruleId", "deleteSecurityMonitoringRule"); + } + // Path Params + const localVarPath = "/api/v2/security_monitoring/rules/{rule_id}".replace("{rule_id}", encodeURIComponent(String(ruleId))); + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.deleteSecurityMonitoringRule") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteSecurityMonitoringSuppression(suppressionId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'suppressionId' is not null or undefined + if (suppressionId === null || suppressionId === undefined) { + throw new baseapi_1.RequiredError("suppressionId", "deleteSecurityMonitoringSuppression"); + } + // Path Params + const localVarPath = "/api/v2/security_monitoring/configuration/suppressions/{suppression_id}".replace("{suppression_id}", encodeURIComponent(String(suppressionId))); + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.deleteSecurityMonitoringSuppression") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + editSecurityMonitoringSignalAssignee(signalId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'signalId' is not null or undefined + if (signalId === null || signalId === undefined) { + throw new baseapi_1.RequiredError("signalId", "editSecurityMonitoringSignalAssignee"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "editSecurityMonitoringSignalAssignee"); + } + // Path Params + const localVarPath = "/api/v2/security_monitoring/signals/{signal_id}/assignee".replace("{signal_id}", encodeURIComponent(String(signalId))); + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.editSecurityMonitoringSignalAssignee") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityMonitoringSignalAssigneeUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + editSecurityMonitoringSignalIncidents(signalId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'signalId' is not null or undefined + if (signalId === null || signalId === undefined) { + throw new baseapi_1.RequiredError("signalId", "editSecurityMonitoringSignalIncidents"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "editSecurityMonitoringSignalIncidents"); + } + // Path Params + const localVarPath = "/api/v2/security_monitoring/signals/{signal_id}/incidents".replace("{signal_id}", encodeURIComponent(String(signalId))); + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.editSecurityMonitoringSignalIncidents") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityMonitoringSignalIncidentsUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + editSecurityMonitoringSignalState(signalId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'signalId' is not null or undefined + if (signalId === null || signalId === undefined) { + throw new baseapi_1.RequiredError("signalId", "editSecurityMonitoringSignalState"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "editSecurityMonitoringSignalState"); + } + // Path Params + const localVarPath = "/api/v2/security_monitoring/signals/{signal_id}/state".replace("{signal_id}", encodeURIComponent(String(signalId))); + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.editSecurityMonitoringSignalState") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityMonitoringSignalStateUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getFinding(findingId, snapshotTimestamp, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'getFinding'"); + if (!_config.unstableOperations["v2.getFinding"]) { + throw new Error("Unstable operation 'getFinding' is disabled"); + } + // verify required parameter 'findingId' is not null or undefined + if (findingId === null || findingId === undefined) { + throw new baseapi_1.RequiredError("findingId", "getFinding"); + } + // Path Params + const localVarPath = "/api/v2/posture_management/findings/{finding_id}".replace("{finding_id}", encodeURIComponent(String(findingId))); + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.getFinding") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (snapshotTimestamp !== undefined) { + requestContext.setQueryParam("snapshot_timestamp", ObjectSerializer_1.ObjectSerializer.serialize(snapshotTimestamp, "number", "int64"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getHistoricalJob(jobId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'getHistoricalJob'"); + if (!_config.unstableOperations["v2.getHistoricalJob"]) { + throw new Error("Unstable operation 'getHistoricalJob' is disabled"); + } + // verify required parameter 'jobId' is not null or undefined + if (jobId === null || jobId === undefined) { + throw new baseapi_1.RequiredError("jobId", "getHistoricalJob"); + } + // Path Params + const localVarPath = "/api/v2/siem-historical-detections/jobs/{job_id}".replace("{job_id}", encodeURIComponent(String(jobId))); + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.getHistoricalJob") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getSecurityFilter(securityFilterId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'securityFilterId' is not null or undefined + if (securityFilterId === null || securityFilterId === undefined) { + throw new baseapi_1.RequiredError("securityFilterId", "getSecurityFilter"); + } + // Path Params + const localVarPath = "/api/v2/security_monitoring/configuration/security_filters/{security_filter_id}".replace("{security_filter_id}", encodeURIComponent(String(securityFilterId))); + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.getSecurityFilter") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getSecurityMonitoringRule(ruleId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'ruleId' is not null or undefined + if (ruleId === null || ruleId === undefined) { + throw new baseapi_1.RequiredError("ruleId", "getSecurityMonitoringRule"); + } + // Path Params + const localVarPath = "/api/v2/security_monitoring/rules/{rule_id}".replace("{rule_id}", encodeURIComponent(String(ruleId))); + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.getSecurityMonitoringRule") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getSecurityMonitoringSignal(signalId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'signalId' is not null or undefined + if (signalId === null || signalId === undefined) { + throw new baseapi_1.RequiredError("signalId", "getSecurityMonitoringSignal"); + } + // Path Params + const localVarPath = "/api/v2/security_monitoring/signals/{signal_id}".replace("{signal_id}", encodeURIComponent(String(signalId))); + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.getSecurityMonitoringSignal") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getSecurityMonitoringSuppression(suppressionId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'suppressionId' is not null or undefined + if (suppressionId === null || suppressionId === undefined) { + throw new baseapi_1.RequiredError("suppressionId", "getSecurityMonitoringSuppression"); + } + // Path Params + const localVarPath = "/api/v2/security_monitoring/configuration/suppressions/{suppression_id}".replace("{suppression_id}", encodeURIComponent(String(suppressionId))); + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.getSecurityMonitoringSuppression") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listFindings(pageLimit, snapshotTimestamp, pageCursor, filterTags, filterEvaluationChangedAt, filterMuted, filterRuleId, filterRuleName, filterResourceType, filterDiscoveryTimestamp, filterEvaluation, filterStatus, filterVulnerabilityType, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'listFindings'"); + if (!_config.unstableOperations["v2.listFindings"]) { + throw new Error("Unstable operation 'listFindings' is disabled"); + } + // Path Params + const localVarPath = "/api/v2/posture_management/findings"; + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.listFindings") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (pageLimit !== undefined) { + requestContext.setQueryParam("page[limit]", ObjectSerializer_1.ObjectSerializer.serialize(pageLimit, "number", "int64"), ""); + } + if (snapshotTimestamp !== undefined) { + requestContext.setQueryParam("snapshot_timestamp", ObjectSerializer_1.ObjectSerializer.serialize(snapshotTimestamp, "number", "int64"), ""); + } + if (pageCursor !== undefined) { + requestContext.setQueryParam("page[cursor]", ObjectSerializer_1.ObjectSerializer.serialize(pageCursor, "string", ""), ""); + } + if (filterTags !== undefined) { + requestContext.setQueryParam("filter[tags]", ObjectSerializer_1.ObjectSerializer.serialize(filterTags, "string", ""), ""); + } + if (filterEvaluationChangedAt !== undefined) { + requestContext.setQueryParam("filter[evaluation_changed_at]", ObjectSerializer_1.ObjectSerializer.serialize(filterEvaluationChangedAt, "string", ""), ""); + } + if (filterMuted !== undefined) { + requestContext.setQueryParam("filter[muted]", ObjectSerializer_1.ObjectSerializer.serialize(filterMuted, "boolean", ""), ""); + } + if (filterRuleId !== undefined) { + requestContext.setQueryParam("filter[rule_id]", ObjectSerializer_1.ObjectSerializer.serialize(filterRuleId, "string", ""), ""); + } + if (filterRuleName !== undefined) { + requestContext.setQueryParam("filter[rule_name]", ObjectSerializer_1.ObjectSerializer.serialize(filterRuleName, "string", ""), ""); + } + if (filterResourceType !== undefined) { + requestContext.setQueryParam("filter[resource_type]", ObjectSerializer_1.ObjectSerializer.serialize(filterResourceType, "string", ""), ""); + } + if (filterDiscoveryTimestamp !== undefined) { + requestContext.setQueryParam("filter[discovery_timestamp]", ObjectSerializer_1.ObjectSerializer.serialize(filterDiscoveryTimestamp, "string", ""), ""); + } + if (filterEvaluation !== undefined) { + requestContext.setQueryParam("filter[evaluation]", ObjectSerializer_1.ObjectSerializer.serialize(filterEvaluation, "FindingEvaluation", ""), ""); + } + if (filterStatus !== undefined) { + requestContext.setQueryParam("filter[status]", ObjectSerializer_1.ObjectSerializer.serialize(filterStatus, "FindingStatus", ""), ""); + } + if (filterVulnerabilityType !== undefined) { + requestContext.setQueryParam("filter[vulnerability_type]", ObjectSerializer_1.ObjectSerializer.serialize(filterVulnerabilityType, "Array", ""), "multi"); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listHistoricalJobs(pageSize, pageNumber, sort, filterQuery, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'listHistoricalJobs'"); + if (!_config.unstableOperations["v2.listHistoricalJobs"]) { + throw new Error("Unstable operation 'listHistoricalJobs' is disabled"); + } + // Path Params + const localVarPath = "/api/v2/siem-historical-detections/jobs"; + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.listHistoricalJobs") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (pageSize !== undefined) { + requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), ""); + } + if (pageNumber !== undefined) { + requestContext.setQueryParam("page[number]", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); + } + if (sort !== undefined) { + requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "string", ""), ""); + } + if (filterQuery !== undefined) { + requestContext.setQueryParam("filter[query]", ObjectSerializer_1.ObjectSerializer.serialize(filterQuery, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listSecurityFilters(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/security_monitoring/configuration/security_filters"; + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.listSecurityFilters") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listSecurityMonitoringRules(pageSize, pageNumber, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/security_monitoring/rules"; + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.listSecurityMonitoringRules") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (pageSize !== undefined) { + requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), ""); + } + if (pageNumber !== undefined) { + requestContext.setQueryParam("page[number]", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listSecurityMonitoringSignals(filterQuery, filterFrom, filterTo, sort, pageCursor, pageLimit, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/security_monitoring/signals"; + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.listSecurityMonitoringSignals") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (filterQuery !== undefined) { + requestContext.setQueryParam("filter[query]", ObjectSerializer_1.ObjectSerializer.serialize(filterQuery, "string", ""), ""); + } + if (filterFrom !== undefined) { + requestContext.setQueryParam("filter[from]", ObjectSerializer_1.ObjectSerializer.serialize(filterFrom, "Date", "date-time"), ""); + } + if (filterTo !== undefined) { + requestContext.setQueryParam("filter[to]", ObjectSerializer_1.ObjectSerializer.serialize(filterTo, "Date", "date-time"), ""); + } + if (sort !== undefined) { + requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "SecurityMonitoringSignalsSort", ""), ""); + } + if (pageCursor !== undefined) { + requestContext.setQueryParam("page[cursor]", ObjectSerializer_1.ObjectSerializer.serialize(pageCursor, "string", ""), ""); + } + if (pageLimit !== undefined) { + requestContext.setQueryParam("page[limit]", ObjectSerializer_1.ObjectSerializer.serialize(pageLimit, "number", "int32"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listSecurityMonitoringSuppressions(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/security_monitoring/configuration/suppressions"; + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.listSecurityMonitoringSuppressions") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + muteFindings(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'muteFindings'"); + if (!_config.unstableOperations["v2.muteFindings"]) { + throw new Error("Unstable operation 'muteFindings' is disabled"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "muteFindings"); + } + // Path Params + const localVarPath = "/api/v2/posture_management/findings"; + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.muteFindings") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "BulkMuteFindingsRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + runHistoricalJob(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'runHistoricalJob'"); + if (!_config.unstableOperations["v2.runHistoricalJob"]) { + throw new Error("Unstable operation 'runHistoricalJob' is disabled"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "runHistoricalJob"); + } + // Path Params + const localVarPath = "/api/v2/siem-historical-detections/jobs"; + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.runHistoricalJob") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "RunHistoricalJobRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + searchSecurityMonitoringSignals(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/security_monitoring/signals/search"; + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.searchSecurityMonitoringSignals") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityMonitoringSignalListRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + testExistingSecurityMonitoringRule(ruleId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'ruleId' is not null or undefined + if (ruleId === null || ruleId === undefined) { + throw new baseapi_1.RequiredError("ruleId", "testExistingSecurityMonitoringRule"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "testExistingSecurityMonitoringRule"); + } + // Path Params + const localVarPath = "/api/v2/security_monitoring/rules/{rule_id}/test".replace("{rule_id}", encodeURIComponent(String(ruleId))); + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.testExistingSecurityMonitoringRule") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityMonitoringRuleTestRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + testSecurityMonitoringRule(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "testSecurityMonitoringRule"); + } + // Path Params + const localVarPath = "/api/v2/security_monitoring/rules/test"; + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.testSecurityMonitoringRule") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityMonitoringRuleTestRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateSecurityFilter(securityFilterId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'securityFilterId' is not null or undefined + if (securityFilterId === null || securityFilterId === undefined) { + throw new baseapi_1.RequiredError("securityFilterId", "updateSecurityFilter"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateSecurityFilter"); + } + // Path Params + const localVarPath = "/api/v2/security_monitoring/configuration/security_filters/{security_filter_id}".replace("{security_filter_id}", encodeURIComponent(String(securityFilterId))); + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.updateSecurityFilter") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityFilterUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateSecurityMonitoringRule(ruleId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'ruleId' is not null or undefined + if (ruleId === null || ruleId === undefined) { + throw new baseapi_1.RequiredError("ruleId", "updateSecurityMonitoringRule"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateSecurityMonitoringRule"); + } + // Path Params + const localVarPath = "/api/v2/security_monitoring/rules/{rule_id}".replace("{rule_id}", encodeURIComponent(String(ruleId))); + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.updateSecurityMonitoringRule") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityMonitoringRuleUpdatePayload", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateSecurityMonitoringSuppression(suppressionId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'suppressionId' is not null or undefined + if (suppressionId === null || suppressionId === undefined) { + throw new baseapi_1.RequiredError("suppressionId", "updateSecurityMonitoringSuppression"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateSecurityMonitoringSuppression"); + } + // Path Params + const localVarPath = "/api/v2/security_monitoring/configuration/suppressions/{suppression_id}".replace("{suppression_id}", encodeURIComponent(String(suppressionId))); + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.updateSecurityMonitoringSuppression") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityMonitoringSuppressionUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + validateSecurityMonitoringRule(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "validateSecurityMonitoringRule"); + } + // Path Params + const localVarPath = "/api/v2/security_monitoring/rules/validation"; + // Make Request Context + const requestContext = _config + .getServer("v2.SecurityMonitoringApi.validateSecurityMonitoringRule") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SecurityMonitoringRuleValidatePayload", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.SecurityMonitoringApiRequestFactory = SecurityMonitoringApiRequestFactory; +class SecurityMonitoringApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to cancelHistoricalJob + * @throws ApiException if the response code was not in [200, 299] + */ + cancelHistoricalJob(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to convertExistingSecurityMonitoringRule + * @throws ApiException if the response code was not in [200, 299] + */ + convertExistingSecurityMonitoringRule(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringRuleConvertResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringRuleConvertResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to convertJobResultToSignal + * @throws ApiException if the response code was not in [200, 299] + */ + convertJobResultToSignal(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to convertSecurityMonitoringRuleFromJSONToTerraform + * @throws ApiException if the response code was not in [200, 299] + */ + convertSecurityMonitoringRuleFromJSONToTerraform(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringRuleConvertResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringRuleConvertResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createSecurityFilter + * @throws ApiException if the response code was not in [200, 299] + */ + createSecurityFilter(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityFilterResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityFilterResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createSecurityMonitoringRule + * @throws ApiException if the response code was not in [200, 299] + */ + createSecurityMonitoringRule(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringRuleResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringRuleResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createSecurityMonitoringSuppression + * @throws ApiException if the response code was not in [200, 299] + */ + createSecurityMonitoringSuppression(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSuppressionResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSuppressionResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteHistoricalJob + * @throws ApiException if the response code was not in [200, 299] + */ + deleteHistoricalJob(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteSecurityFilter + * @throws ApiException if the response code was not in [200, 299] + */ + deleteSecurityFilter(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteSecurityMonitoringRule + * @throws ApiException if the response code was not in [200, 299] + */ + deleteSecurityMonitoringRule(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteSecurityMonitoringSuppression + * @throws ApiException if the response code was not in [200, 299] + */ + deleteSecurityMonitoringSuppression(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to editSecurityMonitoringSignalAssignee + * @throws ApiException if the response code was not in [200, 299] + */ + editSecurityMonitoringSignalAssignee(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSignalTriageUpdateResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSignalTriageUpdateResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to editSecurityMonitoringSignalIncidents + * @throws ApiException if the response code was not in [200, 299] + */ + editSecurityMonitoringSignalIncidents(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSignalTriageUpdateResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSignalTriageUpdateResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to editSecurityMonitoringSignalState + * @throws ApiException if the response code was not in [200, 299] + */ + editSecurityMonitoringSignalState(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSignalTriageUpdateResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSignalTriageUpdateResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getFinding + * @throws ApiException if the response code was not in [200, 299] + */ + getFinding(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GetFindingResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "JSONAPIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GetFindingResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getHistoricalJob + * @throws ApiException if the response code was not in [200, 299] + */ + getHistoricalJob(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "HistoricalJobResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "HistoricalJobResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getSecurityFilter + * @throws ApiException if the response code was not in [200, 299] + */ + getSecurityFilter(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityFilterResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityFilterResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getSecurityMonitoringRule + * @throws ApiException if the response code was not in [200, 299] + */ + getSecurityMonitoringRule(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringRuleResponse"); + return body; + } + if (response.httpStatusCode === 404 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringRuleResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getSecurityMonitoringSignal + * @throws ApiException if the response code was not in [200, 299] + */ + getSecurityMonitoringSignal(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSignalResponse"); + return body; + } + if (response.httpStatusCode === 404 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSignalResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getSecurityMonitoringSuppression + * @throws ApiException if the response code was not in [200, 299] + */ + getSecurityMonitoringSuppression(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSuppressionResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSuppressionResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listFindings + * @throws ApiException if the response code was not in [200, 299] + */ + listFindings(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListFindingsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "JSONAPIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListFindingsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listHistoricalJobs + * @throws ApiException if the response code was not in [200, 299] + */ + listHistoricalJobs(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListHistoricalJobsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListHistoricalJobsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listSecurityFilters + * @throws ApiException if the response code was not in [200, 299] + */ + listSecurityFilters(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityFiltersResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityFiltersResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listSecurityMonitoringRules + * @throws ApiException if the response code was not in [200, 299] + */ + listSecurityMonitoringRules(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringListRulesResponse"); + return body; + } + if (response.httpStatusCode === 400 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringListRulesResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listSecurityMonitoringSignals + * @throws ApiException if the response code was not in [200, 299] + */ + listSecurityMonitoringSignals(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSignalsListResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSignalsListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listSecurityMonitoringSuppressions + * @throws ApiException if the response code was not in [200, 299] + */ + listSecurityMonitoringSuppressions(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSuppressionsResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSuppressionsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to muteFindings + * @throws ApiException if the response code was not in [200, 299] + */ + muteFindings(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "BulkMuteFindingsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 422 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "JSONAPIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "BulkMuteFindingsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to runHistoricalJob + * @throws ApiException if the response code was not in [200, 299] + */ + runHistoricalJob(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "JobCreateResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "JobCreateResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to searchSecurityMonitoringSignals + * @throws ApiException if the response code was not in [200, 299] + */ + searchSecurityMonitoringSignals(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSignalsListResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSignalsListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to testExistingSecurityMonitoringRule + * @throws ApiException if the response code was not in [200, 299] + */ + testExistingSecurityMonitoringRule(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringRuleTestResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringRuleTestResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to testSecurityMonitoringRule + * @throws ApiException if the response code was not in [200, 299] + */ + testSecurityMonitoringRule(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringRuleTestResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringRuleTestResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateSecurityFilter + * @throws ApiException if the response code was not in [200, 299] + */ + updateSecurityFilter(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityFilterResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityFilterResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateSecurityMonitoringRule + * @throws ApiException if the response code was not in [200, 299] + */ + updateSecurityMonitoringRule(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringRuleResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringRuleResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateSecurityMonitoringSuppression + * @throws ApiException if the response code was not in [200, 299] + */ + updateSecurityMonitoringSuppression(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSuppressionResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SecurityMonitoringSuppressionResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to validateSecurityMonitoringRule + * @throws ApiException if the response code was not in [200, 299] + */ + validateSecurityMonitoringRule(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.SecurityMonitoringApiResponseProcessor = SecurityMonitoringApiResponseProcessor; +class SecurityMonitoringApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new SecurityMonitoringApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new SecurityMonitoringApiResponseProcessor(); + } + /** + * Cancel a historical job. + * @param param The request object + */ + cancelHistoricalJob(param, options) { + const requestContextPromise = this.requestFactory.cancelHistoricalJob(param.jobId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.cancelHistoricalJob(responseContext); + }); + }); + } + /** + * Convert an existing rule from JSON to Terraform for datadog provider + * resource datadog_security_monitoring_rule. + * @param param The request object + */ + convertExistingSecurityMonitoringRule(param, options) { + const requestContextPromise = this.requestFactory.convertExistingSecurityMonitoringRule(param.ruleId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.convertExistingSecurityMonitoringRule(responseContext); + }); + }); + } + /** + * Convert a job result to a signal. + * @param param The request object + */ + convertJobResultToSignal(param, options) { + const requestContextPromise = this.requestFactory.convertJobResultToSignal(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.convertJobResultToSignal(responseContext); + }); + }); + } + /** + * Convert a rule that doesn't (yet) exist from JSON to Terraform for datadog provider + * resource datadog_security_monitoring_rule. + * @param param The request object + */ + convertSecurityMonitoringRuleFromJSONToTerraform(param, options) { + const requestContextPromise = this.requestFactory.convertSecurityMonitoringRuleFromJSONToTerraform(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.convertSecurityMonitoringRuleFromJSONToTerraform(responseContext); + }); + }); + } + /** + * Create a security filter. + * + * See the [security filter guide](https://docs.datadoghq.com/security_platform/guide/how-to-setup-security-filters-using-security-monitoring-api/) + * for more examples. + * @param param The request object + */ + createSecurityFilter(param, options) { + const requestContextPromise = this.requestFactory.createSecurityFilter(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createSecurityFilter(responseContext); + }); + }); + } + /** + * Create a detection rule. + * @param param The request object + */ + createSecurityMonitoringRule(param, options) { + const requestContextPromise = this.requestFactory.createSecurityMonitoringRule(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createSecurityMonitoringRule(responseContext); + }); + }); + } + /** + * Create a new suppression rule. + * @param param The request object + */ + createSecurityMonitoringSuppression(param, options) { + const requestContextPromise = this.requestFactory.createSecurityMonitoringSuppression(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createSecurityMonitoringSuppression(responseContext); + }); + }); + } + /** + * Delete an existing job. + * @param param The request object + */ + deleteHistoricalJob(param, options) { + const requestContextPromise = this.requestFactory.deleteHistoricalJob(param.jobId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteHistoricalJob(responseContext); + }); + }); + } + /** + * Delete a specific security filter. + * @param param The request object + */ + deleteSecurityFilter(param, options) { + const requestContextPromise = this.requestFactory.deleteSecurityFilter(param.securityFilterId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteSecurityFilter(responseContext); + }); + }); + } + /** + * Delete an existing rule. Default rules cannot be deleted. + * @param param The request object + */ + deleteSecurityMonitoringRule(param, options) { + const requestContextPromise = this.requestFactory.deleteSecurityMonitoringRule(param.ruleId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteSecurityMonitoringRule(responseContext); + }); + }); + } + /** + * Delete a specific suppression rule. + * @param param The request object + */ + deleteSecurityMonitoringSuppression(param, options) { + const requestContextPromise = this.requestFactory.deleteSecurityMonitoringSuppression(param.suppressionId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteSecurityMonitoringSuppression(responseContext); + }); + }); + } + /** + * Modify the triage assignee of a security signal. + * @param param The request object + */ + editSecurityMonitoringSignalAssignee(param, options) { + const requestContextPromise = this.requestFactory.editSecurityMonitoringSignalAssignee(param.signalId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.editSecurityMonitoringSignalAssignee(responseContext); + }); + }); + } + /** + * Change the related incidents for a security signal. + * @param param The request object + */ + editSecurityMonitoringSignalIncidents(param, options) { + const requestContextPromise = this.requestFactory.editSecurityMonitoringSignalIncidents(param.signalId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.editSecurityMonitoringSignalIncidents(responseContext); + }); + }); + } + /** + * Change the triage state of a security signal. + * @param param The request object + */ + editSecurityMonitoringSignalState(param, options) { + const requestContextPromise = this.requestFactory.editSecurityMonitoringSignalState(param.signalId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.editSecurityMonitoringSignalState(responseContext); + }); + }); + } + /** + * Returns a single finding with message and resource configuration. + * @param param The request object + */ + getFinding(param, options) { + const requestContextPromise = this.requestFactory.getFinding(param.findingId, param.snapshotTimestamp, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getFinding(responseContext); + }); + }); + } + /** + * Get a job's details. + * @param param The request object + */ + getHistoricalJob(param, options) { + const requestContextPromise = this.requestFactory.getHistoricalJob(param.jobId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getHistoricalJob(responseContext); + }); + }); + } + /** + * Get the details of a specific security filter. + * + * See the [security filter guide](https://docs.datadoghq.com/security_platform/guide/how-to-setup-security-filters-using-security-monitoring-api/) + * for more examples. + * @param param The request object + */ + getSecurityFilter(param, options) { + const requestContextPromise = this.requestFactory.getSecurityFilter(param.securityFilterId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getSecurityFilter(responseContext); + }); + }); + } + /** + * Get a rule's details. + * @param param The request object + */ + getSecurityMonitoringRule(param, options) { + const requestContextPromise = this.requestFactory.getSecurityMonitoringRule(param.ruleId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getSecurityMonitoringRule(responseContext); + }); + }); + } + /** + * Get a signal's details. + * @param param The request object + */ + getSecurityMonitoringSignal(param, options) { + const requestContextPromise = this.requestFactory.getSecurityMonitoringSignal(param.signalId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getSecurityMonitoringSignal(responseContext); + }); + }); + } + /** + * Get the details of a specific suppression rule. + * @param param The request object + */ + getSecurityMonitoringSuppression(param, options) { + const requestContextPromise = this.requestFactory.getSecurityMonitoringSuppression(param.suppressionId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getSecurityMonitoringSuppression(responseContext); + }); + }); + } + /** + * Get a list of findings. These include both misconfigurations and identity risks. + * + * **Note**: To filter and return only identity risks, add the following query parameter: `?filter[tags]=dd_rule_type:ciem` + * + * ### Filtering + * + * Filters can be applied by appending query parameters to the URL. + * + * - Using a single filter: `?filter[attribute_key]=attribute_value` + * - Chaining filters: `?filter[attribute_key]=attribute_value&filter[attribute_key]=attribute_value...` + * - Filtering on tags: `?filter[tags]=tag_key:tag_value&filter[tags]=tag_key_2:tag_value_2` + * + * Here, `attribute_key` can be any of the filter keys described further below. + * + * Query parameters of type `integer` support comparison operators (`>`, `>=`, `<`, `<=`). This is particularly useful when filtering by `evaluation_changed_at` or `resource_discovery_timestamp`. For example: `?filter[evaluation_changed_at]=>20123123121`. + * + * You can also use the negation operator on strings. For example, use `filter[resource_type]=-aws*` to filter for any non-AWS resources. + * + * The operator must come after the equal sign. For example, to filter with the `>=` operator, add the operator after the equal sign: `filter[evaluation_changed_at]=>=1678809373257`. + * + * Query parameters must be only among the documented ones and with values of correct types. Duplicated query parameters (e.g. `filter[status]=low&filter[status]=info`) are not allowed. + * + * ### Response + * + * The response includes an array of finding objects, pagination metadata, and a count of items that match the query. + * + * Each finding object contains the following: + * + * - The finding ID that can be used in a `GetFinding` request to retrieve the full finding details. + * - Core attributes, including status, evaluation, high-level resource details, muted state, and rule details. + * - `evaluation_changed_at` and `resource_discovery_date` time stamps. + * - An array of associated tags. + * @param param The request object + */ + listFindings(param = {}, options) { + const requestContextPromise = this.requestFactory.listFindings(param.pageLimit, param.snapshotTimestamp, param.pageCursor, param.filterTags, param.filterEvaluationChangedAt, param.filterMuted, param.filterRuleId, param.filterRuleName, param.filterResourceType, param.filterDiscoveryTimestamp, param.filterEvaluation, param.filterStatus, param.filterVulnerabilityType, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listFindings(responseContext); + }); + }); + } + /** + * Provide a paginated version of listFindings returning a generator with all the items. + */ + listFindingsWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* listFindingsWithPagination_1() { + let pageSize = 100; + if (param.pageLimit !== undefined) { + pageSize = param.pageLimit; + } + param.pageLimit = pageSize; + while (true) { + const requestContext = yield __await(this.requestFactory.listFindings(param.pageLimit, param.snapshotTimestamp, param.pageCursor, param.filterTags, param.filterEvaluationChangedAt, param.filterMuted, param.filterRuleId, param.filterRuleName, param.filterResourceType, param.filterDiscoveryTimestamp, param.filterEvaluation, param.filterStatus, param.filterVulnerabilityType, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listFindings(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + const cursorMeta = response.meta; + if (cursorMeta === undefined) { + break; + } + const cursorMetaPage = cursorMeta.page; + if (cursorMetaPage === undefined) { + break; + } + const cursorMetaPageCursor = cursorMetaPage.cursor; + if (cursorMetaPageCursor === undefined) { + break; + } + param.pageCursor = cursorMetaPageCursor; + } + }); + } + /** + * List historical jobs. + * @param param The request object + */ + listHistoricalJobs(param = {}, options) { + const requestContextPromise = this.requestFactory.listHistoricalJobs(param.pageSize, param.pageNumber, param.sort, param.filterQuery, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listHistoricalJobs(responseContext); + }); + }); + } + /** + * Get the list of configured security filters with their definitions. + * @param param The request object + */ + listSecurityFilters(options) { + const requestContextPromise = this.requestFactory.listSecurityFilters(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listSecurityFilters(responseContext); + }); + }); + } + /** + * List rules. + * @param param The request object + */ + listSecurityMonitoringRules(param = {}, options) { + const requestContextPromise = this.requestFactory.listSecurityMonitoringRules(param.pageSize, param.pageNumber, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listSecurityMonitoringRules(responseContext); + }); + }); + } + /** + * The list endpoint returns security signals that match a search query. + * Both this endpoint and the POST endpoint can be used interchangeably when listing + * security signals. + * @param param The request object + */ + listSecurityMonitoringSignals(param = {}, options) { + const requestContextPromise = this.requestFactory.listSecurityMonitoringSignals(param.filterQuery, param.filterFrom, param.filterTo, param.sort, param.pageCursor, param.pageLimit, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listSecurityMonitoringSignals(responseContext); + }); + }); + } + /** + * Provide a paginated version of listSecurityMonitoringSignals returning a generator with all the items. + */ + listSecurityMonitoringSignalsWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* listSecurityMonitoringSignalsWithPagination_1() { + let pageSize = 10; + if (param.pageLimit !== undefined) { + pageSize = param.pageLimit; + } + param.pageLimit = pageSize; + while (true) { + const requestContext = yield __await(this.requestFactory.listSecurityMonitoringSignals(param.filterQuery, param.filterFrom, param.filterTo, param.sort, param.pageCursor, param.pageLimit, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listSecurityMonitoringSignals(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + const cursorMeta = response.meta; + if (cursorMeta === undefined) { + break; + } + const cursorMetaPage = cursorMeta.page; + if (cursorMetaPage === undefined) { + break; + } + const cursorMetaPageAfter = cursorMetaPage.after; + if (cursorMetaPageAfter === undefined) { + break; + } + param.pageCursor = cursorMetaPageAfter; + } + }); + } + /** + * Get the list of all suppression rules. + * @param param The request object + */ + listSecurityMonitoringSuppressions(options) { + const requestContextPromise = this.requestFactory.listSecurityMonitoringSuppressions(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listSecurityMonitoringSuppressions(responseContext); + }); + }); + } + /** + * Mute or unmute findings. + * @param param The request object + */ + muteFindings(param, options) { + const requestContextPromise = this.requestFactory.muteFindings(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.muteFindings(responseContext); + }); + }); + } + /** + * Run a historical job. + * @param param The request object + */ + runHistoricalJob(param, options) { + const requestContextPromise = this.requestFactory.runHistoricalJob(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.runHistoricalJob(responseContext); + }); + }); + } + /** + * Returns security signals that match a search query. + * Both this endpoint and the GET endpoint can be used interchangeably for listing + * security signals. + * @param param The request object + */ + searchSecurityMonitoringSignals(param = {}, options) { + const requestContextPromise = this.requestFactory.searchSecurityMonitoringSignals(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.searchSecurityMonitoringSignals(responseContext); + }); + }); + } + /** + * Provide a paginated version of searchSecurityMonitoringSignals returning a generator with all the items. + */ + searchSecurityMonitoringSignalsWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* searchSecurityMonitoringSignalsWithPagination_1() { + let pageSize = 10; + if (param.body === undefined) { + param.body = new SecurityMonitoringSignalListRequest_1.SecurityMonitoringSignalListRequest(); + } + if (param.body.page === undefined) { + param.body.page = new SecurityMonitoringSignalListRequestPage_1.SecurityMonitoringSignalListRequestPage(); + } + if (param.body.page.limit !== undefined) { + pageSize = param.body.page.limit; + } + param.body.page.limit = pageSize; + while (true) { + const requestContext = yield __await(this.requestFactory.searchSecurityMonitoringSignals(param.body, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.searchSecurityMonitoringSignals(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + const cursorMeta = response.meta; + if (cursorMeta === undefined) { + break; + } + const cursorMetaPage = cursorMeta.page; + if (cursorMetaPage === undefined) { + break; + } + const cursorMetaPageAfter = cursorMetaPage.after; + if (cursorMetaPageAfter === undefined) { + break; + } + param.body.page.cursor = cursorMetaPageAfter; + } + }); + } + /** + * Test an existing rule. + * @param param The request object + */ + testExistingSecurityMonitoringRule(param, options) { + const requestContextPromise = this.requestFactory.testExistingSecurityMonitoringRule(param.ruleId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.testExistingSecurityMonitoringRule(responseContext); + }); + }); + } + /** + * Test a rule. + * @param param The request object + */ + testSecurityMonitoringRule(param, options) { + const requestContextPromise = this.requestFactory.testSecurityMonitoringRule(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.testSecurityMonitoringRule(responseContext); + }); + }); + } + /** + * Update a specific security filter. + * Returns the security filter object when the request is successful. + * @param param The request object + */ + updateSecurityFilter(param, options) { + const requestContextPromise = this.requestFactory.updateSecurityFilter(param.securityFilterId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateSecurityFilter(responseContext); + }); + }); + } + /** + * Update an existing rule. When updating `cases`, `queries` or `options`, the whole field + * must be included. For example, when modifying a query all queries must be included. + * Default rules can only be updated to be enabled, to change notifications, or to update + * the tags (default tags cannot be removed). + * @param param The request object + */ + updateSecurityMonitoringRule(param, options) { + const requestContextPromise = this.requestFactory.updateSecurityMonitoringRule(param.ruleId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateSecurityMonitoringRule(responseContext); + }); + }); + } + /** + * Update a specific suppression rule. + * @param param The request object + */ + updateSecurityMonitoringSuppression(param, options) { + const requestContextPromise = this.requestFactory.updateSecurityMonitoringSuppression(param.suppressionId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateSecurityMonitoringSuppression(responseContext); + }); + }); + } + /** + * Validate a detection rule. + * @param param The request object + */ + validateSecurityMonitoringRule(param, options) { + const requestContextPromise = this.requestFactory.validateSecurityMonitoringRule(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.validateSecurityMonitoringRule(responseContext); + }); + }); + } +} +exports.SecurityMonitoringApi = SecurityMonitoringApi; +//# sourceMappingURL=SecurityMonitoringApi.js.map + +/***/ }), + +/***/ 14517: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.SensitiveDataScannerApi = exports.SensitiveDataScannerApiResponseProcessor = exports.SensitiveDataScannerApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class SensitiveDataScannerApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createScanningGroup(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createScanningGroup"); + } + // Path Params + const localVarPath = "/api/v2/sensitive-data-scanner/config/groups"; + // Make Request Context + const requestContext = _config + .getServer("v2.SensitiveDataScannerApi.createScanningGroup") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SensitiveDataScannerGroupCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createScanningRule(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createScanningRule"); + } + // Path Params + const localVarPath = "/api/v2/sensitive-data-scanner/config/rules"; + // Make Request Context + const requestContext = _config + .getServer("v2.SensitiveDataScannerApi.createScanningRule") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SensitiveDataScannerRuleCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteScanningGroup(groupId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'groupId' is not null or undefined + if (groupId === null || groupId === undefined) { + throw new baseapi_1.RequiredError("groupId", "deleteScanningGroup"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "deleteScanningGroup"); + } + // Path Params + const localVarPath = "/api/v2/sensitive-data-scanner/config/groups/{group_id}".replace("{group_id}", encodeURIComponent(String(groupId))); + // Make Request Context + const requestContext = _config + .getServer("v2.SensitiveDataScannerApi.deleteScanningGroup") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SensitiveDataScannerGroupDeleteRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteScanningRule(ruleId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'ruleId' is not null or undefined + if (ruleId === null || ruleId === undefined) { + throw new baseapi_1.RequiredError("ruleId", "deleteScanningRule"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "deleteScanningRule"); + } + // Path Params + const localVarPath = "/api/v2/sensitive-data-scanner/config/rules/{rule_id}".replace("{rule_id}", encodeURIComponent(String(ruleId))); + // Make Request Context + const requestContext = _config + .getServer("v2.SensitiveDataScannerApi.deleteScanningRule") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SensitiveDataScannerRuleDeleteRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listScanningGroups(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/sensitive-data-scanner/config"; + // Make Request Context + const requestContext = _config + .getServer("v2.SensitiveDataScannerApi.listScanningGroups") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listStandardPatterns(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/sensitive-data-scanner/config/standard-patterns"; + // Make Request Context + const requestContext = _config + .getServer("v2.SensitiveDataScannerApi.listStandardPatterns") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + reorderScanningGroups(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "reorderScanningGroups"); + } + // Path Params + const localVarPath = "/api/v2/sensitive-data-scanner/config"; + // Make Request Context + const requestContext = _config + .getServer("v2.SensitiveDataScannerApi.reorderScanningGroups") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SensitiveDataScannerConfigRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateScanningGroup(groupId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'groupId' is not null or undefined + if (groupId === null || groupId === undefined) { + throw new baseapi_1.RequiredError("groupId", "updateScanningGroup"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateScanningGroup"); + } + // Path Params + const localVarPath = "/api/v2/sensitive-data-scanner/config/groups/{group_id}".replace("{group_id}", encodeURIComponent(String(groupId))); + // Make Request Context + const requestContext = _config + .getServer("v2.SensitiveDataScannerApi.updateScanningGroup") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SensitiveDataScannerGroupUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateScanningRule(ruleId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'ruleId' is not null or undefined + if (ruleId === null || ruleId === undefined) { + throw new baseapi_1.RequiredError("ruleId", "updateScanningRule"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateScanningRule"); + } + // Path Params + const localVarPath = "/api/v2/sensitive-data-scanner/config/rules/{rule_id}".replace("{rule_id}", encodeURIComponent(String(ruleId))); + // Make Request Context + const requestContext = _config + .getServer("v2.SensitiveDataScannerApi.updateScanningRule") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SensitiveDataScannerRuleUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.SensitiveDataScannerApiRequestFactory = SensitiveDataScannerApiRequestFactory; +class SensitiveDataScannerApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createScanningGroup + * @throws ApiException if the response code was not in [200, 299] + */ + createScanningGroup(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SensitiveDataScannerCreateGroupResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SensitiveDataScannerCreateGroupResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createScanningRule + * @throws ApiException if the response code was not in [200, 299] + */ + createScanningRule(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SensitiveDataScannerCreateRuleResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SensitiveDataScannerCreateRuleResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteScanningGroup + * @throws ApiException if the response code was not in [200, 299] + */ + deleteScanningGroup(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SensitiveDataScannerGroupDeleteResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SensitiveDataScannerGroupDeleteResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteScanningRule + * @throws ApiException if the response code was not in [200, 299] + */ + deleteScanningRule(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SensitiveDataScannerRuleDeleteResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SensitiveDataScannerRuleDeleteResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listScanningGroups + * @throws ApiException if the response code was not in [200, 299] + */ + listScanningGroups(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SensitiveDataScannerGetConfigResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SensitiveDataScannerGetConfigResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listStandardPatterns + * @throws ApiException if the response code was not in [200, 299] + */ + listStandardPatterns(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SensitiveDataScannerStandardPatternsResponseData"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SensitiveDataScannerStandardPatternsResponseData", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to reorderScanningGroups + * @throws ApiException if the response code was not in [200, 299] + */ + reorderScanningGroups(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SensitiveDataScannerReorderGroupsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SensitiveDataScannerReorderGroupsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateScanningGroup + * @throws ApiException if the response code was not in [200, 299] + */ + updateScanningGroup(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SensitiveDataScannerGroupUpdateResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SensitiveDataScannerGroupUpdateResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateScanningRule + * @throws ApiException if the response code was not in [200, 299] + */ + updateScanningRule(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SensitiveDataScannerRuleUpdateResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SensitiveDataScannerRuleUpdateResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.SensitiveDataScannerApiResponseProcessor = SensitiveDataScannerApiResponseProcessor; +class SensitiveDataScannerApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || + new SensitiveDataScannerApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new SensitiveDataScannerApiResponseProcessor(); + } + /** + * Create a scanning group. + * The request MAY include a configuration relationship. + * A rules relationship can be omitted entirely, but if it is included it MUST be + * null or an empty array (rules cannot be created at the same time). + * The new group will be ordered last within the configuration. + * @param param The request object + */ + createScanningGroup(param, options) { + const requestContextPromise = this.requestFactory.createScanningGroup(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createScanningGroup(responseContext); + }); + }); + } + /** + * Create a scanning rule in a sensitive data scanner group, ordered last. + * The posted rule MUST include a group relationship. + * It MUST include either a standard_pattern relationship or a regex attribute, but not both. + * If included_attributes is empty or missing, we will scan all attributes except + * excluded_attributes. If both are missing, we will scan the whole event. + * @param param The request object + */ + createScanningRule(param, options) { + const requestContextPromise = this.requestFactory.createScanningRule(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createScanningRule(responseContext); + }); + }); + } + /** + * Delete a given group. + * @param param The request object + */ + deleteScanningGroup(param, options) { + const requestContextPromise = this.requestFactory.deleteScanningGroup(param.groupId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteScanningGroup(responseContext); + }); + }); + } + /** + * Delete a given rule. + * @param param The request object + */ + deleteScanningRule(param, options) { + const requestContextPromise = this.requestFactory.deleteScanningRule(param.ruleId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteScanningRule(responseContext); + }); + }); + } + /** + * List all the Scanning groups in your organization. + * @param param The request object + */ + listScanningGroups(options) { + const requestContextPromise = this.requestFactory.listScanningGroups(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listScanningGroups(responseContext); + }); + }); + } + /** + * Returns all standard patterns. + * @param param The request object + */ + listStandardPatterns(options) { + const requestContextPromise = this.requestFactory.listStandardPatterns(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listStandardPatterns(responseContext); + }); + }); + } + /** + * Reorder the list of groups. + * @param param The request object + */ + reorderScanningGroups(param, options) { + const requestContextPromise = this.requestFactory.reorderScanningGroups(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.reorderScanningGroups(responseContext); + }); + }); + } + /** + * Update a group, including the order of the rules. + * Rules within the group are reordered by including a rules relationship. If the rules + * relationship is present, its data section MUST contain linkages for all of the rules + * currently in the group, and MUST NOT contain any others. + * @param param The request object + */ + updateScanningGroup(param, options) { + const requestContextPromise = this.requestFactory.updateScanningGroup(param.groupId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateScanningGroup(responseContext); + }); + }); + } + /** + * Update a scanning rule. + * The request body MUST NOT include a standard_pattern relationship, as that relationship + * is non-editable. Trying to edit the regex attribute of a rule with a standard_pattern + * relationship will also result in an error. + * @param param The request object + */ + updateScanningRule(param, options) { + const requestContextPromise = this.requestFactory.updateScanningRule(param.ruleId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateScanningRule(responseContext); + }); + }); + } +} +exports.SensitiveDataScannerApi = SensitiveDataScannerApi; +//# sourceMappingURL=SensitiveDataScannerApi.js.map + +/***/ }), + +/***/ 2966: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.ServiceAccountsApi = exports.ServiceAccountsApiResponseProcessor = exports.ServiceAccountsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class ServiceAccountsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createServiceAccount(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createServiceAccount"); + } + // Path Params + const localVarPath = "/api/v2/service_accounts"; + // Make Request Context + const requestContext = _config + .getServer("v2.ServiceAccountsApi.createServiceAccount") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ServiceAccountCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createServiceAccountApplicationKey(serviceAccountId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'serviceAccountId' is not null or undefined + if (serviceAccountId === null || serviceAccountId === undefined) { + throw new baseapi_1.RequiredError("serviceAccountId", "createServiceAccountApplicationKey"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createServiceAccountApplicationKey"); + } + // Path Params + const localVarPath = "/api/v2/service_accounts/{service_account_id}/application_keys".replace("{service_account_id}", encodeURIComponent(String(serviceAccountId))); + // Make Request Context + const requestContext = _config + .getServer("v2.ServiceAccountsApi.createServiceAccountApplicationKey") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ApplicationKeyCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteServiceAccountApplicationKey(serviceAccountId, appKeyId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'serviceAccountId' is not null or undefined + if (serviceAccountId === null || serviceAccountId === undefined) { + throw new baseapi_1.RequiredError("serviceAccountId", "deleteServiceAccountApplicationKey"); + } + // verify required parameter 'appKeyId' is not null or undefined + if (appKeyId === null || appKeyId === undefined) { + throw new baseapi_1.RequiredError("appKeyId", "deleteServiceAccountApplicationKey"); + } + // Path Params + const localVarPath = "/api/v2/service_accounts/{service_account_id}/application_keys/{app_key_id}" + .replace("{service_account_id}", encodeURIComponent(String(serviceAccountId))) + .replace("{app_key_id}", encodeURIComponent(String(appKeyId))); + // Make Request Context + const requestContext = _config + .getServer("v2.ServiceAccountsApi.deleteServiceAccountApplicationKey") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getServiceAccountApplicationKey(serviceAccountId, appKeyId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'serviceAccountId' is not null or undefined + if (serviceAccountId === null || serviceAccountId === undefined) { + throw new baseapi_1.RequiredError("serviceAccountId", "getServiceAccountApplicationKey"); + } + // verify required parameter 'appKeyId' is not null or undefined + if (appKeyId === null || appKeyId === undefined) { + throw new baseapi_1.RequiredError("appKeyId", "getServiceAccountApplicationKey"); + } + // Path Params + const localVarPath = "/api/v2/service_accounts/{service_account_id}/application_keys/{app_key_id}" + .replace("{service_account_id}", encodeURIComponent(String(serviceAccountId))) + .replace("{app_key_id}", encodeURIComponent(String(appKeyId))); + // Make Request Context + const requestContext = _config + .getServer("v2.ServiceAccountsApi.getServiceAccountApplicationKey") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listServiceAccountApplicationKeys(serviceAccountId, pageSize, pageNumber, sort, filter, filterCreatedAtStart, filterCreatedAtEnd, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'serviceAccountId' is not null or undefined + if (serviceAccountId === null || serviceAccountId === undefined) { + throw new baseapi_1.RequiredError("serviceAccountId", "listServiceAccountApplicationKeys"); + } + // Path Params + const localVarPath = "/api/v2/service_accounts/{service_account_id}/application_keys".replace("{service_account_id}", encodeURIComponent(String(serviceAccountId))); + // Make Request Context + const requestContext = _config + .getServer("v2.ServiceAccountsApi.listServiceAccountApplicationKeys") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (pageSize !== undefined) { + requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), ""); + } + if (pageNumber !== undefined) { + requestContext.setQueryParam("page[number]", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); + } + if (sort !== undefined) { + requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "ApplicationKeysSort", ""), ""); + } + if (filter !== undefined) { + requestContext.setQueryParam("filter", ObjectSerializer_1.ObjectSerializer.serialize(filter, "string", ""), ""); + } + if (filterCreatedAtStart !== undefined) { + requestContext.setQueryParam("filter[created_at][start]", ObjectSerializer_1.ObjectSerializer.serialize(filterCreatedAtStart, "string", ""), ""); + } + if (filterCreatedAtEnd !== undefined) { + requestContext.setQueryParam("filter[created_at][end]", ObjectSerializer_1.ObjectSerializer.serialize(filterCreatedAtEnd, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateServiceAccountApplicationKey(serviceAccountId, appKeyId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'serviceAccountId' is not null or undefined + if (serviceAccountId === null || serviceAccountId === undefined) { + throw new baseapi_1.RequiredError("serviceAccountId", "updateServiceAccountApplicationKey"); + } + // verify required parameter 'appKeyId' is not null or undefined + if (appKeyId === null || appKeyId === undefined) { + throw new baseapi_1.RequiredError("appKeyId", "updateServiceAccountApplicationKey"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateServiceAccountApplicationKey"); + } + // Path Params + const localVarPath = "/api/v2/service_accounts/{service_account_id}/application_keys/{app_key_id}" + .replace("{service_account_id}", encodeURIComponent(String(serviceAccountId))) + .replace("{app_key_id}", encodeURIComponent(String(appKeyId))); + // Make Request Context + const requestContext = _config + .getServer("v2.ServiceAccountsApi.updateServiceAccountApplicationKey") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ApplicationKeyUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.ServiceAccountsApiRequestFactory = ServiceAccountsApiRequestFactory; +class ServiceAccountsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createServiceAccount + * @throws ApiException if the response code was not in [200, 299] + */ + createServiceAccount(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createServiceAccountApplicationKey + * @throws ApiException if the response code was not in [200, 299] + */ + createServiceAccountApplicationKey(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApplicationKeyResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ApplicationKeyResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteServiceAccountApplicationKey + * @throws ApiException if the response code was not in [200, 299] + */ + deleteServiceAccountApplicationKey(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getServiceAccountApplicationKey + * @throws ApiException if the response code was not in [200, 299] + */ + getServiceAccountApplicationKey(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "PartialApplicationKeyResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "PartialApplicationKeyResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listServiceAccountApplicationKeys + * @throws ApiException if the response code was not in [200, 299] + */ + listServiceAccountApplicationKeys(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListApplicationKeysResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListApplicationKeysResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateServiceAccountApplicationKey + * @throws ApiException if the response code was not in [200, 299] + */ + updateServiceAccountApplicationKey(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "PartialApplicationKeyResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "PartialApplicationKeyResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.ServiceAccountsApiResponseProcessor = ServiceAccountsApiResponseProcessor; +class ServiceAccountsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new ServiceAccountsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new ServiceAccountsApiResponseProcessor(); + } + /** + * Create a service account for your organization. + * @param param The request object + */ + createServiceAccount(param, options) { + const requestContextPromise = this.requestFactory.createServiceAccount(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createServiceAccount(responseContext); + }); + }); + } + /** + * Create an application key for this service account. + * @param param The request object + */ + createServiceAccountApplicationKey(param, options) { + const requestContextPromise = this.requestFactory.createServiceAccountApplicationKey(param.serviceAccountId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createServiceAccountApplicationKey(responseContext); + }); + }); + } + /** + * Delete an application key owned by this service account. + * @param param The request object + */ + deleteServiceAccountApplicationKey(param, options) { + const requestContextPromise = this.requestFactory.deleteServiceAccountApplicationKey(param.serviceAccountId, param.appKeyId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteServiceAccountApplicationKey(responseContext); + }); + }); + } + /** + * Get an application key owned by this service account. + * @param param The request object + */ + getServiceAccountApplicationKey(param, options) { + const requestContextPromise = this.requestFactory.getServiceAccountApplicationKey(param.serviceAccountId, param.appKeyId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getServiceAccountApplicationKey(responseContext); + }); + }); + } + /** + * List all application keys available for this service account. + * @param param The request object + */ + listServiceAccountApplicationKeys(param, options) { + const requestContextPromise = this.requestFactory.listServiceAccountApplicationKeys(param.serviceAccountId, param.pageSize, param.pageNumber, param.sort, param.filter, param.filterCreatedAtStart, param.filterCreatedAtEnd, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listServiceAccountApplicationKeys(responseContext); + }); + }); + } + /** + * Edit an application key owned by this service account. + * @param param The request object + */ + updateServiceAccountApplicationKey(param, options) { + const requestContextPromise = this.requestFactory.updateServiceAccountApplicationKey(param.serviceAccountId, param.appKeyId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateServiceAccountApplicationKey(responseContext); + }); + }); + } +} +exports.ServiceAccountsApi = ServiceAccountsApi; +//# sourceMappingURL=ServiceAccountsApi.js.map + +/***/ }), + +/***/ 15669: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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 __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ServiceDefinitionApi = exports.ServiceDefinitionApiResponseProcessor = exports.ServiceDefinitionApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class ServiceDefinitionApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createOrUpdateServiceDefinitions(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createOrUpdateServiceDefinitions"); + } + // Path Params + const localVarPath = "/api/v2/services/definitions"; + // Make Request Context + const requestContext = _config + .getServer("v2.ServiceDefinitionApi.createOrUpdateServiceDefinitions") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ServiceDefinitionsCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteServiceDefinition(serviceName, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'serviceName' is not null or undefined + if (serviceName === null || serviceName === undefined) { + throw new baseapi_1.RequiredError("serviceName", "deleteServiceDefinition"); + } + // Path Params + const localVarPath = "/api/v2/services/definitions/{service_name}".replace("{service_name}", encodeURIComponent(String(serviceName))); + // Make Request Context + const requestContext = _config + .getServer("v2.ServiceDefinitionApi.deleteServiceDefinition") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getServiceDefinition(serviceName, schemaVersion, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'serviceName' is not null or undefined + if (serviceName === null || serviceName === undefined) { + throw new baseapi_1.RequiredError("serviceName", "getServiceDefinition"); + } + // Path Params + const localVarPath = "/api/v2/services/definitions/{service_name}".replace("{service_name}", encodeURIComponent(String(serviceName))); + // Make Request Context + const requestContext = _config + .getServer("v2.ServiceDefinitionApi.getServiceDefinition") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (schemaVersion !== undefined) { + requestContext.setQueryParam("schema_version", ObjectSerializer_1.ObjectSerializer.serialize(schemaVersion, "ServiceDefinitionSchemaVersions", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listServiceDefinitions(pageSize, pageNumber, schemaVersion, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/services/definitions"; + // Make Request Context + const requestContext = _config + .getServer("v2.ServiceDefinitionApi.listServiceDefinitions") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (pageSize !== undefined) { + requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), ""); + } + if (pageNumber !== undefined) { + requestContext.setQueryParam("page[number]", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); + } + if (schemaVersion !== undefined) { + requestContext.setQueryParam("schema_version", ObjectSerializer_1.ObjectSerializer.serialize(schemaVersion, "ServiceDefinitionSchemaVersions", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.ServiceDefinitionApiRequestFactory = ServiceDefinitionApiRequestFactory; +class ServiceDefinitionApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createOrUpdateServiceDefinitions + * @throws ApiException if the response code was not in [200, 299] + */ + createOrUpdateServiceDefinitions(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ServiceDefinitionCreateResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ServiceDefinitionCreateResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteServiceDefinition + * @throws ApiException if the response code was not in [200, 299] + */ + deleteServiceDefinition(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getServiceDefinition + * @throws ApiException if the response code was not in [200, 299] + */ + getServiceDefinition(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ServiceDefinitionGetResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ServiceDefinitionGetResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listServiceDefinitions + * @throws ApiException if the response code was not in [200, 299] + */ + listServiceDefinitions(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ServiceDefinitionsListResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ServiceDefinitionsListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.ServiceDefinitionApiResponseProcessor = ServiceDefinitionApiResponseProcessor; +class ServiceDefinitionApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new ServiceDefinitionApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new ServiceDefinitionApiResponseProcessor(); + } + /** + * Create or update service definition in the Datadog Service Catalog. + * @param param The request object + */ + createOrUpdateServiceDefinitions(param, options) { + const requestContextPromise = this.requestFactory.createOrUpdateServiceDefinitions(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createOrUpdateServiceDefinitions(responseContext); + }); + }); + } + /** + * Delete a single service definition in the Datadog Service Catalog. + * @param param The request object + */ + deleteServiceDefinition(param, options) { + const requestContextPromise = this.requestFactory.deleteServiceDefinition(param.serviceName, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteServiceDefinition(responseContext); + }); + }); + } + /** + * Get a single service definition from the Datadog Service Catalog. + * @param param The request object + */ + getServiceDefinition(param, options) { + const requestContextPromise = this.requestFactory.getServiceDefinition(param.serviceName, param.schemaVersion, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getServiceDefinition(responseContext); + }); + }); + } + /** + * Get a list of all service definitions from the Datadog Service Catalog. + * @param param The request object + */ + listServiceDefinitions(param = {}, options) { + const requestContextPromise = this.requestFactory.listServiceDefinitions(param.pageSize, param.pageNumber, param.schemaVersion, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listServiceDefinitions(responseContext); + }); + }); + } + /** + * Provide a paginated version of listServiceDefinitions returning a generator with all the items. + */ + listServiceDefinitionsWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* listServiceDefinitionsWithPagination_1() { + let pageSize = 10; + if (param.pageSize !== undefined) { + pageSize = param.pageSize; + } + param.pageSize = pageSize; + param.pageNumber = 0; + while (true) { + const requestContext = yield __await(this.requestFactory.listServiceDefinitions(param.pageSize, param.pageNumber, param.schemaVersion, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listServiceDefinitions(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + param.pageNumber = param.pageNumber + 1; + } + }); + } +} +exports.ServiceDefinitionApi = ServiceDefinitionApi; +//# sourceMappingURL=ServiceDefinitionApi.js.map + +/***/ }), + +/***/ 31654: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.ServiceLevelObjectivesApi = exports.ServiceLevelObjectivesApiResponseProcessor = exports.ServiceLevelObjectivesApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class ServiceLevelObjectivesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createSLOReportJob(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'createSLOReportJob'"); + if (!_config.unstableOperations["v2.createSLOReportJob"]) { + throw new Error("Unstable operation 'createSLOReportJob' is disabled"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createSLOReportJob"); + } + // Path Params + const localVarPath = "/api/v2/slo/report"; + // Make Request Context + const requestContext = _config + .getServer("v2.ServiceLevelObjectivesApi.createSLOReportJob") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SloReportCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getSLOReport(reportId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'getSLOReport'"); + if (!_config.unstableOperations["v2.getSLOReport"]) { + throw new Error("Unstable operation 'getSLOReport' is disabled"); + } + // verify required parameter 'reportId' is not null or undefined + if (reportId === null || reportId === undefined) { + throw new baseapi_1.RequiredError("reportId", "getSLOReport"); + } + // Path Params + const localVarPath = "/api/v2/slo/report/{report_id}/download".replace("{report_id}", encodeURIComponent(String(reportId))); + // Make Request Context + const requestContext = _config + .getServer("v2.ServiceLevelObjectivesApi.getSLOReport") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "text/csv, application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getSLOReportJobStatus(reportId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'getSLOReportJobStatus'"); + if (!_config.unstableOperations["v2.getSLOReportJobStatus"]) { + throw new Error("Unstable operation 'getSLOReportJobStatus' is disabled"); + } + // verify required parameter 'reportId' is not null or undefined + if (reportId === null || reportId === undefined) { + throw new baseapi_1.RequiredError("reportId", "getSLOReportJobStatus"); + } + // Path Params + const localVarPath = "/api/v2/slo/report/{report_id}/status".replace("{report_id}", encodeURIComponent(String(reportId))); + // Make Request Context + const requestContext = _config + .getServer("v2.ServiceLevelObjectivesApi.getSLOReportJobStatus") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.ServiceLevelObjectivesApiRequestFactory = ServiceLevelObjectivesApiRequestFactory; +class ServiceLevelObjectivesApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createSLOReportJob + * @throws ApiException if the response code was not in [200, 299] + */ + createSLOReportJob(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SLOReportPostResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SLOReportPostResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getSLOReport + * @throws ApiException if the response code was not in [200, 299] + */ + getSLOReport(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "string"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "string", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getSLOReportJobStatus + * @throws ApiException if the response code was not in [200, 299] + */ + getSLOReportJobStatus(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SLOReportStatusGetResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SLOReportStatusGetResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.ServiceLevelObjectivesApiResponseProcessor = ServiceLevelObjectivesApiResponseProcessor; +class ServiceLevelObjectivesApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || + new ServiceLevelObjectivesApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new ServiceLevelObjectivesApiResponseProcessor(); + } + /** + * Create a job to generate an SLO report. The report job is processed asynchronously and eventually results in a CSV report being available for download. + * + * Check the status of the job and download the CSV report using the returned `report_id`. + * @param param The request object + */ + createSLOReportJob(param, options) { + const requestContextPromise = this.requestFactory.createSLOReportJob(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createSLOReportJob(responseContext); + }); + }); + } + /** + * Download an SLO report. This can only be performed after the report job has completed. + * + * Reports are not guaranteed to exist indefinitely. Datadog recommends that you download the report as soon as it is available. + * @param param The request object + */ + getSLOReport(param, options) { + const requestContextPromise = this.requestFactory.getSLOReport(param.reportId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getSLOReport(responseContext); + }); + }); + } + /** + * Get the status of the SLO report job. + * @param param The request object + */ + getSLOReportJobStatus(param, options) { + const requestContextPromise = this.requestFactory.getSLOReportJobStatus(param.reportId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getSLOReportJobStatus(responseContext); + }); + }); + } +} +exports.ServiceLevelObjectivesApi = ServiceLevelObjectivesApi; +//# sourceMappingURL=ServiceLevelObjectivesApi.js.map + +/***/ }), + +/***/ 38357: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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 __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ServiceScorecardsApi = exports.ServiceScorecardsApiResponseProcessor = exports.ServiceScorecardsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class ServiceScorecardsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createScorecardOutcomesBatch(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'createScorecardOutcomesBatch'"); + if (!_config.unstableOperations["v2.createScorecardOutcomesBatch"]) { + throw new Error("Unstable operation 'createScorecardOutcomesBatch' is disabled"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createScorecardOutcomesBatch"); + } + // Path Params + const localVarPath = "/api/v2/scorecard/outcomes/batch"; + // Make Request Context + const requestContext = _config + .getServer("v2.ServiceScorecardsApi.createScorecardOutcomesBatch") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "OutcomesBatchRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createScorecardRule(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'createScorecardRule'"); + if (!_config.unstableOperations["v2.createScorecardRule"]) { + throw new Error("Unstable operation 'createScorecardRule' is disabled"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createScorecardRule"); + } + // Path Params + const localVarPath = "/api/v2/scorecard/rules"; + // Make Request Context + const requestContext = _config + .getServer("v2.ServiceScorecardsApi.createScorecardRule") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "CreateRuleRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteScorecardRule(ruleId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'deleteScorecardRule'"); + if (!_config.unstableOperations["v2.deleteScorecardRule"]) { + throw new Error("Unstable operation 'deleteScorecardRule' is disabled"); + } + // verify required parameter 'ruleId' is not null or undefined + if (ruleId === null || ruleId === undefined) { + throw new baseapi_1.RequiredError("ruleId", "deleteScorecardRule"); + } + // Path Params + const localVarPath = "/api/v2/scorecard/rules/{rule_id}".replace("{rule_id}", encodeURIComponent(String(ruleId))); + // Make Request Context + const requestContext = _config + .getServer("v2.ServiceScorecardsApi.deleteScorecardRule") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listScorecardOutcomes(pageSize, pageOffset, include, fieldsOutcome, fieldsRule, filterOutcomeServiceName, filterOutcomeState, filterRuleEnabled, filterRuleId, filterRuleName, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'listScorecardOutcomes'"); + if (!_config.unstableOperations["v2.listScorecardOutcomes"]) { + throw new Error("Unstable operation 'listScorecardOutcomes' is disabled"); + } + // Path Params + const localVarPath = "/api/v2/scorecard/outcomes"; + // Make Request Context + const requestContext = _config + .getServer("v2.ServiceScorecardsApi.listScorecardOutcomes") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (pageSize !== undefined) { + requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), ""); + } + if (pageOffset !== undefined) { + requestContext.setQueryParam("page[offset]", ObjectSerializer_1.ObjectSerializer.serialize(pageOffset, "number", "int64"), ""); + } + if (include !== undefined) { + requestContext.setQueryParam("include", ObjectSerializer_1.ObjectSerializer.serialize(include, "string", ""), ""); + } + if (fieldsOutcome !== undefined) { + requestContext.setQueryParam("fields[outcome]", ObjectSerializer_1.ObjectSerializer.serialize(fieldsOutcome, "string", ""), ""); + } + if (fieldsRule !== undefined) { + requestContext.setQueryParam("fields[rule]", ObjectSerializer_1.ObjectSerializer.serialize(fieldsRule, "string", ""), ""); + } + if (filterOutcomeServiceName !== undefined) { + requestContext.setQueryParam("filter[outcome][service_name]", ObjectSerializer_1.ObjectSerializer.serialize(filterOutcomeServiceName, "string", ""), ""); + } + if (filterOutcomeState !== undefined) { + requestContext.setQueryParam("filter[outcome][state]", ObjectSerializer_1.ObjectSerializer.serialize(filterOutcomeState, "string", ""), ""); + } + if (filterRuleEnabled !== undefined) { + requestContext.setQueryParam("filter[rule][enabled]", ObjectSerializer_1.ObjectSerializer.serialize(filterRuleEnabled, "boolean", ""), ""); + } + if (filterRuleId !== undefined) { + requestContext.setQueryParam("filter[rule][id]", ObjectSerializer_1.ObjectSerializer.serialize(filterRuleId, "string", ""), ""); + } + if (filterRuleName !== undefined) { + requestContext.setQueryParam("filter[rule][name]", ObjectSerializer_1.ObjectSerializer.serialize(filterRuleName, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listScorecardRules(pageSize, pageOffset, include, filterRuleId, filterRuleEnabled, filterRuleCustom, filterRuleName, filterRuleDescription, fieldsRule, fieldsScorecard, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'listScorecardRules'"); + if (!_config.unstableOperations["v2.listScorecardRules"]) { + throw new Error("Unstable operation 'listScorecardRules' is disabled"); + } + // Path Params + const localVarPath = "/api/v2/scorecard/rules"; + // Make Request Context + const requestContext = _config + .getServer("v2.ServiceScorecardsApi.listScorecardRules") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (pageSize !== undefined) { + requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), ""); + } + if (pageOffset !== undefined) { + requestContext.setQueryParam("page[offset]", ObjectSerializer_1.ObjectSerializer.serialize(pageOffset, "number", "int64"), ""); + } + if (include !== undefined) { + requestContext.setQueryParam("include", ObjectSerializer_1.ObjectSerializer.serialize(include, "string", ""), ""); + } + if (filterRuleId !== undefined) { + requestContext.setQueryParam("filter[rule][id]", ObjectSerializer_1.ObjectSerializer.serialize(filterRuleId, "string", ""), ""); + } + if (filterRuleEnabled !== undefined) { + requestContext.setQueryParam("filter[rule][enabled]", ObjectSerializer_1.ObjectSerializer.serialize(filterRuleEnabled, "boolean", ""), ""); + } + if (filterRuleCustom !== undefined) { + requestContext.setQueryParam("filter[rule][custom]", ObjectSerializer_1.ObjectSerializer.serialize(filterRuleCustom, "boolean", ""), ""); + } + if (filterRuleName !== undefined) { + requestContext.setQueryParam("filter[rule][name]", ObjectSerializer_1.ObjectSerializer.serialize(filterRuleName, "string", ""), ""); + } + if (filterRuleDescription !== undefined) { + requestContext.setQueryParam("filter[rule][description]", ObjectSerializer_1.ObjectSerializer.serialize(filterRuleDescription, "string", ""), ""); + } + if (fieldsRule !== undefined) { + requestContext.setQueryParam("fields[rule]", ObjectSerializer_1.ObjectSerializer.serialize(fieldsRule, "string", ""), ""); + } + if (fieldsScorecard !== undefined) { + requestContext.setQueryParam("fields[scorecard]", ObjectSerializer_1.ObjectSerializer.serialize(fieldsScorecard, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateScorecardRule(ruleId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'updateScorecardRule'"); + if (!_config.unstableOperations["v2.updateScorecardRule"]) { + throw new Error("Unstable operation 'updateScorecardRule' is disabled"); + } + // verify required parameter 'ruleId' is not null or undefined + if (ruleId === null || ruleId === undefined) { + throw new baseapi_1.RequiredError("ruleId", "updateScorecardRule"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateScorecardRule"); + } + // Path Params + const localVarPath = "/api/v2/scorecard/rules/{rule_id}".replace("{rule_id}", encodeURIComponent(String(ruleId))); + // Make Request Context + const requestContext = _config + .getServer("v2.ServiceScorecardsApi.updateScorecardRule") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "UpdateRuleRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.ServiceScorecardsApiRequestFactory = ServiceScorecardsApiRequestFactory; +class ServiceScorecardsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createScorecardOutcomesBatch + * @throws ApiException if the response code was not in [200, 299] + */ + createScorecardOutcomesBatch(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OutcomesBatchResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OutcomesBatchResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createScorecardRule + * @throws ApiException if the response code was not in [200, 299] + */ + createScorecardRule(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CreateRuleResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CreateRuleResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteScorecardRule + * @throws ApiException if the response code was not in [200, 299] + */ + deleteScorecardRule(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listScorecardOutcomes + * @throws ApiException if the response code was not in [200, 299] + */ + listScorecardOutcomes(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OutcomesResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OutcomesResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listScorecardRules + * @throws ApiException if the response code was not in [200, 299] + */ + listScorecardRules(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListRulesResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListRulesResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateScorecardRule + * @throws ApiException if the response code was not in [200, 299] + */ + updateScorecardRule(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UpdateRuleResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UpdateRuleResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.ServiceScorecardsApiResponseProcessor = ServiceScorecardsApiResponseProcessor; +class ServiceScorecardsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new ServiceScorecardsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new ServiceScorecardsApiResponseProcessor(); + } + /** + * Sets multiple service-rule outcomes in a single batched request. + * @param param The request object + */ + createScorecardOutcomesBatch(param, options) { + const requestContextPromise = this.requestFactory.createScorecardOutcomesBatch(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createScorecardOutcomesBatch(responseContext); + }); + }); + } + /** + * Creates a new rule. + * @param param The request object + */ + createScorecardRule(param, options) { + const requestContextPromise = this.requestFactory.createScorecardRule(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createScorecardRule(responseContext); + }); + }); + } + /** + * Deletes a single rule. + * @param param The request object + */ + deleteScorecardRule(param, options) { + const requestContextPromise = this.requestFactory.deleteScorecardRule(param.ruleId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteScorecardRule(responseContext); + }); + }); + } + /** + * Fetches all rule outcomes. + * @param param The request object + */ + listScorecardOutcomes(param = {}, options) { + const requestContextPromise = this.requestFactory.listScorecardOutcomes(param.pageSize, param.pageOffset, param.include, param.fieldsOutcome, param.fieldsRule, param.filterOutcomeServiceName, param.filterOutcomeState, param.filterRuleEnabled, param.filterRuleId, param.filterRuleName, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listScorecardOutcomes(responseContext); + }); + }); + } + /** + * Provide a paginated version of listScorecardOutcomes returning a generator with all the items. + */ + listScorecardOutcomesWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* listScorecardOutcomesWithPagination_1() { + let pageSize = 10; + if (param.pageSize !== undefined) { + pageSize = param.pageSize; + } + param.pageSize = pageSize; + while (true) { + const requestContext = yield __await(this.requestFactory.listScorecardOutcomes(param.pageSize, param.pageOffset, param.include, param.fieldsOutcome, param.fieldsRule, param.filterOutcomeServiceName, param.filterOutcomeState, param.filterRuleEnabled, param.filterRuleId, param.filterRuleName, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listScorecardOutcomes(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + if (param.pageOffset === undefined) { + param.pageOffset = pageSize; + } + else { + param.pageOffset = param.pageOffset + pageSize; + } + } + }); + } + /** + * Fetch all rules. + * @param param The request object + */ + listScorecardRules(param = {}, options) { + const requestContextPromise = this.requestFactory.listScorecardRules(param.pageSize, param.pageOffset, param.include, param.filterRuleId, param.filterRuleEnabled, param.filterRuleCustom, param.filterRuleName, param.filterRuleDescription, param.fieldsRule, param.fieldsScorecard, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listScorecardRules(responseContext); + }); + }); + } + /** + * Provide a paginated version of listScorecardRules returning a generator with all the items. + */ + listScorecardRulesWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* listScorecardRulesWithPagination_1() { + let pageSize = 10; + if (param.pageSize !== undefined) { + pageSize = param.pageSize; + } + param.pageSize = pageSize; + while (true) { + const requestContext = yield __await(this.requestFactory.listScorecardRules(param.pageSize, param.pageOffset, param.include, param.filterRuleId, param.filterRuleEnabled, param.filterRuleCustom, param.filterRuleName, param.filterRuleDescription, param.fieldsRule, param.fieldsScorecard, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listScorecardRules(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + if (param.pageOffset === undefined) { + param.pageOffset = pageSize; + } + else { + param.pageOffset = param.pageOffset + pageSize; + } + } + }); + } + /** + * Updates an existing rule. + * @param param The request object + */ + updateScorecardRule(param, options) { + const requestContextPromise = this.requestFactory.updateScorecardRule(param.ruleId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateScorecardRule(responseContext); + }); + }); + } +} +exports.ServiceScorecardsApi = ServiceScorecardsApi; +//# sourceMappingURL=ServiceScorecardsApi.js.map + +/***/ }), + +/***/ 20967: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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 __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SoftwareCatalogApi = exports.SoftwareCatalogApiResponseProcessor = exports.SoftwareCatalogApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class SoftwareCatalogApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + deleteCatalogEntity(entityId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'entityId' is not null or undefined + if (entityId === null || entityId === undefined) { + throw new baseapi_1.RequiredError("entityId", "deleteCatalogEntity"); + } + // Path Params + const localVarPath = "/api/v2/catalog/entity/{entity_id}".replace("{entity_id}", encodeURIComponent(String(entityId))); + // Make Request Context + const requestContext = _config + .getServer("v2.SoftwareCatalogApi.deleteCatalogEntity") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listCatalogEntity(pageOffset, pageLimit, filterId, filterRef, filterName, filterKind, filterOwner, filterRelationType, filterExcludeSnapshot, include, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/catalog/entity"; + // Make Request Context + const requestContext = _config + .getServer("v2.SoftwareCatalogApi.listCatalogEntity") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (pageOffset !== undefined) { + requestContext.setQueryParam("page[offset]", ObjectSerializer_1.ObjectSerializer.serialize(pageOffset, "number", "int64"), ""); + } + if (pageLimit !== undefined) { + requestContext.setQueryParam("page[limit]", ObjectSerializer_1.ObjectSerializer.serialize(pageLimit, "number", "int64"), ""); + } + if (filterId !== undefined) { + requestContext.setQueryParam("filter[id]", ObjectSerializer_1.ObjectSerializer.serialize(filterId, "string", ""), ""); + } + if (filterRef !== undefined) { + requestContext.setQueryParam("filter[ref]", ObjectSerializer_1.ObjectSerializer.serialize(filterRef, "string", ""), ""); + } + if (filterName !== undefined) { + requestContext.setQueryParam("filter[name]", ObjectSerializer_1.ObjectSerializer.serialize(filterName, "string", ""), ""); + } + if (filterKind !== undefined) { + requestContext.setQueryParam("filter[kind]", ObjectSerializer_1.ObjectSerializer.serialize(filterKind, "string", ""), ""); + } + if (filterOwner !== undefined) { + requestContext.setQueryParam("filter[owner]", ObjectSerializer_1.ObjectSerializer.serialize(filterOwner, "string", ""), ""); + } + if (filterRelationType !== undefined) { + requestContext.setQueryParam("filter[relation][type]", ObjectSerializer_1.ObjectSerializer.serialize(filterRelationType, "RelationType", ""), ""); + } + if (filterExcludeSnapshot !== undefined) { + requestContext.setQueryParam("filter[exclude_snapshot]", ObjectSerializer_1.ObjectSerializer.serialize(filterExcludeSnapshot, "string", ""), ""); + } + if (include !== undefined) { + requestContext.setQueryParam("include", ObjectSerializer_1.ObjectSerializer.serialize(include, "IncludeType", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + upsertCatalogEntity(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "upsertCatalogEntity"); + } + // Path Params + const localVarPath = "/api/v2/catalog/entity"; + // Make Request Context + const requestContext = _config + .getServer("v2.SoftwareCatalogApi.upsertCatalogEntity") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "UpsertCatalogEntityRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.SoftwareCatalogApiRequestFactory = SoftwareCatalogApiRequestFactory; +class SoftwareCatalogApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCatalogEntity + * @throws ApiException if the response code was not in [200, 299] + */ + deleteCatalogEntity(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listCatalogEntity + * @throws ApiException if the response code was not in [200, 299] + */ + listCatalogEntity(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListEntityCatalogResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListEntityCatalogResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to upsertCatalogEntity + * @throws ApiException if the response code was not in [200, 299] + */ + upsertCatalogEntity(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 202) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UpsertCatalogEntityResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UpsertCatalogEntityResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.SoftwareCatalogApiResponseProcessor = SoftwareCatalogApiResponseProcessor; +class SoftwareCatalogApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new SoftwareCatalogApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new SoftwareCatalogApiResponseProcessor(); + } + /** + * Delete a single entity in Software Catalog. + * @param param The request object + */ + deleteCatalogEntity(param, options) { + const requestContextPromise = this.requestFactory.deleteCatalogEntity(param.entityId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteCatalogEntity(responseContext); + }); + }); + } + /** + * Get a list of entities from Software Catalog. + * @param param The request object + */ + listCatalogEntity(param = {}, options) { + const requestContextPromise = this.requestFactory.listCatalogEntity(param.pageOffset, param.pageLimit, param.filterId, param.filterRef, param.filterName, param.filterKind, param.filterOwner, param.filterRelationType, param.filterExcludeSnapshot, param.include, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listCatalogEntity(responseContext); + }); + }); + } + /** + * Provide a paginated version of listCatalogEntity returning a generator with all the items. + */ + listCatalogEntityWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* listCatalogEntityWithPagination_1() { + let pageSize = 100; + if (param.pageLimit !== undefined) { + pageSize = param.pageLimit; + } + param.pageLimit = pageSize; + param.pageOffset = 0; + while (true) { + const requestContext = yield __await(this.requestFactory.listCatalogEntity(param.pageOffset, param.pageLimit, param.filterId, param.filterRef, param.filterName, param.filterKind, param.filterOwner, param.filterRelationType, param.filterExcludeSnapshot, param.include, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listCatalogEntity(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + param.pageOffset = param.pageOffset + 1; + } + }); + } + /** + * Create or update entities in Software Catalog. + * @param param The request object + */ + upsertCatalogEntity(param, options) { + const requestContextPromise = this.requestFactory.upsertCatalogEntity(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.upsertCatalogEntity(responseContext); + }); + }); + } +} +exports.SoftwareCatalogApi = SoftwareCatalogApi; +//# sourceMappingURL=SoftwareCatalogApi.js.map + +/***/ }), + +/***/ 85176: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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 __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SpansApi = exports.SpansApiResponseProcessor = exports.SpansApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +const SpansListRequestAttributes_1 = __nccwpck_require__(26633); +const SpansListRequestData_1 = __nccwpck_require__(50984); +const SpansListRequestPage_1 = __nccwpck_require__(24687); +class SpansApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + aggregateSpans(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "aggregateSpans"); + } + // Path Params + const localVarPath = "/api/v2/spans/analytics/aggregate"; + // Make Request Context + const requestContext = _config + .getServer("v2.SpansApi.aggregateSpans") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SpansAggregateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listSpans(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "listSpans"); + } + // Path Params + const localVarPath = "/api/v2/spans/events/search"; + // Make Request Context + const requestContext = _config + .getServer("v2.SpansApi.listSpans") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SpansListRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listSpansGet(filterQuery, filterFrom, filterTo, sort, pageCursor, pageLimit, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/spans/events"; + // Make Request Context + const requestContext = _config + .getServer("v2.SpansApi.listSpansGet") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (filterQuery !== undefined) { + requestContext.setQueryParam("filter[query]", ObjectSerializer_1.ObjectSerializer.serialize(filterQuery, "string", ""), ""); + } + if (filterFrom !== undefined) { + requestContext.setQueryParam("filter[from]", ObjectSerializer_1.ObjectSerializer.serialize(filterFrom, "string", ""), ""); + } + if (filterTo !== undefined) { + requestContext.setQueryParam("filter[to]", ObjectSerializer_1.ObjectSerializer.serialize(filterTo, "string", ""), ""); + } + if (sort !== undefined) { + requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "SpansSort", ""), ""); + } + if (pageCursor !== undefined) { + requestContext.setQueryParam("page[cursor]", ObjectSerializer_1.ObjectSerializer.serialize(pageCursor, "string", ""), ""); + } + if (pageLimit !== undefined) { + requestContext.setQueryParam("page[limit]", ObjectSerializer_1.ObjectSerializer.serialize(pageLimit, "number", "int32"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.SpansApiRequestFactory = SpansApiRequestFactory; +class SpansApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to aggregateSpans + * @throws ApiException if the response code was not in [200, 299] + */ + aggregateSpans(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SpansAggregateResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SpansAggregateResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listSpans + * @throws ApiException if the response code was not in [200, 299] + */ + listSpans(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SpansListResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 422 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "JSONAPIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SpansListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listSpansGet + * @throws ApiException if the response code was not in [200, 299] + */ + listSpansGet(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SpansListResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 422 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "JSONAPIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SpansListResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.SpansApiResponseProcessor = SpansApiResponseProcessor; +class SpansApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new SpansApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new SpansApiResponseProcessor(); + } + /** + * The API endpoint to aggregate spans into buckets and compute metrics and timeseries. + * This endpoint is rate limited to `300` requests per hour. + * @param param The request object + */ + aggregateSpans(param, options) { + const requestContextPromise = this.requestFactory.aggregateSpans(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.aggregateSpans(responseContext); + }); + }); + } + /** + * List endpoint returns spans that match a span search query. + * [Results are paginated][1]. + * + * Use this endpoint to build complex spans filtering and search. + * This endpoint is rate limited to `300` requests per hour. + * + * [1]: /logs/guide/collect-multiple-logs-with-pagination?tab=v2api + * @param param The request object + */ + listSpans(param, options) { + const requestContextPromise = this.requestFactory.listSpans(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listSpans(responseContext); + }); + }); + } + /** + * Provide a paginated version of listSpans returning a generator with all the items. + */ + listSpansWithPagination(param, options) { + return __asyncGenerator(this, arguments, function* listSpansWithPagination_1() { + let pageSize = 10; + if (param.body.data === undefined) { + param.body.data = new SpansListRequestData_1.SpansListRequestData(); + } + if (param.body.data.attributes === undefined) { + param.body.data.attributes = new SpansListRequestAttributes_1.SpansListRequestAttributes(); + } + if (param.body.data.attributes.page === undefined) { + param.body.data.attributes.page = new SpansListRequestPage_1.SpansListRequestPage(); + } + if (param.body.data.attributes.page.limit === undefined) { + param.body.data.attributes.page.limit = pageSize; + } + else { + pageSize = param.body.data.attributes.page.limit; + } + while (true) { + const requestContext = yield __await(this.requestFactory.listSpans(param.body, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listSpans(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + const cursorMeta = response.meta; + if (cursorMeta === undefined) { + break; + } + const cursorMetaPage = cursorMeta.page; + if (cursorMetaPage === undefined) { + break; + } + const cursorMetaPageAfter = cursorMetaPage.after; + if (cursorMetaPageAfter === undefined) { + break; + } + param.body.data.attributes.page.cursor = cursorMetaPageAfter; + } + }); + } + /** + * List endpoint returns spans that match a span search query. + * [Results are paginated][1]. + * + * Use this endpoint to see your latest spans. + * This endpoint is rate limited to `300` requests per hour. + * + * [1]: /logs/guide/collect-multiple-logs-with-pagination?tab=v2api + * @param param The request object + */ + listSpansGet(param = {}, options) { + const requestContextPromise = this.requestFactory.listSpansGet(param.filterQuery, param.filterFrom, param.filterTo, param.sort, param.pageCursor, param.pageLimit, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listSpansGet(responseContext); + }); + }); + } + /** + * Provide a paginated version of listSpansGet returning a generator with all the items. + */ + listSpansGetWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* listSpansGetWithPagination_1() { + let pageSize = 10; + if (param.pageLimit !== undefined) { + pageSize = param.pageLimit; + } + param.pageLimit = pageSize; + while (true) { + const requestContext = yield __await(this.requestFactory.listSpansGet(param.filterQuery, param.filterFrom, param.filterTo, param.sort, param.pageCursor, param.pageLimit, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listSpansGet(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + const cursorMeta = response.meta; + if (cursorMeta === undefined) { + break; + } + const cursorMetaPage = cursorMeta.page; + if (cursorMetaPage === undefined) { + break; + } + const cursorMetaPageAfter = cursorMetaPage.after; + if (cursorMetaPageAfter === undefined) { + break; + } + param.pageCursor = cursorMetaPageAfter; + } + }); + } +} +exports.SpansApi = SpansApi; +//# sourceMappingURL=SpansApi.js.map + +/***/ }), + +/***/ 65417: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.SpansMetricsApi = exports.SpansMetricsApiResponseProcessor = exports.SpansMetricsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class SpansMetricsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createSpansMetric(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createSpansMetric"); + } + // Path Params + const localVarPath = "/api/v2/apm/config/metrics"; + // Make Request Context + const requestContext = _config + .getServer("v2.SpansMetricsApi.createSpansMetric") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SpansMetricCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteSpansMetric(metricId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'metricId' is not null or undefined + if (metricId === null || metricId === undefined) { + throw new baseapi_1.RequiredError("metricId", "deleteSpansMetric"); + } + // Path Params + const localVarPath = "/api/v2/apm/config/metrics/{metric_id}".replace("{metric_id}", encodeURIComponent(String(metricId))); + // Make Request Context + const requestContext = _config + .getServer("v2.SpansMetricsApi.deleteSpansMetric") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getSpansMetric(metricId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'metricId' is not null or undefined + if (metricId === null || metricId === undefined) { + throw new baseapi_1.RequiredError("metricId", "getSpansMetric"); + } + // Path Params + const localVarPath = "/api/v2/apm/config/metrics/{metric_id}".replace("{metric_id}", encodeURIComponent(String(metricId))); + // Make Request Context + const requestContext = _config + .getServer("v2.SpansMetricsApi.getSpansMetric") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listSpansMetrics(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/apm/config/metrics"; + // Make Request Context + const requestContext = _config + .getServer("v2.SpansMetricsApi.listSpansMetrics") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateSpansMetric(metricId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'metricId' is not null or undefined + if (metricId === null || metricId === undefined) { + throw new baseapi_1.RequiredError("metricId", "updateSpansMetric"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateSpansMetric"); + } + // Path Params + const localVarPath = "/api/v2/apm/config/metrics/{metric_id}".replace("{metric_id}", encodeURIComponent(String(metricId))); + // Make Request Context + const requestContext = _config + .getServer("v2.SpansMetricsApi.updateSpansMetric") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "SpansMetricUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.SpansMetricsApiRequestFactory = SpansMetricsApiRequestFactory; +class SpansMetricsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createSpansMetric + * @throws ApiException if the response code was not in [200, 299] + */ + createSpansMetric(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SpansMetricResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SpansMetricResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteSpansMetric + * @throws ApiException if the response code was not in [200, 299] + */ + deleteSpansMetric(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getSpansMetric + * @throws ApiException if the response code was not in [200, 299] + */ + getSpansMetric(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SpansMetricResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SpansMetricResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listSpansMetrics + * @throws ApiException if the response code was not in [200, 299] + */ + listSpansMetrics(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SpansMetricsResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SpansMetricsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateSpansMetric + * @throws ApiException if the response code was not in [200, 299] + */ + updateSpansMetric(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SpansMetricResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SpansMetricResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.SpansMetricsApiResponseProcessor = SpansMetricsApiResponseProcessor; +class SpansMetricsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new SpansMetricsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new SpansMetricsApiResponseProcessor(); + } + /** + * Create a metric based on your ingested spans in your organization. + * Returns the span-based metric object from the request body when the request is successful. + * @param param The request object + */ + createSpansMetric(param, options) { + const requestContextPromise = this.requestFactory.createSpansMetric(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createSpansMetric(responseContext); + }); + }); + } + /** + * Delete a specific span-based metric from your organization. + * @param param The request object + */ + deleteSpansMetric(param, options) { + const requestContextPromise = this.requestFactory.deleteSpansMetric(param.metricId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteSpansMetric(responseContext); + }); + }); + } + /** + * Get a specific span-based metric from your organization. + * @param param The request object + */ + getSpansMetric(param, options) { + const requestContextPromise = this.requestFactory.getSpansMetric(param.metricId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getSpansMetric(responseContext); + }); + }); + } + /** + * Get the list of configured span-based metrics with their definitions. + * @param param The request object + */ + listSpansMetrics(options) { + const requestContextPromise = this.requestFactory.listSpansMetrics(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listSpansMetrics(responseContext); + }); + }); + } + /** + * Update a specific span-based metric from your organization. + * Returns the span-based metric object from the request body when the request is successful. + * @param param The request object + */ + updateSpansMetric(param, options) { + const requestContextPromise = this.requestFactory.updateSpansMetric(param.metricId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateSpansMetric(responseContext); + }); + }); + } +} +exports.SpansMetricsApi = SpansMetricsApi; +//# sourceMappingURL=SpansMetricsApi.js.map + +/***/ }), + +/***/ 63127: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.SyntheticsApi = exports.SyntheticsApiResponseProcessor = exports.SyntheticsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class SyntheticsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + getOnDemandConcurrencyCap(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/synthetics/settings/on_demand_concurrency_cap"; + // Make Request Context + const requestContext = _config + .getServer("v2.SyntheticsApi.getOnDemandConcurrencyCap") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + setOnDemandConcurrencyCap(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "setOnDemandConcurrencyCap"); + } + // Path Params + const localVarPath = "/api/v2/synthetics/settings/on_demand_concurrency_cap"; + // Make Request Context + const requestContext = _config + .getServer("v2.SyntheticsApi.setOnDemandConcurrencyCap") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "OnDemandConcurrencyCapAttributes", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.SyntheticsApiRequestFactory = SyntheticsApiRequestFactory; +class SyntheticsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getOnDemandConcurrencyCap + * @throws ApiException if the response code was not in [200, 299] + */ + getOnDemandConcurrencyCap(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OnDemandConcurrencyCapResponse"); + return body; + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OnDemandConcurrencyCapResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to setOnDemandConcurrencyCap + * @throws ApiException if the response code was not in [200, 299] + */ + setOnDemandConcurrencyCap(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OnDemandConcurrencyCapResponse"); + return body; + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OnDemandConcurrencyCapResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.SyntheticsApiResponseProcessor = SyntheticsApiResponseProcessor; +class SyntheticsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new SyntheticsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new SyntheticsApiResponseProcessor(); + } + /** + * Get the on-demand concurrency cap. + * @param param The request object + */ + getOnDemandConcurrencyCap(options) { + const requestContextPromise = this.requestFactory.getOnDemandConcurrencyCap(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getOnDemandConcurrencyCap(responseContext); + }); + }); + } + /** + * Save new value for on-demand concurrency cap. + * @param param The request object + */ + setOnDemandConcurrencyCap(param, options) { + const requestContextPromise = this.requestFactory.setOnDemandConcurrencyCap(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.setOnDemandConcurrencyCap(responseContext); + }); + }); + } +} +exports.SyntheticsApi = SyntheticsApi; +//# sourceMappingURL=SyntheticsApi.js.map + +/***/ }), + +/***/ 63437: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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 __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.TeamsApi = exports.TeamsApiResponseProcessor = exports.TeamsApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class TeamsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createTeam(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createTeam"); + } + // Path Params + const localVarPath = "/api/v2/team"; + // Make Request Context + const requestContext = _config + .getServer("v2.TeamsApi.createTeam") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "TeamCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createTeamLink(teamId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'teamId' is not null or undefined + if (teamId === null || teamId === undefined) { + throw new baseapi_1.RequiredError("teamId", "createTeamLink"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createTeamLink"); + } + // Path Params + const localVarPath = "/api/v2/team/{team_id}/links".replace("{team_id}", encodeURIComponent(String(teamId))); + // Make Request Context + const requestContext = _config + .getServer("v2.TeamsApi.createTeamLink") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "TeamLinkCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createTeamMembership(teamId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'teamId' is not null or undefined + if (teamId === null || teamId === undefined) { + throw new baseapi_1.RequiredError("teamId", "createTeamMembership"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createTeamMembership"); + } + // Path Params + const localVarPath = "/api/v2/team/{team_id}/memberships".replace("{team_id}", encodeURIComponent(String(teamId))); + // Make Request Context + const requestContext = _config + .getServer("v2.TeamsApi.createTeamMembership") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "UserTeamRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteTeam(teamId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'teamId' is not null or undefined + if (teamId === null || teamId === undefined) { + throw new baseapi_1.RequiredError("teamId", "deleteTeam"); + } + // Path Params + const localVarPath = "/api/v2/team/{team_id}".replace("{team_id}", encodeURIComponent(String(teamId))); + // Make Request Context + const requestContext = _config + .getServer("v2.TeamsApi.deleteTeam") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteTeamLink(teamId, linkId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'teamId' is not null or undefined + if (teamId === null || teamId === undefined) { + throw new baseapi_1.RequiredError("teamId", "deleteTeamLink"); + } + // verify required parameter 'linkId' is not null or undefined + if (linkId === null || linkId === undefined) { + throw new baseapi_1.RequiredError("linkId", "deleteTeamLink"); + } + // Path Params + const localVarPath = "/api/v2/team/{team_id}/links/{link_id}" + .replace("{team_id}", encodeURIComponent(String(teamId))) + .replace("{link_id}", encodeURIComponent(String(linkId))); + // Make Request Context + const requestContext = _config + .getServer("v2.TeamsApi.deleteTeamLink") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + deleteTeamMembership(teamId, userId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'teamId' is not null or undefined + if (teamId === null || teamId === undefined) { + throw new baseapi_1.RequiredError("teamId", "deleteTeamMembership"); + } + // verify required parameter 'userId' is not null or undefined + if (userId === null || userId === undefined) { + throw new baseapi_1.RequiredError("userId", "deleteTeamMembership"); + } + // Path Params + const localVarPath = "/api/v2/team/{team_id}/memberships/{user_id}" + .replace("{team_id}", encodeURIComponent(String(teamId))) + .replace("{user_id}", encodeURIComponent(String(userId))); + // Make Request Context + const requestContext = _config + .getServer("v2.TeamsApi.deleteTeamMembership") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getTeam(teamId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'teamId' is not null or undefined + if (teamId === null || teamId === undefined) { + throw new baseapi_1.RequiredError("teamId", "getTeam"); + } + // Path Params + const localVarPath = "/api/v2/team/{team_id}".replace("{team_id}", encodeURIComponent(String(teamId))); + // Make Request Context + const requestContext = _config + .getServer("v2.TeamsApi.getTeam") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getTeamLink(teamId, linkId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'teamId' is not null or undefined + if (teamId === null || teamId === undefined) { + throw new baseapi_1.RequiredError("teamId", "getTeamLink"); + } + // verify required parameter 'linkId' is not null or undefined + if (linkId === null || linkId === undefined) { + throw new baseapi_1.RequiredError("linkId", "getTeamLink"); + } + // Path Params + const localVarPath = "/api/v2/team/{team_id}/links/{link_id}" + .replace("{team_id}", encodeURIComponent(String(teamId))) + .replace("{link_id}", encodeURIComponent(String(linkId))); + // Make Request Context + const requestContext = _config + .getServer("v2.TeamsApi.getTeamLink") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getTeamLinks(teamId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'teamId' is not null or undefined + if (teamId === null || teamId === undefined) { + throw new baseapi_1.RequiredError("teamId", "getTeamLinks"); + } + // Path Params + const localVarPath = "/api/v2/team/{team_id}/links".replace("{team_id}", encodeURIComponent(String(teamId))); + // Make Request Context + const requestContext = _config + .getServer("v2.TeamsApi.getTeamLinks") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getTeamMemberships(teamId, pageSize, pageNumber, sort, filterKeyword, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'teamId' is not null or undefined + if (teamId === null || teamId === undefined) { + throw new baseapi_1.RequiredError("teamId", "getTeamMemberships"); + } + // Path Params + const localVarPath = "/api/v2/team/{team_id}/memberships".replace("{team_id}", encodeURIComponent(String(teamId))); + // Make Request Context + const requestContext = _config + .getServer("v2.TeamsApi.getTeamMemberships") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (pageSize !== undefined) { + requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), ""); + } + if (pageNumber !== undefined) { + requestContext.setQueryParam("page[number]", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); + } + if (sort !== undefined) { + requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "GetTeamMembershipsSort", ""), ""); + } + if (filterKeyword !== undefined) { + requestContext.setQueryParam("filter[keyword]", ObjectSerializer_1.ObjectSerializer.serialize(filterKeyword, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getTeamPermissionSettings(teamId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'teamId' is not null or undefined + if (teamId === null || teamId === undefined) { + throw new baseapi_1.RequiredError("teamId", "getTeamPermissionSettings"); + } + // Path Params + const localVarPath = "/api/v2/team/{team_id}/permission-settings".replace("{team_id}", encodeURIComponent(String(teamId))); + // Make Request Context + const requestContext = _config + .getServer("v2.TeamsApi.getTeamPermissionSettings") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUserMemberships(userUuid, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'userUuid' is not null or undefined + if (userUuid === null || userUuid === undefined) { + throw new baseapi_1.RequiredError("userUuid", "getUserMemberships"); + } + // Path Params + const localVarPath = "/api/v2/users/{user_uuid}/memberships".replace("{user_uuid}", encodeURIComponent(String(userUuid))); + // Make Request Context + const requestContext = _config + .getServer("v2.TeamsApi.getUserMemberships") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listTeams(pageNumber, pageSize, sort, include, filterKeyword, filterMe, fieldsTeam, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/team"; + // Make Request Context + const requestContext = _config + .getServer("v2.TeamsApi.listTeams") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (pageNumber !== undefined) { + requestContext.setQueryParam("page[number]", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); + } + if (pageSize !== undefined) { + requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), ""); + } + if (sort !== undefined) { + requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "ListTeamsSort", ""), ""); + } + if (include !== undefined) { + requestContext.setQueryParam("include", ObjectSerializer_1.ObjectSerializer.serialize(include, "Array", ""), "multi"); + } + if (filterKeyword !== undefined) { + requestContext.setQueryParam("filter[keyword]", ObjectSerializer_1.ObjectSerializer.serialize(filterKeyword, "string", ""), ""); + } + if (filterMe !== undefined) { + requestContext.setQueryParam("filter[me]", ObjectSerializer_1.ObjectSerializer.serialize(filterMe, "boolean", ""), ""); + } + if (fieldsTeam !== undefined) { + requestContext.setQueryParam("fields[team]", ObjectSerializer_1.ObjectSerializer.serialize(fieldsTeam, "Array", ""), "csv"); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateTeam(teamId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'teamId' is not null or undefined + if (teamId === null || teamId === undefined) { + throw new baseapi_1.RequiredError("teamId", "updateTeam"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateTeam"); + } + // Path Params + const localVarPath = "/api/v2/team/{team_id}".replace("{team_id}", encodeURIComponent(String(teamId))); + // Make Request Context + const requestContext = _config + .getServer("v2.TeamsApi.updateTeam") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "TeamUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateTeamLink(teamId, linkId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'teamId' is not null or undefined + if (teamId === null || teamId === undefined) { + throw new baseapi_1.RequiredError("teamId", "updateTeamLink"); + } + // verify required parameter 'linkId' is not null or undefined + if (linkId === null || linkId === undefined) { + throw new baseapi_1.RequiredError("linkId", "updateTeamLink"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateTeamLink"); + } + // Path Params + const localVarPath = "/api/v2/team/{team_id}/links/{link_id}" + .replace("{team_id}", encodeURIComponent(String(teamId))) + .replace("{link_id}", encodeURIComponent(String(linkId))); + // Make Request Context + const requestContext = _config + .getServer("v2.TeamsApi.updateTeamLink") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "TeamLinkCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateTeamMembership(teamId, userId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'teamId' is not null or undefined + if (teamId === null || teamId === undefined) { + throw new baseapi_1.RequiredError("teamId", "updateTeamMembership"); + } + // verify required parameter 'userId' is not null or undefined + if (userId === null || userId === undefined) { + throw new baseapi_1.RequiredError("userId", "updateTeamMembership"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateTeamMembership"); + } + // Path Params + const localVarPath = "/api/v2/team/{team_id}/memberships/{user_id}" + .replace("{team_id}", encodeURIComponent(String(teamId))) + .replace("{user_id}", encodeURIComponent(String(userId))); + // Make Request Context + const requestContext = _config + .getServer("v2.TeamsApi.updateTeamMembership") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "UserTeamUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateTeamPermissionSetting(teamId, action, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'teamId' is not null or undefined + if (teamId === null || teamId === undefined) { + throw new baseapi_1.RequiredError("teamId", "updateTeamPermissionSetting"); + } + // verify required parameter 'action' is not null or undefined + if (action === null || action === undefined) { + throw new baseapi_1.RequiredError("action", "updateTeamPermissionSetting"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateTeamPermissionSetting"); + } + // Path Params + const localVarPath = "/api/v2/team/{team_id}/permission-settings/{action}" + .replace("{team_id}", encodeURIComponent(String(teamId))) + .replace("{action}", encodeURIComponent(String(action))); + // Make Request Context + const requestContext = _config + .getServer("v2.TeamsApi.updateTeamPermissionSetting") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "TeamPermissionSettingUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.TeamsApiRequestFactory = TeamsApiRequestFactory; +class TeamsApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createTeam + * @throws ApiException if the response code was not in [200, 299] + */ + createTeam(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createTeamLink + * @throws ApiException if the response code was not in [200, 299] + */ + createTeamLink(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamLinkResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 422 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamLinkResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createTeamMembership + * @throws ApiException if the response code was not in [200, 299] + */ + createTeamMembership(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserTeamResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserTeamResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteTeam + * @throws ApiException if the response code was not in [200, 299] + */ + deleteTeam(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteTeamLink + * @throws ApiException if the response code was not in [200, 299] + */ + deleteTeamLink(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteTeamMembership + * @throws ApiException if the response code was not in [200, 299] + */ + deleteTeamMembership(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getTeam + * @throws ApiException if the response code was not in [200, 299] + */ + getTeam(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getTeamLink + * @throws ApiException if the response code was not in [200, 299] + */ + getTeamLink(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamLinkResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamLinkResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getTeamLinks + * @throws ApiException if the response code was not in [200, 299] + */ + getTeamLinks(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamLinksResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamLinksResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getTeamMemberships + * @throws ApiException if the response code was not in [200, 299] + */ + getTeamMemberships(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserTeamsResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserTeamsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getTeamPermissionSettings + * @throws ApiException if the response code was not in [200, 299] + */ + getTeamPermissionSettings(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamPermissionSettingsResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamPermissionSettingsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUserMemberships + * @throws ApiException if the response code was not in [200, 299] + */ + getUserMemberships(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserTeamsResponse"); + return body; + } + if (response.httpStatusCode === 404 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserTeamsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listTeams + * @throws ApiException if the response code was not in [200, 299] + */ + listTeams(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamsResponse"); + return body; + } + if (response.httpStatusCode === 403 || response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateTeam + * @throws ApiException if the response code was not in [200, 299] + */ + updateTeam(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateTeamLink + * @throws ApiException if the response code was not in [200, 299] + */ + updateTeamLink(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamLinkResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamLinkResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateTeamMembership + * @throws ApiException if the response code was not in [200, 299] + */ + updateTeamMembership(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserTeamResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserTeamResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateTeamPermissionSetting + * @throws ApiException if the response code was not in [200, 299] + */ + updateTeamPermissionSetting(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamPermissionSettingResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TeamPermissionSettingResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.TeamsApiResponseProcessor = TeamsApiResponseProcessor; +class TeamsApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new TeamsApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new TeamsApiResponseProcessor(); + } + /** + * Create a new team. + * User IDs passed through the `users` relationship field are added to the team. + * @param param The request object + */ + createTeam(param, options) { + const requestContextPromise = this.requestFactory.createTeam(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createTeam(responseContext); + }); + }); + } + /** + * Add a new link to a team. + * @param param The request object + */ + createTeamLink(param, options) { + const requestContextPromise = this.requestFactory.createTeamLink(param.teamId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createTeamLink(responseContext); + }); + }); + } + /** + * Add a user to a team. + * @param param The request object + */ + createTeamMembership(param, options) { + const requestContextPromise = this.requestFactory.createTeamMembership(param.teamId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createTeamMembership(responseContext); + }); + }); + } + /** + * Remove a team using the team's `id`. + * @param param The request object + */ + deleteTeam(param, options) { + const requestContextPromise = this.requestFactory.deleteTeam(param.teamId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteTeam(responseContext); + }); + }); + } + /** + * Remove a link from a team. + * @param param The request object + */ + deleteTeamLink(param, options) { + const requestContextPromise = this.requestFactory.deleteTeamLink(param.teamId, param.linkId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteTeamLink(responseContext); + }); + }); + } + /** + * Remove a user from a team. + * @param param The request object + */ + deleteTeamMembership(param, options) { + const requestContextPromise = this.requestFactory.deleteTeamMembership(param.teamId, param.userId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteTeamMembership(responseContext); + }); + }); + } + /** + * Get a single team using the team's `id`. + * @param param The request object + */ + getTeam(param, options) { + const requestContextPromise = this.requestFactory.getTeam(param.teamId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getTeam(responseContext); + }); + }); + } + /** + * Get a single link for a team. + * @param param The request object + */ + getTeamLink(param, options) { + const requestContextPromise = this.requestFactory.getTeamLink(param.teamId, param.linkId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getTeamLink(responseContext); + }); + }); + } + /** + * Get all links for a given team. + * @param param The request object + */ + getTeamLinks(param, options) { + const requestContextPromise = this.requestFactory.getTeamLinks(param.teamId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getTeamLinks(responseContext); + }); + }); + } + /** + * Get a paginated list of members for a team + * @param param The request object + */ + getTeamMemberships(param, options) { + const requestContextPromise = this.requestFactory.getTeamMemberships(param.teamId, param.pageSize, param.pageNumber, param.sort, param.filterKeyword, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getTeamMemberships(responseContext); + }); + }); + } + /** + * Provide a paginated version of getTeamMemberships returning a generator with all the items. + */ + getTeamMembershipsWithPagination(param, options) { + return __asyncGenerator(this, arguments, function* getTeamMembershipsWithPagination_1() { + let pageSize = 10; + if (param.pageSize !== undefined) { + pageSize = param.pageSize; + } + param.pageSize = pageSize; + param.pageNumber = 0; + while (true) { + const requestContext = yield __await(this.requestFactory.getTeamMemberships(param.teamId, param.pageSize, param.pageNumber, param.sort, param.filterKeyword, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.getTeamMemberships(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + param.pageNumber = param.pageNumber + 1; + } + }); + } + /** + * Get all permission settings for a given team. + * @param param The request object + */ + getTeamPermissionSettings(param, options) { + const requestContextPromise = this.requestFactory.getTeamPermissionSettings(param.teamId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getTeamPermissionSettings(responseContext); + }); + }); + } + /** + * Get a list of memberships for a user + * @param param The request object + */ + getUserMemberships(param, options) { + const requestContextPromise = this.requestFactory.getUserMemberships(param.userUuid, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUserMemberships(responseContext); + }); + }); + } + /** + * Get all teams. + * Can be used to search for teams using the `filter[keyword]` and `filter[me]` query parameters. + * @param param The request object + */ + listTeams(param = {}, options) { + const requestContextPromise = this.requestFactory.listTeams(param.pageNumber, param.pageSize, param.sort, param.include, param.filterKeyword, param.filterMe, param.fieldsTeam, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listTeams(responseContext); + }); + }); + } + /** + * Provide a paginated version of listTeams returning a generator with all the items. + */ + listTeamsWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* listTeamsWithPagination_1() { + let pageSize = 10; + if (param.pageSize !== undefined) { + pageSize = param.pageSize; + } + param.pageSize = pageSize; + param.pageNumber = 0; + while (true) { + const requestContext = yield __await(this.requestFactory.listTeams(param.pageNumber, param.pageSize, param.sort, param.include, param.filterKeyword, param.filterMe, param.fieldsTeam, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listTeams(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + param.pageNumber = param.pageNumber + 1; + } + }); + } + /** + * Update a team using the team's `id`. + * If the `team_links` relationship is present, the associated links are updated to be in the order they appear in the array, and any existing team links not present are removed. + * @param param The request object + */ + updateTeam(param, options) { + const requestContextPromise = this.requestFactory.updateTeam(param.teamId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateTeam(responseContext); + }); + }); + } + /** + * Update a team link. + * @param param The request object + */ + updateTeamLink(param, options) { + const requestContextPromise = this.requestFactory.updateTeamLink(param.teamId, param.linkId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateTeamLink(responseContext); + }); + }); + } + /** + * Update a user's membership attributes on a team. + * @param param The request object + */ + updateTeamMembership(param, options) { + const requestContextPromise = this.requestFactory.updateTeamMembership(param.teamId, param.userId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateTeamMembership(responseContext); + }); + }); + } + /** + * Update a team permission setting for a given team. + * @param param The request object + */ + updateTeamPermissionSetting(param, options) { + const requestContextPromise = this.requestFactory.updateTeamPermissionSetting(param.teamId, param.action, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateTeamPermissionSetting(responseContext); + }); + }); + } +} +exports.TeamsApi = TeamsApi; +//# sourceMappingURL=TeamsApi.js.map + +/***/ }), + +/***/ 56627: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.UsageMeteringApi = exports.UsageMeteringApiResponseProcessor = exports.UsageMeteringApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class UsageMeteringApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + getActiveBillingDimensions(_options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'getActiveBillingDimensions'"); + if (!_config.unstableOperations["v2.getActiveBillingDimensions"]) { + throw new Error("Unstable operation 'getActiveBillingDimensions' is disabled"); + } + // Path Params + const localVarPath = "/api/v2/cost_by_tag/active_billing_dimensions"; + // Make Request Context + const requestContext = _config + .getServer("v2.UsageMeteringApi.getActiveBillingDimensions") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getBillingDimensionMapping(filterMonth, filterView, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'getBillingDimensionMapping'"); + if (!_config.unstableOperations["v2.getBillingDimensionMapping"]) { + throw new Error("Unstable operation 'getBillingDimensionMapping' is disabled"); + } + // Path Params + const localVarPath = "/api/v2/usage/billing_dimension_mapping"; + // Make Request Context + const requestContext = _config + .getServer("v2.UsageMeteringApi.getBillingDimensionMapping") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (filterMonth !== undefined) { + requestContext.setQueryParam("filter[month]", ObjectSerializer_1.ObjectSerializer.serialize(filterMonth, "Date", "date-time"), ""); + } + if (filterView !== undefined) { + requestContext.setQueryParam("filter[view]", ObjectSerializer_1.ObjectSerializer.serialize(filterView, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getCostByOrg(startMonth, endMonth, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startMonth' is not null or undefined + if (startMonth === null || startMonth === undefined) { + throw new baseapi_1.RequiredError("startMonth", "getCostByOrg"); + } + // Path Params + const localVarPath = "/api/v2/usage/cost_by_org"; + // Make Request Context + const requestContext = _config + .getServer("v2.UsageMeteringApi.getCostByOrg") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startMonth !== undefined) { + requestContext.setQueryParam("start_month", ObjectSerializer_1.ObjectSerializer.serialize(startMonth, "Date", "date-time"), ""); + } + if (endMonth !== undefined) { + requestContext.setQueryParam("end_month", ObjectSerializer_1.ObjectSerializer.serialize(endMonth, "Date", "date-time"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getEstimatedCostByOrg(view, startMonth, endMonth, startDate, endDate, includeConnectedAccounts, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/usage/estimated_cost"; + // Make Request Context + const requestContext = _config + .getServer("v2.UsageMeteringApi.getEstimatedCostByOrg") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (view !== undefined) { + requestContext.setQueryParam("view", ObjectSerializer_1.ObjectSerializer.serialize(view, "string", ""), ""); + } + if (startMonth !== undefined) { + requestContext.setQueryParam("start_month", ObjectSerializer_1.ObjectSerializer.serialize(startMonth, "Date", "date-time"), ""); + } + if (endMonth !== undefined) { + requestContext.setQueryParam("end_month", ObjectSerializer_1.ObjectSerializer.serialize(endMonth, "Date", "date-time"), ""); + } + if (startDate !== undefined) { + requestContext.setQueryParam("start_date", ObjectSerializer_1.ObjectSerializer.serialize(startDate, "Date", "date-time"), ""); + } + if (endDate !== undefined) { + requestContext.setQueryParam("end_date", ObjectSerializer_1.ObjectSerializer.serialize(endDate, "Date", "date-time"), ""); + } + if (includeConnectedAccounts !== undefined) { + requestContext.setQueryParam("include_connected_accounts", ObjectSerializer_1.ObjectSerializer.serialize(includeConnectedAccounts, "boolean", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getHistoricalCostByOrg(startMonth, view, endMonth, includeConnectedAccounts, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startMonth' is not null or undefined + if (startMonth === null || startMonth === undefined) { + throw new baseapi_1.RequiredError("startMonth", "getHistoricalCostByOrg"); + } + // Path Params + const localVarPath = "/api/v2/usage/historical_cost"; + // Make Request Context + const requestContext = _config + .getServer("v2.UsageMeteringApi.getHistoricalCostByOrg") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (view !== undefined) { + requestContext.setQueryParam("view", ObjectSerializer_1.ObjectSerializer.serialize(view, "string", ""), ""); + } + if (startMonth !== undefined) { + requestContext.setQueryParam("start_month", ObjectSerializer_1.ObjectSerializer.serialize(startMonth, "Date", "date-time"), ""); + } + if (endMonth !== undefined) { + requestContext.setQueryParam("end_month", ObjectSerializer_1.ObjectSerializer.serialize(endMonth, "Date", "date-time"), ""); + } + if (includeConnectedAccounts !== undefined) { + requestContext.setQueryParam("include_connected_accounts", ObjectSerializer_1.ObjectSerializer.serialize(includeConnectedAccounts, "boolean", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getHourlyUsage(filterTimestampStart, filterProductFamilies, filterTimestampEnd, filterIncludeDescendants, filterIncludeConnectedAccounts, filterIncludeBreakdown, filterVersions, pageLimit, pageNextRecordId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'filterTimestampStart' is not null or undefined + if (filterTimestampStart === null || filterTimestampStart === undefined) { + throw new baseapi_1.RequiredError("filterTimestampStart", "getHourlyUsage"); + } + // verify required parameter 'filterProductFamilies' is not null or undefined + if (filterProductFamilies === null || filterProductFamilies === undefined) { + throw new baseapi_1.RequiredError("filterProductFamilies", "getHourlyUsage"); + } + // Path Params + const localVarPath = "/api/v2/usage/hourly_usage"; + // Make Request Context + const requestContext = _config + .getServer("v2.UsageMeteringApi.getHourlyUsage") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (filterTimestampStart !== undefined) { + requestContext.setQueryParam("filter[timestamp][start]", ObjectSerializer_1.ObjectSerializer.serialize(filterTimestampStart, "Date", "date-time"), ""); + } + if (filterTimestampEnd !== undefined) { + requestContext.setQueryParam("filter[timestamp][end]", ObjectSerializer_1.ObjectSerializer.serialize(filterTimestampEnd, "Date", "date-time"), ""); + } + if (filterProductFamilies !== undefined) { + requestContext.setQueryParam("filter[product_families]", ObjectSerializer_1.ObjectSerializer.serialize(filterProductFamilies, "string", ""), ""); + } + if (filterIncludeDescendants !== undefined) { + requestContext.setQueryParam("filter[include_descendants]", ObjectSerializer_1.ObjectSerializer.serialize(filterIncludeDescendants, "boolean", ""), ""); + } + if (filterIncludeConnectedAccounts !== undefined) { + requestContext.setQueryParam("filter[include_connected_accounts]", ObjectSerializer_1.ObjectSerializer.serialize(filterIncludeConnectedAccounts, "boolean", ""), ""); + } + if (filterIncludeBreakdown !== undefined) { + requestContext.setQueryParam("filter[include_breakdown]", ObjectSerializer_1.ObjectSerializer.serialize(filterIncludeBreakdown, "boolean", ""), ""); + } + if (filterVersions !== undefined) { + requestContext.setQueryParam("filter[versions]", ObjectSerializer_1.ObjectSerializer.serialize(filterVersions, "string", ""), ""); + } + if (pageLimit !== undefined) { + requestContext.setQueryParam("page[limit]", ObjectSerializer_1.ObjectSerializer.serialize(pageLimit, "number", "int32"), ""); + } + if (pageNextRecordId !== undefined) { + requestContext.setQueryParam("page[next_record_id]", ObjectSerializer_1.ObjectSerializer.serialize(pageNextRecordId, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getMonthlyCostAttribution(startMonth, fields, endMonth, sortDirection, sortName, tagBreakdownKeys, nextRecordId, includeDescendants, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + logger_1.logger.warn("Using unstable operation 'getMonthlyCostAttribution'"); + if (!_config.unstableOperations["v2.getMonthlyCostAttribution"]) { + throw new Error("Unstable operation 'getMonthlyCostAttribution' is disabled"); + } + // verify required parameter 'startMonth' is not null or undefined + if (startMonth === null || startMonth === undefined) { + throw new baseapi_1.RequiredError("startMonth", "getMonthlyCostAttribution"); + } + // verify required parameter 'fields' is not null or undefined + if (fields === null || fields === undefined) { + throw new baseapi_1.RequiredError("fields", "getMonthlyCostAttribution"); + } + // Path Params + const localVarPath = "/api/v2/cost_by_tag/monthly_cost_attribution"; + // Make Request Context + const requestContext = _config + .getServer("v2.UsageMeteringApi.getMonthlyCostAttribution") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startMonth !== undefined) { + requestContext.setQueryParam("start_month", ObjectSerializer_1.ObjectSerializer.serialize(startMonth, "Date", "date-time"), ""); + } + if (endMonth !== undefined) { + requestContext.setQueryParam("end_month", ObjectSerializer_1.ObjectSerializer.serialize(endMonth, "Date", "date-time"), ""); + } + if (fields !== undefined) { + requestContext.setQueryParam("fields", ObjectSerializer_1.ObjectSerializer.serialize(fields, "string", ""), ""); + } + if (sortDirection !== undefined) { + requestContext.setQueryParam("sort_direction", ObjectSerializer_1.ObjectSerializer.serialize(sortDirection, "SortDirection", ""), ""); + } + if (sortName !== undefined) { + requestContext.setQueryParam("sort_name", ObjectSerializer_1.ObjectSerializer.serialize(sortName, "string", ""), ""); + } + if (tagBreakdownKeys !== undefined) { + requestContext.setQueryParam("tag_breakdown_keys", ObjectSerializer_1.ObjectSerializer.serialize(tagBreakdownKeys, "string", ""), ""); + } + if (nextRecordId !== undefined) { + requestContext.setQueryParam("next_record_id", ObjectSerializer_1.ObjectSerializer.serialize(nextRecordId, "string", ""), ""); + } + if (includeDescendants !== undefined) { + requestContext.setQueryParam("include_descendants", ObjectSerializer_1.ObjectSerializer.serialize(includeDescendants, "boolean", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getProjectedCost(view, includeConnectedAccounts, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/usage/projected_cost"; + // Make Request Context + const requestContext = _config + .getServer("v2.UsageMeteringApi.getProjectedCost") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (view !== undefined) { + requestContext.setQueryParam("view", ObjectSerializer_1.ObjectSerializer.serialize(view, "string", ""), ""); + } + if (includeConnectedAccounts !== undefined) { + requestContext.setQueryParam("include_connected_accounts", ObjectSerializer_1.ObjectSerializer.serialize(includeConnectedAccounts, "boolean", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageApplicationSecurityMonitoring(startHr, endHr, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getUsageApplicationSecurityMonitoring"); + } + // Path Params + const localVarPath = "/api/v2/usage/application_security"; + // Make Request Context + const requestContext = _config + .getServer("v2.UsageMeteringApi.getUsageApplicationSecurityMonitoring") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageLambdaTracedInvocations(startHr, endHr, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getUsageLambdaTracedInvocations"); + } + // Path Params + const localVarPath = "/api/v2/usage/lambda_traced_invocations"; + // Make Request Context + const requestContext = _config + .getServer("v2.UsageMeteringApi.getUsageLambdaTracedInvocations") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUsageObservabilityPipelines(startHr, endHr, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'startHr' is not null or undefined + if (startHr === null || startHr === undefined) { + throw new baseapi_1.RequiredError("startHr", "getUsageObservabilityPipelines"); + } + // Path Params + const localVarPath = "/api/v2/usage/observability_pipelines"; + // Make Request Context + const requestContext = _config + .getServer("v2.UsageMeteringApi.getUsageObservabilityPipelines") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (startHr !== undefined) { + requestContext.setQueryParam("start_hr", ObjectSerializer_1.ObjectSerializer.serialize(startHr, "Date", "date-time"), ""); + } + if (endHr !== undefined) { + requestContext.setQueryParam("end_hr", ObjectSerializer_1.ObjectSerializer.serialize(endHr, "Date", "date-time"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.UsageMeteringApiRequestFactory = UsageMeteringApiRequestFactory; +class UsageMeteringApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getActiveBillingDimensions + * @throws ApiException if the response code was not in [200, 299] + */ + getActiveBillingDimensions(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ActiveBillingDimensionsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ActiveBillingDimensionsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getBillingDimensionMapping + * @throws ApiException if the response code was not in [200, 299] + */ + getBillingDimensionMapping(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "BillingDimensionsMappingResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "BillingDimensionsMappingResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getCostByOrg + * @throws ApiException if the response code was not in [200, 299] + */ + getCostByOrg(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CostByOrgResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CostByOrgResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getEstimatedCostByOrg + * @throws ApiException if the response code was not in [200, 299] + */ + getEstimatedCostByOrg(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CostByOrgResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CostByOrgResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getHistoricalCostByOrg + * @throws ApiException if the response code was not in [200, 299] + */ + getHistoricalCostByOrg(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CostByOrgResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CostByOrgResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getHourlyUsage + * @throws ApiException if the response code was not in [200, 299] + */ + getHourlyUsage(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "HourlyUsageResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "HourlyUsageResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getMonthlyCostAttribution + * @throws ApiException if the response code was not in [200, 299] + */ + getMonthlyCostAttribution(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonthlyCostAttributionResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonthlyCostAttributionResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getProjectedCost + * @throws ApiException if the response code was not in [200, 299] + */ + getProjectedCost(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ProjectedCostResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ProjectedCostResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageApplicationSecurityMonitoring + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageApplicationSecurityMonitoring(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageApplicationSecurityMonitoringResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageApplicationSecurityMonitoringResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageLambdaTracedInvocations + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageLambdaTracedInvocations(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageLambdaTracedInvocationsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageLambdaTracedInvocationsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUsageObservabilityPipelines + * @throws ApiException if the response code was not in [200, 299] + */ + getUsageObservabilityPipelines(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageObservabilityPipelinesResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsageObservabilityPipelinesResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.UsageMeteringApiResponseProcessor = UsageMeteringApiResponseProcessor; +class UsageMeteringApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new UsageMeteringApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new UsageMeteringApiResponseProcessor(); + } + /** + * Get active billing dimensions for cost attribution. Cost data for a given month becomes available no later than the 19th of the following month. + * @param param The request object + */ + getActiveBillingDimensions(options) { + const requestContextPromise = this.requestFactory.getActiveBillingDimensions(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getActiveBillingDimensions(responseContext); + }); + }); + } + /** + * Get a mapping of billing dimensions to the corresponding keys for the supported usage metering public API endpoints. + * Mapping data is updated on a monthly cadence. + * + * This endpoint is only accessible to [parent-level organizations](https://docs.datadoghq.com/account_management/multi_organization/). + * @param param The request object + */ + getBillingDimensionMapping(param = {}, options) { + const requestContextPromise = this.requestFactory.getBillingDimensionMapping(param.filterMonth, param.filterView, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getBillingDimensionMapping(responseContext); + }); + }); + } + /** + * Get cost across multi-org account. + * Cost by org data for a given month becomes available no later than the 16th of the following month. + * **Note:** This endpoint has been deprecated. Please use the new endpoint + * [`/historical_cost`](https://docs.datadoghq.com/api/latest/usage-metering/#get-historical-cost-across-your-account) + * instead. + * + * This endpoint is only accessible for [parent-level organizations](https://docs.datadoghq.com/account_management/multi_organization/). + * @param param The request object + */ + getCostByOrg(param, options) { + const requestContextPromise = this.requestFactory.getCostByOrg(param.startMonth, param.endMonth, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getCostByOrg(responseContext); + }); + }); + } + /** + * Get estimated cost across multi-org and single root-org accounts. + * Estimated cost data is only available for the current month and previous month + * and is delayed by up to 72 hours from when it was incurred. + * To access historical costs prior to this, use the `/historical_cost` endpoint. + * + * This endpoint is only accessible for [parent-level organizations](https://docs.datadoghq.com/account_management/multi_organization/). + * @param param The request object + */ + getEstimatedCostByOrg(param = {}, options) { + const requestContextPromise = this.requestFactory.getEstimatedCostByOrg(param.view, param.startMonth, param.endMonth, param.startDate, param.endDate, param.includeConnectedAccounts, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getEstimatedCostByOrg(responseContext); + }); + }); + } + /** + * Get historical cost across multi-org and single root-org accounts. + * Cost data for a given month becomes available no later than the 16th of the following month. + * + * This endpoint is only accessible for [parent-level organizations](https://docs.datadoghq.com/account_management/multi_organization/). + * @param param The request object + */ + getHistoricalCostByOrg(param, options) { + const requestContextPromise = this.requestFactory.getHistoricalCostByOrg(param.startMonth, param.view, param.endMonth, param.includeConnectedAccounts, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getHistoricalCostByOrg(responseContext); + }); + }); + } + /** + * Get hourly usage by product family. + * @param param The request object + */ + getHourlyUsage(param, options) { + const requestContextPromise = this.requestFactory.getHourlyUsage(param.filterTimestampStart, param.filterProductFamilies, param.filterTimestampEnd, param.filterIncludeDescendants, param.filterIncludeConnectedAccounts, param.filterIncludeBreakdown, param.filterVersions, param.pageLimit, param.pageNextRecordId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getHourlyUsage(responseContext); + }); + }); + } + /** + * Get monthly cost attribution by tag across multi-org and single root-org accounts. + * Cost Attribution data for a given month becomes available no later than the 19th of the following month. + * This API endpoint is paginated. To make sure you receive all records, check if the value of `next_record_id` is + * set in the response. If it is, make another request and pass `next_record_id` as a parameter. + * Pseudo code example: + * ``` + * response := GetMonthlyCostAttribution(start_month, end_month) + * cursor := response.metadata.pagination.next_record_id + * WHILE cursor != null BEGIN + * sleep(5 seconds) # Avoid running into rate limit + * response := GetMonthlyCostAttribution(start_month, end_month, next_record_id=cursor) + * cursor := response.metadata.pagination.next_record_id + * END + * ``` + * + * This endpoint is only accessible for [parent-level organizations](https://docs.datadoghq.com/account_management/multi_organization/). + * @param param The request object + */ + getMonthlyCostAttribution(param, options) { + const requestContextPromise = this.requestFactory.getMonthlyCostAttribution(param.startMonth, param.fields, param.endMonth, param.sortDirection, param.sortName, param.tagBreakdownKeys, param.nextRecordId, param.includeDescendants, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getMonthlyCostAttribution(responseContext); + }); + }); + } + /** + * Get projected cost across multi-org and single root-org accounts. + * Projected cost data is only available for the current month and becomes available around the 12th of the month. + * + * This endpoint is only accessible for [parent-level organizations](https://docs.datadoghq.com/account_management/multi_organization/). + * @param param The request object + */ + getProjectedCost(param = {}, options) { + const requestContextPromise = this.requestFactory.getProjectedCost(param.view, param.includeConnectedAccounts, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getProjectedCost(responseContext); + }); + }); + } + /** + * Get hourly usage for application security . + * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family) + * @param param The request object + */ + getUsageApplicationSecurityMonitoring(param, options) { + const requestContextPromise = this.requestFactory.getUsageApplicationSecurityMonitoring(param.startHr, param.endHr, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageApplicationSecurityMonitoring(responseContext); + }); + }); + } + /** + * Get hourly usage for Lambda traced invocations. + * **Note:** This endpoint has been deprecated.. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family) + * @param param The request object + */ + getUsageLambdaTracedInvocations(param, options) { + const requestContextPromise = this.requestFactory.getUsageLambdaTracedInvocations(param.startHr, param.endHr, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageLambdaTracedInvocations(responseContext); + }); + }); + } + /** + * Get hourly usage for observability pipelines. + * **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family) + * @param param The request object + */ + getUsageObservabilityPipelines(param, options) { + const requestContextPromise = this.requestFactory.getUsageObservabilityPipelines(param.startHr, param.endHr, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUsageObservabilityPipelines(responseContext); + }); + }); + } +} +exports.UsageMeteringApi = UsageMeteringApi; +//# sourceMappingURL=UsageMeteringApi.js.map + +/***/ }), + +/***/ 11159: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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 __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } +var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UsersApi = exports.UsersApiResponseProcessor = exports.UsersApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class UsersApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + createUser(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createUser"); + } + // Path Params + const localVarPath = "/api/v2/users"; + // Make Request Context + const requestContext = _config + .getServer("v2.UsersApi.createUser") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "UserCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + disableUser(userId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'userId' is not null or undefined + if (userId === null || userId === undefined) { + throw new baseapi_1.RequiredError("userId", "disableUser"); + } + // Path Params + const localVarPath = "/api/v2/users/{user_id}".replace("{user_id}", encodeURIComponent(String(userId))); + // Make Request Context + const requestContext = _config + .getServer("v2.UsersApi.disableUser") + .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getInvitation(userInvitationUuid, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'userInvitationUuid' is not null or undefined + if (userInvitationUuid === null || userInvitationUuid === undefined) { + throw new baseapi_1.RequiredError("userInvitationUuid", "getInvitation"); + } + // Path Params + const localVarPath = "/api/v2/user_invitations/{user_invitation_uuid}".replace("{user_invitation_uuid}", encodeURIComponent(String(userInvitationUuid))); + // Make Request Context + const requestContext = _config + .getServer("v2.UsersApi.getInvitation") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getUser(userId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'userId' is not null or undefined + if (userId === null || userId === undefined) { + throw new baseapi_1.RequiredError("userId", "getUser"); + } + // Path Params + const localVarPath = "/api/v2/users/{user_id}".replace("{user_id}", encodeURIComponent(String(userId))); + // Make Request Context + const requestContext = _config + .getServer("v2.UsersApi.getUser") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listUserOrganizations(userId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'userId' is not null or undefined + if (userId === null || userId === undefined) { + throw new baseapi_1.RequiredError("userId", "listUserOrganizations"); + } + // Path Params + const localVarPath = "/api/v2/users/{user_id}/orgs".replace("{user_id}", encodeURIComponent(String(userId))); + // Make Request Context + const requestContext = _config + .getServer("v2.UsersApi.listUserOrganizations") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listUserPermissions(userId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'userId' is not null or undefined + if (userId === null || userId === undefined) { + throw new baseapi_1.RequiredError("userId", "listUserPermissions"); + } + // Path Params + const localVarPath = "/api/v2/users/{user_id}/permissions".replace("{user_id}", encodeURIComponent(String(userId))); + // Make Request Context + const requestContext = _config + .getServer("v2.UsersApi.listUserPermissions") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listUsers(pageSize, pageNumber, sort, sortDir, filter, filterStatus, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // Path Params + const localVarPath = "/api/v2/users"; + // Make Request Context + const requestContext = _config + .getServer("v2.UsersApi.listUsers") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (pageSize !== undefined) { + requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), ""); + } + if (pageNumber !== undefined) { + requestContext.setQueryParam("page[number]", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); + } + if (sort !== undefined) { + requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "string", ""), ""); + } + if (sortDir !== undefined) { + requestContext.setQueryParam("sort_dir", ObjectSerializer_1.ObjectSerializer.serialize(sortDir, "QuerySortOrder", ""), ""); + } + if (filter !== undefined) { + requestContext.setQueryParam("filter", ObjectSerializer_1.ObjectSerializer.serialize(filter, "string", ""), ""); + } + if (filterStatus !== undefined) { + requestContext.setQueryParam("filter[status]", ObjectSerializer_1.ObjectSerializer.serialize(filterStatus, "string", ""), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + sendInvitations(body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "sendInvitations"); + } + // Path Params + const localVarPath = "/api/v2/user_invitations"; + // Make Request Context + const requestContext = _config + .getServer("v2.UsersApi.sendInvitations") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "UserInvitationsRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + updateUser(userId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'userId' is not null or undefined + if (userId === null || userId === undefined) { + throw new baseapi_1.RequiredError("userId", "updateUser"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "updateUser"); + } + // Path Params + const localVarPath = "/api/v2/users/{user_id}".replace("{user_id}", encodeURIComponent(String(userId))); + // Make Request Context + const requestContext = _config + .getServer("v2.UsersApi.updateUser") + .makeRequestContext(localVarPath, http_1.HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "UserUpdateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.UsersApiRequestFactory = UsersApiRequestFactory; +class UsersApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createUser + * @throws ApiException if the response code was not in [200, 299] + */ + createUser(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to disableUser + * @throws ApiException if the response code was not in [200, 299] + */ + disableUser(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 204) { + return; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getInvitation + * @throws ApiException if the response code was not in [200, 299] + */ + getInvitation(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserInvitationResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserInvitationResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getUser + * @throws ApiException if the response code was not in [200, 299] + */ + getUser(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listUserOrganizations + * @throws ApiException if the response code was not in [200, 299] + */ + listUserOrganizations(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listUserPermissions + * @throws ApiException if the response code was not in [200, 299] + */ + listUserPermissions(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "PermissionsResponse"); + return body; + } + if (response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "PermissionsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listUsers + * @throws ApiException if the response code was not in [200, 299] + */ + listUsers(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsersResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UsersResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to sendInvitations + * @throws ApiException if the response code was not in [200, 299] + */ + sendInvitations(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 201) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserInvitationsResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserInvitationsResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to updateUser + * @throws ApiException if the response code was not in [200, 299] + */ + updateUser(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 422 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UserResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.UsersApiResponseProcessor = UsersApiResponseProcessor; +class UsersApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new UsersApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new UsersApiResponseProcessor(); + } + /** + * Create a user for your organization. + * @param param The request object + */ + createUser(param, options) { + const requestContextPromise = this.requestFactory.createUser(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createUser(responseContext); + }); + }); + } + /** + * Disable a user. Can only be used with an application key belonging + * to an administrator user. + * @param param The request object + */ + disableUser(param, options) { + const requestContextPromise = this.requestFactory.disableUser(param.userId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.disableUser(responseContext); + }); + }); + } + /** + * Returns a single user invitation by its UUID. + * @param param The request object + */ + getInvitation(param, options) { + const requestContextPromise = this.requestFactory.getInvitation(param.userInvitationUuid, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getInvitation(responseContext); + }); + }); + } + /** + * Get a user in the organization specified by the user’s `user_id`. + * @param param The request object + */ + getUser(param, options) { + const requestContextPromise = this.requestFactory.getUser(param.userId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getUser(responseContext); + }); + }); + } + /** + * Get a user organization. Returns the user information and all organizations + * joined by this user. + * @param param The request object + */ + listUserOrganizations(param, options) { + const requestContextPromise = this.requestFactory.listUserOrganizations(param.userId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listUserOrganizations(responseContext); + }); + }); + } + /** + * Get a user permission set. Returns a list of the user’s permissions + * granted by the associated user's roles. + * @param param The request object + */ + listUserPermissions(param, options) { + const requestContextPromise = this.requestFactory.listUserPermissions(param.userId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listUserPermissions(responseContext); + }); + }); + } + /** + * Get the list of all users in the organization. This list includes + * all users even if they are deactivated or unverified. + * @param param The request object + */ + listUsers(param = {}, options) { + const requestContextPromise = this.requestFactory.listUsers(param.pageSize, param.pageNumber, param.sort, param.sortDir, param.filter, param.filterStatus, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listUsers(responseContext); + }); + }); + } + /** + * Provide a paginated version of listUsers returning a generator with all the items. + */ + listUsersWithPagination(param = {}, options) { + return __asyncGenerator(this, arguments, function* listUsersWithPagination_1() { + let pageSize = 10; + if (param.pageSize !== undefined) { + pageSize = param.pageSize; + } + param.pageSize = pageSize; + param.pageNumber = 0; + while (true) { + const requestContext = yield __await(this.requestFactory.listUsers(param.pageSize, param.pageNumber, param.sort, param.sortDir, param.filter, param.filterStatus, options)); + const responseContext = yield __await(this.configuration.httpApi.send(requestContext)); + const response = yield __await(this.responseProcessor.listUsers(responseContext)); + const responseData = response.data; + if (responseData === undefined) { + break; + } + const results = responseData; + for (const item of results) { + yield yield __await(item); + } + if (results.length < pageSize) { + break; + } + param.pageNumber = param.pageNumber + 1; + } + }); + } + /** + * Sends emails to one or more users inviting them to join the organization. + * @param param The request object + */ + sendInvitations(param, options) { + const requestContextPromise = this.requestFactory.sendInvitations(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.sendInvitations(responseContext); + }); + }); + } + /** + * Edit a user. Can only be used with an application key belonging + * to an administrator user. + * @param param The request object + */ + updateUser(param, options) { + const requestContextPromise = this.requestFactory.updateUser(param.userId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateUser(responseContext); + }); + }); + } +} +exports.UsersApi = UsersApi; +//# sourceMappingURL=UsersApi.js.map + +/***/ }), + +/***/ 81993: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + + +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.WorkflowAutomationApi = exports.WorkflowAutomationApiResponseProcessor = exports.WorkflowAutomationApiRequestFactory = void 0; +const baseapi_1 = __nccwpck_require__(50443); +const configuration_1 = __nccwpck_require__(51158); +const http_1 = __nccwpck_require__(79861); +const logger_1 = __nccwpck_require__(75896); +const ObjectSerializer_1 = __nccwpck_require__(89837); +const exception_1 = __nccwpck_require__(77701); +class WorkflowAutomationApiRequestFactory extends baseapi_1.BaseAPIRequestFactory { + cancelWorkflowInstance(workflowId, instanceId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'workflowId' is not null or undefined + if (workflowId === null || workflowId === undefined) { + throw new baseapi_1.RequiredError("workflowId", "cancelWorkflowInstance"); + } + // verify required parameter 'instanceId' is not null or undefined + if (instanceId === null || instanceId === undefined) { + throw new baseapi_1.RequiredError("instanceId", "cancelWorkflowInstance"); + } + // Path Params + const localVarPath = "/api/v2/workflows/{workflow_id}/instances/{instance_id}/cancel" + .replace("{workflow_id}", encodeURIComponent(String(workflowId))) + .replace("{instance_id}", encodeURIComponent(String(instanceId))); + // Make Request Context + const requestContext = _config + .getServer("v2.WorkflowAutomationApi.cancelWorkflowInstance") + .makeRequestContext(localVarPath, http_1.HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + createWorkflowInstance(workflowId, body, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'workflowId' is not null or undefined + if (workflowId === null || workflowId === undefined) { + throw new baseapi_1.RequiredError("workflowId", "createWorkflowInstance"); + } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new baseapi_1.RequiredError("body", "createWorkflowInstance"); + } + // Path Params + const localVarPath = "/api/v2/workflows/{workflow_id}/instances".replace("{workflow_id}", encodeURIComponent(String(workflowId))); + // Make Request Context + const requestContext = _config + .getServer("v2.WorkflowAutomationApi.createWorkflowInstance") + .makeRequestContext(localVarPath, http_1.HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Body Params + const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "WorkflowInstanceCreateRequest", ""), contentType); + requestContext.setBody(serializedBody); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + getWorkflowInstance(workflowId, instanceId, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'workflowId' is not null or undefined + if (workflowId === null || workflowId === undefined) { + throw new baseapi_1.RequiredError("workflowId", "getWorkflowInstance"); + } + // verify required parameter 'instanceId' is not null or undefined + if (instanceId === null || instanceId === undefined) { + throw new baseapi_1.RequiredError("instanceId", "getWorkflowInstance"); + } + // Path Params + const localVarPath = "/api/v2/workflows/{workflow_id}/instances/{instance_id}" + .replace("{workflow_id}", encodeURIComponent(String(workflowId))) + .replace("{instance_id}", encodeURIComponent(String(instanceId))); + // Make Request Context + const requestContext = _config + .getServer("v2.WorkflowAutomationApi.getWorkflowInstance") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } + listWorkflowInstances(workflowId, pageSize, pageNumber, _options) { + return __awaiter(this, void 0, void 0, function* () { + const _config = _options || this.configuration; + // verify required parameter 'workflowId' is not null or undefined + if (workflowId === null || workflowId === undefined) { + throw new baseapi_1.RequiredError("workflowId", "listWorkflowInstances"); + } + // Path Params + const localVarPath = "/api/v2/workflows/{workflow_id}/instances".replace("{workflow_id}", encodeURIComponent(String(workflowId))); + // Make Request Context + const requestContext = _config + .getServer("v2.WorkflowAutomationApi.listWorkflowInstances") + .makeRequestContext(localVarPath, http_1.HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + // Query Params + if (pageSize !== undefined) { + requestContext.setQueryParam("page[size]", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"), ""); + } + if (pageNumber !== undefined) { + requestContext.setQueryParam("page[number]", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"), ""); + } + // Apply auth methods + (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [ + "AuthZ", + "apiKeyAuth", + "appKeyAuth", + ]); + return requestContext; + }); + } +} +exports.WorkflowAutomationApiRequestFactory = WorkflowAutomationApiRequestFactory; +class WorkflowAutomationApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to cancelWorkflowInstance + * @throws ApiException if the response code was not in [200, 299] + */ + cancelWorkflowInstance(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "WorklflowCancelInstanceResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "WorklflowCancelInstanceResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createWorkflowInstance + * @throws ApiException if the response code was not in [200, 299] + */ + createWorkflowInstance(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "WorkflowInstanceCreateResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "WorkflowInstanceCreateResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getWorkflowInstance + * @throws ApiException if the response code was not in [200, 299] + */ + getWorkflowInstance(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "WorklflowGetInstanceResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "WorklflowGetInstanceResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listWorkflowInstances + * @throws ApiException if the response code was not in [200, 299] + */ + listWorkflowInstances(response) { + return __awaiter(this, void 0, void 0, function* () { + const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (response.httpStatusCode === 200) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "WorkflowListInstancesResponse"); + return body; + } + if (response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429) { + const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType); + let body; + try { + body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse"); + } + catch (error) { + logger_1.logger.debug(`Got error deserializing error: ${error}`); + throw new exception_1.ApiException(response.httpStatusCode, bodyText); + } + throw new exception_1.ApiException(response.httpStatusCode, body); + } + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "WorkflowListInstancesResponse", ""); + return body; + } + const body = (yield response.body.text()) || ""; + throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"'); + }); + } +} +exports.WorkflowAutomationApiResponseProcessor = WorkflowAutomationApiResponseProcessor; +class WorkflowAutomationApi { + constructor(configuration, requestFactory, responseProcessor) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new WorkflowAutomationApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new WorkflowAutomationApiResponseProcessor(); + } + /** + * Cancels a specific execution of a given workflow. This API requires an application key scoped with the workflows_run permission. + * @param param The request object + */ + cancelWorkflowInstance(param, options) { + const requestContextPromise = this.requestFactory.cancelWorkflowInstance(param.workflowId, param.instanceId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.cancelWorkflowInstance(responseContext); + }); + }); + } + /** + * Execute the given workflow. This API requires an application key scoped with the workflows_run permission. + * @param param The request object + */ + createWorkflowInstance(param, options) { + const requestContextPromise = this.requestFactory.createWorkflowInstance(param.workflowId, param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createWorkflowInstance(responseContext); + }); + }); + } + /** + * Get a specific execution of a given workflow. This API requires an application key scoped with the workflows_read permission. + * @param param The request object + */ + getWorkflowInstance(param, options) { + const requestContextPromise = this.requestFactory.getWorkflowInstance(param.workflowId, param.instanceId, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getWorkflowInstance(responseContext); + }); + }); + } + /** + * List all instances of a given workflow. This API requires an application key scoped with the workflows_read permission. + * @param param The request object + */ + listWorkflowInstances(param, options) { + const requestContextPromise = this.requestFactory.listWorkflowInstances(param.workflowId, param.pageSize, param.pageNumber, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listWorkflowInstances(responseContext); + }); + }); + } +} +exports.WorkflowAutomationApi = WorkflowAutomationApi; +//# sourceMappingURL=WorkflowAutomationApi.js.map + +/***/ }), + +/***/ 68665: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SensitiveDataScannerApi = exports.SecurityMonitoringApi = exports.RumMetricsApi = exports.RolesApi = exports.RestrictionPoliciesApi = exports.RUMApi = exports.ProcessesApi = exports.PowerpackApi = exports.OrganizationsApi = exports.OpsgenieIntegrationApi = exports.OktaIntegrationApi = exports.NetworkDeviceMonitoringApi = exports.MonitorsApi = exports.MicrosoftTeamsIntegrationApi = exports.MetricsApi = exports.LogsMetricsApi = exports.LogsCustomDestinationsApi = exports.LogsArchivesApi = exports.LogsApi = exports.KeyManagementApi = exports.IncidentsApi = exports.IncidentTeamsApi = exports.IncidentServicesApi = exports.IPAllowlistApi = exports.GCPIntegrationApi = exports.FastlyIntegrationApi = exports.EventsApi = exports.DowntimesApi = exports.DomainAllowlistApi = exports.DataDeletionApi = exports.DashboardListsApi = exports.DORAMetricsApi = exports.ContainersApi = exports.ContainerImagesApi = exports.ConfluentCloudApi = exports.CloudflareIntegrationApi = exports.CloudCostManagementApi = exports.CaseManagementApi = exports.CSMThreatsApi = exports.CSMAgentsApi = exports.CIVisibilityTestsApi = exports.CIVisibilityPipelinesApi = exports.AuthNMappingsApi = exports.AuditApi = exports.AppsApi = exports.AppDeploymentApi = exports.AWSLogsIntegrationApi = exports.AWSIntegrationApi = exports.APMRetentionFiltersApi = exports.APIManagementApi = void 0; +exports.AuditLogsResponseMetadata = exports.AuditLogsResponseLinks = exports.AuditLogsQueryPageOptions = exports.AuditLogsQueryOptions = exports.AuditLogsQueryFilter = exports.AuditLogsEventsResponse = exports.AuditLogsEventAttributes = exports.AuditLogsEvent = exports.AppMeta = exports.ApplicationKeyUpdateRequest = exports.ApplicationKeyUpdateData = exports.ApplicationKeyUpdateAttributes = exports.ApplicationKeyResponseMetaPage = exports.ApplicationKeyResponseMeta = exports.ApplicationKeyResponse = exports.ApplicationKeyRelationships = exports.ApplicationKeyCreateRequest = exports.ApplicationKeyCreateData = exports.ApplicationKeyCreateAttributes = exports.AppBuilderEvent = exports.AppBuilderErrorErrorsItemsSource = exports.AppBuilderErrorErrorsItems = exports.AppBuilderError = exports.APIKeyUpdateRequest = exports.APIKeyUpdateData = exports.APIKeyUpdateAttributes = exports.APIKeysResponseMetaPage = exports.APIKeysResponseMeta = exports.APIKeysResponse = exports.APIKeyResponse = exports.APIKeyRelationships = exports.APIKeyCreateRequest = exports.APIKeyCreateData = exports.APIKeyCreateAttributes = exports.APIErrorResponse = exports.ActiveBillingDimensionsResponse = exports.ActiveBillingDimensionsBody = exports.ActiveBillingDimensionsAttributes = exports.WorkflowAutomationApi = exports.UsersApi = exports.UsageMeteringApi = exports.TeamsApi = exports.SyntheticsApi = exports.SpansMetricsApi = exports.SpansApi = exports.SoftwareCatalogApi = exports.ServiceScorecardsApi = exports.ServiceLevelObjectivesApi = exports.ServiceDefinitionApi = exports.ServiceAccountsApi = void 0; +exports.AWSNamespacesResponseAttributes = exports.AWSNamespacesResponse = exports.AWSNamespaceFiltersIncludeOnly = exports.AWSNamespaceFiltersExcludeOnly = exports.AWSMetricsConfig = exports.AWSLogsServicesResponseData = exports.AWSLogsServicesResponseAttributes = exports.AWSLogsServicesResponse = exports.AWSLogsConfig = exports.AWSLambdaForwarderConfig = exports.AwsCURConfigsResponse = exports.AwsCURConfigResponse = exports.AwsCURConfigPostRequestAttributes = exports.AwsCURConfigPostRequest = exports.AwsCURConfigPostData = exports.AwsCURConfigPatchRequestAttributes = exports.AwsCURConfigPatchRequest = exports.AwsCURConfigPatchData = exports.AwsCURConfigAttributes = exports.AwsCURConfig = exports.AWSAuthConfigRole = exports.AWSAuthConfigKeys = exports.AWSAccountUpdateRequestData = exports.AWSAccountUpdateRequestAttributes = exports.AWSAccountUpdateRequest = exports.AWSAccountsResponse = exports.AWSAccountResponseData = exports.AWSAccountResponseAttributes = exports.AWSAccountResponse = exports.AWSAccountCreateRequestData = exports.AWSAccountCreateRequestAttributes = exports.AWSAccountCreateRequest = exports.AuthNMappingUpdateRequest = exports.AuthNMappingUpdateData = exports.AuthNMappingUpdateAttributes = exports.AuthNMappingTeamAttributes = exports.AuthNMappingTeam = exports.AuthNMappingsResponse = exports.AuthNMappingResponse = exports.AuthNMappingRelationshipToTeam = exports.AuthNMappingRelationshipToRole = exports.AuthNMappingRelationships = exports.AuthNMappingCreateRequest = exports.AuthNMappingCreateData = exports.AuthNMappingCreateAttributes = exports.AuthNMappingAttributes = exports.AuthNMapping = exports.AuditLogsWarning = exports.AuditLogsSearchEventsRequest = exports.AuditLogsResponsePage = void 0; +exports.CasesResponseMeta = exports.CasesResponse = exports.CaseResponse = exports.CaseRelationships = exports.CaseEmptyRequest = exports.CaseEmpty = exports.CaseCreateRequest = exports.CaseCreateRelationships = exports.CaseCreateAttributes = exports.CaseCreate = exports.CaseAttributes = exports.CaseAssignRequest = exports.CaseAssignAttributes = exports.CaseAssign = exports.Case = exports.CancelDataDeletionResponseBody = exports.CalculatedField = exports.BulkMuteFindingsResponseData = exports.BulkMuteFindingsResponse = exports.BulkMuteFindingsRequestProperties = exports.BulkMuteFindingsRequestMetaFindings = exports.BulkMuteFindingsRequestMeta = exports.BulkMuteFindingsRequestData = exports.BulkMuteFindingsRequestAttributes = exports.BulkMuteFindingsRequest = exports.BillingDimensionsMappingResponse = exports.BillingDimensionsMappingBodyItemAttributesEndpointsItems = exports.BillingDimensionsMappingBodyItemAttributes = exports.BillingDimensionsMappingBodyItem = exports.BillConfig = exports.AzureUCConfigsResponse = exports.AzureUCConfigPostRequestAttributes = exports.AzureUCConfigPostRequest = exports.AzureUCConfigPostData = exports.AzureUCConfigPatchRequestAttributes = exports.AzureUCConfigPatchRequest = exports.AzureUCConfigPatchData = exports.AzureUCConfigPairsResponse = exports.AzureUCConfigPairAttributes = exports.AzureUCConfigPair = exports.AzureUCConfig = exports.AWSTracesConfig = exports.AWSResourcesConfig = exports.AWSRegionsIncludeOnly = exports.AWSRegionsIncludeAll = exports.AWSNewExternalIDResponseData = exports.AWSNewExternalIDResponseAttributes = exports.AWSNewExternalIDResponse = exports.AWSNamespaceTagFilter = exports.AWSNamespacesResponseData = void 0; +exports.CIAppTestsAggregateRequest = exports.CIAppTestEventsResponse = exports.CIAppTestEventsRequest = exports.CIAppTestEvent = exports.CIAppResponsePage = exports.CIAppResponseMetadataWithPagination = exports.CIAppResponseMetadata = exports.CIAppResponseLinks = exports.CIAppQueryPageOptions = exports.CIAppQueryOptions = exports.CIAppPipelinesQueryFilter = exports.CIAppPipelinesGroupBy = exports.CIAppPipelinesBucketResponse = exports.CIAppPipelinesAnalyticsAggregateResponse = exports.CIAppPipelinesAggregationBucketsResponse = exports.CIAppPipelinesAggregateRequest = exports.CIAppPipelineEventStep = exports.CIAppPipelineEventStage = exports.CIAppPipelineEventsResponse = exports.CIAppPipelineEventsRequest = exports.CIAppPipelineEventPreviousPipeline = exports.CIAppPipelineEventParentPipeline = exports.CIAppPipelineEventJob = exports.CIAppPipelineEventInProgressPipeline = exports.CIAppPipelineEventFinishedPipeline = exports.CIAppPipelineEventAttributes = exports.CIAppPipelineEvent = exports.CIAppHostInfo = exports.CIAppGroupByHistogram = exports.CIAppGitInfo = exports.CIAppEventAttributes = exports.CIAppCreatePipelineEventRequestData = exports.CIAppCreatePipelineEventRequestAttributes = exports.CIAppCreatePipelineEventRequest = exports.CIAppCompute = exports.CIAppCIError = exports.CIAppAggregateSort = exports.CIAppAggregateBucketValueTimeseriesPoint = exports.ChargebackBreakdown = exports.ChangeEventCustomAttributesImpactedResourcesItems = exports.ChangeEventCustomAttributesChangedResource = exports.ChangeEventCustomAttributesAuthor = exports.ChangeEventCustomAttributes = exports.CaseUpdateStatusRequest = exports.CaseUpdateStatusAttributes = exports.CaseUpdateStatus = exports.CaseUpdatePriorityRequest = exports.CaseUpdatePriorityAttributes = exports.CaseUpdatePriority = exports.CasesResponseMetaPagination = void 0; +exports.ConfluentAccountUpdateRequest = exports.ConfluentAccountsResponse = exports.ConfluentAccountResponseData = exports.ConfluentAccountResponseAttributes = exports.ConfluentAccountResponse = exports.ConfluentAccountResourceAttributes = exports.ConfluentAccountCreateRequestData = exports.ConfluentAccountCreateRequestAttributes = exports.ConfluentAccountCreateRequest = exports.ComponentProperties = exports.ComponentGridProperties = exports.ComponentGrid = exports.Component = exports.CloudWorkloadSecurityAgentRuleUpdateRequest = exports.CloudWorkloadSecurityAgentRuleUpdaterAttributes = exports.CloudWorkloadSecurityAgentRuleUpdateData = exports.CloudWorkloadSecurityAgentRuleUpdateAttributes = exports.CloudWorkloadSecurityAgentRulesListResponse = exports.CloudWorkloadSecurityAgentRuleResponse = exports.CloudWorkloadSecurityAgentRuleKill = exports.CloudWorkloadSecurityAgentRuleData = exports.CloudWorkloadSecurityAgentRuleCreatorAttributes = exports.CloudWorkloadSecurityAgentRuleCreateRequest = exports.CloudWorkloadSecurityAgentRuleCreateData = exports.CloudWorkloadSecurityAgentRuleCreateAttributes = exports.CloudWorkloadSecurityAgentRuleAttributes = exports.CloudWorkloadSecurityAgentRuleAction = exports.CloudflareAccountUpdateRequestData = exports.CloudflareAccountUpdateRequestAttributes = exports.CloudflareAccountUpdateRequest = exports.CloudflareAccountsResponse = exports.CloudflareAccountResponseData = exports.CloudflareAccountResponseAttributes = exports.CloudflareAccountResponse = exports.CloudflareAccountCreateRequestData = exports.CloudflareAccountCreateRequestAttributes = exports.CloudflareAccountCreateRequest = exports.CloudConfigurationRulePayload = exports.CloudConfigurationRuleOptions = exports.CloudConfigurationRuleCreatePayload = exports.CloudConfigurationRuleComplianceSignalOptions = exports.CloudConfigurationRuleCaseCreate = exports.CloudConfigurationRegoRule = exports.CloudConfigurationComplianceRuleOptions = exports.CIAppWarning = exports.CIAppTestsQueryFilter = exports.CIAppTestsGroupBy = exports.CIAppTestsBucketResponse = exports.CIAppTestsAnalyticsAggregateResponse = exports.CIAppTestsAggregationBucketsResponse = void 0; +exports.CreateOpenAPIResponse = exports.CreateDataDeletionResponseBody = exports.CreateDataDeletionRequestBodyData = exports.CreateDataDeletionRequestBodyAttributes = exports.CreateDataDeletionRequestBody = exports.CreateAppResponseData = exports.CreateAppResponse = exports.CreateAppRequestDataAttributes = exports.CreateAppRequestData = exports.CreateAppRequest = exports.CostByOrgResponse = exports.CostByOrgAttributes = exports.CostByOrg = exports.CostAttributionAggregatesBody = exports.ConvertJobResultsToSignalsRequest = exports.ConvertJobResultsToSignalsData = exports.ConvertJobResultsToSignalsAttributes = exports.ContainersResponseLinks = exports.ContainersResponse = exports.ContainerMetaPage = exports.ContainerMeta = exports.ContainerImageVulnerabilities = exports.ContainerImagesResponseLinks = exports.ContainerImagesResponse = exports.ContainerImageMetaPage = exports.ContainerImageMeta = exports.ContainerImageGroupRelationshipsLinks = exports.ContainerImageGroupRelationships = exports.ContainerImageGroupImagesRelationshipsLink = exports.ContainerImageGroupAttributes = exports.ContainerImageGroup = exports.ContainerImageFlavor = exports.ContainerImageAttributes = exports.ContainerImage = exports.ContainerGroupRelationshipsLinks = exports.ContainerGroupRelationshipsLink = exports.ContainerGroupRelationships = exports.ContainerGroupAttributes = exports.ContainerGroup = exports.ContainerAttributes = exports.Container = exports.ConfluentResourcesResponse = exports.ConfluentResourceResponseData = exports.ConfluentResourceResponseAttributes = exports.ConfluentResourceResponse = exports.ConfluentResourceRequestData = exports.ConfluentResourceRequestAttributes = exports.ConfluentResourceRequest = exports.ConfluentAccountUpdateRequestData = exports.ConfluentAccountUpdateRequestAttributes = void 0; +exports.DashboardListAddItemsResponse = exports.DashboardListAddItemsRequest = exports.CustomDestinationUpdateRequestDefinition = exports.CustomDestinationUpdateRequestAttributes = exports.CustomDestinationUpdateRequest = exports.CustomDestinationsResponse = exports.CustomDestinationResponseHttpDestinationAuthCustomHeader = exports.CustomDestinationResponseHttpDestinationAuthBasic = exports.CustomDestinationResponseForwardDestinationSplunk = exports.CustomDestinationResponseForwardDestinationHttp = exports.CustomDestinationResponseForwardDestinationElasticsearch = exports.CustomDestinationResponseDefinition = exports.CustomDestinationResponseAttributes = exports.CustomDestinationResponse = exports.CustomDestinationHttpDestinationAuthCustomHeader = exports.CustomDestinationHttpDestinationAuthBasic = exports.CustomDestinationForwardDestinationSplunk = exports.CustomDestinationForwardDestinationHttp = exports.CustomDestinationForwardDestinationElasticsearch = exports.CustomDestinationElasticsearchDestinationAuth = exports.CustomDestinationCreateRequestDefinition = exports.CustomDestinationCreateRequestAttributes = exports.CustomDestinationCreateRequest = exports.CustomCostUploadResponseMeta = exports.CustomCostsUser = exports.CustomCostsFileUsageChargePeriod = exports.CustomCostsFileUploadResponse = exports.CustomCostsFileMetadataWithContentHighLevel = exports.CustomCostsFileMetadataWithContent = exports.CustomCostsFileMetadataHighLevel = exports.CustomCostsFileMetadata = exports.CustomCostsFileListResponse = exports.CustomCostsFileLineItem = exports.CustomCostsFileGetResponse = exports.CustomCostListResponseMeta = exports.CustomCostGetResponseMeta = exports.CustomConnectionAttributesOnPremRunner = exports.CustomConnectionAttributes = exports.CustomConnection = exports.CsmAgentsResponse = exports.CSMAgentsMetadata = exports.CsmAgentsAttributes = exports.CsmAgentData = exports.Creator = exports.CreateRuleResponseData = exports.CreateRuleResponse = exports.CreateRuleRequestData = exports.CreateRuleRequest = exports.CreateOpenAPIResponseData = exports.CreateOpenAPIResponseAttributes = void 0; +exports.DORAIncidentRequestAttributes = exports.DORAIncidentRequest = exports.DORAGitInfo = exports.DORADeploymentResponseData = exports.DORADeploymentResponse = exports.DORADeploymentRequestData = exports.DORADeploymentRequestAttributes = exports.DORADeploymentRequest = exports.DomainAllowlistResponseDataAttributes = exports.DomainAllowlistResponseData = exports.DomainAllowlistResponse = exports.DomainAllowlistRequest = exports.DomainAllowlistAttributes = exports.DomainAllowlist = exports.DisableAppResponseDataAttributes = exports.DisableAppResponseData = exports.DisableAppResponse = exports.DevicesListData = exports.DeviceAttributesInterfaceStatuses = exports.DeviceAttributes = exports.DetailedFindingAttributes = exports.DetailedFinding = exports.DeploymentRelationshipMeta = exports.DeploymentRelationshipData = exports.DeploymentRelationship = exports.DeploymentMeta = exports.DeploymentIncludedMeta = exports.DeploymentIncludedAttributes = exports.DeploymentIncluded = exports.DeployAppResponseDataAttributes = exports.DeployAppResponseData = exports.DeployAppResponse = exports.DeleteAppsResponseDataItems = exports.DeleteAppsResponse = exports.DeleteAppsRequestDataItems = exports.DeleteAppsRequest = exports.DeleteAppResponseData = exports.DeleteAppResponse = exports.DataScalarColumn = exports.DataDeletionResponseMeta = exports.DataDeletionResponseItemAttributes = exports.DataDeletionResponseItem = exports.DashboardListUpdateItemsResponse = exports.DashboardListUpdateItemsRequest = exports.DashboardListItems = exports.DashboardListItemResponse = exports.DashboardListItemRequest = exports.DashboardListItem = exports.DashboardListDeleteItemsResponse = exports.DashboardListDeleteItemsRequest = void 0; +exports.EntityToOncalls = exports.EntityToIncidents = exports.EntityResponseMeta = exports.EntityResponseIncludedSchemaAttributes = exports.EntityResponseIncludedSchema = exports.EntityResponseIncludedRelatedOncallEscalationItem = exports.EntityResponseIncludedRelatedOncallAttributes = exports.EntityResponseIncludedRelatedIncidentAttributes = exports.EntityResponseIncludedRelatedEntityMeta = exports.EntityResponseIncludedRelatedEntityAttributes = exports.EntityResponseIncludedRelatedEntity = exports.EntityResponseIncludedRawSchemaAttributes = exports.EntityResponseIncludedRawSchema = exports.EntityResponseIncludedOncall = exports.EntityResponseIncludedIncident = exports.EntityRelationships = exports.EntityMeta = exports.EntityData = exports.EntityAttributes = exports.DowntimeUpdateRequestData = exports.DowntimeUpdateRequestAttributes = exports.DowntimeUpdateRequest = exports.DowntimeScheduleRecurrencesUpdateRequest = exports.DowntimeScheduleRecurrencesResponse = exports.DowntimeScheduleRecurrencesCreateRequest = exports.DowntimeScheduleRecurrenceResponse = exports.DowntimeScheduleRecurrenceCreateUpdateRequest = exports.DowntimeScheduleOneTimeResponse = exports.DowntimeScheduleOneTimeCreateUpdateRequest = exports.DowntimeScheduleCurrentDowntimeResponse = exports.DowntimeResponseData = exports.DowntimeResponseAttributes = exports.DowntimeResponse = exports.DowntimeRelationshipsMonitorData = exports.DowntimeRelationshipsMonitor = exports.DowntimeRelationshipsCreatedByData = exports.DowntimeRelationshipsCreatedBy = exports.DowntimeRelationships = exports.DowntimeMonitorIncludedItem = exports.DowntimeMonitorIncludedAttributes = exports.DowntimeMonitorIdentifierTags = exports.DowntimeMonitorIdentifierId = exports.DowntimeMetaPage = exports.DowntimeMeta = exports.DowntimeCreateRequestData = exports.DowntimeCreateRequestAttributes = exports.DowntimeCreateRequest = exports.DORAIncidentResponseData = exports.DORAIncidentResponse = exports.DORAIncidentRequestData = void 0; +exports.EventsResponseMetadata = exports.EventsRequestPage = exports.EventsQueryOptions = exports.EventsQueryFilter = exports.EventsListResponseLinks = exports.EventsListResponse = exports.EventsListRequest = exports.EventsGroupBySort = exports.EventsGroupBy = exports.EventsCompute = exports.EventResponseAttributes = exports.EventResponse = exports.EventPayload = exports.EventCreateResponsePayload = exports.EventCreateResponseAttributesAttributesEvt = exports.EventCreateResponseAttributesAttributes = exports.EventCreateResponseAttributes = exports.EventCreateResponse = exports.EventCreateRequestPayload = exports.EventCreateRequest = exports.EventAttributes = exports.Event = exports.EntityV3SystemSpec = exports.EntityV3SystemDatadog = exports.EntityV3System = exports.EntityV3ServiceSpec = exports.EntityV3ServiceDatadog = exports.EntityV3Service = exports.EntityV3QueueSpec = exports.EntityV3QueueDatadog = exports.EntityV3Queue = exports.EntityV3MetadataOwner = exports.EntityV3MetadataLinksItems = exports.EntityV3MetadataContactsItems = exports.EntityV3MetadataAdditionalOwnersItems = exports.EntityV3Metadata = exports.EntityV3Integrations = exports.EntityV3DatastoreSpec = exports.EntityV3DatastoreDatadog = exports.EntityV3Datastore = exports.EntityV3DatadogPipelines = exports.EntityV3DatadogPerformance = exports.EntityV3DatadogLogItem = exports.EntityV3DatadogIntegrationPagerduty = exports.EntityV3DatadogIntegrationOpsgenie = exports.EntityV3DatadogEventItem = exports.EntityV3DatadogCodeLocationItem = exports.EntityToSchema = exports.EntityToRelatedEntities = exports.EntityToRawSchema = void 0; +exports.GetDeviceData = exports.GetDeviceAttributes = exports.GetDataDeletionsResponseBody = exports.GetAppResponseRelationship = exports.GetAppResponseDataAttributes = exports.GetAppResponseData = exports.GetAppResponse = exports.GCPSTSServiceAccountUpdateRequestData = exports.GCPSTSServiceAccountUpdateRequest = exports.GCPSTSServiceAccountsResponse = exports.GCPSTSServiceAccountResponse = exports.GCPSTSServiceAccountData = exports.GCPSTSServiceAccountCreateRequest = exports.GCPSTSServiceAccountAttributes = exports.GCPSTSServiceAccount = exports.GCPSTSDelegateAccountResponse = exports.GCPSTSDelegateAccountAttributes = exports.GCPSTSDelegateAccount = exports.GCPServiceAccountMeta = exports.GCPMetricNamespaceConfig = exports.FullApplicationKeyAttributes = exports.FullApplicationKey = exports.FullAPIKeyAttributes = exports.FullAPIKey = exports.FormulaLimit = exports.FindingRule = exports.FindingMute = exports.FindingAttributes = exports.Finding = exports.FastlyServicesResponse = exports.FastlyServiceResponse = exports.FastlyServiceRequest = exports.FastlyServiceData = exports.FastlyServiceAttributes = exports.FastlyService = exports.FastlyAccountUpdateRequestData = exports.FastlyAccountUpdateRequestAttributes = exports.FastlyAccountUpdateRequest = exports.FastlyAccountsResponse = exports.FastlyAccountResponseData = exports.FastlyAccountResponse = exports.FastlyAccountCreateRequestData = exports.FastlyAccountCreateRequestAttributes = exports.FastlyAccountCreateRequest = exports.FastlyAccounResponseAttributes = exports.EventsWarning = exports.EventsTimeseriesQuery = exports.EventsSearch = exports.EventsScalarQuery = exports.EventsResponseMetadataPage = void 0; +exports.IncidentResponseAttributes = exports.IncidentResponse = exports.IncidentNotificationHandle = exports.IncidentNonDatadogCreator = exports.IncidentIntegrationRelationships = exports.IncidentIntegrationMetadataResponseData = exports.IncidentIntegrationMetadataResponse = exports.IncidentIntegrationMetadataPatchRequest = exports.IncidentIntegrationMetadataPatchData = exports.IncidentIntegrationMetadataListResponse = exports.IncidentIntegrationMetadataCreateRequest = exports.IncidentIntegrationMetadataCreateData = exports.IncidentIntegrationMetadataAttributes = exports.IncidentFieldAttributesSingleValue = exports.IncidentFieldAttributesMultipleValue = exports.IncidentCreateRequest = exports.IncidentCreateRelationships = exports.IncidentCreateData = exports.IncidentCreateAttributes = exports.IncidentAttachmentUpdateResponse = exports.IncidentAttachmentUpdateRequest = exports.IncidentAttachmentUpdateData = exports.IncidentAttachmentsResponse = exports.IncidentAttachmentsPostmortemAttributesAttachmentObject = exports.IncidentAttachmentRelationships = exports.IncidentAttachmentPostmortemAttributes = exports.IncidentAttachmentLinkAttributesAttachmentObject = exports.IncidentAttachmentLinkAttributes = exports.IncidentAttachmentData = exports.IdPMetadataFormData = exports.HTTPLogItem = exports.HTTPLogErrors = exports.HTTPLogError = exports.HTTPCIAppErrors = exports.HTTPCIAppError = exports.HourlyUsageResponse = exports.HourlyUsagePagination = exports.HourlyUsageMetadata = exports.HourlyUsageMeasurement = exports.HourlyUsageAttributes = exports.HourlyUsage = exports.HistoricalJobResponseData = exports.HistoricalJobResponseAttributes = exports.HistoricalJobResponse = exports.HistoricalJobListMeta = exports.GroupScalarColumn = exports.GetInterfacesResponse = exports.GetInterfacesData = exports.GetFindingResponse = exports.GetDeviceResponse = void 0; +exports.IncidentTodoResponseData = exports.IncidentTodoResponse = exports.IncidentTodoRelationships = exports.IncidentTodoPatchRequest = exports.IncidentTodoPatchData = exports.IncidentTodoListResponse = exports.IncidentTodoCreateRequest = exports.IncidentTodoCreateData = exports.IncidentTodoAttributes = exports.IncidentTodoAnonymousAssignee = exports.IncidentTimelineCellMarkdownCreateAttributesContent = exports.IncidentTimelineCellMarkdownCreateAttributes = exports.IncidentTeamUpdateRequest = exports.IncidentTeamUpdateData = exports.IncidentTeamUpdateAttributes = exports.IncidentTeamsResponse = exports.IncidentTeamResponseData = exports.IncidentTeamResponseAttributes = exports.IncidentTeamResponse = exports.IncidentTeamRelationships = exports.IncidentTeamCreateRequest = exports.IncidentTeamCreateData = exports.IncidentTeamCreateAttributes = exports.IncidentsResponse = exports.IncidentServiceUpdateRequest = exports.IncidentServiceUpdateData = exports.IncidentServiceUpdateAttributes = exports.IncidentServicesResponse = exports.IncidentServiceResponseData = exports.IncidentServiceResponseAttributes = exports.IncidentServiceResponse = exports.IncidentServiceRelationships = exports.IncidentServiceCreateRequest = exports.IncidentServiceCreateData = exports.IncidentServiceCreateAttributes = exports.IncidentSearchResponseUserFacetData = exports.IncidentSearchResponsePropertyFieldFacetData = exports.IncidentSearchResponseNumericFacetDataAggregates = exports.IncidentSearchResponseNumericFacetData = exports.IncidentSearchResponseMeta = exports.IncidentSearchResponseIncidentsData = exports.IncidentSearchResponseFieldFacetData = exports.IncidentSearchResponseFacetsData = exports.IncidentSearchResponseData = exports.IncidentSearchResponseAttributes = exports.IncidentSearchResponse = exports.IncidentResponseRelationships = exports.IncidentResponseMetaPagination = exports.IncidentResponseMeta = exports.IncidentResponseData = void 0; +exports.ListAppsResponseDataItems = exports.ListAppsResponse = exports.ListApplicationKeysResponse = exports.ListAPIsResponseMetaPagination = exports.ListAPIsResponseMeta = exports.ListAPIsResponseDataAttributes = exports.ListAPIsResponseData = exports.ListAPIsResponse = exports.LeakedKeyAttributes = exports.LeakedKey = exports.JSONAPIErrorResponse = exports.JSONAPIErrorItem = exports.JobDefinitionFromRule = exports.JobDefinition = exports.JobCreateResponseData = exports.JobCreateResponse = exports.JiraIssueResult = exports.JiraIssue = exports.JiraIntegrationMetadataIssuesItem = exports.JiraIntegrationMetadata = exports.IPAllowlistUpdateRequest = exports.IPAllowlistResponse = exports.IPAllowlistEntryData = exports.IPAllowlistEntryAttributes = exports.IPAllowlistEntry = exports.IPAllowlistData = exports.IPAllowlistAttributes = exports.InterfaceAttributes = exports.IntakePayloadAccepted = exports.InputSchemaDataAttributesParametersItemsDataAttributes = exports.InputSchemaDataAttributesParametersItemsData = exports.InputSchemaDataAttributesParametersItems = exports.InputSchemaDataAttributes = exports.InputSchemaData = exports.InputSchema = exports.IncidentUserData = exports.IncidentUserAttributes = exports.IncidentUpdateRequest = exports.IncidentUpdateRelationships = exports.IncidentUpdateData = exports.IncidentUpdateAttributes = exports.IncidentTypeUpdateAttributes = exports.IncidentTypeResponse = exports.IncidentTypePatchRequest = exports.IncidentTypePatchData = exports.IncidentTypeObject = exports.IncidentTypeListResponse = exports.IncidentTypeCreateRequest = exports.IncidentTypeCreateData = exports.IncidentTypeAttributes = void 0; +exports.LogsListRequest = exports.LogsGroupByHistogram = exports.LogsGroupBy = exports.LogsCompute = exports.LogsArchives = exports.LogsArchiveOrderDefinition = exports.LogsArchiveOrderAttributes = exports.LogsArchiveOrder = exports.LogsArchiveIntegrationS3 = exports.LogsArchiveIntegrationGCS = exports.LogsArchiveIntegrationAzure = exports.LogsArchiveDestinationS3 = exports.LogsArchiveDestinationGCS = exports.LogsArchiveDestinationAzure = exports.LogsArchiveDefinition = exports.LogsArchiveCreateRequestDefinition = exports.LogsArchiveCreateRequestAttributes = exports.LogsArchiveCreateRequest = exports.LogsArchiveAttributes = exports.LogsArchive = exports.LogsAggregateSort = exports.LogsAggregateResponseData = exports.LogsAggregateResponse = exports.LogsAggregateRequestPage = exports.LogsAggregateRequest = exports.LogsAggregateBucketValueTimeseriesPoint = exports.LogsAggregateBucket = exports.LogAttributes = exports.Log = exports.ListTagsResponseDataAttributes = exports.ListTagsResponseData = exports.ListTagsResponse = exports.ListRulesResponseLinks = exports.ListRulesResponseDataItem = exports.ListRulesResponse = exports.ListPowerpacksResponse = exports.ListHistoricalJobsResponse = exports.ListFindingsResponse = exports.ListFindingsPage = exports.ListFindingsMeta = exports.ListEntityCatalogResponseLinks = exports.ListEntityCatalogResponse = exports.ListDowntimesResponse = exports.ListDevicesResponseMetadataPage = exports.ListDevicesResponseMetadata = exports.ListDevicesResponse = exports.ListAppsResponseMetaPage = exports.ListAppsResponseMeta = exports.ListAppsResponseDataItemsRelationships = exports.ListAppsResponseDataItemsAttributes = void 0; +exports.MetricBulkTagConfigStatusAttributes = exports.MetricBulkTagConfigStatus = exports.MetricBulkTagConfigResponse = exports.MetricBulkTagConfigDeleteRequest = exports.MetricBulkTagConfigDeleteAttributes = exports.MetricBulkTagConfigDelete = exports.MetricBulkTagConfigCreateRequest = exports.MetricBulkTagConfigCreateAttributes = exports.MetricBulkTagConfigCreate = exports.MetricAssetsResponse = exports.MetricAssetSLORelationships = exports.MetricAssetSLORelationship = exports.MetricAssetResponseRelationships = exports.MetricAssetResponseData = exports.MetricAssetNotebookRelationships = exports.MetricAssetNotebookRelationship = exports.MetricAssetMonitorRelationships = exports.MetricAssetMonitorRelationship = exports.MetricAssetDashboardRelationships = exports.MetricAssetDashboardRelationship = exports.MetricAssetAttributes = exports.MetricAllTagsResponse = exports.MetricAllTagsAttributes = exports.MetricAllTags = exports.Metric = exports.LogsWarning = exports.LogsResponseMetadataPage = exports.LogsResponseMetadata = exports.LogsQueryOptions = exports.LogsQueryFilter = exports.LogsMetricUpdateRequest = exports.LogsMetricUpdateData = exports.LogsMetricUpdateCompute = exports.LogsMetricUpdateAttributes = exports.LogsMetricsResponse = exports.LogsMetricResponseGroupBy = exports.LogsMetricResponseFilter = exports.LogsMetricResponseData = exports.LogsMetricResponseCompute = exports.LogsMetricResponseAttributes = exports.LogsMetricResponse = exports.LogsMetricGroupBy = exports.LogsMetricFilter = exports.LogsMetricCreateRequest = exports.LogsMetricCreateData = exports.LogsMetricCreateAttributes = exports.LogsMetricCompute = exports.LogsListResponseLinks = exports.LogsListResponse = exports.LogsListRequestPage = void 0; +exports.MicrosoftTeamsTenantBasedHandlesResponse = exports.MicrosoftTeamsTenantBasedHandleResponseData = exports.MicrosoftTeamsTenantBasedHandleResponse = exports.MicrosoftTeamsTenantBasedHandleRequestData = exports.MicrosoftTeamsTenantBasedHandleRequestAttributes = exports.MicrosoftTeamsTenantBasedHandleInfoResponseData = exports.MicrosoftTeamsTenantBasedHandleInfoResponseAttributes = exports.MicrosoftTeamsTenantBasedHandleAttributes = exports.MicrosoftTeamsGetChannelByNameResponse = exports.MicrosoftTeamsCreateTenantBasedHandleRequest = exports.MicrosoftTeamsChannelInfoResponseData = exports.MicrosoftTeamsChannelInfoResponseAttributes = exports.MetricVolumesResponse = exports.MetricTagConfigurationUpdateRequest = exports.MetricTagConfigurationUpdateData = exports.MetricTagConfigurationUpdateAttributes = exports.MetricTagConfigurationResponse = exports.MetricTagConfigurationCreateRequest = exports.MetricTagConfigurationCreateData = exports.MetricTagConfigurationCreateAttributes = exports.MetricTagConfigurationAttributes = exports.MetricTagConfiguration = exports.MetricSuggestedTagsAttributes = exports.MetricSuggestedTagsAndAggregationsResponse = exports.MetricSuggestedTagsAndAggregations = exports.MetricsTimeseriesQuery = exports.MetricsScalarQuery = exports.MetricSLOAsset = exports.MetricsListResponseLinks = exports.MetricSeries = exports.MetricsAndMetricTagConfigurationsResponse = exports.MetricResource = exports.MetricPoint = exports.MetricPayload = exports.MetricPaginationMeta = exports.MetricOrigin = exports.MetricNotebookAsset = exports.MetricMonitorAsset = exports.MetricMetaPage = exports.MetricMetadata = exports.MetricIngestedIndexedVolumeAttributes = exports.MetricIngestedIndexedVolume = exports.MetricEstimateResponse = exports.MetricEstimateAttributes = exports.MetricEstimate = exports.MetricDistinctVolumeAttributes = exports.MetricDistinctVolume = exports.MetricDashboardAttributes = exports.MetricDashboardAsset = exports.MetricCustomAggregation = void 0; +exports.OpsgenieServicesResponse = exports.OpsgenieServiceResponseData = exports.OpsgenieServiceResponseAttributes = exports.OpsgenieServiceResponse = exports.OpsgenieServiceCreateRequest = exports.OpsgenieServiceCreateData = exports.OpsgenieServiceCreateAttributes = exports.OpenAPIFile = exports.OpenAPIEndpoint = exports.OnDemandConcurrencyCapResponse = exports.OnDemandConcurrencyCapAttributes = exports.OnDemandConcurrencyCap = exports.OktaAccountUpdateRequestData = exports.OktaAccountUpdateRequestAttributes = exports.OktaAccountUpdateRequest = exports.OktaAccountsResponse = exports.OktaAccountResponseData = exports.OktaAccountResponse = exports.OktaAccountRequest = exports.OktaAccountAttributes = exports.OktaAccount = exports.NullableUserRelationshipData = exports.NullableUserRelationship = exports.NullableRelationshipToUserData = exports.NullableRelationshipToUser = exports.MSTeamsIntegrationMetadataTeamsItem = exports.MSTeamsIntegrationMetadata = exports.MonthlyCostAttributionResponse = exports.MonthlyCostAttributionPagination = exports.MonthlyCostAttributionMeta = exports.MonthlyCostAttributionBody = exports.MonthlyCostAttributionAttributes = exports.MonitorType = exports.MonitorDowntimeMatchResponseData = exports.MonitorDowntimeMatchResponseAttributes = exports.MonitorDowntimeMatchResponse = exports.MonitorConfigPolicyTagPolicyCreateRequest = exports.MonitorConfigPolicyTagPolicy = exports.MonitorConfigPolicyResponseData = exports.MonitorConfigPolicyResponse = exports.MonitorConfigPolicyListResponse = exports.MonitorConfigPolicyEditRequest = exports.MonitorConfigPolicyEditData = exports.MonitorConfigPolicyCreateRequest = exports.MonitorConfigPolicyCreateData = exports.MonitorConfigPolicyAttributeResponse = exports.MonitorConfigPolicyAttributeEditRequest = exports.MonitorConfigPolicyAttributeCreateRequest = exports.MicrosoftTeamsUpdateTenantBasedHandleRequestData = exports.MicrosoftTeamsUpdateTenantBasedHandleRequest = void 0; +exports.ProcessSummariesResponse = exports.ProcessSummariesMetaPage = exports.ProcessSummariesMeta = exports.PowerpackTemplateVariable = exports.PowerpacksResponseMetaPagination = exports.PowerpacksResponseMeta = exports.PowerpackResponseLinks = exports.PowerpackResponse = exports.PowerpackRelationships = exports.PowerpackInnerWidgets = exports.PowerpackInnerWidgetLayout = exports.PowerpackGroupWidgetLayout = exports.PowerpackGroupWidgetDefinition = exports.PowerpackGroupWidget = exports.PowerpackData = exports.PowerpackAttributes = exports.Powerpack = exports.PermissionsResponse = exports.PermissionAttributes = exports.Permission = exports.PartialApplicationKeyResponse = exports.PartialApplicationKeyAttributes = exports.PartialApplicationKey = exports.PartialAPIKeyAttributes = exports.PartialAPIKey = exports.Pagination = exports.OutcomesResponseLinks = exports.OutcomesResponseIncludedRuleAttributes = exports.OutcomesResponseIncludedItem = exports.OutcomesResponseDataItem = exports.OutcomesResponse = exports.OutcomesBatchResponseMeta = exports.OutcomesBatchResponseAttributes = exports.OutcomesBatchResponse = exports.OutcomesBatchRequestItem = exports.OutcomesBatchRequestData = exports.OutcomesBatchRequest = exports.OutcomesBatchAttributes = exports.OrgConfigWriteRequest = exports.OrgConfigWriteAttributes = exports.OrgConfigWrite = exports.OrgConfigReadAttributes = exports.OrgConfigRead = exports.OrgConfigListResponse = exports.OrgConfigGetResponse = exports.OrganizationAttributes = exports.Organization = exports.OpsgenieServiceUpdateRequest = exports.OpsgenieServiceUpdateData = exports.OpsgenieServiceUpdateAttributes = void 0; +exports.RelationshipToTeamLinks = exports.RelationshipToTeamLinkData = exports.RelationshipToTeamData = exports.RelationshipToTeam = exports.RelationshipToSAMLAssertionAttributeData = exports.RelationshipToSAMLAssertionAttribute = exports.RelationshipToRuleDataObject = exports.RelationshipToRuleData = exports.RelationshipToRule = exports.RelationshipToRoles = exports.RelationshipToRoleData = exports.RelationshipToRole = exports.RelationshipToPermissions = exports.RelationshipToPermissionData = exports.RelationshipToPermission = exports.RelationshipToOutcomeData = exports.RelationshipToOutcome = exports.RelationshipToOrganizations = exports.RelationshipToOrganizationData = exports.RelationshipToOrganization = exports.RelationshipToIncidentUserDefinedFields = exports.RelationshipToIncidentUserDefinedFieldData = exports.RelationshipToIncidentResponders = exports.RelationshipToIncidentResponderData = exports.RelationshipToIncidentPostmortemData = exports.RelationshipToIncidentPostmortem = exports.RelationshipToIncidentIntegrationMetadatas = exports.RelationshipToIncidentIntegrationMetadataData = exports.RelationshipToIncidentImpacts = exports.RelationshipToIncidentImpactData = exports.RelationshipToIncidentAttachmentData = exports.RelationshipToIncidentAttachment = exports.RelationshipItem = exports.QueryFormula = exports.Query = exports.ProjectsResponse = exports.ProjectResponse = exports.ProjectRelationships = exports.ProjectRelationshipData = exports.ProjectRelationship = exports.ProjectedCostResponse = exports.ProjectedCostAttributes = exports.ProjectedCost = exports.ProjectCreateRequest = exports.ProjectCreateAttributes = exports.ProjectCreate = exports.ProjectAttributes = exports.Project = exports.ProcessSummaryAttributes = exports.ProcessSummary = void 0; +exports.RuleAttributes = exports.RoleUpdateResponseData = exports.RoleUpdateResponse = exports.RoleUpdateRequest = exports.RoleUpdateData = exports.RoleUpdateAttributes = exports.RolesResponse = exports.RoleResponseRelationships = exports.RoleResponse = exports.RoleRelationships = exports.RoleCreateResponseData = exports.RoleCreateResponse = exports.RoleCreateRequest = exports.RoleCreateData = exports.RoleCreateAttributes = exports.RoleCloneRequest = exports.RoleCloneAttributes = exports.RoleClone = exports.RoleAttributes = exports.Role = exports.RetentionFilterWithoutAttributes = exports.RetentionFilterUpdateRequest = exports.RetentionFilterUpdateData = exports.RetentionFilterUpdateAttributes = exports.RetentionFiltersResponse = exports.RetentionFilterResponse = exports.RetentionFilterCreateResponse = exports.RetentionFilterCreateRequest = exports.RetentionFilterCreateData = exports.RetentionFilterCreateAttributes = exports.RetentionFilterAttributes = exports.RetentionFilterAllAttributes = exports.RetentionFilterAll = exports.RetentionFilter = exports.RestrictionPolicyUpdateRequest = exports.RestrictionPolicyResponse = exports.RestrictionPolicyBinding = exports.RestrictionPolicyAttributes = exports.RestrictionPolicy = exports.ResponseMetaAttributes = exports.ReorderRetentionFiltersRequest = exports.RelationshipToUserTeamUserData = exports.RelationshipToUserTeamUser = exports.RelationshipToUserTeamTeamData = exports.RelationshipToUserTeamTeam = exports.RelationshipToUserTeamPermissionData = exports.RelationshipToUserTeamPermission = exports.RelationshipToUsers = exports.RelationshipToUserData = exports.RelationshipToUser = void 0; +exports.RUMResponsePage = exports.RUMResponseMetadata = exports.RUMResponseLinks = exports.RUMQueryPageOptions = exports.RUMQueryOptions = exports.RUMQueryFilter = exports.RumMetricUpdateRequest = exports.RumMetricUpdateData = exports.RumMetricUpdateCompute = exports.RumMetricUpdateAttributes = exports.RumMetricUniqueness = exports.RumMetricsResponse = exports.RumMetricResponseUniqueness = exports.RumMetricResponseGroupBy = exports.RumMetricResponseFilter = exports.RumMetricResponseData = exports.RumMetricResponseCompute = exports.RumMetricResponseAttributes = exports.RumMetricResponse = exports.RumMetricGroupBy = exports.RumMetricFilter = exports.RumMetricCreateRequest = exports.RumMetricCreateData = exports.RumMetricCreateAttributes = exports.RumMetricCompute = exports.RUMGroupByHistogram = exports.RUMGroupBy = exports.RUMEventsResponse = exports.RUMEventAttributes = exports.RUMEvent = exports.RUMCompute = exports.RUMBucketResponse = exports.RUMApplicationUpdateRequest = exports.RUMApplicationUpdateAttributes = exports.RUMApplicationUpdate = exports.RUMApplicationsResponse = exports.RUMApplicationResponse = exports.RUMApplicationListAttributes = exports.RUMApplicationList = exports.RUMApplicationCreateRequest = exports.RUMApplicationCreateAttributes = exports.RUMApplicationCreate = exports.RUMApplicationAttributes = exports.RUMApplication = exports.RUMAnalyticsAggregateResponse = exports.RUMAggregationBucketsResponse = exports.RUMAggregateSort = exports.RUMAggregateRequest = exports.RUMAggregateBucketValueTimeseriesPoint = exports.RuleOutcomeRelationships = void 0; +exports.SecurityMonitoringSignalAttributes = exports.SecurityMonitoringSignalAssigneeUpdateRequest = exports.SecurityMonitoringSignalAssigneeUpdateData = exports.SecurityMonitoringSignalAssigneeUpdateAttributes = exports.SecurityMonitoringSignal = exports.SecurityMonitoringRuleUpdatePayload = exports.SecurityMonitoringRuleThirdPartyOptions = exports.SecurityMonitoringRuleTestResponse = exports.SecurityMonitoringRuleTestRequest = exports.SecurityMonitoringRuleQueryPayloadData = exports.SecurityMonitoringRuleQueryPayload = exports.SecurityMonitoringRuleOptions = exports.SecurityMonitoringRuleNewValueOptions = exports.SecurityMonitoringRuleImpossibleTravelOptions = exports.SecurityMonitoringRuleConvertResponse = exports.SecurityMonitoringRuleCaseCreate = exports.SecurityMonitoringRuleCase = exports.SecurityMonitoringReferenceTable = exports.SecurityMonitoringListRulesResponse = exports.SecurityMonitoringFilter = exports.SecurityFilterUpdateRequest = exports.SecurityFilterUpdateData = exports.SecurityFilterUpdateAttributes = exports.SecurityFiltersResponse = exports.SecurityFilterResponse = exports.SecurityFilterMeta = exports.SecurityFilterExclusionFilterResponse = exports.SecurityFilterExclusionFilter = exports.SecurityFilterCreateRequest = exports.SecurityFilterCreateData = exports.SecurityFilterCreateAttributes = exports.SecurityFilterAttributes = exports.SecurityFilter = exports.ScriptDataAttributes = exports.ScriptData = exports.Script = exports.ScalarResponse = exports.ScalarMeta = exports.ScalarFormulaResponseAtrributes = exports.ScalarFormulaRequestAttributes = exports.ScalarFormulaRequest = exports.ScalarFormulaQueryResponse = exports.ScalarFormulaQueryRequest = exports.SAMLAssertionAttributeAttributes = exports.SAMLAssertionAttribute = exports.RunHistoricalJobRequestData = exports.RunHistoricalJobRequestAttributes = exports.RunHistoricalJobRequest = exports.RUMWarning = exports.RUMSearchEventsRequest = void 0; +exports.SensitiveDataScannerGetConfigResponse = exports.SensitiveDataScannerFilter = exports.SensitiveDataScannerCreateRuleResponse = exports.SensitiveDataScannerCreateGroupResponse = exports.SensitiveDataScannerConfigurationRelationships = exports.SensitiveDataScannerConfigurationData = exports.SensitiveDataScannerConfiguration = exports.SensitiveDataScannerConfigRequest = exports.SecurityMonitoringUser = exports.SecurityMonitoringTriageUser = exports.SecurityMonitoringThirdPartyRuleCaseCreate = exports.SecurityMonitoringThirdPartyRuleCase = exports.SecurityMonitoringThirdPartyRootQuery = exports.SecurityMonitoringSuppressionUpdateRequest = exports.SecurityMonitoringSuppressionUpdateData = exports.SecurityMonitoringSuppressionUpdateAttributes = exports.SecurityMonitoringSuppressionsResponse = exports.SecurityMonitoringSuppressionResponse = exports.SecurityMonitoringSuppressionCreateRequest = exports.SecurityMonitoringSuppressionCreateData = exports.SecurityMonitoringSuppressionCreateAttributes = exports.SecurityMonitoringSuppressionAttributes = exports.SecurityMonitoringSuppression = exports.SecurityMonitoringStandardRuleTestPayload = exports.SecurityMonitoringStandardRuleResponse = exports.SecurityMonitoringStandardRuleQuery = exports.SecurityMonitoringStandardRulePayload = exports.SecurityMonitoringStandardRuleCreatePayload = exports.SecurityMonitoringSignalTriageUpdateResponse = exports.SecurityMonitoringSignalTriageUpdateData = exports.SecurityMonitoringSignalTriageAttributes = exports.SecurityMonitoringSignalStateUpdateRequest = exports.SecurityMonitoringSignalStateUpdateData = exports.SecurityMonitoringSignalStateUpdateAttributes = exports.SecurityMonitoringSignalsListResponseMetaPage = exports.SecurityMonitoringSignalsListResponseMeta = exports.SecurityMonitoringSignalsListResponseLinks = exports.SecurityMonitoringSignalsListResponse = exports.SecurityMonitoringSignalRuleResponseQuery = exports.SecurityMonitoringSignalRuleResponse = exports.SecurityMonitoringSignalRuleQuery = exports.SecurityMonitoringSignalRulePayload = exports.SecurityMonitoringSignalRuleCreatePayload = exports.SecurityMonitoringSignalResponse = exports.SecurityMonitoringSignalListRequestPage = exports.SecurityMonitoringSignalListRequestFilter = exports.SecurityMonitoringSignalListRequest = exports.SecurityMonitoringSignalIncidentsUpdateRequest = exports.SecurityMonitoringSignalIncidentsUpdateData = exports.SecurityMonitoringSignalIncidentsUpdateAttributes = void 0; +exports.ServiceDefinitionsListResponse = exports.ServiceDefinitionMetaWarnings = exports.ServiceDefinitionMeta = exports.ServiceDefinitionGetResponse = exports.ServiceDefinitionDataAttributes = exports.ServiceDefinitionData = exports.ServiceDefinitionCreateResponse = exports.ServiceAccountCreateRequest = exports.ServiceAccountCreateData = exports.ServiceAccountCreateAttributes = exports.SensitiveDataScannerTextReplacement = exports.SensitiveDataScannerStandardPatternsResponseItem = exports.SensitiveDataScannerStandardPatternsResponseData = exports.SensitiveDataScannerStandardPatternData = exports.SensitiveDataScannerStandardPatternAttributes = exports.SensitiveDataScannerStandardPattern = exports.SensitiveDataScannerRuleUpdateResponse = exports.SensitiveDataScannerRuleUpdateRequest = exports.SensitiveDataScannerRuleUpdate = exports.SensitiveDataScannerRuleResponse = exports.SensitiveDataScannerRuleRelationships = exports.SensitiveDataScannerRuleIncludedItem = exports.SensitiveDataScannerRuleDeleteResponse = exports.SensitiveDataScannerRuleDeleteRequest = exports.SensitiveDataScannerRuleData = exports.SensitiveDataScannerRuleCreateRequest = exports.SensitiveDataScannerRuleCreate = exports.SensitiveDataScannerRuleAttributes = exports.SensitiveDataScannerRule = exports.SensitiveDataScannerReorderGroupsResponse = exports.SensitiveDataScannerReorderConfig = exports.SensitiveDataScannerMetaVersionOnly = exports.SensitiveDataScannerMeta = exports.SensitiveDataScannerIncludedKeywordConfiguration = exports.SensitiveDataScannerGroupUpdateResponse = exports.SensitiveDataScannerGroupUpdateRequest = exports.SensitiveDataScannerGroupUpdate = exports.SensitiveDataScannerGroupResponse = exports.SensitiveDataScannerGroupRelationships = exports.SensitiveDataScannerGroupList = exports.SensitiveDataScannerGroupItem = exports.SensitiveDataScannerGroupIncludedItem = exports.SensitiveDataScannerGroupDeleteResponse = exports.SensitiveDataScannerGroupDeleteRequest = exports.SensitiveDataScannerGroupData = exports.SensitiveDataScannerGroupCreateRequest = exports.SensitiveDataScannerGroupCreate = exports.SensitiveDataScannerGroupAttributes = exports.SensitiveDataScannerGroup = exports.SensitiveDataScannerGetConfigResponseData = void 0; +exports.SpansAggregateResponseMetadata = exports.SpansAggregateResponse = exports.SpansAggregateRequestAttributes = exports.SpansAggregateRequest = exports.SpansAggregateData = exports.SpansAggregateBucketValueTimeseriesPoint = exports.SpansAggregateBucketAttributes = exports.SpansAggregateBucket = exports.Span = exports.SLOReportStatusGetResponseData = exports.SLOReportStatusGetResponseAttributes = exports.SLOReportStatusGetResponse = exports.SLOReportPostResponseData = exports.SLOReportPostResponse = exports.SloReportCreateRequestData = exports.SloReportCreateRequestAttributes = exports.SloReportCreateRequest = exports.SlackIntegrationMetadataChannelItem = exports.SlackIntegrationMetadata = exports.ServiceNowTicketResult = exports.ServiceNowTicket = exports.ServiceDefinitionV2Slack = exports.ServiceDefinitionV2Repo = exports.ServiceDefinitionV2Opsgenie = exports.ServiceDefinitionV2MSTeams = exports.ServiceDefinitionV2Link = exports.ServiceDefinitionV2Integrations = exports.ServiceDefinitionV2Email = exports.ServiceDefinitionV2Dot2Pagerduty = exports.ServiceDefinitionV2Dot2Opsgenie = exports.ServiceDefinitionV2Dot2Link = exports.ServiceDefinitionV2Dot2Integrations = exports.ServiceDefinitionV2Dot2Contact = exports.ServiceDefinitionV2Dot2 = exports.ServiceDefinitionV2Dot1Slack = exports.ServiceDefinitionV2Dot1Pagerduty = exports.ServiceDefinitionV2Dot1Opsgenie = exports.ServiceDefinitionV2Dot1MSTeams = exports.ServiceDefinitionV2Dot1Link = exports.ServiceDefinitionV2Dot1Integrations = exports.ServiceDefinitionV2Dot1Email = exports.ServiceDefinitionV2Dot1 = exports.ServiceDefinitionV2Doc = exports.ServiceDefinitionV2 = exports.ServiceDefinitionV1Resource = exports.ServiceDefinitionV1Org = exports.ServiceDefinitionV1Integrations = exports.ServiceDefinitionV1Info = exports.ServiceDefinitionV1Contact = exports.ServiceDefinitionV1 = void 0; +exports.TeamPermissionSettingResponse = exports.TeamPermissionSettingAttributes = exports.TeamPermissionSetting = exports.TeamLinksResponse = exports.TeamLinkResponse = exports.TeamLinkCreateRequest = exports.TeamLinkCreate = exports.TeamLinkAttributes = exports.TeamLink = exports.TeamCreateRequest = exports.TeamCreateRelationships = exports.TeamCreateAttributes = exports.TeamCreate = exports.TeamAttributes = exports.Team = exports.SpansWarning = exports.SpansResponseMetadataPage = exports.SpansQueryOptions = exports.SpansQueryFilter = exports.SpansMetricUpdateRequest = exports.SpansMetricUpdateData = exports.SpansMetricUpdateCompute = exports.SpansMetricUpdateAttributes = exports.SpansMetricsResponse = exports.SpansMetricResponseGroupBy = exports.SpansMetricResponseFilter = exports.SpansMetricResponseData = exports.SpansMetricResponseCompute = exports.SpansMetricResponseAttributes = exports.SpansMetricResponse = exports.SpansMetricGroupBy = exports.SpansMetricFilter = exports.SpansMetricCreateRequest = exports.SpansMetricCreateData = exports.SpansMetricCreateAttributes = exports.SpansMetricCompute = exports.SpansListResponseMetadata = exports.SpansListResponseLinks = exports.SpansListResponse = exports.SpansListRequestPage = exports.SpansListRequestData = exports.SpansListRequestAttributes = exports.SpansListRequest = exports.SpansGroupByHistogram = exports.SpansGroupBy = exports.SpansFilterCreate = exports.SpansFilter = exports.SpansCompute = exports.SpansAttributes = exports.SpansAggregateSort = void 0; +exports.UserInvitationData = exports.UserCreateRequest = exports.UserCreateData = exports.UserCreateAttributes = exports.UserAttributes = exports.User = exports.UsageTimeSeriesObject = exports.UsageObservabilityPipelinesResponse = exports.UsageLambdaTracedInvocationsResponse = exports.UsageDataObject = exports.UsageAttributesObject = exports.UsageApplicationSecurityMonitoringResponse = exports.UpsertCatalogEntityResponse = exports.UpdateRuleResponseData = exports.UpdateRuleResponse = exports.UpdateRuleRequestData = exports.UpdateRuleRequest = exports.UpdateOpenAPIResponseData = exports.UpdateOpenAPIResponseAttributes = exports.UpdateOpenAPIResponse = exports.UpdateAppResponseRelationship = exports.UpdateAppResponseDataAttributes = exports.UpdateAppResponseData = exports.UpdateAppResponse = exports.UpdateAppRequestDataAttributes = exports.UpdateAppRequestData = exports.UpdateAppRequest = exports.Unit = exports.TimeseriesResponseSeries = exports.TimeseriesResponseAttributes = exports.TimeseriesResponse = exports.TimeseriesFormulaRequestAttributes = exports.TimeseriesFormulaRequest = exports.TimeseriesFormulaQueryResponse = exports.TimeseriesFormulaQueryRequest = exports.TeamUpdateRequest = exports.TeamUpdateRelationships = exports.TeamUpdateAttributes = exports.TeamUpdate = exports.TeamsResponseMetaPagination = exports.TeamsResponseMeta = exports.TeamsResponseLinks = exports.TeamsResponse = exports.TeamResponse = exports.TeamRelationshipsLinks = exports.TeamRelationships = exports.TeamPermissionSettingUpdateRequest = exports.TeamPermissionSettingUpdateAttributes = exports.TeamPermissionSettingUpdate = exports.TeamPermissionSettingsResponse = void 0; +exports.ObjectSerializer = exports.XRayServicesIncludeOnly = exports.XRayServicesIncludeAll = exports.WorklflowGetInstanceResponseDataAttributes = exports.WorklflowGetInstanceResponseData = exports.WorklflowGetInstanceResponse = exports.WorklflowCancelInstanceResponseData = exports.WorklflowCancelInstanceResponse = exports.WorkflowListInstancesResponseMetaPage = exports.WorkflowListInstancesResponseMeta = exports.WorkflowListInstancesResponse = exports.WorkflowInstanceListItem = exports.WorkflowInstanceCreateResponseData = exports.WorkflowInstanceCreateResponse = exports.WorkflowInstanceCreateRequest = exports.WorkflowInstanceCreateMeta = exports.UserUpdateRequest = exports.UserUpdateData = exports.UserUpdateAttributes = exports.UserTeamUpdateRequest = exports.UserTeamUpdate = exports.UserTeamsResponse = exports.UserTeamResponse = exports.UserTeamRequest = exports.UserTeamRelationships = exports.UserTeamPermissionAttributes = exports.UserTeamPermission = exports.UserTeamCreate = exports.UserTeamAttributes = exports.UserTeam = exports.UsersResponse = exports.UsersRelationship = exports.UserResponseRelationships = exports.UserResponse = exports.UserRelationships = exports.UserRelationshipData = exports.UserInvitationsResponse = exports.UserInvitationsRequest = exports.UserInvitationResponseData = exports.UserInvitationResponse = exports.UserInvitationRelationships = exports.UserInvitationDataAttributes = void 0; +var APIManagementApi_1 = __nccwpck_require__(75194); +Object.defineProperty(exports, "APIManagementApi", ({ enumerable: true, get: function () { return APIManagementApi_1.APIManagementApi; } })); +var APMRetentionFiltersApi_1 = __nccwpck_require__(99768); +Object.defineProperty(exports, "APMRetentionFiltersApi", ({ enumerable: true, get: function () { return APMRetentionFiltersApi_1.APMRetentionFiltersApi; } })); +var AWSIntegrationApi_1 = __nccwpck_require__(48900); +Object.defineProperty(exports, "AWSIntegrationApi", ({ enumerable: true, get: function () { return AWSIntegrationApi_1.AWSIntegrationApi; } })); +var AWSLogsIntegrationApi_1 = __nccwpck_require__(8455); +Object.defineProperty(exports, "AWSLogsIntegrationApi", ({ enumerable: true, get: function () { return AWSLogsIntegrationApi_1.AWSLogsIntegrationApi; } })); +var AppDeploymentApi_1 = __nccwpck_require__(36571); +Object.defineProperty(exports, "AppDeploymentApi", ({ enumerable: true, get: function () { return AppDeploymentApi_1.AppDeploymentApi; } })); +var AppsApi_1 = __nccwpck_require__(38439); +Object.defineProperty(exports, "AppsApi", ({ enumerable: true, get: function () { return AppsApi_1.AppsApi; } })); +var AuditApi_1 = __nccwpck_require__(1510); +Object.defineProperty(exports, "AuditApi", ({ enumerable: true, get: function () { return AuditApi_1.AuditApi; } })); +var AuthNMappingsApi_1 = __nccwpck_require__(77478); +Object.defineProperty(exports, "AuthNMappingsApi", ({ enumerable: true, get: function () { return AuthNMappingsApi_1.AuthNMappingsApi; } })); +var CIVisibilityPipelinesApi_1 = __nccwpck_require__(21202); +Object.defineProperty(exports, "CIVisibilityPipelinesApi", ({ enumerable: true, get: function () { return CIVisibilityPipelinesApi_1.CIVisibilityPipelinesApi; } })); +var CIVisibilityTestsApi_1 = __nccwpck_require__(39576); +Object.defineProperty(exports, "CIVisibilityTestsApi", ({ enumerable: true, get: function () { return CIVisibilityTestsApi_1.CIVisibilityTestsApi; } })); +var CSMAgentsApi_1 = __nccwpck_require__(44074); +Object.defineProperty(exports, "CSMAgentsApi", ({ enumerable: true, get: function () { return CSMAgentsApi_1.CSMAgentsApi; } })); +var CSMThreatsApi_1 = __nccwpck_require__(48185); +Object.defineProperty(exports, "CSMThreatsApi", ({ enumerable: true, get: function () { return CSMThreatsApi_1.CSMThreatsApi; } })); +var CaseManagementApi_1 = __nccwpck_require__(21942); +Object.defineProperty(exports, "CaseManagementApi", ({ enumerable: true, get: function () { return CaseManagementApi_1.CaseManagementApi; } })); +var CloudCostManagementApi_1 = __nccwpck_require__(2222); +Object.defineProperty(exports, "CloudCostManagementApi", ({ enumerable: true, get: function () { return CloudCostManagementApi_1.CloudCostManagementApi; } })); +var CloudflareIntegrationApi_1 = __nccwpck_require__(3010); +Object.defineProperty(exports, "CloudflareIntegrationApi", ({ enumerable: true, get: function () { return CloudflareIntegrationApi_1.CloudflareIntegrationApi; } })); +var ConfluentCloudApi_1 = __nccwpck_require__(25610); +Object.defineProperty(exports, "ConfluentCloudApi", ({ enumerable: true, get: function () { return ConfluentCloudApi_1.ConfluentCloudApi; } })); +var ContainerImagesApi_1 = __nccwpck_require__(10340); +Object.defineProperty(exports, "ContainerImagesApi", ({ enumerable: true, get: function () { return ContainerImagesApi_1.ContainerImagesApi; } })); +var ContainersApi_1 = __nccwpck_require__(51331); +Object.defineProperty(exports, "ContainersApi", ({ enumerable: true, get: function () { return ContainersApi_1.ContainersApi; } })); +var DORAMetricsApi_1 = __nccwpck_require__(29956); +Object.defineProperty(exports, "DORAMetricsApi", ({ enumerable: true, get: function () { return DORAMetricsApi_1.DORAMetricsApi; } })); +var DashboardListsApi_1 = __nccwpck_require__(29364); +Object.defineProperty(exports, "DashboardListsApi", ({ enumerable: true, get: function () { return DashboardListsApi_1.DashboardListsApi; } })); +var DataDeletionApi_1 = __nccwpck_require__(36169); +Object.defineProperty(exports, "DataDeletionApi", ({ enumerable: true, get: function () { return DataDeletionApi_1.DataDeletionApi; } })); +var DomainAllowlistApi_1 = __nccwpck_require__(85168); +Object.defineProperty(exports, "DomainAllowlistApi", ({ enumerable: true, get: function () { return DomainAllowlistApi_1.DomainAllowlistApi; } })); +var DowntimesApi_1 = __nccwpck_require__(89369); +Object.defineProperty(exports, "DowntimesApi", ({ enumerable: true, get: function () { return DowntimesApi_1.DowntimesApi; } })); +var EventsApi_1 = __nccwpck_require__(71832); +Object.defineProperty(exports, "EventsApi", ({ enumerable: true, get: function () { return EventsApi_1.EventsApi; } })); +var FastlyIntegrationApi_1 = __nccwpck_require__(48156); +Object.defineProperty(exports, "FastlyIntegrationApi", ({ enumerable: true, get: function () { return FastlyIntegrationApi_1.FastlyIntegrationApi; } })); +var GCPIntegrationApi_1 = __nccwpck_require__(75367); +Object.defineProperty(exports, "GCPIntegrationApi", ({ enumerable: true, get: function () { return GCPIntegrationApi_1.GCPIntegrationApi; } })); +var IPAllowlistApi_1 = __nccwpck_require__(91257); +Object.defineProperty(exports, "IPAllowlistApi", ({ enumerable: true, get: function () { return IPAllowlistApi_1.IPAllowlistApi; } })); +var IncidentServicesApi_1 = __nccwpck_require__(46161); +Object.defineProperty(exports, "IncidentServicesApi", ({ enumerable: true, get: function () { return IncidentServicesApi_1.IncidentServicesApi; } })); +var IncidentTeamsApi_1 = __nccwpck_require__(71971); +Object.defineProperty(exports, "IncidentTeamsApi", ({ enumerable: true, get: function () { return IncidentTeamsApi_1.IncidentTeamsApi; } })); +var IncidentsApi_1 = __nccwpck_require__(48734); +Object.defineProperty(exports, "IncidentsApi", ({ enumerable: true, get: function () { return IncidentsApi_1.IncidentsApi; } })); +var KeyManagementApi_1 = __nccwpck_require__(25267); +Object.defineProperty(exports, "KeyManagementApi", ({ enumerable: true, get: function () { return KeyManagementApi_1.KeyManagementApi; } })); +var LogsApi_1 = __nccwpck_require__(90258); +Object.defineProperty(exports, "LogsApi", ({ enumerable: true, get: function () { return LogsApi_1.LogsApi; } })); +var LogsArchivesApi_1 = __nccwpck_require__(4431); +Object.defineProperty(exports, "LogsArchivesApi", ({ enumerable: true, get: function () { return LogsArchivesApi_1.LogsArchivesApi; } })); +var LogsCustomDestinationsApi_1 = __nccwpck_require__(70584); +Object.defineProperty(exports, "LogsCustomDestinationsApi", ({ enumerable: true, get: function () { return LogsCustomDestinationsApi_1.LogsCustomDestinationsApi; } })); +var LogsMetricsApi_1 = __nccwpck_require__(74795); +Object.defineProperty(exports, "LogsMetricsApi", ({ enumerable: true, get: function () { return LogsMetricsApi_1.LogsMetricsApi; } })); +var MetricsApi_1 = __nccwpck_require__(18132); +Object.defineProperty(exports, "MetricsApi", ({ enumerable: true, get: function () { return MetricsApi_1.MetricsApi; } })); +var MicrosoftTeamsIntegrationApi_1 = __nccwpck_require__(80971); +Object.defineProperty(exports, "MicrosoftTeamsIntegrationApi", ({ enumerable: true, get: function () { return MicrosoftTeamsIntegrationApi_1.MicrosoftTeamsIntegrationApi; } })); +var MonitorsApi_1 = __nccwpck_require__(63438); +Object.defineProperty(exports, "MonitorsApi", ({ enumerable: true, get: function () { return MonitorsApi_1.MonitorsApi; } })); +var NetworkDeviceMonitoringApi_1 = __nccwpck_require__(22793); +Object.defineProperty(exports, "NetworkDeviceMonitoringApi", ({ enumerable: true, get: function () { return NetworkDeviceMonitoringApi_1.NetworkDeviceMonitoringApi; } })); +var OktaIntegrationApi_1 = __nccwpck_require__(20064); +Object.defineProperty(exports, "OktaIntegrationApi", ({ enumerable: true, get: function () { return OktaIntegrationApi_1.OktaIntegrationApi; } })); +var OpsgenieIntegrationApi_1 = __nccwpck_require__(86465); +Object.defineProperty(exports, "OpsgenieIntegrationApi", ({ enumerable: true, get: function () { return OpsgenieIntegrationApi_1.OpsgenieIntegrationApi; } })); +var OrganizationsApi_1 = __nccwpck_require__(81675); +Object.defineProperty(exports, "OrganizationsApi", ({ enumerable: true, get: function () { return OrganizationsApi_1.OrganizationsApi; } })); +var PowerpackApi_1 = __nccwpck_require__(52819); +Object.defineProperty(exports, "PowerpackApi", ({ enumerable: true, get: function () { return PowerpackApi_1.PowerpackApi; } })); +var ProcessesApi_1 = __nccwpck_require__(3616); +Object.defineProperty(exports, "ProcessesApi", ({ enumerable: true, get: function () { return ProcessesApi_1.ProcessesApi; } })); +var RUMApi_1 = __nccwpck_require__(85379); +Object.defineProperty(exports, "RUMApi", ({ enumerable: true, get: function () { return RUMApi_1.RUMApi; } })); +var RestrictionPoliciesApi_1 = __nccwpck_require__(65496); +Object.defineProperty(exports, "RestrictionPoliciesApi", ({ enumerable: true, get: function () { return RestrictionPoliciesApi_1.RestrictionPoliciesApi; } })); +var RolesApi_1 = __nccwpck_require__(23560); +Object.defineProperty(exports, "RolesApi", ({ enumerable: true, get: function () { return RolesApi_1.RolesApi; } })); +var RumMetricsApi_1 = __nccwpck_require__(63016); +Object.defineProperty(exports, "RumMetricsApi", ({ enumerable: true, get: function () { return RumMetricsApi_1.RumMetricsApi; } })); +var SecurityMonitoringApi_1 = __nccwpck_require__(56399); +Object.defineProperty(exports, "SecurityMonitoringApi", ({ enumerable: true, get: function () { return SecurityMonitoringApi_1.SecurityMonitoringApi; } })); +var SensitiveDataScannerApi_1 = __nccwpck_require__(14517); +Object.defineProperty(exports, "SensitiveDataScannerApi", ({ enumerable: true, get: function () { return SensitiveDataScannerApi_1.SensitiveDataScannerApi; } })); +var ServiceAccountsApi_1 = __nccwpck_require__(2966); +Object.defineProperty(exports, "ServiceAccountsApi", ({ enumerable: true, get: function () { return ServiceAccountsApi_1.ServiceAccountsApi; } })); +var ServiceDefinitionApi_1 = __nccwpck_require__(15669); +Object.defineProperty(exports, "ServiceDefinitionApi", ({ enumerable: true, get: function () { return ServiceDefinitionApi_1.ServiceDefinitionApi; } })); +var ServiceLevelObjectivesApi_1 = __nccwpck_require__(31654); +Object.defineProperty(exports, "ServiceLevelObjectivesApi", ({ enumerable: true, get: function () { return ServiceLevelObjectivesApi_1.ServiceLevelObjectivesApi; } })); +var ServiceScorecardsApi_1 = __nccwpck_require__(38357); +Object.defineProperty(exports, "ServiceScorecardsApi", ({ enumerable: true, get: function () { return ServiceScorecardsApi_1.ServiceScorecardsApi; } })); +var SoftwareCatalogApi_1 = __nccwpck_require__(20967); +Object.defineProperty(exports, "SoftwareCatalogApi", ({ enumerable: true, get: function () { return SoftwareCatalogApi_1.SoftwareCatalogApi; } })); +var SpansApi_1 = __nccwpck_require__(85176); +Object.defineProperty(exports, "SpansApi", ({ enumerable: true, get: function () { return SpansApi_1.SpansApi; } })); +var SpansMetricsApi_1 = __nccwpck_require__(65417); +Object.defineProperty(exports, "SpansMetricsApi", ({ enumerable: true, get: function () { return SpansMetricsApi_1.SpansMetricsApi; } })); +var SyntheticsApi_1 = __nccwpck_require__(63127); +Object.defineProperty(exports, "SyntheticsApi", ({ enumerable: true, get: function () { return SyntheticsApi_1.SyntheticsApi; } })); +var TeamsApi_1 = __nccwpck_require__(63437); +Object.defineProperty(exports, "TeamsApi", ({ enumerable: true, get: function () { return TeamsApi_1.TeamsApi; } })); +var UsageMeteringApi_1 = __nccwpck_require__(56627); +Object.defineProperty(exports, "UsageMeteringApi", ({ enumerable: true, get: function () { return UsageMeteringApi_1.UsageMeteringApi; } })); +var UsersApi_1 = __nccwpck_require__(11159); +Object.defineProperty(exports, "UsersApi", ({ enumerable: true, get: function () { return UsersApi_1.UsersApi; } })); +var WorkflowAutomationApi_1 = __nccwpck_require__(81993); +Object.defineProperty(exports, "WorkflowAutomationApi", ({ enumerable: true, get: function () { return WorkflowAutomationApi_1.WorkflowAutomationApi; } })); +var ActiveBillingDimensionsAttributes_1 = __nccwpck_require__(57753); +Object.defineProperty(exports, "ActiveBillingDimensionsAttributes", ({ enumerable: true, get: function () { return ActiveBillingDimensionsAttributes_1.ActiveBillingDimensionsAttributes; } })); +var ActiveBillingDimensionsBody_1 = __nccwpck_require__(34376); +Object.defineProperty(exports, "ActiveBillingDimensionsBody", ({ enumerable: true, get: function () { return ActiveBillingDimensionsBody_1.ActiveBillingDimensionsBody; } })); +var ActiveBillingDimensionsResponse_1 = __nccwpck_require__(47335); +Object.defineProperty(exports, "ActiveBillingDimensionsResponse", ({ enumerable: true, get: function () { return ActiveBillingDimensionsResponse_1.ActiveBillingDimensionsResponse; } })); +var APIErrorResponse_1 = __nccwpck_require__(94255); +Object.defineProperty(exports, "APIErrorResponse", ({ enumerable: true, get: function () { return APIErrorResponse_1.APIErrorResponse; } })); +var APIKeyCreateAttributes_1 = __nccwpck_require__(92304); +Object.defineProperty(exports, "APIKeyCreateAttributes", ({ enumerable: true, get: function () { return APIKeyCreateAttributes_1.APIKeyCreateAttributes; } })); +var APIKeyCreateData_1 = __nccwpck_require__(1217); +Object.defineProperty(exports, "APIKeyCreateData", ({ enumerable: true, get: function () { return APIKeyCreateData_1.APIKeyCreateData; } })); +var APIKeyCreateRequest_1 = __nccwpck_require__(10040); +Object.defineProperty(exports, "APIKeyCreateRequest", ({ enumerable: true, get: function () { return APIKeyCreateRequest_1.APIKeyCreateRequest; } })); +var APIKeyRelationships_1 = __nccwpck_require__(21458); +Object.defineProperty(exports, "APIKeyRelationships", ({ enumerable: true, get: function () { return APIKeyRelationships_1.APIKeyRelationships; } })); +var APIKeyResponse_1 = __nccwpck_require__(28046); +Object.defineProperty(exports, "APIKeyResponse", ({ enumerable: true, get: function () { return APIKeyResponse_1.APIKeyResponse; } })); +var APIKeysResponse_1 = __nccwpck_require__(25167); +Object.defineProperty(exports, "APIKeysResponse", ({ enumerable: true, get: function () { return APIKeysResponse_1.APIKeysResponse; } })); +var APIKeysResponseMeta_1 = __nccwpck_require__(34958); +Object.defineProperty(exports, "APIKeysResponseMeta", ({ enumerable: true, get: function () { return APIKeysResponseMeta_1.APIKeysResponseMeta; } })); +var APIKeysResponseMetaPage_1 = __nccwpck_require__(94873); +Object.defineProperty(exports, "APIKeysResponseMetaPage", ({ enumerable: true, get: function () { return APIKeysResponseMetaPage_1.APIKeysResponseMetaPage; } })); +var APIKeyUpdateAttributes_1 = __nccwpck_require__(95697); +Object.defineProperty(exports, "APIKeyUpdateAttributes", ({ enumerable: true, get: function () { return APIKeyUpdateAttributes_1.APIKeyUpdateAttributes; } })); +var APIKeyUpdateData_1 = __nccwpck_require__(76256); +Object.defineProperty(exports, "APIKeyUpdateData", ({ enumerable: true, get: function () { return APIKeyUpdateData_1.APIKeyUpdateData; } })); +var APIKeyUpdateRequest_1 = __nccwpck_require__(66059); +Object.defineProperty(exports, "APIKeyUpdateRequest", ({ enumerable: true, get: function () { return APIKeyUpdateRequest_1.APIKeyUpdateRequest; } })); +var AppBuilderError_1 = __nccwpck_require__(20316); +Object.defineProperty(exports, "AppBuilderError", ({ enumerable: true, get: function () { return AppBuilderError_1.AppBuilderError; } })); +var AppBuilderErrorErrorsItems_1 = __nccwpck_require__(15127); +Object.defineProperty(exports, "AppBuilderErrorErrorsItems", ({ enumerable: true, get: function () { return AppBuilderErrorErrorsItems_1.AppBuilderErrorErrorsItems; } })); +var AppBuilderErrorErrorsItemsSource_1 = __nccwpck_require__(56966); +Object.defineProperty(exports, "AppBuilderErrorErrorsItemsSource", ({ enumerable: true, get: function () { return AppBuilderErrorErrorsItemsSource_1.AppBuilderErrorErrorsItemsSource; } })); +var AppBuilderEvent_1 = __nccwpck_require__(38438); +Object.defineProperty(exports, "AppBuilderEvent", ({ enumerable: true, get: function () { return AppBuilderEvent_1.AppBuilderEvent; } })); +var ApplicationKeyCreateAttributes_1 = __nccwpck_require__(5518); +Object.defineProperty(exports, "ApplicationKeyCreateAttributes", ({ enumerable: true, get: function () { return ApplicationKeyCreateAttributes_1.ApplicationKeyCreateAttributes; } })); +var ApplicationKeyCreateData_1 = __nccwpck_require__(56067); +Object.defineProperty(exports, "ApplicationKeyCreateData", ({ enumerable: true, get: function () { return ApplicationKeyCreateData_1.ApplicationKeyCreateData; } })); +var ApplicationKeyCreateRequest_1 = __nccwpck_require__(7718); +Object.defineProperty(exports, "ApplicationKeyCreateRequest", ({ enumerable: true, get: function () { return ApplicationKeyCreateRequest_1.ApplicationKeyCreateRequest; } })); +var ApplicationKeyRelationships_1 = __nccwpck_require__(99580); +Object.defineProperty(exports, "ApplicationKeyRelationships", ({ enumerable: true, get: function () { return ApplicationKeyRelationships_1.ApplicationKeyRelationships; } })); +var ApplicationKeyResponse_1 = __nccwpck_require__(18452); +Object.defineProperty(exports, "ApplicationKeyResponse", ({ enumerable: true, get: function () { return ApplicationKeyResponse_1.ApplicationKeyResponse; } })); +var ApplicationKeyResponseMeta_1 = __nccwpck_require__(46341); +Object.defineProperty(exports, "ApplicationKeyResponseMeta", ({ enumerable: true, get: function () { return ApplicationKeyResponseMeta_1.ApplicationKeyResponseMeta; } })); +var ApplicationKeyResponseMetaPage_1 = __nccwpck_require__(8450); +Object.defineProperty(exports, "ApplicationKeyResponseMetaPage", ({ enumerable: true, get: function () { return ApplicationKeyResponseMetaPage_1.ApplicationKeyResponseMetaPage; } })); +var ApplicationKeyUpdateAttributes_1 = __nccwpck_require__(96279); +Object.defineProperty(exports, "ApplicationKeyUpdateAttributes", ({ enumerable: true, get: function () { return ApplicationKeyUpdateAttributes_1.ApplicationKeyUpdateAttributes; } })); +var ApplicationKeyUpdateData_1 = __nccwpck_require__(52290); +Object.defineProperty(exports, "ApplicationKeyUpdateData", ({ enumerable: true, get: function () { return ApplicationKeyUpdateData_1.ApplicationKeyUpdateData; } })); +var ApplicationKeyUpdateRequest_1 = __nccwpck_require__(56561); +Object.defineProperty(exports, "ApplicationKeyUpdateRequest", ({ enumerable: true, get: function () { return ApplicationKeyUpdateRequest_1.ApplicationKeyUpdateRequest; } })); +var AppMeta_1 = __nccwpck_require__(14646); +Object.defineProperty(exports, "AppMeta", ({ enumerable: true, get: function () { return AppMeta_1.AppMeta; } })); +var AuditLogsEvent_1 = __nccwpck_require__(11638); +Object.defineProperty(exports, "AuditLogsEvent", ({ enumerable: true, get: function () { return AuditLogsEvent_1.AuditLogsEvent; } })); +var AuditLogsEventAttributes_1 = __nccwpck_require__(81955); +Object.defineProperty(exports, "AuditLogsEventAttributes", ({ enumerable: true, get: function () { return AuditLogsEventAttributes_1.AuditLogsEventAttributes; } })); +var AuditLogsEventsResponse_1 = __nccwpck_require__(21710); +Object.defineProperty(exports, "AuditLogsEventsResponse", ({ enumerable: true, get: function () { return AuditLogsEventsResponse_1.AuditLogsEventsResponse; } })); +var AuditLogsQueryFilter_1 = __nccwpck_require__(9124); +Object.defineProperty(exports, "AuditLogsQueryFilter", ({ enumerable: true, get: function () { return AuditLogsQueryFilter_1.AuditLogsQueryFilter; } })); +var AuditLogsQueryOptions_1 = __nccwpck_require__(79694); +Object.defineProperty(exports, "AuditLogsQueryOptions", ({ enumerable: true, get: function () { return AuditLogsQueryOptions_1.AuditLogsQueryOptions; } })); +var AuditLogsQueryPageOptions_1 = __nccwpck_require__(239); +Object.defineProperty(exports, "AuditLogsQueryPageOptions", ({ enumerable: true, get: function () { return AuditLogsQueryPageOptions_1.AuditLogsQueryPageOptions; } })); +var AuditLogsResponseLinks_1 = __nccwpck_require__(20750); +Object.defineProperty(exports, "AuditLogsResponseLinks", ({ enumerable: true, get: function () { return AuditLogsResponseLinks_1.AuditLogsResponseLinks; } })); +var AuditLogsResponseMetadata_1 = __nccwpck_require__(69442); +Object.defineProperty(exports, "AuditLogsResponseMetadata", ({ enumerable: true, get: function () { return AuditLogsResponseMetadata_1.AuditLogsResponseMetadata; } })); +var AuditLogsResponsePage_1 = __nccwpck_require__(83964); +Object.defineProperty(exports, "AuditLogsResponsePage", ({ enumerable: true, get: function () { return AuditLogsResponsePage_1.AuditLogsResponsePage; } })); +var AuditLogsSearchEventsRequest_1 = __nccwpck_require__(3108); +Object.defineProperty(exports, "AuditLogsSearchEventsRequest", ({ enumerable: true, get: function () { return AuditLogsSearchEventsRequest_1.AuditLogsSearchEventsRequest; } })); +var AuditLogsWarning_1 = __nccwpck_require__(58802); +Object.defineProperty(exports, "AuditLogsWarning", ({ enumerable: true, get: function () { return AuditLogsWarning_1.AuditLogsWarning; } })); +var AuthNMapping_1 = __nccwpck_require__(39496); +Object.defineProperty(exports, "AuthNMapping", ({ enumerable: true, get: function () { return AuthNMapping_1.AuthNMapping; } })); +var AuthNMappingAttributes_1 = __nccwpck_require__(38337); +Object.defineProperty(exports, "AuthNMappingAttributes", ({ enumerable: true, get: function () { return AuthNMappingAttributes_1.AuthNMappingAttributes; } })); +var AuthNMappingCreateAttributes_1 = __nccwpck_require__(7833); +Object.defineProperty(exports, "AuthNMappingCreateAttributes", ({ enumerable: true, get: function () { return AuthNMappingCreateAttributes_1.AuthNMappingCreateAttributes; } })); +var AuthNMappingCreateData_1 = __nccwpck_require__(83448); +Object.defineProperty(exports, "AuthNMappingCreateData", ({ enumerable: true, get: function () { return AuthNMappingCreateData_1.AuthNMappingCreateData; } })); +var AuthNMappingCreateRequest_1 = __nccwpck_require__(60371); +Object.defineProperty(exports, "AuthNMappingCreateRequest", ({ enumerable: true, get: function () { return AuthNMappingCreateRequest_1.AuthNMappingCreateRequest; } })); +var AuthNMappingRelationships_1 = __nccwpck_require__(71441); +Object.defineProperty(exports, "AuthNMappingRelationships", ({ enumerable: true, get: function () { return AuthNMappingRelationships_1.AuthNMappingRelationships; } })); +var AuthNMappingRelationshipToRole_1 = __nccwpck_require__(35583); +Object.defineProperty(exports, "AuthNMappingRelationshipToRole", ({ enumerable: true, get: function () { return AuthNMappingRelationshipToRole_1.AuthNMappingRelationshipToRole; } })); +var AuthNMappingRelationshipToTeam_1 = __nccwpck_require__(71090); +Object.defineProperty(exports, "AuthNMappingRelationshipToTeam", ({ enumerable: true, get: function () { return AuthNMappingRelationshipToTeam_1.AuthNMappingRelationshipToTeam; } })); +var AuthNMappingResponse_1 = __nccwpck_require__(2783); +Object.defineProperty(exports, "AuthNMappingResponse", ({ enumerable: true, get: function () { return AuthNMappingResponse_1.AuthNMappingResponse; } })); +var AuthNMappingsResponse_1 = __nccwpck_require__(24164); +Object.defineProperty(exports, "AuthNMappingsResponse", ({ enumerable: true, get: function () { return AuthNMappingsResponse_1.AuthNMappingsResponse; } })); +var AuthNMappingTeam_1 = __nccwpck_require__(51573); +Object.defineProperty(exports, "AuthNMappingTeam", ({ enumerable: true, get: function () { return AuthNMappingTeam_1.AuthNMappingTeam; } })); +var AuthNMappingTeamAttributes_1 = __nccwpck_require__(60572); +Object.defineProperty(exports, "AuthNMappingTeamAttributes", ({ enumerable: true, get: function () { return AuthNMappingTeamAttributes_1.AuthNMappingTeamAttributes; } })); +var AuthNMappingUpdateAttributes_1 = __nccwpck_require__(78412); +Object.defineProperty(exports, "AuthNMappingUpdateAttributes", ({ enumerable: true, get: function () { return AuthNMappingUpdateAttributes_1.AuthNMappingUpdateAttributes; } })); +var AuthNMappingUpdateData_1 = __nccwpck_require__(52901); +Object.defineProperty(exports, "AuthNMappingUpdateData", ({ enumerable: true, get: function () { return AuthNMappingUpdateData_1.AuthNMappingUpdateData; } })); +var AuthNMappingUpdateRequest_1 = __nccwpck_require__(27076); +Object.defineProperty(exports, "AuthNMappingUpdateRequest", ({ enumerable: true, get: function () { return AuthNMappingUpdateRequest_1.AuthNMappingUpdateRequest; } })); +var AWSAccountCreateRequest_1 = __nccwpck_require__(44733); +Object.defineProperty(exports, "AWSAccountCreateRequest", ({ enumerable: true, get: function () { return AWSAccountCreateRequest_1.AWSAccountCreateRequest; } })); +var AWSAccountCreateRequestAttributes_1 = __nccwpck_require__(5524); +Object.defineProperty(exports, "AWSAccountCreateRequestAttributes", ({ enumerable: true, get: function () { return AWSAccountCreateRequestAttributes_1.AWSAccountCreateRequestAttributes; } })); +var AWSAccountCreateRequestData_1 = __nccwpck_require__(28637); +Object.defineProperty(exports, "AWSAccountCreateRequestData", ({ enumerable: true, get: function () { return AWSAccountCreateRequestData_1.AWSAccountCreateRequestData; } })); +var AWSAccountResponse_1 = __nccwpck_require__(65305); +Object.defineProperty(exports, "AWSAccountResponse", ({ enumerable: true, get: function () { return AWSAccountResponse_1.AWSAccountResponse; } })); +var AWSAccountResponseAttributes_1 = __nccwpck_require__(77320); +Object.defineProperty(exports, "AWSAccountResponseAttributes", ({ enumerable: true, get: function () { return AWSAccountResponseAttributes_1.AWSAccountResponseAttributes; } })); +var AWSAccountResponseData_1 = __nccwpck_require__(44873); +Object.defineProperty(exports, "AWSAccountResponseData", ({ enumerable: true, get: function () { return AWSAccountResponseData_1.AWSAccountResponseData; } })); +var AWSAccountsResponse_1 = __nccwpck_require__(48510); +Object.defineProperty(exports, "AWSAccountsResponse", ({ enumerable: true, get: function () { return AWSAccountsResponse_1.AWSAccountsResponse; } })); +var AWSAccountUpdateRequest_1 = __nccwpck_require__(46790); +Object.defineProperty(exports, "AWSAccountUpdateRequest", ({ enumerable: true, get: function () { return AWSAccountUpdateRequest_1.AWSAccountUpdateRequest; } })); +var AWSAccountUpdateRequestAttributes_1 = __nccwpck_require__(50323); +Object.defineProperty(exports, "AWSAccountUpdateRequestAttributes", ({ enumerable: true, get: function () { return AWSAccountUpdateRequestAttributes_1.AWSAccountUpdateRequestAttributes; } })); +var AWSAccountUpdateRequestData_1 = __nccwpck_require__(50710); +Object.defineProperty(exports, "AWSAccountUpdateRequestData", ({ enumerable: true, get: function () { return AWSAccountUpdateRequestData_1.AWSAccountUpdateRequestData; } })); +var AWSAuthConfigKeys_1 = __nccwpck_require__(87765); +Object.defineProperty(exports, "AWSAuthConfigKeys", ({ enumerable: true, get: function () { return AWSAuthConfigKeys_1.AWSAuthConfigKeys; } })); +var AWSAuthConfigRole_1 = __nccwpck_require__(20609); +Object.defineProperty(exports, "AWSAuthConfigRole", ({ enumerable: true, get: function () { return AWSAuthConfigRole_1.AWSAuthConfigRole; } })); +var AwsCURConfig_1 = __nccwpck_require__(81193); +Object.defineProperty(exports, "AwsCURConfig", ({ enumerable: true, get: function () { return AwsCURConfig_1.AwsCURConfig; } })); +var AwsCURConfigAttributes_1 = __nccwpck_require__(70488); +Object.defineProperty(exports, "AwsCURConfigAttributes", ({ enumerable: true, get: function () { return AwsCURConfigAttributes_1.AwsCURConfigAttributes; } })); +var AwsCURConfigPatchData_1 = __nccwpck_require__(69763); +Object.defineProperty(exports, "AwsCURConfigPatchData", ({ enumerable: true, get: function () { return AwsCURConfigPatchData_1.AwsCURConfigPatchData; } })); +var AwsCURConfigPatchRequest_1 = __nccwpck_require__(25542); +Object.defineProperty(exports, "AwsCURConfigPatchRequest", ({ enumerable: true, get: function () { return AwsCURConfigPatchRequest_1.AwsCURConfigPatchRequest; } })); +var AwsCURConfigPatchRequestAttributes_1 = __nccwpck_require__(30675); +Object.defineProperty(exports, "AwsCURConfigPatchRequestAttributes", ({ enumerable: true, get: function () { return AwsCURConfigPatchRequestAttributes_1.AwsCURConfigPatchRequestAttributes; } })); +var AwsCURConfigPostData_1 = __nccwpck_require__(27687); +Object.defineProperty(exports, "AwsCURConfigPostData", ({ enumerable: true, get: function () { return AwsCURConfigPostData_1.AwsCURConfigPostData; } })); +var AwsCURConfigPostRequest_1 = __nccwpck_require__(24866); +Object.defineProperty(exports, "AwsCURConfigPostRequest", ({ enumerable: true, get: function () { return AwsCURConfigPostRequest_1.AwsCURConfigPostRequest; } })); +var AwsCURConfigPostRequestAttributes_1 = __nccwpck_require__(21975); +Object.defineProperty(exports, "AwsCURConfigPostRequestAttributes", ({ enumerable: true, get: function () { return AwsCURConfigPostRequestAttributes_1.AwsCURConfigPostRequestAttributes; } })); +var AwsCURConfigResponse_1 = __nccwpck_require__(88122); +Object.defineProperty(exports, "AwsCURConfigResponse", ({ enumerable: true, get: function () { return AwsCURConfigResponse_1.AwsCURConfigResponse; } })); +var AwsCURConfigsResponse_1 = __nccwpck_require__(80435); +Object.defineProperty(exports, "AwsCURConfigsResponse", ({ enumerable: true, get: function () { return AwsCURConfigsResponse_1.AwsCURConfigsResponse; } })); +var AWSLambdaForwarderConfig_1 = __nccwpck_require__(44208); +Object.defineProperty(exports, "AWSLambdaForwarderConfig", ({ enumerable: true, get: function () { return AWSLambdaForwarderConfig_1.AWSLambdaForwarderConfig; } })); +var AWSLogsConfig_1 = __nccwpck_require__(31376); +Object.defineProperty(exports, "AWSLogsConfig", ({ enumerable: true, get: function () { return AWSLogsConfig_1.AWSLogsConfig; } })); +var AWSLogsServicesResponse_1 = __nccwpck_require__(49157); +Object.defineProperty(exports, "AWSLogsServicesResponse", ({ enumerable: true, get: function () { return AWSLogsServicesResponse_1.AWSLogsServicesResponse; } })); +var AWSLogsServicesResponseAttributes_1 = __nccwpck_require__(91276); +Object.defineProperty(exports, "AWSLogsServicesResponseAttributes", ({ enumerable: true, get: function () { return AWSLogsServicesResponseAttributes_1.AWSLogsServicesResponseAttributes; } })); +var AWSLogsServicesResponseData_1 = __nccwpck_require__(61989); +Object.defineProperty(exports, "AWSLogsServicesResponseData", ({ enumerable: true, get: function () { return AWSLogsServicesResponseData_1.AWSLogsServicesResponseData; } })); +var AWSMetricsConfig_1 = __nccwpck_require__(2430); +Object.defineProperty(exports, "AWSMetricsConfig", ({ enumerable: true, get: function () { return AWSMetricsConfig_1.AWSMetricsConfig; } })); +var AWSNamespaceFiltersExcludeOnly_1 = __nccwpck_require__(44147); +Object.defineProperty(exports, "AWSNamespaceFiltersExcludeOnly", ({ enumerable: true, get: function () { return AWSNamespaceFiltersExcludeOnly_1.AWSNamespaceFiltersExcludeOnly; } })); +var AWSNamespaceFiltersIncludeOnly_1 = __nccwpck_require__(27705); +Object.defineProperty(exports, "AWSNamespaceFiltersIncludeOnly", ({ enumerable: true, get: function () { return AWSNamespaceFiltersIncludeOnly_1.AWSNamespaceFiltersIncludeOnly; } })); +var AWSNamespacesResponse_1 = __nccwpck_require__(34266); +Object.defineProperty(exports, "AWSNamespacesResponse", ({ enumerable: true, get: function () { return AWSNamespacesResponse_1.AWSNamespacesResponse; } })); +var AWSNamespacesResponseAttributes_1 = __nccwpck_require__(14879); +Object.defineProperty(exports, "AWSNamespacesResponseAttributes", ({ enumerable: true, get: function () { return AWSNamespacesResponseAttributes_1.AWSNamespacesResponseAttributes; } })); +var AWSNamespacesResponseData_1 = __nccwpck_require__(75706); +Object.defineProperty(exports, "AWSNamespacesResponseData", ({ enumerable: true, get: function () { return AWSNamespacesResponseData_1.AWSNamespacesResponseData; } })); +var AWSNamespaceTagFilter_1 = __nccwpck_require__(80194); +Object.defineProperty(exports, "AWSNamespaceTagFilter", ({ enumerable: true, get: function () { return AWSNamespaceTagFilter_1.AWSNamespaceTagFilter; } })); +var AWSNewExternalIDResponse_1 = __nccwpck_require__(91698); +Object.defineProperty(exports, "AWSNewExternalIDResponse", ({ enumerable: true, get: function () { return AWSNewExternalIDResponse_1.AWSNewExternalIDResponse; } })); +var AWSNewExternalIDResponseAttributes_1 = __nccwpck_require__(26311); +Object.defineProperty(exports, "AWSNewExternalIDResponseAttributes", ({ enumerable: true, get: function () { return AWSNewExternalIDResponseAttributes_1.AWSNewExternalIDResponseAttributes; } })); +var AWSNewExternalIDResponseData_1 = __nccwpck_require__(41394); +Object.defineProperty(exports, "AWSNewExternalIDResponseData", ({ enumerable: true, get: function () { return AWSNewExternalIDResponseData_1.AWSNewExternalIDResponseData; } })); +var AWSRegionsIncludeAll_1 = __nccwpck_require__(33163); +Object.defineProperty(exports, "AWSRegionsIncludeAll", ({ enumerable: true, get: function () { return AWSRegionsIncludeAll_1.AWSRegionsIncludeAll; } })); +var AWSRegionsIncludeOnly_1 = __nccwpck_require__(55300); +Object.defineProperty(exports, "AWSRegionsIncludeOnly", ({ enumerable: true, get: function () { return AWSRegionsIncludeOnly_1.AWSRegionsIncludeOnly; } })); +var AWSResourcesConfig_1 = __nccwpck_require__(57610); +Object.defineProperty(exports, "AWSResourcesConfig", ({ enumerable: true, get: function () { return AWSResourcesConfig_1.AWSResourcesConfig; } })); +var AWSTracesConfig_1 = __nccwpck_require__(40117); +Object.defineProperty(exports, "AWSTracesConfig", ({ enumerable: true, get: function () { return AWSTracesConfig_1.AWSTracesConfig; } })); +var AzureUCConfig_1 = __nccwpck_require__(59673); +Object.defineProperty(exports, "AzureUCConfig", ({ enumerable: true, get: function () { return AzureUCConfig_1.AzureUCConfig; } })); +var AzureUCConfigPair_1 = __nccwpck_require__(65177); +Object.defineProperty(exports, "AzureUCConfigPair", ({ enumerable: true, get: function () { return AzureUCConfigPair_1.AzureUCConfigPair; } })); +var AzureUCConfigPairAttributes_1 = __nccwpck_require__(62696); +Object.defineProperty(exports, "AzureUCConfigPairAttributes", ({ enumerable: true, get: function () { return AzureUCConfigPairAttributes_1.AzureUCConfigPairAttributes; } })); +var AzureUCConfigPairsResponse_1 = __nccwpck_require__(92867); +Object.defineProperty(exports, "AzureUCConfigPairsResponse", ({ enumerable: true, get: function () { return AzureUCConfigPairsResponse_1.AzureUCConfigPairsResponse; } })); +var AzureUCConfigPatchData_1 = __nccwpck_require__(90419); +Object.defineProperty(exports, "AzureUCConfigPatchData", ({ enumerable: true, get: function () { return AzureUCConfigPatchData_1.AzureUCConfigPatchData; } })); +var AzureUCConfigPatchRequest_1 = __nccwpck_require__(33750); +Object.defineProperty(exports, "AzureUCConfigPatchRequest", ({ enumerable: true, get: function () { return AzureUCConfigPatchRequest_1.AzureUCConfigPatchRequest; } })); +var AzureUCConfigPatchRequestAttributes_1 = __nccwpck_require__(6947); +Object.defineProperty(exports, "AzureUCConfigPatchRequestAttributes", ({ enumerable: true, get: function () { return AzureUCConfigPatchRequestAttributes_1.AzureUCConfigPatchRequestAttributes; } })); +var AzureUCConfigPostData_1 = __nccwpck_require__(53623); +Object.defineProperty(exports, "AzureUCConfigPostData", ({ enumerable: true, get: function () { return AzureUCConfigPostData_1.AzureUCConfigPostData; } })); +var AzureUCConfigPostRequest_1 = __nccwpck_require__(68178); +Object.defineProperty(exports, "AzureUCConfigPostRequest", ({ enumerable: true, get: function () { return AzureUCConfigPostRequest_1.AzureUCConfigPostRequest; } })); +var AzureUCConfigPostRequestAttributes_1 = __nccwpck_require__(58183); +Object.defineProperty(exports, "AzureUCConfigPostRequestAttributes", ({ enumerable: true, get: function () { return AzureUCConfigPostRequestAttributes_1.AzureUCConfigPostRequestAttributes; } })); +var AzureUCConfigsResponse_1 = __nccwpck_require__(82947); +Object.defineProperty(exports, "AzureUCConfigsResponse", ({ enumerable: true, get: function () { return AzureUCConfigsResponse_1.AzureUCConfigsResponse; } })); +var BillConfig_1 = __nccwpck_require__(65009); +Object.defineProperty(exports, "BillConfig", ({ enumerable: true, get: function () { return BillConfig_1.BillConfig; } })); +var BillingDimensionsMappingBodyItem_1 = __nccwpck_require__(11673); +Object.defineProperty(exports, "BillingDimensionsMappingBodyItem", ({ enumerable: true, get: function () { return BillingDimensionsMappingBodyItem_1.BillingDimensionsMappingBodyItem; } })); +var BillingDimensionsMappingBodyItemAttributes_1 = __nccwpck_require__(95176); +Object.defineProperty(exports, "BillingDimensionsMappingBodyItemAttributes", ({ enumerable: true, get: function () { return BillingDimensionsMappingBodyItemAttributes_1.BillingDimensionsMappingBodyItemAttributes; } })); +var BillingDimensionsMappingBodyItemAttributesEndpointsItems_1 = __nccwpck_require__(43906); +Object.defineProperty(exports, "BillingDimensionsMappingBodyItemAttributesEndpointsItems", ({ enumerable: true, get: function () { return BillingDimensionsMappingBodyItemAttributesEndpointsItems_1.BillingDimensionsMappingBodyItemAttributesEndpointsItems; } })); +var BillingDimensionsMappingResponse_1 = __nccwpck_require__(85689); +Object.defineProperty(exports, "BillingDimensionsMappingResponse", ({ enumerable: true, get: function () { return BillingDimensionsMappingResponse_1.BillingDimensionsMappingResponse; } })); +var BulkMuteFindingsRequest_1 = __nccwpck_require__(89612); +Object.defineProperty(exports, "BulkMuteFindingsRequest", ({ enumerable: true, get: function () { return BulkMuteFindingsRequest_1.BulkMuteFindingsRequest; } })); +var BulkMuteFindingsRequestAttributes_1 = __nccwpck_require__(7997); +Object.defineProperty(exports, "BulkMuteFindingsRequestAttributes", ({ enumerable: true, get: function () { return BulkMuteFindingsRequestAttributes_1.BulkMuteFindingsRequestAttributes; } })); +var BulkMuteFindingsRequestData_1 = __nccwpck_require__(95668); +Object.defineProperty(exports, "BulkMuteFindingsRequestData", ({ enumerable: true, get: function () { return BulkMuteFindingsRequestData_1.BulkMuteFindingsRequestData; } })); +var BulkMuteFindingsRequestMeta_1 = __nccwpck_require__(71949); +Object.defineProperty(exports, "BulkMuteFindingsRequestMeta", ({ enumerable: true, get: function () { return BulkMuteFindingsRequestMeta_1.BulkMuteFindingsRequestMeta; } })); +var BulkMuteFindingsRequestMetaFindings_1 = __nccwpck_require__(26855); +Object.defineProperty(exports, "BulkMuteFindingsRequestMetaFindings", ({ enumerable: true, get: function () { return BulkMuteFindingsRequestMetaFindings_1.BulkMuteFindingsRequestMetaFindings; } })); +var BulkMuteFindingsRequestProperties_1 = __nccwpck_require__(89809); +Object.defineProperty(exports, "BulkMuteFindingsRequestProperties", ({ enumerable: true, get: function () { return BulkMuteFindingsRequestProperties_1.BulkMuteFindingsRequestProperties; } })); +var BulkMuteFindingsResponse_1 = __nccwpck_require__(49998); +Object.defineProperty(exports, "BulkMuteFindingsResponse", ({ enumerable: true, get: function () { return BulkMuteFindingsResponse_1.BulkMuteFindingsResponse; } })); +var BulkMuteFindingsResponseData_1 = __nccwpck_require__(28286); +Object.defineProperty(exports, "BulkMuteFindingsResponseData", ({ enumerable: true, get: function () { return BulkMuteFindingsResponseData_1.BulkMuteFindingsResponseData; } })); +var CalculatedField_1 = __nccwpck_require__(84356); +Object.defineProperty(exports, "CalculatedField", ({ enumerable: true, get: function () { return CalculatedField_1.CalculatedField; } })); +var CancelDataDeletionResponseBody_1 = __nccwpck_require__(53857); +Object.defineProperty(exports, "CancelDataDeletionResponseBody", ({ enumerable: true, get: function () { return CancelDataDeletionResponseBody_1.CancelDataDeletionResponseBody; } })); +var Case_1 = __nccwpck_require__(92974); +Object.defineProperty(exports, "Case", ({ enumerable: true, get: function () { return Case_1.Case; } })); +var CaseAssign_1 = __nccwpck_require__(64507); +Object.defineProperty(exports, "CaseAssign", ({ enumerable: true, get: function () { return CaseAssign_1.CaseAssign; } })); +var CaseAssignAttributes_1 = __nccwpck_require__(78638); +Object.defineProperty(exports, "CaseAssignAttributes", ({ enumerable: true, get: function () { return CaseAssignAttributes_1.CaseAssignAttributes; } })); +var CaseAssignRequest_1 = __nccwpck_require__(10438); +Object.defineProperty(exports, "CaseAssignRequest", ({ enumerable: true, get: function () { return CaseAssignRequest_1.CaseAssignRequest; } })); +var CaseAttributes_1 = __nccwpck_require__(65355); +Object.defineProperty(exports, "CaseAttributes", ({ enumerable: true, get: function () { return CaseAttributes_1.CaseAttributes; } })); +var CaseCreate_1 = __nccwpck_require__(45982); +Object.defineProperty(exports, "CaseCreate", ({ enumerable: true, get: function () { return CaseCreate_1.CaseCreate; } })); +var CaseCreateAttributes_1 = __nccwpck_require__(96571); +Object.defineProperty(exports, "CaseCreateAttributes", ({ enumerable: true, get: function () { return CaseCreateAttributes_1.CaseCreateAttributes; } })); +var CaseCreateRelationships_1 = __nccwpck_require__(99199); +Object.defineProperty(exports, "CaseCreateRelationships", ({ enumerable: true, get: function () { return CaseCreateRelationships_1.CaseCreateRelationships; } })); +var CaseCreateRequest_1 = __nccwpck_require__(99253); +Object.defineProperty(exports, "CaseCreateRequest", ({ enumerable: true, get: function () { return CaseCreateRequest_1.CaseCreateRequest; } })); +var CaseEmpty_1 = __nccwpck_require__(29393); +Object.defineProperty(exports, "CaseEmpty", ({ enumerable: true, get: function () { return CaseEmpty_1.CaseEmpty; } })); +var CaseEmptyRequest_1 = __nccwpck_require__(3960); +Object.defineProperty(exports, "CaseEmptyRequest", ({ enumerable: true, get: function () { return CaseEmptyRequest_1.CaseEmptyRequest; } })); +var CaseRelationships_1 = __nccwpck_require__(38063); +Object.defineProperty(exports, "CaseRelationships", ({ enumerable: true, get: function () { return CaseRelationships_1.CaseRelationships; } })); +var CaseResponse_1 = __nccwpck_require__(66369); +Object.defineProperty(exports, "CaseResponse", ({ enumerable: true, get: function () { return CaseResponse_1.CaseResponse; } })); +var CasesResponse_1 = __nccwpck_require__(3702); +Object.defineProperty(exports, "CasesResponse", ({ enumerable: true, get: function () { return CasesResponse_1.CasesResponse; } })); +var CasesResponseMeta_1 = __nccwpck_require__(99983); +Object.defineProperty(exports, "CasesResponseMeta", ({ enumerable: true, get: function () { return CasesResponseMeta_1.CasesResponseMeta; } })); +var CasesResponseMetaPagination_1 = __nccwpck_require__(5887); +Object.defineProperty(exports, "CasesResponseMetaPagination", ({ enumerable: true, get: function () { return CasesResponseMetaPagination_1.CasesResponseMetaPagination; } })); +var CaseUpdatePriority_1 = __nccwpck_require__(86811); +Object.defineProperty(exports, "CaseUpdatePriority", ({ enumerable: true, get: function () { return CaseUpdatePriority_1.CaseUpdatePriority; } })); +var CaseUpdatePriorityAttributes_1 = __nccwpck_require__(54369); +Object.defineProperty(exports, "CaseUpdatePriorityAttributes", ({ enumerable: true, get: function () { return CaseUpdatePriorityAttributes_1.CaseUpdatePriorityAttributes; } })); +var CaseUpdatePriorityRequest_1 = __nccwpck_require__(94662); +Object.defineProperty(exports, "CaseUpdatePriorityRequest", ({ enumerable: true, get: function () { return CaseUpdatePriorityRequest_1.CaseUpdatePriorityRequest; } })); +var CaseUpdateStatus_1 = __nccwpck_require__(4121); +Object.defineProperty(exports, "CaseUpdateStatus", ({ enumerable: true, get: function () { return CaseUpdateStatus_1.CaseUpdateStatus; } })); +var CaseUpdateStatusAttributes_1 = __nccwpck_require__(1256); +Object.defineProperty(exports, "CaseUpdateStatusAttributes", ({ enumerable: true, get: function () { return CaseUpdateStatusAttributes_1.CaseUpdateStatusAttributes; } })); +var CaseUpdateStatusRequest_1 = __nccwpck_require__(15536); +Object.defineProperty(exports, "CaseUpdateStatusRequest", ({ enumerable: true, get: function () { return CaseUpdateStatusRequest_1.CaseUpdateStatusRequest; } })); +var ChangeEventCustomAttributes_1 = __nccwpck_require__(24074); +Object.defineProperty(exports, "ChangeEventCustomAttributes", ({ enumerable: true, get: function () { return ChangeEventCustomAttributes_1.ChangeEventCustomAttributes; } })); +var ChangeEventCustomAttributesAuthor_1 = __nccwpck_require__(33957); +Object.defineProperty(exports, "ChangeEventCustomAttributesAuthor", ({ enumerable: true, get: function () { return ChangeEventCustomAttributesAuthor_1.ChangeEventCustomAttributesAuthor; } })); +var ChangeEventCustomAttributesChangedResource_1 = __nccwpck_require__(61208); +Object.defineProperty(exports, "ChangeEventCustomAttributesChangedResource", ({ enumerable: true, get: function () { return ChangeEventCustomAttributesChangedResource_1.ChangeEventCustomAttributesChangedResource; } })); +var ChangeEventCustomAttributesImpactedResourcesItems_1 = __nccwpck_require__(56278); +Object.defineProperty(exports, "ChangeEventCustomAttributesImpactedResourcesItems", ({ enumerable: true, get: function () { return ChangeEventCustomAttributesImpactedResourcesItems_1.ChangeEventCustomAttributesImpactedResourcesItems; } })); +var ChargebackBreakdown_1 = __nccwpck_require__(650); +Object.defineProperty(exports, "ChargebackBreakdown", ({ enumerable: true, get: function () { return ChargebackBreakdown_1.ChargebackBreakdown; } })); +var CIAppAggregateBucketValueTimeseriesPoint_1 = __nccwpck_require__(76747); +Object.defineProperty(exports, "CIAppAggregateBucketValueTimeseriesPoint", ({ enumerable: true, get: function () { return CIAppAggregateBucketValueTimeseriesPoint_1.CIAppAggregateBucketValueTimeseriesPoint; } })); +var CIAppAggregateSort_1 = __nccwpck_require__(35220); +Object.defineProperty(exports, "CIAppAggregateSort", ({ enumerable: true, get: function () { return CIAppAggregateSort_1.CIAppAggregateSort; } })); +var CIAppCIError_1 = __nccwpck_require__(47253); +Object.defineProperty(exports, "CIAppCIError", ({ enumerable: true, get: function () { return CIAppCIError_1.CIAppCIError; } })); +var CIAppCompute_1 = __nccwpck_require__(1590); +Object.defineProperty(exports, "CIAppCompute", ({ enumerable: true, get: function () { return CIAppCompute_1.CIAppCompute; } })); +var CIAppCreatePipelineEventRequest_1 = __nccwpck_require__(65916); +Object.defineProperty(exports, "CIAppCreatePipelineEventRequest", ({ enumerable: true, get: function () { return CIAppCreatePipelineEventRequest_1.CIAppCreatePipelineEventRequest; } })); +var CIAppCreatePipelineEventRequestAttributes_1 = __nccwpck_require__(24653); +Object.defineProperty(exports, "CIAppCreatePipelineEventRequestAttributes", ({ enumerable: true, get: function () { return CIAppCreatePipelineEventRequestAttributes_1.CIAppCreatePipelineEventRequestAttributes; } })); +var CIAppCreatePipelineEventRequestData_1 = __nccwpck_require__(45828); +Object.defineProperty(exports, "CIAppCreatePipelineEventRequestData", ({ enumerable: true, get: function () { return CIAppCreatePipelineEventRequestData_1.CIAppCreatePipelineEventRequestData; } })); +var CIAppEventAttributes_1 = __nccwpck_require__(40718); +Object.defineProperty(exports, "CIAppEventAttributes", ({ enumerable: true, get: function () { return CIAppEventAttributes_1.CIAppEventAttributes; } })); +var CIAppGitInfo_1 = __nccwpck_require__(75783); +Object.defineProperty(exports, "CIAppGitInfo", ({ enumerable: true, get: function () { return CIAppGitInfo_1.CIAppGitInfo; } })); +var CIAppGroupByHistogram_1 = __nccwpck_require__(35191); +Object.defineProperty(exports, "CIAppGroupByHistogram", ({ enumerable: true, get: function () { return CIAppGroupByHistogram_1.CIAppGroupByHistogram; } })); +var CIAppHostInfo_1 = __nccwpck_require__(577); +Object.defineProperty(exports, "CIAppHostInfo", ({ enumerable: true, get: function () { return CIAppHostInfo_1.CIAppHostInfo; } })); +var CIAppPipelineEvent_1 = __nccwpck_require__(64273); +Object.defineProperty(exports, "CIAppPipelineEvent", ({ enumerable: true, get: function () { return CIAppPipelineEvent_1.CIAppPipelineEvent; } })); +var CIAppPipelineEventAttributes_1 = __nccwpck_require__(76752); +Object.defineProperty(exports, "CIAppPipelineEventAttributes", ({ enumerable: true, get: function () { return CIAppPipelineEventAttributes_1.CIAppPipelineEventAttributes; } })); +var CIAppPipelineEventFinishedPipeline_1 = __nccwpck_require__(34657); +Object.defineProperty(exports, "CIAppPipelineEventFinishedPipeline", ({ enumerable: true, get: function () { return CIAppPipelineEventFinishedPipeline_1.CIAppPipelineEventFinishedPipeline; } })); +var CIAppPipelineEventInProgressPipeline_1 = __nccwpck_require__(39459); +Object.defineProperty(exports, "CIAppPipelineEventInProgressPipeline", ({ enumerable: true, get: function () { return CIAppPipelineEventInProgressPipeline_1.CIAppPipelineEventInProgressPipeline; } })); +var CIAppPipelineEventJob_1 = __nccwpck_require__(31170); +Object.defineProperty(exports, "CIAppPipelineEventJob", ({ enumerable: true, get: function () { return CIAppPipelineEventJob_1.CIAppPipelineEventJob; } })); +var CIAppPipelineEventParentPipeline_1 = __nccwpck_require__(42807); +Object.defineProperty(exports, "CIAppPipelineEventParentPipeline", ({ enumerable: true, get: function () { return CIAppPipelineEventParentPipeline_1.CIAppPipelineEventParentPipeline; } })); +var CIAppPipelineEventPreviousPipeline_1 = __nccwpck_require__(17462); +Object.defineProperty(exports, "CIAppPipelineEventPreviousPipeline", ({ enumerable: true, get: function () { return CIAppPipelineEventPreviousPipeline_1.CIAppPipelineEventPreviousPipeline; } })); +var CIAppPipelineEventsRequest_1 = __nccwpck_require__(19439); +Object.defineProperty(exports, "CIAppPipelineEventsRequest", ({ enumerable: true, get: function () { return CIAppPipelineEventsRequest_1.CIAppPipelineEventsRequest; } })); +var CIAppPipelineEventsResponse_1 = __nccwpck_require__(39307); +Object.defineProperty(exports, "CIAppPipelineEventsResponse", ({ enumerable: true, get: function () { return CIAppPipelineEventsResponse_1.CIAppPipelineEventsResponse; } })); +var CIAppPipelineEventStage_1 = __nccwpck_require__(53599); +Object.defineProperty(exports, "CIAppPipelineEventStage", ({ enumerable: true, get: function () { return CIAppPipelineEventStage_1.CIAppPipelineEventStage; } })); +var CIAppPipelineEventStep_1 = __nccwpck_require__(94523); +Object.defineProperty(exports, "CIAppPipelineEventStep", ({ enumerable: true, get: function () { return CIAppPipelineEventStep_1.CIAppPipelineEventStep; } })); +var CIAppPipelinesAggregateRequest_1 = __nccwpck_require__(35524); +Object.defineProperty(exports, "CIAppPipelinesAggregateRequest", ({ enumerable: true, get: function () { return CIAppPipelinesAggregateRequest_1.CIAppPipelinesAggregateRequest; } })); +var CIAppPipelinesAggregationBucketsResponse_1 = __nccwpck_require__(76334); +Object.defineProperty(exports, "CIAppPipelinesAggregationBucketsResponse", ({ enumerable: true, get: function () { return CIAppPipelinesAggregationBucketsResponse_1.CIAppPipelinesAggregationBucketsResponse; } })); +var CIAppPipelinesAnalyticsAggregateResponse_1 = __nccwpck_require__(9688); +Object.defineProperty(exports, "CIAppPipelinesAnalyticsAggregateResponse", ({ enumerable: true, get: function () { return CIAppPipelinesAnalyticsAggregateResponse_1.CIAppPipelinesAnalyticsAggregateResponse; } })); +var CIAppPipelinesBucketResponse_1 = __nccwpck_require__(54877); +Object.defineProperty(exports, "CIAppPipelinesBucketResponse", ({ enumerable: true, get: function () { return CIAppPipelinesBucketResponse_1.CIAppPipelinesBucketResponse; } })); +var CIAppPipelinesGroupBy_1 = __nccwpck_require__(16056); +Object.defineProperty(exports, "CIAppPipelinesGroupBy", ({ enumerable: true, get: function () { return CIAppPipelinesGroupBy_1.CIAppPipelinesGroupBy; } })); +var CIAppPipelinesQueryFilter_1 = __nccwpck_require__(93280); +Object.defineProperty(exports, "CIAppPipelinesQueryFilter", ({ enumerable: true, get: function () { return CIAppPipelinesQueryFilter_1.CIAppPipelinesQueryFilter; } })); +var CIAppQueryOptions_1 = __nccwpck_require__(61937); +Object.defineProperty(exports, "CIAppQueryOptions", ({ enumerable: true, get: function () { return CIAppQueryOptions_1.CIAppQueryOptions; } })); +var CIAppQueryPageOptions_1 = __nccwpck_require__(17028); +Object.defineProperty(exports, "CIAppQueryPageOptions", ({ enumerable: true, get: function () { return CIAppQueryPageOptions_1.CIAppQueryPageOptions; } })); +var CIAppResponseLinks_1 = __nccwpck_require__(65027); +Object.defineProperty(exports, "CIAppResponseLinks", ({ enumerable: true, get: function () { return CIAppResponseLinks_1.CIAppResponseLinks; } })); +var CIAppResponseMetadata_1 = __nccwpck_require__(62841); +Object.defineProperty(exports, "CIAppResponseMetadata", ({ enumerable: true, get: function () { return CIAppResponseMetadata_1.CIAppResponseMetadata; } })); +var CIAppResponseMetadataWithPagination_1 = __nccwpck_require__(64661); +Object.defineProperty(exports, "CIAppResponseMetadataWithPagination", ({ enumerable: true, get: function () { return CIAppResponseMetadataWithPagination_1.CIAppResponseMetadataWithPagination; } })); +var CIAppResponsePage_1 = __nccwpck_require__(81679); +Object.defineProperty(exports, "CIAppResponsePage", ({ enumerable: true, get: function () { return CIAppResponsePage_1.CIAppResponsePage; } })); +var CIAppTestEvent_1 = __nccwpck_require__(86375); +Object.defineProperty(exports, "CIAppTestEvent", ({ enumerable: true, get: function () { return CIAppTestEvent_1.CIAppTestEvent; } })); +var CIAppTestEventsRequest_1 = __nccwpck_require__(78081); +Object.defineProperty(exports, "CIAppTestEventsRequest", ({ enumerable: true, get: function () { return CIAppTestEventsRequest_1.CIAppTestEventsRequest; } })); +var CIAppTestEventsResponse_1 = __nccwpck_require__(39669); +Object.defineProperty(exports, "CIAppTestEventsResponse", ({ enumerable: true, get: function () { return CIAppTestEventsResponse_1.CIAppTestEventsResponse; } })); +var CIAppTestsAggregateRequest_1 = __nccwpck_require__(90678); +Object.defineProperty(exports, "CIAppTestsAggregateRequest", ({ enumerable: true, get: function () { return CIAppTestsAggregateRequest_1.CIAppTestsAggregateRequest; } })); +var CIAppTestsAggregationBucketsResponse_1 = __nccwpck_require__(91300); +Object.defineProperty(exports, "CIAppTestsAggregationBucketsResponse", ({ enumerable: true, get: function () { return CIAppTestsAggregationBucketsResponse_1.CIAppTestsAggregationBucketsResponse; } })); +var CIAppTestsAnalyticsAggregateResponse_1 = __nccwpck_require__(52058); +Object.defineProperty(exports, "CIAppTestsAnalyticsAggregateResponse", ({ enumerable: true, get: function () { return CIAppTestsAnalyticsAggregateResponse_1.CIAppTestsAnalyticsAggregateResponse; } })); +var CIAppTestsBucketResponse_1 = __nccwpck_require__(98623); +Object.defineProperty(exports, "CIAppTestsBucketResponse", ({ enumerable: true, get: function () { return CIAppTestsBucketResponse_1.CIAppTestsBucketResponse; } })); +var CIAppTestsGroupBy_1 = __nccwpck_require__(42870); +Object.defineProperty(exports, "CIAppTestsGroupBy", ({ enumerable: true, get: function () { return CIAppTestsGroupBy_1.CIAppTestsGroupBy; } })); +var CIAppTestsQueryFilter_1 = __nccwpck_require__(53266); +Object.defineProperty(exports, "CIAppTestsQueryFilter", ({ enumerable: true, get: function () { return CIAppTestsQueryFilter_1.CIAppTestsQueryFilter; } })); +var CIAppWarning_1 = __nccwpck_require__(48183); +Object.defineProperty(exports, "CIAppWarning", ({ enumerable: true, get: function () { return CIAppWarning_1.CIAppWarning; } })); +var CloudConfigurationComplianceRuleOptions_1 = __nccwpck_require__(11814); +Object.defineProperty(exports, "CloudConfigurationComplianceRuleOptions", ({ enumerable: true, get: function () { return CloudConfigurationComplianceRuleOptions_1.CloudConfigurationComplianceRuleOptions; } })); +var CloudConfigurationRegoRule_1 = __nccwpck_require__(10186); +Object.defineProperty(exports, "CloudConfigurationRegoRule", ({ enumerable: true, get: function () { return CloudConfigurationRegoRule_1.CloudConfigurationRegoRule; } })); +var CloudConfigurationRuleCaseCreate_1 = __nccwpck_require__(94761); +Object.defineProperty(exports, "CloudConfigurationRuleCaseCreate", ({ enumerable: true, get: function () { return CloudConfigurationRuleCaseCreate_1.CloudConfigurationRuleCaseCreate; } })); +var CloudConfigurationRuleComplianceSignalOptions_1 = __nccwpck_require__(25470); +Object.defineProperty(exports, "CloudConfigurationRuleComplianceSignalOptions", ({ enumerable: true, get: function () { return CloudConfigurationRuleComplianceSignalOptions_1.CloudConfigurationRuleComplianceSignalOptions; } })); +var CloudConfigurationRuleCreatePayload_1 = __nccwpck_require__(51023); +Object.defineProperty(exports, "CloudConfigurationRuleCreatePayload", ({ enumerable: true, get: function () { return CloudConfigurationRuleCreatePayload_1.CloudConfigurationRuleCreatePayload; } })); +var CloudConfigurationRuleOptions_1 = __nccwpck_require__(55311); +Object.defineProperty(exports, "CloudConfigurationRuleOptions", ({ enumerable: true, get: function () { return CloudConfigurationRuleOptions_1.CloudConfigurationRuleOptions; } })); +var CloudConfigurationRulePayload_1 = __nccwpck_require__(85939); +Object.defineProperty(exports, "CloudConfigurationRulePayload", ({ enumerable: true, get: function () { return CloudConfigurationRulePayload_1.CloudConfigurationRulePayload; } })); +var CloudflareAccountCreateRequest_1 = __nccwpck_require__(73749); +Object.defineProperty(exports, "CloudflareAccountCreateRequest", ({ enumerable: true, get: function () { return CloudflareAccountCreateRequest_1.CloudflareAccountCreateRequest; } })); +var CloudflareAccountCreateRequestAttributes_1 = __nccwpck_require__(34332); +Object.defineProperty(exports, "CloudflareAccountCreateRequestAttributes", ({ enumerable: true, get: function () { return CloudflareAccountCreateRequestAttributes_1.CloudflareAccountCreateRequestAttributes; } })); +var CloudflareAccountCreateRequestData_1 = __nccwpck_require__(39861); +Object.defineProperty(exports, "CloudflareAccountCreateRequestData", ({ enumerable: true, get: function () { return CloudflareAccountCreateRequestData_1.CloudflareAccountCreateRequestData; } })); +var CloudflareAccountResponse_1 = __nccwpck_require__(59905); +Object.defineProperty(exports, "CloudflareAccountResponse", ({ enumerable: true, get: function () { return CloudflareAccountResponse_1.CloudflareAccountResponse; } })); +var CloudflareAccountResponseAttributes_1 = __nccwpck_require__(5856); +Object.defineProperty(exports, "CloudflareAccountResponseAttributes", ({ enumerable: true, get: function () { return CloudflareAccountResponseAttributes_1.CloudflareAccountResponseAttributes; } })); +var CloudflareAccountResponseData_1 = __nccwpck_require__(1393); +Object.defineProperty(exports, "CloudflareAccountResponseData", ({ enumerable: true, get: function () { return CloudflareAccountResponseData_1.CloudflareAccountResponseData; } })); +var CloudflareAccountsResponse_1 = __nccwpck_require__(80054); +Object.defineProperty(exports, "CloudflareAccountsResponse", ({ enumerable: true, get: function () { return CloudflareAccountsResponse_1.CloudflareAccountsResponse; } })); +var CloudflareAccountUpdateRequest_1 = __nccwpck_require__(82238); +Object.defineProperty(exports, "CloudflareAccountUpdateRequest", ({ enumerable: true, get: function () { return CloudflareAccountUpdateRequest_1.CloudflareAccountUpdateRequest; } })); +var CloudflareAccountUpdateRequestAttributes_1 = __nccwpck_require__(25787); +Object.defineProperty(exports, "CloudflareAccountUpdateRequestAttributes", ({ enumerable: true, get: function () { return CloudflareAccountUpdateRequestAttributes_1.CloudflareAccountUpdateRequestAttributes; } })); +var CloudflareAccountUpdateRequestData_1 = __nccwpck_require__(29806); +Object.defineProperty(exports, "CloudflareAccountUpdateRequestData", ({ enumerable: true, get: function () { return CloudflareAccountUpdateRequestData_1.CloudflareAccountUpdateRequestData; } })); +var CloudWorkloadSecurityAgentRuleAction_1 = __nccwpck_require__(92369); +Object.defineProperty(exports, "CloudWorkloadSecurityAgentRuleAction", ({ enumerable: true, get: function () { return CloudWorkloadSecurityAgentRuleAction_1.CloudWorkloadSecurityAgentRuleAction; } })); +var CloudWorkloadSecurityAgentRuleAttributes_1 = __nccwpck_require__(67926); +Object.defineProperty(exports, "CloudWorkloadSecurityAgentRuleAttributes", ({ enumerable: true, get: function () { return CloudWorkloadSecurityAgentRuleAttributes_1.CloudWorkloadSecurityAgentRuleAttributes; } })); +var CloudWorkloadSecurityAgentRuleCreateAttributes_1 = __nccwpck_require__(94218); +Object.defineProperty(exports, "CloudWorkloadSecurityAgentRuleCreateAttributes", ({ enumerable: true, get: function () { return CloudWorkloadSecurityAgentRuleCreateAttributes_1.CloudWorkloadSecurityAgentRuleCreateAttributes; } })); +var CloudWorkloadSecurityAgentRuleCreateData_1 = __nccwpck_require__(94839); +Object.defineProperty(exports, "CloudWorkloadSecurityAgentRuleCreateData", ({ enumerable: true, get: function () { return CloudWorkloadSecurityAgentRuleCreateData_1.CloudWorkloadSecurityAgentRuleCreateData; } })); +var CloudWorkloadSecurityAgentRuleCreateRequest_1 = __nccwpck_require__(18098); +Object.defineProperty(exports, "CloudWorkloadSecurityAgentRuleCreateRequest", ({ enumerable: true, get: function () { return CloudWorkloadSecurityAgentRuleCreateRequest_1.CloudWorkloadSecurityAgentRuleCreateRequest; } })); +var CloudWorkloadSecurityAgentRuleCreatorAttributes_1 = __nccwpck_require__(32918); +Object.defineProperty(exports, "CloudWorkloadSecurityAgentRuleCreatorAttributes", ({ enumerable: true, get: function () { return CloudWorkloadSecurityAgentRuleCreatorAttributes_1.CloudWorkloadSecurityAgentRuleCreatorAttributes; } })); +var CloudWorkloadSecurityAgentRuleData_1 = __nccwpck_require__(84635); +Object.defineProperty(exports, "CloudWorkloadSecurityAgentRuleData", ({ enumerable: true, get: function () { return CloudWorkloadSecurityAgentRuleData_1.CloudWorkloadSecurityAgentRuleData; } })); +var CloudWorkloadSecurityAgentRuleKill_1 = __nccwpck_require__(81715); +Object.defineProperty(exports, "CloudWorkloadSecurityAgentRuleKill", ({ enumerable: true, get: function () { return CloudWorkloadSecurityAgentRuleKill_1.CloudWorkloadSecurityAgentRuleKill; } })); +var CloudWorkloadSecurityAgentRuleResponse_1 = __nccwpck_require__(11200); +Object.defineProperty(exports, "CloudWorkloadSecurityAgentRuleResponse", ({ enumerable: true, get: function () { return CloudWorkloadSecurityAgentRuleResponse_1.CloudWorkloadSecurityAgentRuleResponse; } })); +var CloudWorkloadSecurityAgentRulesListResponse_1 = __nccwpck_require__(94221); +Object.defineProperty(exports, "CloudWorkloadSecurityAgentRulesListResponse", ({ enumerable: true, get: function () { return CloudWorkloadSecurityAgentRulesListResponse_1.CloudWorkloadSecurityAgentRulesListResponse; } })); +var CloudWorkloadSecurityAgentRuleUpdateAttributes_1 = __nccwpck_require__(54235); +Object.defineProperty(exports, "CloudWorkloadSecurityAgentRuleUpdateAttributes", ({ enumerable: true, get: function () { return CloudWorkloadSecurityAgentRuleUpdateAttributes_1.CloudWorkloadSecurityAgentRuleUpdateAttributes; } })); +var CloudWorkloadSecurityAgentRuleUpdateData_1 = __nccwpck_require__(35950); +Object.defineProperty(exports, "CloudWorkloadSecurityAgentRuleUpdateData", ({ enumerable: true, get: function () { return CloudWorkloadSecurityAgentRuleUpdateData_1.CloudWorkloadSecurityAgentRuleUpdateData; } })); +var CloudWorkloadSecurityAgentRuleUpdaterAttributes_1 = __nccwpck_require__(92451); +Object.defineProperty(exports, "CloudWorkloadSecurityAgentRuleUpdaterAttributes", ({ enumerable: true, get: function () { return CloudWorkloadSecurityAgentRuleUpdaterAttributes_1.CloudWorkloadSecurityAgentRuleUpdaterAttributes; } })); +var CloudWorkloadSecurityAgentRuleUpdateRequest_1 = __nccwpck_require__(18709); +Object.defineProperty(exports, "CloudWorkloadSecurityAgentRuleUpdateRequest", ({ enumerable: true, get: function () { return CloudWorkloadSecurityAgentRuleUpdateRequest_1.CloudWorkloadSecurityAgentRuleUpdateRequest; } })); +var Component_1 = __nccwpck_require__(75123); +Object.defineProperty(exports, "Component", ({ enumerable: true, get: function () { return Component_1.Component; } })); +var ComponentGrid_1 = __nccwpck_require__(89203); +Object.defineProperty(exports, "ComponentGrid", ({ enumerable: true, get: function () { return ComponentGrid_1.ComponentGrid; } })); +var ComponentGridProperties_1 = __nccwpck_require__(80138); +Object.defineProperty(exports, "ComponentGridProperties", ({ enumerable: true, get: function () { return ComponentGridProperties_1.ComponentGridProperties; } })); +var ComponentProperties_1 = __nccwpck_require__(5514); +Object.defineProperty(exports, "ComponentProperties", ({ enumerable: true, get: function () { return ComponentProperties_1.ComponentProperties; } })); +var ConfluentAccountCreateRequest_1 = __nccwpck_require__(4146); +Object.defineProperty(exports, "ConfluentAccountCreateRequest", ({ enumerable: true, get: function () { return ConfluentAccountCreateRequest_1.ConfluentAccountCreateRequest; } })); +var ConfluentAccountCreateRequestAttributes_1 = __nccwpck_require__(31847); +Object.defineProperty(exports, "ConfluentAccountCreateRequestAttributes", ({ enumerable: true, get: function () { return ConfluentAccountCreateRequestAttributes_1.ConfluentAccountCreateRequestAttributes; } })); +var ConfluentAccountCreateRequestData_1 = __nccwpck_require__(44530); +Object.defineProperty(exports, "ConfluentAccountCreateRequestData", ({ enumerable: true, get: function () { return ConfluentAccountCreateRequestData_1.ConfluentAccountCreateRequestData; } })); +var ConfluentAccountResourceAttributes_1 = __nccwpck_require__(70218); +Object.defineProperty(exports, "ConfluentAccountResourceAttributes", ({ enumerable: true, get: function () { return ConfluentAccountResourceAttributes_1.ConfluentAccountResourceAttributes; } })); +var ConfluentAccountResponse_1 = __nccwpck_require__(74880); +Object.defineProperty(exports, "ConfluentAccountResponse", ({ enumerable: true, get: function () { return ConfluentAccountResponse_1.ConfluentAccountResponse; } })); +var ConfluentAccountResponseAttributes_1 = __nccwpck_require__(89705); +Object.defineProperty(exports, "ConfluentAccountResponseAttributes", ({ enumerable: true, get: function () { return ConfluentAccountResponseAttributes_1.ConfluentAccountResponseAttributes; } })); +var ConfluentAccountResponseData_1 = __nccwpck_require__(17115); +Object.defineProperty(exports, "ConfluentAccountResponseData", ({ enumerable: true, get: function () { return ConfluentAccountResponseData_1.ConfluentAccountResponseData; } })); +var ConfluentAccountsResponse_1 = __nccwpck_require__(63913); +Object.defineProperty(exports, "ConfluentAccountsResponse", ({ enumerable: true, get: function () { return ConfluentAccountsResponse_1.ConfluentAccountsResponse; } })); +var ConfluentAccountUpdateRequest_1 = __nccwpck_require__(95477); +Object.defineProperty(exports, "ConfluentAccountUpdateRequest", ({ enumerable: true, get: function () { return ConfluentAccountUpdateRequest_1.ConfluentAccountUpdateRequest; } })); +var ConfluentAccountUpdateRequestAttributes_1 = __nccwpck_require__(32092); +Object.defineProperty(exports, "ConfluentAccountUpdateRequestAttributes", ({ enumerable: true, get: function () { return ConfluentAccountUpdateRequestAttributes_1.ConfluentAccountUpdateRequestAttributes; } })); +var ConfluentAccountUpdateRequestData_1 = __nccwpck_require__(96245); +Object.defineProperty(exports, "ConfluentAccountUpdateRequestData", ({ enumerable: true, get: function () { return ConfluentAccountUpdateRequestData_1.ConfluentAccountUpdateRequestData; } })); +var ConfluentResourceRequest_1 = __nccwpck_require__(59765); +Object.defineProperty(exports, "ConfluentResourceRequest", ({ enumerable: true, get: function () { return ConfluentResourceRequest_1.ConfluentResourceRequest; } })); +var ConfluentResourceRequestAttributes_1 = __nccwpck_require__(63388); +Object.defineProperty(exports, "ConfluentResourceRequestAttributes", ({ enumerable: true, get: function () { return ConfluentResourceRequestAttributes_1.ConfluentResourceRequestAttributes; } })); +var ConfluentResourceRequestData_1 = __nccwpck_require__(88021); +Object.defineProperty(exports, "ConfluentResourceRequestData", ({ enumerable: true, get: function () { return ConfluentResourceRequestData_1.ConfluentResourceRequestData; } })); +var ConfluentResourceResponse_1 = __nccwpck_require__(98897); +Object.defineProperty(exports, "ConfluentResourceResponse", ({ enumerable: true, get: function () { return ConfluentResourceResponse_1.ConfluentResourceResponse; } })); +var ConfluentResourceResponseAttributes_1 = __nccwpck_require__(80784); +Object.defineProperty(exports, "ConfluentResourceResponseAttributes", ({ enumerable: true, get: function () { return ConfluentResourceResponseAttributes_1.ConfluentResourceResponseAttributes; } })); +var ConfluentResourceResponseData_1 = __nccwpck_require__(46913); +Object.defineProperty(exports, "ConfluentResourceResponseData", ({ enumerable: true, get: function () { return ConfluentResourceResponseData_1.ConfluentResourceResponseData; } })); +var ConfluentResourcesResponse_1 = __nccwpck_require__(91622); +Object.defineProperty(exports, "ConfluentResourcesResponse", ({ enumerable: true, get: function () { return ConfluentResourcesResponse_1.ConfluentResourcesResponse; } })); +var Container_1 = __nccwpck_require__(41467); +Object.defineProperty(exports, "Container", ({ enumerable: true, get: function () { return Container_1.Container; } })); +var ContainerAttributes_1 = __nccwpck_require__(61006); +Object.defineProperty(exports, "ContainerAttributes", ({ enumerable: true, get: function () { return ContainerAttributes_1.ContainerAttributes; } })); +var ContainerGroup_1 = __nccwpck_require__(65540); +Object.defineProperty(exports, "ContainerGroup", ({ enumerable: true, get: function () { return ContainerGroup_1.ContainerGroup; } })); +var ContainerGroupAttributes_1 = __nccwpck_require__(73829); +Object.defineProperty(exports, "ContainerGroupAttributes", ({ enumerable: true, get: function () { return ContainerGroupAttributes_1.ContainerGroupAttributes; } })); +var ContainerGroupRelationships_1 = __nccwpck_require__(44717); +Object.defineProperty(exports, "ContainerGroupRelationships", ({ enumerable: true, get: function () { return ContainerGroupRelationships_1.ContainerGroupRelationships; } })); +var ContainerGroupRelationshipsLink_1 = __nccwpck_require__(91621); +Object.defineProperty(exports, "ContainerGroupRelationshipsLink", ({ enumerable: true, get: function () { return ContainerGroupRelationshipsLink_1.ContainerGroupRelationshipsLink; } })); +var ContainerGroupRelationshipsLinks_1 = __nccwpck_require__(70032); +Object.defineProperty(exports, "ContainerGroupRelationshipsLinks", ({ enumerable: true, get: function () { return ContainerGroupRelationshipsLinks_1.ContainerGroupRelationshipsLinks; } })); +var ContainerImage_1 = __nccwpck_require__(50506); +Object.defineProperty(exports, "ContainerImage", ({ enumerable: true, get: function () { return ContainerImage_1.ContainerImage; } })); +var ContainerImageAttributes_1 = __nccwpck_require__(66127); +Object.defineProperty(exports, "ContainerImageAttributes", ({ enumerable: true, get: function () { return ContainerImageAttributes_1.ContainerImageAttributes; } })); +var ContainerImageFlavor_1 = __nccwpck_require__(65638); +Object.defineProperty(exports, "ContainerImageFlavor", ({ enumerable: true, get: function () { return ContainerImageFlavor_1.ContainerImageFlavor; } })); +var ContainerImageGroup_1 = __nccwpck_require__(40311); +Object.defineProperty(exports, "ContainerImageGroup", ({ enumerable: true, get: function () { return ContainerImageGroup_1.ContainerImageGroup; } })); +var ContainerImageGroupAttributes_1 = __nccwpck_require__(37602); +Object.defineProperty(exports, "ContainerImageGroupAttributes", ({ enumerable: true, get: function () { return ContainerImageGroupAttributes_1.ContainerImageGroupAttributes; } })); +var ContainerImageGroupImagesRelationshipsLink_1 = __nccwpck_require__(25422); +Object.defineProperty(exports, "ContainerImageGroupImagesRelationshipsLink", ({ enumerable: true, get: function () { return ContainerImageGroupImagesRelationshipsLink_1.ContainerImageGroupImagesRelationshipsLink; } })); +var ContainerImageGroupRelationships_1 = __nccwpck_require__(53388); +Object.defineProperty(exports, "ContainerImageGroupRelationships", ({ enumerable: true, get: function () { return ContainerImageGroupRelationships_1.ContainerImageGroupRelationships; } })); +var ContainerImageGroupRelationshipsLinks_1 = __nccwpck_require__(89319); +Object.defineProperty(exports, "ContainerImageGroupRelationshipsLinks", ({ enumerable: true, get: function () { return ContainerImageGroupRelationshipsLinks_1.ContainerImageGroupRelationshipsLinks; } })); +var ContainerImageMeta_1 = __nccwpck_require__(24187); +Object.defineProperty(exports, "ContainerImageMeta", ({ enumerable: true, get: function () { return ContainerImageMeta_1.ContainerImageMeta; } })); +var ContainerImageMetaPage_1 = __nccwpck_require__(92460); +Object.defineProperty(exports, "ContainerImageMetaPage", ({ enumerable: true, get: function () { return ContainerImageMetaPage_1.ContainerImageMetaPage; } })); +var ContainerImagesResponse_1 = __nccwpck_require__(26922); +Object.defineProperty(exports, "ContainerImagesResponse", ({ enumerable: true, get: function () { return ContainerImagesResponse_1.ContainerImagesResponse; } })); +var ContainerImagesResponseLinks_1 = __nccwpck_require__(90669); +Object.defineProperty(exports, "ContainerImagesResponseLinks", ({ enumerable: true, get: function () { return ContainerImagesResponseLinks_1.ContainerImagesResponseLinks; } })); +var ContainerImageVulnerabilities_1 = __nccwpck_require__(19970); +Object.defineProperty(exports, "ContainerImageVulnerabilities", ({ enumerable: true, get: function () { return ContainerImageVulnerabilities_1.ContainerImageVulnerabilities; } })); +var ContainerMeta_1 = __nccwpck_require__(8370); +Object.defineProperty(exports, "ContainerMeta", ({ enumerable: true, get: function () { return ContainerMeta_1.ContainerMeta; } })); +var ContainerMetaPage_1 = __nccwpck_require__(23693); +Object.defineProperty(exports, "ContainerMetaPage", ({ enumerable: true, get: function () { return ContainerMetaPage_1.ContainerMetaPage; } })); +var ContainersResponse_1 = __nccwpck_require__(78625); +Object.defineProperty(exports, "ContainersResponse", ({ enumerable: true, get: function () { return ContainersResponse_1.ContainersResponse; } })); +var ContainersResponseLinks_1 = __nccwpck_require__(28604); +Object.defineProperty(exports, "ContainersResponseLinks", ({ enumerable: true, get: function () { return ContainersResponseLinks_1.ContainersResponseLinks; } })); +var ConvertJobResultsToSignalsAttributes_1 = __nccwpck_require__(249); +Object.defineProperty(exports, "ConvertJobResultsToSignalsAttributes", ({ enumerable: true, get: function () { return ConvertJobResultsToSignalsAttributes_1.ConvertJobResultsToSignalsAttributes; } })); +var ConvertJobResultsToSignalsData_1 = __nccwpck_require__(7896); +Object.defineProperty(exports, "ConvertJobResultsToSignalsData", ({ enumerable: true, get: function () { return ConvertJobResultsToSignalsData_1.ConvertJobResultsToSignalsData; } })); +var ConvertJobResultsToSignalsRequest_1 = __nccwpck_require__(53587); +Object.defineProperty(exports, "ConvertJobResultsToSignalsRequest", ({ enumerable: true, get: function () { return ConvertJobResultsToSignalsRequest_1.ConvertJobResultsToSignalsRequest; } })); +var CostAttributionAggregatesBody_1 = __nccwpck_require__(98398); +Object.defineProperty(exports, "CostAttributionAggregatesBody", ({ enumerable: true, get: function () { return CostAttributionAggregatesBody_1.CostAttributionAggregatesBody; } })); +var CostByOrg_1 = __nccwpck_require__(70662); +Object.defineProperty(exports, "CostByOrg", ({ enumerable: true, get: function () { return CostByOrg_1.CostByOrg; } })); +var CostByOrgAttributes_1 = __nccwpck_require__(89875); +Object.defineProperty(exports, "CostByOrgAttributes", ({ enumerable: true, get: function () { return CostByOrgAttributes_1.CostByOrgAttributes; } })); +var CostByOrgResponse_1 = __nccwpck_require__(80441); +Object.defineProperty(exports, "CostByOrgResponse", ({ enumerable: true, get: function () { return CostByOrgResponse_1.CostByOrgResponse; } })); +var CreateAppRequest_1 = __nccwpck_require__(75410); +Object.defineProperty(exports, "CreateAppRequest", ({ enumerable: true, get: function () { return CreateAppRequest_1.CreateAppRequest; } })); +var CreateAppRequestData_1 = __nccwpck_require__(15730); +Object.defineProperty(exports, "CreateAppRequestData", ({ enumerable: true, get: function () { return CreateAppRequestData_1.CreateAppRequestData; } })); +var CreateAppRequestDataAttributes_1 = __nccwpck_require__(44007); +Object.defineProperty(exports, "CreateAppRequestDataAttributes", ({ enumerable: true, get: function () { return CreateAppRequestDataAttributes_1.CreateAppRequestDataAttributes; } })); +var CreateAppResponse_1 = __nccwpck_require__(51356); +Object.defineProperty(exports, "CreateAppResponse", ({ enumerable: true, get: function () { return CreateAppResponse_1.CreateAppResponse; } })); +var CreateAppResponseData_1 = __nccwpck_require__(89956); +Object.defineProperty(exports, "CreateAppResponseData", ({ enumerable: true, get: function () { return CreateAppResponseData_1.CreateAppResponseData; } })); +var CreateDataDeletionRequestBody_1 = __nccwpck_require__(59727); +Object.defineProperty(exports, "CreateDataDeletionRequestBody", ({ enumerable: true, get: function () { return CreateDataDeletionRequestBody_1.CreateDataDeletionRequestBody; } })); +var CreateDataDeletionRequestBodyAttributes_1 = __nccwpck_require__(37034); +Object.defineProperty(exports, "CreateDataDeletionRequestBodyAttributes", ({ enumerable: true, get: function () { return CreateDataDeletionRequestBodyAttributes_1.CreateDataDeletionRequestBodyAttributes; } })); +var CreateDataDeletionRequestBodyData_1 = __nccwpck_require__(16375); +Object.defineProperty(exports, "CreateDataDeletionRequestBodyData", ({ enumerable: true, get: function () { return CreateDataDeletionRequestBodyData_1.CreateDataDeletionRequestBodyData; } })); +var CreateDataDeletionResponseBody_1 = __nccwpck_require__(17331); +Object.defineProperty(exports, "CreateDataDeletionResponseBody", ({ enumerable: true, get: function () { return CreateDataDeletionResponseBody_1.CreateDataDeletionResponseBody; } })); +var CreateOpenAPIResponse_1 = __nccwpck_require__(31323); +Object.defineProperty(exports, "CreateOpenAPIResponse", ({ enumerable: true, get: function () { return CreateOpenAPIResponse_1.CreateOpenAPIResponse; } })); +var CreateOpenAPIResponseAttributes_1 = __nccwpck_require__(27950); +Object.defineProperty(exports, "CreateOpenAPIResponseAttributes", ({ enumerable: true, get: function () { return CreateOpenAPIResponseAttributes_1.CreateOpenAPIResponseAttributes; } })); +var CreateOpenAPIResponseData_1 = __nccwpck_require__(75715); +Object.defineProperty(exports, "CreateOpenAPIResponseData", ({ enumerable: true, get: function () { return CreateOpenAPIResponseData_1.CreateOpenAPIResponseData; } })); +var CreateRuleRequest_1 = __nccwpck_require__(37615); +Object.defineProperty(exports, "CreateRuleRequest", ({ enumerable: true, get: function () { return CreateRuleRequest_1.CreateRuleRequest; } })); +var CreateRuleRequestData_1 = __nccwpck_require__(50583); +Object.defineProperty(exports, "CreateRuleRequestData", ({ enumerable: true, get: function () { return CreateRuleRequestData_1.CreateRuleRequestData; } })); +var CreateRuleResponse_1 = __nccwpck_require__(92395); +Object.defineProperty(exports, "CreateRuleResponse", ({ enumerable: true, get: function () { return CreateRuleResponse_1.CreateRuleResponse; } })); +var CreateRuleResponseData_1 = __nccwpck_require__(36595); +Object.defineProperty(exports, "CreateRuleResponseData", ({ enumerable: true, get: function () { return CreateRuleResponseData_1.CreateRuleResponseData; } })); +var Creator_1 = __nccwpck_require__(78936); +Object.defineProperty(exports, "Creator", ({ enumerable: true, get: function () { return Creator_1.Creator; } })); +var CsmAgentData_1 = __nccwpck_require__(34296); +Object.defineProperty(exports, "CsmAgentData", ({ enumerable: true, get: function () { return CsmAgentData_1.CsmAgentData; } })); +var CsmAgentsAttributes_1 = __nccwpck_require__(30922); +Object.defineProperty(exports, "CsmAgentsAttributes", ({ enumerable: true, get: function () { return CsmAgentsAttributes_1.CsmAgentsAttributes; } })); +var CSMAgentsMetadata_1 = __nccwpck_require__(83134); +Object.defineProperty(exports, "CSMAgentsMetadata", ({ enumerable: true, get: function () { return CSMAgentsMetadata_1.CSMAgentsMetadata; } })); +var CsmAgentsResponse_1 = __nccwpck_require__(10364); +Object.defineProperty(exports, "CsmAgentsResponse", ({ enumerable: true, get: function () { return CsmAgentsResponse_1.CsmAgentsResponse; } })); +var CustomConnection_1 = __nccwpck_require__(73809); +Object.defineProperty(exports, "CustomConnection", ({ enumerable: true, get: function () { return CustomConnection_1.CustomConnection; } })); +var CustomConnectionAttributes_1 = __nccwpck_require__(55696); +Object.defineProperty(exports, "CustomConnectionAttributes", ({ enumerable: true, get: function () { return CustomConnectionAttributes_1.CustomConnectionAttributes; } })); +var CustomConnectionAttributesOnPremRunner_1 = __nccwpck_require__(41327); +Object.defineProperty(exports, "CustomConnectionAttributesOnPremRunner", ({ enumerable: true, get: function () { return CustomConnectionAttributesOnPremRunner_1.CustomConnectionAttributesOnPremRunner; } })); +var CustomCostGetResponseMeta_1 = __nccwpck_require__(75632); +Object.defineProperty(exports, "CustomCostGetResponseMeta", ({ enumerable: true, get: function () { return CustomCostGetResponseMeta_1.CustomCostGetResponseMeta; } })); +var CustomCostListResponseMeta_1 = __nccwpck_require__(15038); +Object.defineProperty(exports, "CustomCostListResponseMeta", ({ enumerable: true, get: function () { return CustomCostListResponseMeta_1.CustomCostListResponseMeta; } })); +var CustomCostsFileGetResponse_1 = __nccwpck_require__(68830); +Object.defineProperty(exports, "CustomCostsFileGetResponse", ({ enumerable: true, get: function () { return CustomCostsFileGetResponse_1.CustomCostsFileGetResponse; } })); +var CustomCostsFileLineItem_1 = __nccwpck_require__(88528); +Object.defineProperty(exports, "CustomCostsFileLineItem", ({ enumerable: true, get: function () { return CustomCostsFileLineItem_1.CustomCostsFileLineItem; } })); +var CustomCostsFileListResponse_1 = __nccwpck_require__(10686); +Object.defineProperty(exports, "CustomCostsFileListResponse", ({ enumerable: true, get: function () { return CustomCostsFileListResponse_1.CustomCostsFileListResponse; } })); +var CustomCostsFileMetadata_1 = __nccwpck_require__(2792); +Object.defineProperty(exports, "CustomCostsFileMetadata", ({ enumerable: true, get: function () { return CustomCostsFileMetadata_1.CustomCostsFileMetadata; } })); +var CustomCostsFileMetadataHighLevel_1 = __nccwpck_require__(66372); +Object.defineProperty(exports, "CustomCostsFileMetadataHighLevel", ({ enumerable: true, get: function () { return CustomCostsFileMetadataHighLevel_1.CustomCostsFileMetadataHighLevel; } })); +var CustomCostsFileMetadataWithContent_1 = __nccwpck_require__(82155); +Object.defineProperty(exports, "CustomCostsFileMetadataWithContent", ({ enumerable: true, get: function () { return CustomCostsFileMetadataWithContent_1.CustomCostsFileMetadataWithContent; } })); +var CustomCostsFileMetadataWithContentHighLevel_1 = __nccwpck_require__(83345); +Object.defineProperty(exports, "CustomCostsFileMetadataWithContentHighLevel", ({ enumerable: true, get: function () { return CustomCostsFileMetadataWithContentHighLevel_1.CustomCostsFileMetadataWithContentHighLevel; } })); +var CustomCostsFileUploadResponse_1 = __nccwpck_require__(26639); +Object.defineProperty(exports, "CustomCostsFileUploadResponse", ({ enumerable: true, get: function () { return CustomCostsFileUploadResponse_1.CustomCostsFileUploadResponse; } })); +var CustomCostsFileUsageChargePeriod_1 = __nccwpck_require__(94371); +Object.defineProperty(exports, "CustomCostsFileUsageChargePeriod", ({ enumerable: true, get: function () { return CustomCostsFileUsageChargePeriod_1.CustomCostsFileUsageChargePeriod; } })); +var CustomCostsUser_1 = __nccwpck_require__(8312); +Object.defineProperty(exports, "CustomCostsUser", ({ enumerable: true, get: function () { return CustomCostsUser_1.CustomCostsUser; } })); +var CustomCostUploadResponseMeta_1 = __nccwpck_require__(63531); +Object.defineProperty(exports, "CustomCostUploadResponseMeta", ({ enumerable: true, get: function () { return CustomCostUploadResponseMeta_1.CustomCostUploadResponseMeta; } })); +var CustomDestinationCreateRequest_1 = __nccwpck_require__(87156); +Object.defineProperty(exports, "CustomDestinationCreateRequest", ({ enumerable: true, get: function () { return CustomDestinationCreateRequest_1.CustomDestinationCreateRequest; } })); +var CustomDestinationCreateRequestAttributes_1 = __nccwpck_require__(10677); +Object.defineProperty(exports, "CustomDestinationCreateRequestAttributes", ({ enumerable: true, get: function () { return CustomDestinationCreateRequestAttributes_1.CustomDestinationCreateRequestAttributes; } })); +var CustomDestinationCreateRequestDefinition_1 = __nccwpck_require__(60965); +Object.defineProperty(exports, "CustomDestinationCreateRequestDefinition", ({ enumerable: true, get: function () { return CustomDestinationCreateRequestDefinition_1.CustomDestinationCreateRequestDefinition; } })); +var CustomDestinationElasticsearchDestinationAuth_1 = __nccwpck_require__(50214); +Object.defineProperty(exports, "CustomDestinationElasticsearchDestinationAuth", ({ enumerable: true, get: function () { return CustomDestinationElasticsearchDestinationAuth_1.CustomDestinationElasticsearchDestinationAuth; } })); +var CustomDestinationForwardDestinationElasticsearch_1 = __nccwpck_require__(75071); +Object.defineProperty(exports, "CustomDestinationForwardDestinationElasticsearch", ({ enumerable: true, get: function () { return CustomDestinationForwardDestinationElasticsearch_1.CustomDestinationForwardDestinationElasticsearch; } })); +var CustomDestinationForwardDestinationHttp_1 = __nccwpck_require__(19162); +Object.defineProperty(exports, "CustomDestinationForwardDestinationHttp", ({ enumerable: true, get: function () { return CustomDestinationForwardDestinationHttp_1.CustomDestinationForwardDestinationHttp; } })); +var CustomDestinationForwardDestinationSplunk_1 = __nccwpck_require__(60857); +Object.defineProperty(exports, "CustomDestinationForwardDestinationSplunk", ({ enumerable: true, get: function () { return CustomDestinationForwardDestinationSplunk_1.CustomDestinationForwardDestinationSplunk; } })); +var CustomDestinationHttpDestinationAuthBasic_1 = __nccwpck_require__(75849); +Object.defineProperty(exports, "CustomDestinationHttpDestinationAuthBasic", ({ enumerable: true, get: function () { return CustomDestinationHttpDestinationAuthBasic_1.CustomDestinationHttpDestinationAuthBasic; } })); +var CustomDestinationHttpDestinationAuthCustomHeader_1 = __nccwpck_require__(92613); +Object.defineProperty(exports, "CustomDestinationHttpDestinationAuthCustomHeader", ({ enumerable: true, get: function () { return CustomDestinationHttpDestinationAuthCustomHeader_1.CustomDestinationHttpDestinationAuthCustomHeader; } })); +var CustomDestinationResponse_1 = __nccwpck_require__(73386); +Object.defineProperty(exports, "CustomDestinationResponse", ({ enumerable: true, get: function () { return CustomDestinationResponse_1.CustomDestinationResponse; } })); +var CustomDestinationResponseAttributes_1 = __nccwpck_require__(74991); +Object.defineProperty(exports, "CustomDestinationResponseAttributes", ({ enumerable: true, get: function () { return CustomDestinationResponseAttributes_1.CustomDestinationResponseAttributes; } })); +var CustomDestinationResponseDefinition_1 = __nccwpck_require__(91059); +Object.defineProperty(exports, "CustomDestinationResponseDefinition", ({ enumerable: true, get: function () { return CustomDestinationResponseDefinition_1.CustomDestinationResponseDefinition; } })); +var CustomDestinationResponseForwardDestinationElasticsearch_1 = __nccwpck_require__(98710); +Object.defineProperty(exports, "CustomDestinationResponseForwardDestinationElasticsearch", ({ enumerable: true, get: function () { return CustomDestinationResponseForwardDestinationElasticsearch_1.CustomDestinationResponseForwardDestinationElasticsearch; } })); +var CustomDestinationResponseForwardDestinationHttp_1 = __nccwpck_require__(37749); +Object.defineProperty(exports, "CustomDestinationResponseForwardDestinationHttp", ({ enumerable: true, get: function () { return CustomDestinationResponseForwardDestinationHttp_1.CustomDestinationResponseForwardDestinationHttp; } })); +var CustomDestinationResponseForwardDestinationSplunk_1 = __nccwpck_require__(618); +Object.defineProperty(exports, "CustomDestinationResponseForwardDestinationSplunk", ({ enumerable: true, get: function () { return CustomDestinationResponseForwardDestinationSplunk_1.CustomDestinationResponseForwardDestinationSplunk; } })); +var CustomDestinationResponseHttpDestinationAuthBasic_1 = __nccwpck_require__(80214); +Object.defineProperty(exports, "CustomDestinationResponseHttpDestinationAuthBasic", ({ enumerable: true, get: function () { return CustomDestinationResponseHttpDestinationAuthBasic_1.CustomDestinationResponseHttpDestinationAuthBasic; } })); +var CustomDestinationResponseHttpDestinationAuthCustomHeader_1 = __nccwpck_require__(60692); +Object.defineProperty(exports, "CustomDestinationResponseHttpDestinationAuthCustomHeader", ({ enumerable: true, get: function () { return CustomDestinationResponseHttpDestinationAuthCustomHeader_1.CustomDestinationResponseHttpDestinationAuthCustomHeader; } })); +var CustomDestinationsResponse_1 = __nccwpck_require__(50947); +Object.defineProperty(exports, "CustomDestinationsResponse", ({ enumerable: true, get: function () { return CustomDestinationsResponse_1.CustomDestinationsResponse; } })); +var CustomDestinationUpdateRequest_1 = __nccwpck_require__(45167); +Object.defineProperty(exports, "CustomDestinationUpdateRequest", ({ enumerable: true, get: function () { return CustomDestinationUpdateRequest_1.CustomDestinationUpdateRequest; } })); +var CustomDestinationUpdateRequestAttributes_1 = __nccwpck_require__(30634); +Object.defineProperty(exports, "CustomDestinationUpdateRequestAttributes", ({ enumerable: true, get: function () { return CustomDestinationUpdateRequestAttributes_1.CustomDestinationUpdateRequestAttributes; } })); +var CustomDestinationUpdateRequestDefinition_1 = __nccwpck_require__(43890); +Object.defineProperty(exports, "CustomDestinationUpdateRequestDefinition", ({ enumerable: true, get: function () { return CustomDestinationUpdateRequestDefinition_1.CustomDestinationUpdateRequestDefinition; } })); +var DashboardListAddItemsRequest_1 = __nccwpck_require__(64368); +Object.defineProperty(exports, "DashboardListAddItemsRequest", ({ enumerable: true, get: function () { return DashboardListAddItemsRequest_1.DashboardListAddItemsRequest; } })); +var DashboardListAddItemsResponse_1 = __nccwpck_require__(65578); +Object.defineProperty(exports, "DashboardListAddItemsResponse", ({ enumerable: true, get: function () { return DashboardListAddItemsResponse_1.DashboardListAddItemsResponse; } })); +var DashboardListDeleteItemsRequest_1 = __nccwpck_require__(42738); +Object.defineProperty(exports, "DashboardListDeleteItemsRequest", ({ enumerable: true, get: function () { return DashboardListDeleteItemsRequest_1.DashboardListDeleteItemsRequest; } })); +var DashboardListDeleteItemsResponse_1 = __nccwpck_require__(23836); +Object.defineProperty(exports, "DashboardListDeleteItemsResponse", ({ enumerable: true, get: function () { return DashboardListDeleteItemsResponse_1.DashboardListDeleteItemsResponse; } })); +var DashboardListItem_1 = __nccwpck_require__(31615); +Object.defineProperty(exports, "DashboardListItem", ({ enumerable: true, get: function () { return DashboardListItem_1.DashboardListItem; } })); +var DashboardListItemRequest_1 = __nccwpck_require__(10754); +Object.defineProperty(exports, "DashboardListItemRequest", ({ enumerable: true, get: function () { return DashboardListItemRequest_1.DashboardListItemRequest; } })); +var DashboardListItemResponse_1 = __nccwpck_require__(65100); +Object.defineProperty(exports, "DashboardListItemResponse", ({ enumerable: true, get: function () { return DashboardListItemResponse_1.DashboardListItemResponse; } })); +var DashboardListItems_1 = __nccwpck_require__(55642); +Object.defineProperty(exports, "DashboardListItems", ({ enumerable: true, get: function () { return DashboardListItems_1.DashboardListItems; } })); +var DashboardListUpdateItemsRequest_1 = __nccwpck_require__(93340); +Object.defineProperty(exports, "DashboardListUpdateItemsRequest", ({ enumerable: true, get: function () { return DashboardListUpdateItemsRequest_1.DashboardListUpdateItemsRequest; } })); +var DashboardListUpdateItemsResponse_1 = __nccwpck_require__(43390); +Object.defineProperty(exports, "DashboardListUpdateItemsResponse", ({ enumerable: true, get: function () { return DashboardListUpdateItemsResponse_1.DashboardListUpdateItemsResponse; } })); +var DataDeletionResponseItem_1 = __nccwpck_require__(15932); +Object.defineProperty(exports, "DataDeletionResponseItem", ({ enumerable: true, get: function () { return DataDeletionResponseItem_1.DataDeletionResponseItem; } })); +var DataDeletionResponseItemAttributes_1 = __nccwpck_require__(2285); +Object.defineProperty(exports, "DataDeletionResponseItemAttributes", ({ enumerable: true, get: function () { return DataDeletionResponseItemAttributes_1.DataDeletionResponseItemAttributes; } })); +var DataDeletionResponseMeta_1 = __nccwpck_require__(64486); +Object.defineProperty(exports, "DataDeletionResponseMeta", ({ enumerable: true, get: function () { return DataDeletionResponseMeta_1.DataDeletionResponseMeta; } })); +var DataScalarColumn_1 = __nccwpck_require__(33200); +Object.defineProperty(exports, "DataScalarColumn", ({ enumerable: true, get: function () { return DataScalarColumn_1.DataScalarColumn; } })); +var DeleteAppResponse_1 = __nccwpck_require__(32137); +Object.defineProperty(exports, "DeleteAppResponse", ({ enumerable: true, get: function () { return DeleteAppResponse_1.DeleteAppResponse; } })); +var DeleteAppResponseData_1 = __nccwpck_require__(25529); +Object.defineProperty(exports, "DeleteAppResponseData", ({ enumerable: true, get: function () { return DeleteAppResponseData_1.DeleteAppResponseData; } })); +var DeleteAppsRequest_1 = __nccwpck_require__(39852); +Object.defineProperty(exports, "DeleteAppsRequest", ({ enumerable: true, get: function () { return DeleteAppsRequest_1.DeleteAppsRequest; } })); +var DeleteAppsRequestDataItems_1 = __nccwpck_require__(75506); +Object.defineProperty(exports, "DeleteAppsRequestDataItems", ({ enumerable: true, get: function () { return DeleteAppsRequestDataItems_1.DeleteAppsRequestDataItems; } })); +var DeleteAppsResponse_1 = __nccwpck_require__(79310); +Object.defineProperty(exports, "DeleteAppsResponse", ({ enumerable: true, get: function () { return DeleteAppsResponse_1.DeleteAppsResponse; } })); +var DeleteAppsResponseDataItems_1 = __nccwpck_require__(94420); +Object.defineProperty(exports, "DeleteAppsResponseDataItems", ({ enumerable: true, get: function () { return DeleteAppsResponseDataItems_1.DeleteAppsResponseDataItems; } })); +var DeployAppResponse_1 = __nccwpck_require__(67613); +Object.defineProperty(exports, "DeployAppResponse", ({ enumerable: true, get: function () { return DeployAppResponse_1.DeployAppResponse; } })); +var DeployAppResponseData_1 = __nccwpck_require__(91997); +Object.defineProperty(exports, "DeployAppResponseData", ({ enumerable: true, get: function () { return DeployAppResponseData_1.DeployAppResponseData; } })); +var DeployAppResponseDataAttributes_1 = __nccwpck_require__(46868); +Object.defineProperty(exports, "DeployAppResponseDataAttributes", ({ enumerable: true, get: function () { return DeployAppResponseDataAttributes_1.DeployAppResponseDataAttributes; } })); +var DeploymentIncluded_1 = __nccwpck_require__(59389); +Object.defineProperty(exports, "DeploymentIncluded", ({ enumerable: true, get: function () { return DeploymentIncluded_1.DeploymentIncluded; } })); +var DeploymentIncludedAttributes_1 = __nccwpck_require__(99028); +Object.defineProperty(exports, "DeploymentIncludedAttributes", ({ enumerable: true, get: function () { return DeploymentIncludedAttributes_1.DeploymentIncludedAttributes; } })); +var DeploymentIncludedMeta_1 = __nccwpck_require__(14620); +Object.defineProperty(exports, "DeploymentIncludedMeta", ({ enumerable: true, get: function () { return DeploymentIncludedMeta_1.DeploymentIncludedMeta; } })); +var DeploymentMeta_1 = __nccwpck_require__(83388); +Object.defineProperty(exports, "DeploymentMeta", ({ enumerable: true, get: function () { return DeploymentMeta_1.DeploymentMeta; } })); +var DeploymentRelationship_1 = __nccwpck_require__(86823); +Object.defineProperty(exports, "DeploymentRelationship", ({ enumerable: true, get: function () { return DeploymentRelationship_1.DeploymentRelationship; } })); +var DeploymentRelationshipData_1 = __nccwpck_require__(75023); +Object.defineProperty(exports, "DeploymentRelationshipData", ({ enumerable: true, get: function () { return DeploymentRelationshipData_1.DeploymentRelationshipData; } })); +var DeploymentRelationshipMeta_1 = __nccwpck_require__(73110); +Object.defineProperty(exports, "DeploymentRelationshipMeta", ({ enumerable: true, get: function () { return DeploymentRelationshipMeta_1.DeploymentRelationshipMeta; } })); +var DetailedFinding_1 = __nccwpck_require__(57989); +Object.defineProperty(exports, "DetailedFinding", ({ enumerable: true, get: function () { return DetailedFinding_1.DetailedFinding; } })); +var DetailedFindingAttributes_1 = __nccwpck_require__(76716); +Object.defineProperty(exports, "DetailedFindingAttributes", ({ enumerable: true, get: function () { return DetailedFindingAttributes_1.DetailedFindingAttributes; } })); +var DeviceAttributes_1 = __nccwpck_require__(45229); +Object.defineProperty(exports, "DeviceAttributes", ({ enumerable: true, get: function () { return DeviceAttributes_1.DeviceAttributes; } })); +var DeviceAttributesInterfaceStatuses_1 = __nccwpck_require__(25752); +Object.defineProperty(exports, "DeviceAttributesInterfaceStatuses", ({ enumerable: true, get: function () { return DeviceAttributesInterfaceStatuses_1.DeviceAttributesInterfaceStatuses; } })); +var DevicesListData_1 = __nccwpck_require__(42627); +Object.defineProperty(exports, "DevicesListData", ({ enumerable: true, get: function () { return DevicesListData_1.DevicesListData; } })); +var DisableAppResponse_1 = __nccwpck_require__(23670); +Object.defineProperty(exports, "DisableAppResponse", ({ enumerable: true, get: function () { return DisableAppResponse_1.DisableAppResponse; } })); +var DisableAppResponseData_1 = __nccwpck_require__(89862); +Object.defineProperty(exports, "DisableAppResponseData", ({ enumerable: true, get: function () { return DisableAppResponseData_1.DisableAppResponseData; } })); +var DisableAppResponseDataAttributes_1 = __nccwpck_require__(12371); +Object.defineProperty(exports, "DisableAppResponseDataAttributes", ({ enumerable: true, get: function () { return DisableAppResponseDataAttributes_1.DisableAppResponseDataAttributes; } })); +var DomainAllowlist_1 = __nccwpck_require__(57513); +Object.defineProperty(exports, "DomainAllowlist", ({ enumerable: true, get: function () { return DomainAllowlist_1.DomainAllowlist; } })); +var DomainAllowlistAttributes_1 = __nccwpck_require__(22328); +Object.defineProperty(exports, "DomainAllowlistAttributes", ({ enumerable: true, get: function () { return DomainAllowlistAttributes_1.DomainAllowlistAttributes; } })); +var DomainAllowlistRequest_1 = __nccwpck_require__(57504); +Object.defineProperty(exports, "DomainAllowlistRequest", ({ enumerable: true, get: function () { return DomainAllowlistRequest_1.DomainAllowlistRequest; } })); +var DomainAllowlistResponse_1 = __nccwpck_require__(32730); +Object.defineProperty(exports, "DomainAllowlistResponse", ({ enumerable: true, get: function () { return DomainAllowlistResponse_1.DomainAllowlistResponse; } })); +var DomainAllowlistResponseData_1 = __nccwpck_require__(30906); +Object.defineProperty(exports, "DomainAllowlistResponseData", ({ enumerable: true, get: function () { return DomainAllowlistResponseData_1.DomainAllowlistResponseData; } })); +var DomainAllowlistResponseDataAttributes_1 = __nccwpck_require__(83807); +Object.defineProperty(exports, "DomainAllowlistResponseDataAttributes", ({ enumerable: true, get: function () { return DomainAllowlistResponseDataAttributes_1.DomainAllowlistResponseDataAttributes; } })); +var DORADeploymentRequest_1 = __nccwpck_require__(62512); +Object.defineProperty(exports, "DORADeploymentRequest", ({ enumerable: true, get: function () { return DORADeploymentRequest_1.DORADeploymentRequest; } })); +var DORADeploymentRequestAttributes_1 = __nccwpck_require__(58585); +Object.defineProperty(exports, "DORADeploymentRequestAttributes", ({ enumerable: true, get: function () { return DORADeploymentRequestAttributes_1.DORADeploymentRequestAttributes; } })); +var DORADeploymentRequestData_1 = __nccwpck_require__(73208); +Object.defineProperty(exports, "DORADeploymentRequestData", ({ enumerable: true, get: function () { return DORADeploymentRequestData_1.DORADeploymentRequestData; } })); +var DORADeploymentResponse_1 = __nccwpck_require__(39978); +Object.defineProperty(exports, "DORADeploymentResponse", ({ enumerable: true, get: function () { return DORADeploymentResponse_1.DORADeploymentResponse; } })); +var DORADeploymentResponseData_1 = __nccwpck_require__(2698); +Object.defineProperty(exports, "DORADeploymentResponseData", ({ enumerable: true, get: function () { return DORADeploymentResponseData_1.DORADeploymentResponseData; } })); +var DORAGitInfo_1 = __nccwpck_require__(24044); +Object.defineProperty(exports, "DORAGitInfo", ({ enumerable: true, get: function () { return DORAGitInfo_1.DORAGitInfo; } })); +var DORAIncidentRequest_1 = __nccwpck_require__(64375); +Object.defineProperty(exports, "DORAIncidentRequest", ({ enumerable: true, get: function () { return DORAIncidentRequest_1.DORAIncidentRequest; } })); +var DORAIncidentRequestAttributes_1 = __nccwpck_require__(90946); +Object.defineProperty(exports, "DORAIncidentRequestAttributes", ({ enumerable: true, get: function () { return DORAIncidentRequestAttributes_1.DORAIncidentRequestAttributes; } })); +var DORAIncidentRequestData_1 = __nccwpck_require__(17983); +Object.defineProperty(exports, "DORAIncidentRequestData", ({ enumerable: true, get: function () { return DORAIncidentRequestData_1.DORAIncidentRequestData; } })); +var DORAIncidentResponse_1 = __nccwpck_require__(57091); +Object.defineProperty(exports, "DORAIncidentResponse", ({ enumerable: true, get: function () { return DORAIncidentResponse_1.DORAIncidentResponse; } })); +var DORAIncidentResponseData_1 = __nccwpck_require__(66923); +Object.defineProperty(exports, "DORAIncidentResponseData", ({ enumerable: true, get: function () { return DORAIncidentResponseData_1.DORAIncidentResponseData; } })); +var DowntimeCreateRequest_1 = __nccwpck_require__(54062); +Object.defineProperty(exports, "DowntimeCreateRequest", ({ enumerable: true, get: function () { return DowntimeCreateRequest_1.DowntimeCreateRequest; } })); +var DowntimeCreateRequestAttributes_1 = __nccwpck_require__(73035); +Object.defineProperty(exports, "DowntimeCreateRequestAttributes", ({ enumerable: true, get: function () { return DowntimeCreateRequestAttributes_1.DowntimeCreateRequestAttributes; } })); +var DowntimeCreateRequestData_1 = __nccwpck_require__(71646); +Object.defineProperty(exports, "DowntimeCreateRequestData", ({ enumerable: true, get: function () { return DowntimeCreateRequestData_1.DowntimeCreateRequestData; } })); +var DowntimeMeta_1 = __nccwpck_require__(7582); +Object.defineProperty(exports, "DowntimeMeta", ({ enumerable: true, get: function () { return DowntimeMeta_1.DowntimeMeta; } })); +var DowntimeMetaPage_1 = __nccwpck_require__(14313); +Object.defineProperty(exports, "DowntimeMetaPage", ({ enumerable: true, get: function () { return DowntimeMetaPage_1.DowntimeMetaPage; } })); +var DowntimeMonitorIdentifierId_1 = __nccwpck_require__(77831); +Object.defineProperty(exports, "DowntimeMonitorIdentifierId", ({ enumerable: true, get: function () { return DowntimeMonitorIdentifierId_1.DowntimeMonitorIdentifierId; } })); +var DowntimeMonitorIdentifierTags_1 = __nccwpck_require__(32383); +Object.defineProperty(exports, "DowntimeMonitorIdentifierTags", ({ enumerable: true, get: function () { return DowntimeMonitorIdentifierTags_1.DowntimeMonitorIdentifierTags; } })); +var DowntimeMonitorIncludedAttributes_1 = __nccwpck_require__(43520); +Object.defineProperty(exports, "DowntimeMonitorIncludedAttributes", ({ enumerable: true, get: function () { return DowntimeMonitorIncludedAttributes_1.DowntimeMonitorIncludedAttributes; } })); +var DowntimeMonitorIncludedItem_1 = __nccwpck_require__(94190); +Object.defineProperty(exports, "DowntimeMonitorIncludedItem", ({ enumerable: true, get: function () { return DowntimeMonitorIncludedItem_1.DowntimeMonitorIncludedItem; } })); +var DowntimeRelationships_1 = __nccwpck_require__(98404); +Object.defineProperty(exports, "DowntimeRelationships", ({ enumerable: true, get: function () { return DowntimeRelationships_1.DowntimeRelationships; } })); +var DowntimeRelationshipsCreatedBy_1 = __nccwpck_require__(86135); +Object.defineProperty(exports, "DowntimeRelationshipsCreatedBy", ({ enumerable: true, get: function () { return DowntimeRelationshipsCreatedBy_1.DowntimeRelationshipsCreatedBy; } })); +var DowntimeRelationshipsCreatedByData_1 = __nccwpck_require__(40127); +Object.defineProperty(exports, "DowntimeRelationshipsCreatedByData", ({ enumerable: true, get: function () { return DowntimeRelationshipsCreatedByData_1.DowntimeRelationshipsCreatedByData; } })); +var DowntimeRelationshipsMonitor_1 = __nccwpck_require__(49252); +Object.defineProperty(exports, "DowntimeRelationshipsMonitor", ({ enumerable: true, get: function () { return DowntimeRelationshipsMonitor_1.DowntimeRelationshipsMonitor; } })); +var DowntimeRelationshipsMonitorData_1 = __nccwpck_require__(64684); +Object.defineProperty(exports, "DowntimeRelationshipsMonitorData", ({ enumerable: true, get: function () { return DowntimeRelationshipsMonitorData_1.DowntimeRelationshipsMonitorData; } })); +var DowntimeResponse_1 = __nccwpck_require__(23372); +Object.defineProperty(exports, "DowntimeResponse", ({ enumerable: true, get: function () { return DowntimeResponse_1.DowntimeResponse; } })); +var DowntimeResponseAttributes_1 = __nccwpck_require__(7325); +Object.defineProperty(exports, "DowntimeResponseAttributes", ({ enumerable: true, get: function () { return DowntimeResponseAttributes_1.DowntimeResponseAttributes; } })); +var DowntimeResponseData_1 = __nccwpck_require__(95348); +Object.defineProperty(exports, "DowntimeResponseData", ({ enumerable: true, get: function () { return DowntimeResponseData_1.DowntimeResponseData; } })); +var DowntimeScheduleCurrentDowntimeResponse_1 = __nccwpck_require__(72591); +Object.defineProperty(exports, "DowntimeScheduleCurrentDowntimeResponse", ({ enumerable: true, get: function () { return DowntimeScheduleCurrentDowntimeResponse_1.DowntimeScheduleCurrentDowntimeResponse; } })); +var DowntimeScheduleOneTimeCreateUpdateRequest_1 = __nccwpck_require__(41003); +Object.defineProperty(exports, "DowntimeScheduleOneTimeCreateUpdateRequest", ({ enumerable: true, get: function () { return DowntimeScheduleOneTimeCreateUpdateRequest_1.DowntimeScheduleOneTimeCreateUpdateRequest; } })); +var DowntimeScheduleOneTimeResponse_1 = __nccwpck_require__(47986); +Object.defineProperty(exports, "DowntimeScheduleOneTimeResponse", ({ enumerable: true, get: function () { return DowntimeScheduleOneTimeResponse_1.DowntimeScheduleOneTimeResponse; } })); +var DowntimeScheduleRecurrenceCreateUpdateRequest_1 = __nccwpck_require__(17128); +Object.defineProperty(exports, "DowntimeScheduleRecurrenceCreateUpdateRequest", ({ enumerable: true, get: function () { return DowntimeScheduleRecurrenceCreateUpdateRequest_1.DowntimeScheduleRecurrenceCreateUpdateRequest; } })); +var DowntimeScheduleRecurrenceResponse_1 = __nccwpck_require__(42923); +Object.defineProperty(exports, "DowntimeScheduleRecurrenceResponse", ({ enumerable: true, get: function () { return DowntimeScheduleRecurrenceResponse_1.DowntimeScheduleRecurrenceResponse; } })); +var DowntimeScheduleRecurrencesCreateRequest_1 = __nccwpck_require__(2170); +Object.defineProperty(exports, "DowntimeScheduleRecurrencesCreateRequest", ({ enumerable: true, get: function () { return DowntimeScheduleRecurrencesCreateRequest_1.DowntimeScheduleRecurrencesCreateRequest; } })); +var DowntimeScheduleRecurrencesResponse_1 = __nccwpck_require__(58616); +Object.defineProperty(exports, "DowntimeScheduleRecurrencesResponse", ({ enumerable: true, get: function () { return DowntimeScheduleRecurrencesResponse_1.DowntimeScheduleRecurrencesResponse; } })); +var DowntimeScheduleRecurrencesUpdateRequest_1 = __nccwpck_require__(80509); +Object.defineProperty(exports, "DowntimeScheduleRecurrencesUpdateRequest", ({ enumerable: true, get: function () { return DowntimeScheduleRecurrencesUpdateRequest_1.DowntimeScheduleRecurrencesUpdateRequest; } })); +var DowntimeUpdateRequest_1 = __nccwpck_require__(45753); +Object.defineProperty(exports, "DowntimeUpdateRequest", ({ enumerable: true, get: function () { return DowntimeUpdateRequest_1.DowntimeUpdateRequest; } })); +var DowntimeUpdateRequestAttributes_1 = __nccwpck_require__(23624); +Object.defineProperty(exports, "DowntimeUpdateRequestAttributes", ({ enumerable: true, get: function () { return DowntimeUpdateRequestAttributes_1.DowntimeUpdateRequestAttributes; } })); +var DowntimeUpdateRequestData_1 = __nccwpck_require__(72905); +Object.defineProperty(exports, "DowntimeUpdateRequestData", ({ enumerable: true, get: function () { return DowntimeUpdateRequestData_1.DowntimeUpdateRequestData; } })); +var EntityAttributes_1 = __nccwpck_require__(78000); +Object.defineProperty(exports, "EntityAttributes", ({ enumerable: true, get: function () { return EntityAttributes_1.EntityAttributes; } })); +var EntityData_1 = __nccwpck_require__(77889); +Object.defineProperty(exports, "EntityData", ({ enumerable: true, get: function () { return EntityData_1.EntityData; } })); +var EntityMeta_1 = __nccwpck_require__(45208); +Object.defineProperty(exports, "EntityMeta", ({ enumerable: true, get: function () { return EntityMeta_1.EntityMeta; } })); +var EntityRelationships_1 = __nccwpck_require__(79494); +Object.defineProperty(exports, "EntityRelationships", ({ enumerable: true, get: function () { return EntityRelationships_1.EntityRelationships; } })); +var EntityResponseIncludedIncident_1 = __nccwpck_require__(51316); +Object.defineProperty(exports, "EntityResponseIncludedIncident", ({ enumerable: true, get: function () { return EntityResponseIncludedIncident_1.EntityResponseIncludedIncident; } })); +var EntityResponseIncludedOncall_1 = __nccwpck_require__(63911); +Object.defineProperty(exports, "EntityResponseIncludedOncall", ({ enumerable: true, get: function () { return EntityResponseIncludedOncall_1.EntityResponseIncludedOncall; } })); +var EntityResponseIncludedRawSchema_1 = __nccwpck_require__(10781); +Object.defineProperty(exports, "EntityResponseIncludedRawSchema", ({ enumerable: true, get: function () { return EntityResponseIncludedRawSchema_1.EntityResponseIncludedRawSchema; } })); +var EntityResponseIncludedRawSchemaAttributes_1 = __nccwpck_require__(45972); +Object.defineProperty(exports, "EntityResponseIncludedRawSchemaAttributes", ({ enumerable: true, get: function () { return EntityResponseIncludedRawSchemaAttributes_1.EntityResponseIncludedRawSchemaAttributes; } })); +var EntityResponseIncludedRelatedEntity_1 = __nccwpck_require__(19616); +Object.defineProperty(exports, "EntityResponseIncludedRelatedEntity", ({ enumerable: true, get: function () { return EntityResponseIncludedRelatedEntity_1.EntityResponseIncludedRelatedEntity; } })); +var EntityResponseIncludedRelatedEntityAttributes_1 = __nccwpck_require__(39689); +Object.defineProperty(exports, "EntityResponseIncludedRelatedEntityAttributes", ({ enumerable: true, get: function () { return EntityResponseIncludedRelatedEntityAttributes_1.EntityResponseIncludedRelatedEntityAttributes; } })); +var EntityResponseIncludedRelatedEntityMeta_1 = __nccwpck_require__(99401); +Object.defineProperty(exports, "EntityResponseIncludedRelatedEntityMeta", ({ enumerable: true, get: function () { return EntityResponseIncludedRelatedEntityMeta_1.EntityResponseIncludedRelatedEntityMeta; } })); +var EntityResponseIncludedRelatedIncidentAttributes_1 = __nccwpck_require__(21216); +Object.defineProperty(exports, "EntityResponseIncludedRelatedIncidentAttributes", ({ enumerable: true, get: function () { return EntityResponseIncludedRelatedIncidentAttributes_1.EntityResponseIncludedRelatedIncidentAttributes; } })); +var EntityResponseIncludedRelatedOncallAttributes_1 = __nccwpck_require__(15323); +Object.defineProperty(exports, "EntityResponseIncludedRelatedOncallAttributes", ({ enumerable: true, get: function () { return EntityResponseIncludedRelatedOncallAttributes_1.EntityResponseIncludedRelatedOncallAttributes; } })); +var EntityResponseIncludedRelatedOncallEscalationItem_1 = __nccwpck_require__(84124); +Object.defineProperty(exports, "EntityResponseIncludedRelatedOncallEscalationItem", ({ enumerable: true, get: function () { return EntityResponseIncludedRelatedOncallEscalationItem_1.EntityResponseIncludedRelatedOncallEscalationItem; } })); +var EntityResponseIncludedSchema_1 = __nccwpck_require__(99257); +Object.defineProperty(exports, "EntityResponseIncludedSchema", ({ enumerable: true, get: function () { return EntityResponseIncludedSchema_1.EntityResponseIncludedSchema; } })); +var EntityResponseIncludedSchemaAttributes_1 = __nccwpck_require__(83368); +Object.defineProperty(exports, "EntityResponseIncludedSchemaAttributes", ({ enumerable: true, get: function () { return EntityResponseIncludedSchemaAttributes_1.EntityResponseIncludedSchemaAttributes; } })); +var EntityResponseMeta_1 = __nccwpck_require__(92035); +Object.defineProperty(exports, "EntityResponseMeta", ({ enumerable: true, get: function () { return EntityResponseMeta_1.EntityResponseMeta; } })); +var EntityToIncidents_1 = __nccwpck_require__(64873); +Object.defineProperty(exports, "EntityToIncidents", ({ enumerable: true, get: function () { return EntityToIncidents_1.EntityToIncidents; } })); +var EntityToOncalls_1 = __nccwpck_require__(76232); +Object.defineProperty(exports, "EntityToOncalls", ({ enumerable: true, get: function () { return EntityToOncalls_1.EntityToOncalls; } })); +var EntityToRawSchema_1 = __nccwpck_require__(26323); +Object.defineProperty(exports, "EntityToRawSchema", ({ enumerable: true, get: function () { return EntityToRawSchema_1.EntityToRawSchema; } })); +var EntityToRelatedEntities_1 = __nccwpck_require__(81514); +Object.defineProperty(exports, "EntityToRelatedEntities", ({ enumerable: true, get: function () { return EntityToRelatedEntities_1.EntityToRelatedEntities; } })); +var EntityToSchema_1 = __nccwpck_require__(21523); +Object.defineProperty(exports, "EntityToSchema", ({ enumerable: true, get: function () { return EntityToSchema_1.EntityToSchema; } })); +var EntityV3DatadogCodeLocationItem_1 = __nccwpck_require__(30259); +Object.defineProperty(exports, "EntityV3DatadogCodeLocationItem", ({ enumerable: true, get: function () { return EntityV3DatadogCodeLocationItem_1.EntityV3DatadogCodeLocationItem; } })); +var EntityV3DatadogEventItem_1 = __nccwpck_require__(56911); +Object.defineProperty(exports, "EntityV3DatadogEventItem", ({ enumerable: true, get: function () { return EntityV3DatadogEventItem_1.EntityV3DatadogEventItem; } })); +var EntityV3DatadogIntegrationOpsgenie_1 = __nccwpck_require__(78302); +Object.defineProperty(exports, "EntityV3DatadogIntegrationOpsgenie", ({ enumerable: true, get: function () { return EntityV3DatadogIntegrationOpsgenie_1.EntityV3DatadogIntegrationOpsgenie; } })); +var EntityV3DatadogIntegrationPagerduty_1 = __nccwpck_require__(36567); +Object.defineProperty(exports, "EntityV3DatadogIntegrationPagerduty", ({ enumerable: true, get: function () { return EntityV3DatadogIntegrationPagerduty_1.EntityV3DatadogIntegrationPagerduty; } })); +var EntityV3DatadogLogItem_1 = __nccwpck_require__(56213); +Object.defineProperty(exports, "EntityV3DatadogLogItem", ({ enumerable: true, get: function () { return EntityV3DatadogLogItem_1.EntityV3DatadogLogItem; } })); +var EntityV3DatadogPerformance_1 = __nccwpck_require__(89934); +Object.defineProperty(exports, "EntityV3DatadogPerformance", ({ enumerable: true, get: function () { return EntityV3DatadogPerformance_1.EntityV3DatadogPerformance; } })); +var EntityV3DatadogPipelines_1 = __nccwpck_require__(41255); +Object.defineProperty(exports, "EntityV3DatadogPipelines", ({ enumerable: true, get: function () { return EntityV3DatadogPipelines_1.EntityV3DatadogPipelines; } })); +var EntityV3Datastore_1 = __nccwpck_require__(8829); +Object.defineProperty(exports, "EntityV3Datastore", ({ enumerable: true, get: function () { return EntityV3Datastore_1.EntityV3Datastore; } })); +var EntityV3DatastoreDatadog_1 = __nccwpck_require__(6391); +Object.defineProperty(exports, "EntityV3DatastoreDatadog", ({ enumerable: true, get: function () { return EntityV3DatastoreDatadog_1.EntityV3DatastoreDatadog; } })); +var EntityV3DatastoreSpec_1 = __nccwpck_require__(8582); +Object.defineProperty(exports, "EntityV3DatastoreSpec", ({ enumerable: true, get: function () { return EntityV3DatastoreSpec_1.EntityV3DatastoreSpec; } })); +var EntityV3Integrations_1 = __nccwpck_require__(85905); +Object.defineProperty(exports, "EntityV3Integrations", ({ enumerable: true, get: function () { return EntityV3Integrations_1.EntityV3Integrations; } })); +var EntityV3Metadata_1 = __nccwpck_require__(98083); +Object.defineProperty(exports, "EntityV3Metadata", ({ enumerable: true, get: function () { return EntityV3Metadata_1.EntityV3Metadata; } })); +var EntityV3MetadataAdditionalOwnersItems_1 = __nccwpck_require__(94200); +Object.defineProperty(exports, "EntityV3MetadataAdditionalOwnersItems", ({ enumerable: true, get: function () { return EntityV3MetadataAdditionalOwnersItems_1.EntityV3MetadataAdditionalOwnersItems; } })); +var EntityV3MetadataContactsItems_1 = __nccwpck_require__(25272); +Object.defineProperty(exports, "EntityV3MetadataContactsItems", ({ enumerable: true, get: function () { return EntityV3MetadataContactsItems_1.EntityV3MetadataContactsItems; } })); +var EntityV3MetadataLinksItems_1 = __nccwpck_require__(76956); +Object.defineProperty(exports, "EntityV3MetadataLinksItems", ({ enumerable: true, get: function () { return EntityV3MetadataLinksItems_1.EntityV3MetadataLinksItems; } })); +var EntityV3MetadataOwner_1 = __nccwpck_require__(86408); +Object.defineProperty(exports, "EntityV3MetadataOwner", ({ enumerable: true, get: function () { return EntityV3MetadataOwner_1.EntityV3MetadataOwner; } })); +var EntityV3Queue_1 = __nccwpck_require__(251); +Object.defineProperty(exports, "EntityV3Queue", ({ enumerable: true, get: function () { return EntityV3Queue_1.EntityV3Queue; } })); +var EntityV3QueueDatadog_1 = __nccwpck_require__(62257); +Object.defineProperty(exports, "EntityV3QueueDatadog", ({ enumerable: true, get: function () { return EntityV3QueueDatadog_1.EntityV3QueueDatadog; } })); +var EntityV3QueueSpec_1 = __nccwpck_require__(53756); +Object.defineProperty(exports, "EntityV3QueueSpec", ({ enumerable: true, get: function () { return EntityV3QueueSpec_1.EntityV3QueueSpec; } })); +var EntityV3Service_1 = __nccwpck_require__(77071); +Object.defineProperty(exports, "EntityV3Service", ({ enumerable: true, get: function () { return EntityV3Service_1.EntityV3Service; } })); +var EntityV3ServiceDatadog_1 = __nccwpck_require__(17189); +Object.defineProperty(exports, "EntityV3ServiceDatadog", ({ enumerable: true, get: function () { return EntityV3ServiceDatadog_1.EntityV3ServiceDatadog; } })); +var EntityV3ServiceSpec_1 = __nccwpck_require__(40472); +Object.defineProperty(exports, "EntityV3ServiceSpec", ({ enumerable: true, get: function () { return EntityV3ServiceSpec_1.EntityV3ServiceSpec; } })); +var EntityV3System_1 = __nccwpck_require__(12807); +Object.defineProperty(exports, "EntityV3System", ({ enumerable: true, get: function () { return EntityV3System_1.EntityV3System; } })); +var EntityV3SystemDatadog_1 = __nccwpck_require__(3613); +Object.defineProperty(exports, "EntityV3SystemDatadog", ({ enumerable: true, get: function () { return EntityV3SystemDatadog_1.EntityV3SystemDatadog; } })); +var EntityV3SystemSpec_1 = __nccwpck_require__(69923); +Object.defineProperty(exports, "EntityV3SystemSpec", ({ enumerable: true, get: function () { return EntityV3SystemSpec_1.EntityV3SystemSpec; } })); +var Event_1 = __nccwpck_require__(6784); +Object.defineProperty(exports, "Event", ({ enumerable: true, get: function () { return Event_1.Event; } })); +var EventAttributes_1 = __nccwpck_require__(28297); +Object.defineProperty(exports, "EventAttributes", ({ enumerable: true, get: function () { return EventAttributes_1.EventAttributes; } })); +var EventCreateRequest_1 = __nccwpck_require__(8603); +Object.defineProperty(exports, "EventCreateRequest", ({ enumerable: true, get: function () { return EventCreateRequest_1.EventCreateRequest; } })); +var EventCreateRequestPayload_1 = __nccwpck_require__(53093); +Object.defineProperty(exports, "EventCreateRequestPayload", ({ enumerable: true, get: function () { return EventCreateRequestPayload_1.EventCreateRequestPayload; } })); +var EventCreateResponse_1 = __nccwpck_require__(23583); +Object.defineProperty(exports, "EventCreateResponse", ({ enumerable: true, get: function () { return EventCreateResponse_1.EventCreateResponse; } })); +var EventCreateResponseAttributes_1 = __nccwpck_require__(71130); +Object.defineProperty(exports, "EventCreateResponseAttributes", ({ enumerable: true, get: function () { return EventCreateResponseAttributes_1.EventCreateResponseAttributes; } })); +var EventCreateResponseAttributesAttributes_1 = __nccwpck_require__(77279); +Object.defineProperty(exports, "EventCreateResponseAttributesAttributes", ({ enumerable: true, get: function () { return EventCreateResponseAttributesAttributes_1.EventCreateResponseAttributesAttributes; } })); +var EventCreateResponseAttributesAttributesEvt_1 = __nccwpck_require__(18158); +Object.defineProperty(exports, "EventCreateResponseAttributesAttributesEvt", ({ enumerable: true, get: function () { return EventCreateResponseAttributesAttributesEvt_1.EventCreateResponseAttributesAttributesEvt; } })); +var EventCreateResponsePayload_1 = __nccwpck_require__(83305); +Object.defineProperty(exports, "EventCreateResponsePayload", ({ enumerable: true, get: function () { return EventCreateResponsePayload_1.EventCreateResponsePayload; } })); +var EventPayload_1 = __nccwpck_require__(14416); +Object.defineProperty(exports, "EventPayload", ({ enumerable: true, get: function () { return EventPayload_1.EventPayload; } })); +var EventResponse_1 = __nccwpck_require__(59863); +Object.defineProperty(exports, "EventResponse", ({ enumerable: true, get: function () { return EventResponse_1.EventResponse; } })); +var EventResponseAttributes_1 = __nccwpck_require__(65058); +Object.defineProperty(exports, "EventResponseAttributes", ({ enumerable: true, get: function () { return EventResponseAttributes_1.EventResponseAttributes; } })); +var EventsCompute_1 = __nccwpck_require__(74706); +Object.defineProperty(exports, "EventsCompute", ({ enumerable: true, get: function () { return EventsCompute_1.EventsCompute; } })); +var EventsGroupBy_1 = __nccwpck_require__(59881); +Object.defineProperty(exports, "EventsGroupBy", ({ enumerable: true, get: function () { return EventsGroupBy_1.EventsGroupBy; } })); +var EventsGroupBySort_1 = __nccwpck_require__(35417); +Object.defineProperty(exports, "EventsGroupBySort", ({ enumerable: true, get: function () { return EventsGroupBySort_1.EventsGroupBySort; } })); +var EventsListRequest_1 = __nccwpck_require__(67738); +Object.defineProperty(exports, "EventsListRequest", ({ enumerable: true, get: function () { return EventsListRequest_1.EventsListRequest; } })); +var EventsListResponse_1 = __nccwpck_require__(43636); +Object.defineProperty(exports, "EventsListResponse", ({ enumerable: true, get: function () { return EventsListResponse_1.EventsListResponse; } })); +var EventsListResponseLinks_1 = __nccwpck_require__(34559); +Object.defineProperty(exports, "EventsListResponseLinks", ({ enumerable: true, get: function () { return EventsListResponseLinks_1.EventsListResponseLinks; } })); +var EventsQueryFilter_1 = __nccwpck_require__(67561); +Object.defineProperty(exports, "EventsQueryFilter", ({ enumerable: true, get: function () { return EventsQueryFilter_1.EventsQueryFilter; } })); +var EventsQueryOptions_1 = __nccwpck_require__(1133); +Object.defineProperty(exports, "EventsQueryOptions", ({ enumerable: true, get: function () { return EventsQueryOptions_1.EventsQueryOptions; } })); +var EventsRequestPage_1 = __nccwpck_require__(31210); +Object.defineProperty(exports, "EventsRequestPage", ({ enumerable: true, get: function () { return EventsRequestPage_1.EventsRequestPage; } })); +var EventsResponseMetadata_1 = __nccwpck_require__(1709); +Object.defineProperty(exports, "EventsResponseMetadata", ({ enumerable: true, get: function () { return EventsResponseMetadata_1.EventsResponseMetadata; } })); +var EventsResponseMetadataPage_1 = __nccwpck_require__(10794); +Object.defineProperty(exports, "EventsResponseMetadataPage", ({ enumerable: true, get: function () { return EventsResponseMetadataPage_1.EventsResponseMetadataPage; } })); +var EventsScalarQuery_1 = __nccwpck_require__(70487); +Object.defineProperty(exports, "EventsScalarQuery", ({ enumerable: true, get: function () { return EventsScalarQuery_1.EventsScalarQuery; } })); +var EventsSearch_1 = __nccwpck_require__(37067); +Object.defineProperty(exports, "EventsSearch", ({ enumerable: true, get: function () { return EventsSearch_1.EventsSearch; } })); +var EventsTimeseriesQuery_1 = __nccwpck_require__(68351); +Object.defineProperty(exports, "EventsTimeseriesQuery", ({ enumerable: true, get: function () { return EventsTimeseriesQuery_1.EventsTimeseriesQuery; } })); +var EventsWarning_1 = __nccwpck_require__(54139); +Object.defineProperty(exports, "EventsWarning", ({ enumerable: true, get: function () { return EventsWarning_1.EventsWarning; } })); +var FastlyAccounResponseAttributes_1 = __nccwpck_require__(59392); +Object.defineProperty(exports, "FastlyAccounResponseAttributes", ({ enumerable: true, get: function () { return FastlyAccounResponseAttributes_1.FastlyAccounResponseAttributes; } })); +var FastlyAccountCreateRequest_1 = __nccwpck_require__(86827); +Object.defineProperty(exports, "FastlyAccountCreateRequest", ({ enumerable: true, get: function () { return FastlyAccountCreateRequest_1.FastlyAccountCreateRequest; } })); +var FastlyAccountCreateRequestAttributes_1 = __nccwpck_require__(69694); +Object.defineProperty(exports, "FastlyAccountCreateRequestAttributes", ({ enumerable: true, get: function () { return FastlyAccountCreateRequestAttributes_1.FastlyAccountCreateRequestAttributes; } })); +var FastlyAccountCreateRequestData_1 = __nccwpck_require__(35731); +Object.defineProperty(exports, "FastlyAccountCreateRequestData", ({ enumerable: true, get: function () { return FastlyAccountCreateRequestData_1.FastlyAccountCreateRequestData; } })); +var FastlyAccountResponse_1 = __nccwpck_require__(26759); +Object.defineProperty(exports, "FastlyAccountResponse", ({ enumerable: true, get: function () { return FastlyAccountResponse_1.FastlyAccountResponse; } })); +var FastlyAccountResponseData_1 = __nccwpck_require__(16943); +Object.defineProperty(exports, "FastlyAccountResponseData", ({ enumerable: true, get: function () { return FastlyAccountResponseData_1.FastlyAccountResponseData; } })); +var FastlyAccountsResponse_1 = __nccwpck_require__(99356); +Object.defineProperty(exports, "FastlyAccountsResponse", ({ enumerable: true, get: function () { return FastlyAccountsResponse_1.FastlyAccountsResponse; } })); +var FastlyAccountUpdateRequest_1 = __nccwpck_require__(47420); +Object.defineProperty(exports, "FastlyAccountUpdateRequest", ({ enumerable: true, get: function () { return FastlyAccountUpdateRequest_1.FastlyAccountUpdateRequest; } })); +var FastlyAccountUpdateRequestAttributes_1 = __nccwpck_require__(36986); +Object.defineProperty(exports, "FastlyAccountUpdateRequestAttributes", ({ enumerable: true, get: function () { return FastlyAccountUpdateRequestAttributes_1.FastlyAccountUpdateRequestAttributes; } })); +var FastlyAccountUpdateRequestData_1 = __nccwpck_require__(72836); +Object.defineProperty(exports, "FastlyAccountUpdateRequestData", ({ enumerable: true, get: function () { return FastlyAccountUpdateRequestData_1.FastlyAccountUpdateRequestData; } })); +var FastlyService_1 = __nccwpck_require__(33196); +Object.defineProperty(exports, "FastlyService", ({ enumerable: true, get: function () { return FastlyService_1.FastlyService; } })); +var FastlyServiceAttributes_1 = __nccwpck_require__(57053); +Object.defineProperty(exports, "FastlyServiceAttributes", ({ enumerable: true, get: function () { return FastlyServiceAttributes_1.FastlyServiceAttributes; } })); +var FastlyServiceData_1 = __nccwpck_require__(68468); +Object.defineProperty(exports, "FastlyServiceData", ({ enumerable: true, get: function () { return FastlyServiceData_1.FastlyServiceData; } })); +var FastlyServiceRequest_1 = __nccwpck_require__(84935); +Object.defineProperty(exports, "FastlyServiceRequest", ({ enumerable: true, get: function () { return FastlyServiceRequest_1.FastlyServiceRequest; } })); +var FastlyServiceResponse_1 = __nccwpck_require__(54163); +Object.defineProperty(exports, "FastlyServiceResponse", ({ enumerable: true, get: function () { return FastlyServiceResponse_1.FastlyServiceResponse; } })); +var FastlyServicesResponse_1 = __nccwpck_require__(60432); +Object.defineProperty(exports, "FastlyServicesResponse", ({ enumerable: true, get: function () { return FastlyServicesResponse_1.FastlyServicesResponse; } })); +var Finding_1 = __nccwpck_require__(40997); +Object.defineProperty(exports, "Finding", ({ enumerable: true, get: function () { return Finding_1.Finding; } })); +var FindingAttributes_1 = __nccwpck_require__(34220); +Object.defineProperty(exports, "FindingAttributes", ({ enumerable: true, get: function () { return FindingAttributes_1.FindingAttributes; } })); +var FindingMute_1 = __nccwpck_require__(61528); +Object.defineProperty(exports, "FindingMute", ({ enumerable: true, get: function () { return FindingMute_1.FindingMute; } })); +var FindingRule_1 = __nccwpck_require__(94611); +Object.defineProperty(exports, "FindingRule", ({ enumerable: true, get: function () { return FindingRule_1.FindingRule; } })); +var FormulaLimit_1 = __nccwpck_require__(71991); +Object.defineProperty(exports, "FormulaLimit", ({ enumerable: true, get: function () { return FormulaLimit_1.FormulaLimit; } })); +var FullAPIKey_1 = __nccwpck_require__(63164); +Object.defineProperty(exports, "FullAPIKey", ({ enumerable: true, get: function () { return FullAPIKey_1.FullAPIKey; } })); +var FullAPIKeyAttributes_1 = __nccwpck_require__(81133); +Object.defineProperty(exports, "FullAPIKeyAttributes", ({ enumerable: true, get: function () { return FullAPIKeyAttributes_1.FullAPIKeyAttributes; } })); +var FullApplicationKey_1 = __nccwpck_require__(93398); +Object.defineProperty(exports, "FullApplicationKey", ({ enumerable: true, get: function () { return FullApplicationKey_1.FullApplicationKey; } })); +var FullApplicationKeyAttributes_1 = __nccwpck_require__(84099); +Object.defineProperty(exports, "FullApplicationKeyAttributes", ({ enumerable: true, get: function () { return FullApplicationKeyAttributes_1.FullApplicationKeyAttributes; } })); +var GCPMetricNamespaceConfig_1 = __nccwpck_require__(62689); +Object.defineProperty(exports, "GCPMetricNamespaceConfig", ({ enumerable: true, get: function () { return GCPMetricNamespaceConfig_1.GCPMetricNamespaceConfig; } })); +var GCPServiceAccountMeta_1 = __nccwpck_require__(10541); +Object.defineProperty(exports, "GCPServiceAccountMeta", ({ enumerable: true, get: function () { return GCPServiceAccountMeta_1.GCPServiceAccountMeta; } })); +var GCPSTSDelegateAccount_1 = __nccwpck_require__(83724); +Object.defineProperty(exports, "GCPSTSDelegateAccount", ({ enumerable: true, get: function () { return GCPSTSDelegateAccount_1.GCPSTSDelegateAccount; } })); +var GCPSTSDelegateAccountAttributes_1 = __nccwpck_require__(13277); +Object.defineProperty(exports, "GCPSTSDelegateAccountAttributes", ({ enumerable: true, get: function () { return GCPSTSDelegateAccountAttributes_1.GCPSTSDelegateAccountAttributes; } })); +var GCPSTSDelegateAccountResponse_1 = __nccwpck_require__(61811); +Object.defineProperty(exports, "GCPSTSDelegateAccountResponse", ({ enumerable: true, get: function () { return GCPSTSDelegateAccountResponse_1.GCPSTSDelegateAccountResponse; } })); +var GCPSTSServiceAccount_1 = __nccwpck_require__(29310); +Object.defineProperty(exports, "GCPSTSServiceAccount", ({ enumerable: true, get: function () { return GCPSTSServiceAccount_1.GCPSTSServiceAccount; } })); +var GCPSTSServiceAccountAttributes_1 = __nccwpck_require__(4859); +Object.defineProperty(exports, "GCPSTSServiceAccountAttributes", ({ enumerable: true, get: function () { return GCPSTSServiceAccountAttributes_1.GCPSTSServiceAccountAttributes; } })); +var GCPSTSServiceAccountCreateRequest_1 = __nccwpck_require__(69957); +Object.defineProperty(exports, "GCPSTSServiceAccountCreateRequest", ({ enumerable: true, get: function () { return GCPSTSServiceAccountCreateRequest_1.GCPSTSServiceAccountCreateRequest; } })); +var GCPSTSServiceAccountData_1 = __nccwpck_require__(61742); +Object.defineProperty(exports, "GCPSTSServiceAccountData", ({ enumerable: true, get: function () { return GCPSTSServiceAccountData_1.GCPSTSServiceAccountData; } })); +var GCPSTSServiceAccountResponse_1 = __nccwpck_require__(73937); +Object.defineProperty(exports, "GCPSTSServiceAccountResponse", ({ enumerable: true, get: function () { return GCPSTSServiceAccountResponse_1.GCPSTSServiceAccountResponse; } })); +var GCPSTSServiceAccountsResponse_1 = __nccwpck_require__(79014); +Object.defineProperty(exports, "GCPSTSServiceAccountsResponse", ({ enumerable: true, get: function () { return GCPSTSServiceAccountsResponse_1.GCPSTSServiceAccountsResponse; } })); +var GCPSTSServiceAccountUpdateRequest_1 = __nccwpck_require__(44782); +Object.defineProperty(exports, "GCPSTSServiceAccountUpdateRequest", ({ enumerable: true, get: function () { return GCPSTSServiceAccountUpdateRequest_1.GCPSTSServiceAccountUpdateRequest; } })); +var GCPSTSServiceAccountUpdateRequestData_1 = __nccwpck_require__(61950); +Object.defineProperty(exports, "GCPSTSServiceAccountUpdateRequestData", ({ enumerable: true, get: function () { return GCPSTSServiceAccountUpdateRequestData_1.GCPSTSServiceAccountUpdateRequestData; } })); +var GetAppResponse_1 = __nccwpck_require__(43466); +Object.defineProperty(exports, "GetAppResponse", ({ enumerable: true, get: function () { return GetAppResponse_1.GetAppResponse; } })); +var GetAppResponseData_1 = __nccwpck_require__(2154); +Object.defineProperty(exports, "GetAppResponseData", ({ enumerable: true, get: function () { return GetAppResponseData_1.GetAppResponseData; } })); +var GetAppResponseDataAttributes_1 = __nccwpck_require__(43983); +Object.defineProperty(exports, "GetAppResponseDataAttributes", ({ enumerable: true, get: function () { return GetAppResponseDataAttributes_1.GetAppResponseDataAttributes; } })); +var GetAppResponseRelationship_1 = __nccwpck_require__(62740); +Object.defineProperty(exports, "GetAppResponseRelationship", ({ enumerable: true, get: function () { return GetAppResponseRelationship_1.GetAppResponseRelationship; } })); +var GetDataDeletionsResponseBody_1 = __nccwpck_require__(72246); +Object.defineProperty(exports, "GetDataDeletionsResponseBody", ({ enumerable: true, get: function () { return GetDataDeletionsResponseBody_1.GetDataDeletionsResponseBody; } })); +var GetDeviceAttributes_1 = __nccwpck_require__(44791); +Object.defineProperty(exports, "GetDeviceAttributes", ({ enumerable: true, get: function () { return GetDeviceAttributes_1.GetDeviceAttributes; } })); +var GetDeviceData_1 = __nccwpck_require__(91554); +Object.defineProperty(exports, "GetDeviceData", ({ enumerable: true, get: function () { return GetDeviceData_1.GetDeviceData; } })); +var GetDeviceResponse_1 = __nccwpck_require__(7653); +Object.defineProperty(exports, "GetDeviceResponse", ({ enumerable: true, get: function () { return GetDeviceResponse_1.GetDeviceResponse; } })); +var GetFindingResponse_1 = __nccwpck_require__(2164); +Object.defineProperty(exports, "GetFindingResponse", ({ enumerable: true, get: function () { return GetFindingResponse_1.GetFindingResponse; } })); +var GetInterfacesData_1 = __nccwpck_require__(63560); +Object.defineProperty(exports, "GetInterfacesData", ({ enumerable: true, get: function () { return GetInterfacesData_1.GetInterfacesData; } })); +var GetInterfacesResponse_1 = __nccwpck_require__(31671); +Object.defineProperty(exports, "GetInterfacesResponse", ({ enumerable: true, get: function () { return GetInterfacesResponse_1.GetInterfacesResponse; } })); +var GroupScalarColumn_1 = __nccwpck_require__(21121); +Object.defineProperty(exports, "GroupScalarColumn", ({ enumerable: true, get: function () { return GroupScalarColumn_1.GroupScalarColumn; } })); +var HistoricalJobListMeta_1 = __nccwpck_require__(56690); +Object.defineProperty(exports, "HistoricalJobListMeta", ({ enumerable: true, get: function () { return HistoricalJobListMeta_1.HistoricalJobListMeta; } })); +var HistoricalJobResponse_1 = __nccwpck_require__(74496); +Object.defineProperty(exports, "HistoricalJobResponse", ({ enumerable: true, get: function () { return HistoricalJobResponse_1.HistoricalJobResponse; } })); +var HistoricalJobResponseAttributes_1 = __nccwpck_require__(89353); +Object.defineProperty(exports, "HistoricalJobResponseAttributes", ({ enumerable: true, get: function () { return HistoricalJobResponseAttributes_1.HistoricalJobResponseAttributes; } })); +var HistoricalJobResponseData_1 = __nccwpck_require__(24104); +Object.defineProperty(exports, "HistoricalJobResponseData", ({ enumerable: true, get: function () { return HistoricalJobResponseData_1.HistoricalJobResponseData; } })); +var HourlyUsage_1 = __nccwpck_require__(7320); +Object.defineProperty(exports, "HourlyUsage", ({ enumerable: true, get: function () { return HourlyUsage_1.HourlyUsage; } })); +var HourlyUsageAttributes_1 = __nccwpck_require__(76721); +Object.defineProperty(exports, "HourlyUsageAttributes", ({ enumerable: true, get: function () { return HourlyUsageAttributes_1.HourlyUsageAttributes; } })); +var HourlyUsageMeasurement_1 = __nccwpck_require__(10258); +Object.defineProperty(exports, "HourlyUsageMeasurement", ({ enumerable: true, get: function () { return HourlyUsageMeasurement_1.HourlyUsageMeasurement; } })); +var HourlyUsageMetadata_1 = __nccwpck_require__(993); +Object.defineProperty(exports, "HourlyUsageMetadata", ({ enumerable: true, get: function () { return HourlyUsageMetadata_1.HourlyUsageMetadata; } })); +var HourlyUsagePagination_1 = __nccwpck_require__(87596); +Object.defineProperty(exports, "HourlyUsagePagination", ({ enumerable: true, get: function () { return HourlyUsagePagination_1.HourlyUsagePagination; } })); +var HourlyUsageResponse_1 = __nccwpck_require__(31951); +Object.defineProperty(exports, "HourlyUsageResponse", ({ enumerable: true, get: function () { return HourlyUsageResponse_1.HourlyUsageResponse; } })); +var HTTPCIAppError_1 = __nccwpck_require__(7909); +Object.defineProperty(exports, "HTTPCIAppError", ({ enumerable: true, get: function () { return HTTPCIAppError_1.HTTPCIAppError; } })); +var HTTPCIAppErrors_1 = __nccwpck_require__(37328); +Object.defineProperty(exports, "HTTPCIAppErrors", ({ enumerable: true, get: function () { return HTTPCIAppErrors_1.HTTPCIAppErrors; } })); +var HTTPLogError_1 = __nccwpck_require__(68794); +Object.defineProperty(exports, "HTTPLogError", ({ enumerable: true, get: function () { return HTTPLogError_1.HTTPLogError; } })); +var HTTPLogErrors_1 = __nccwpck_require__(94729); +Object.defineProperty(exports, "HTTPLogErrors", ({ enumerable: true, get: function () { return HTTPLogErrors_1.HTTPLogErrors; } })); +var HTTPLogItem_1 = __nccwpck_require__(90673); +Object.defineProperty(exports, "HTTPLogItem", ({ enumerable: true, get: function () { return HTTPLogItem_1.HTTPLogItem; } })); +var IdPMetadataFormData_1 = __nccwpck_require__(10640); +Object.defineProperty(exports, "IdPMetadataFormData", ({ enumerable: true, get: function () { return IdPMetadataFormData_1.IdPMetadataFormData; } })); +var IncidentAttachmentData_1 = __nccwpck_require__(58105); +Object.defineProperty(exports, "IncidentAttachmentData", ({ enumerable: true, get: function () { return IncidentAttachmentData_1.IncidentAttachmentData; } })); +var IncidentAttachmentLinkAttributes_1 = __nccwpck_require__(24768); +Object.defineProperty(exports, "IncidentAttachmentLinkAttributes", ({ enumerable: true, get: function () { return IncidentAttachmentLinkAttributes_1.IncidentAttachmentLinkAttributes; } })); +var IncidentAttachmentLinkAttributesAttachmentObject_1 = __nccwpck_require__(28638); +Object.defineProperty(exports, "IncidentAttachmentLinkAttributesAttachmentObject", ({ enumerable: true, get: function () { return IncidentAttachmentLinkAttributesAttachmentObject_1.IncidentAttachmentLinkAttributesAttachmentObject; } })); +var IncidentAttachmentPostmortemAttributes_1 = __nccwpck_require__(39878); +Object.defineProperty(exports, "IncidentAttachmentPostmortemAttributes", ({ enumerable: true, get: function () { return IncidentAttachmentPostmortemAttributes_1.IncidentAttachmentPostmortemAttributes; } })); +var IncidentAttachmentRelationships_1 = __nccwpck_require__(44526); +Object.defineProperty(exports, "IncidentAttachmentRelationships", ({ enumerable: true, get: function () { return IncidentAttachmentRelationships_1.IncidentAttachmentRelationships; } })); +var IncidentAttachmentsPostmortemAttributesAttachmentObject_1 = __nccwpck_require__(39109); +Object.defineProperty(exports, "IncidentAttachmentsPostmortemAttributesAttachmentObject", ({ enumerable: true, get: function () { return IncidentAttachmentsPostmortemAttributesAttachmentObject_1.IncidentAttachmentsPostmortemAttributesAttachmentObject; } })); +var IncidentAttachmentsResponse_1 = __nccwpck_require__(43379); +Object.defineProperty(exports, "IncidentAttachmentsResponse", ({ enumerable: true, get: function () { return IncidentAttachmentsResponse_1.IncidentAttachmentsResponse; } })); +var IncidentAttachmentUpdateData_1 = __nccwpck_require__(85212); +Object.defineProperty(exports, "IncidentAttachmentUpdateData", ({ enumerable: true, get: function () { return IncidentAttachmentUpdateData_1.IncidentAttachmentUpdateData; } })); +var IncidentAttachmentUpdateRequest_1 = __nccwpck_require__(9503); +Object.defineProperty(exports, "IncidentAttachmentUpdateRequest", ({ enumerable: true, get: function () { return IncidentAttachmentUpdateRequest_1.IncidentAttachmentUpdateRequest; } })); +var IncidentAttachmentUpdateResponse_1 = __nccwpck_require__(30747); +Object.defineProperty(exports, "IncidentAttachmentUpdateResponse", ({ enumerable: true, get: function () { return IncidentAttachmentUpdateResponse_1.IncidentAttachmentUpdateResponse; } })); +var IncidentCreateAttributes_1 = __nccwpck_require__(56985); +Object.defineProperty(exports, "IncidentCreateAttributes", ({ enumerable: true, get: function () { return IncidentCreateAttributes_1.IncidentCreateAttributes; } })); +var IncidentCreateData_1 = __nccwpck_require__(85515); +Object.defineProperty(exports, "IncidentCreateData", ({ enumerable: true, get: function () { return IncidentCreateData_1.IncidentCreateData; } })); +var IncidentCreateRelationships_1 = __nccwpck_require__(17257); +Object.defineProperty(exports, "IncidentCreateRelationships", ({ enumerable: true, get: function () { return IncidentCreateRelationships_1.IncidentCreateRelationships; } })); +var IncidentCreateRequest_1 = __nccwpck_require__(58451); +Object.defineProperty(exports, "IncidentCreateRequest", ({ enumerable: true, get: function () { return IncidentCreateRequest_1.IncidentCreateRequest; } })); +var IncidentFieldAttributesMultipleValue_1 = __nccwpck_require__(90114); +Object.defineProperty(exports, "IncidentFieldAttributesMultipleValue", ({ enumerable: true, get: function () { return IncidentFieldAttributesMultipleValue_1.IncidentFieldAttributesMultipleValue; } })); +var IncidentFieldAttributesSingleValue_1 = __nccwpck_require__(82138); +Object.defineProperty(exports, "IncidentFieldAttributesSingleValue", ({ enumerable: true, get: function () { return IncidentFieldAttributesSingleValue_1.IncidentFieldAttributesSingleValue; } })); +var IncidentIntegrationMetadataAttributes_1 = __nccwpck_require__(25056); +Object.defineProperty(exports, "IncidentIntegrationMetadataAttributes", ({ enumerable: true, get: function () { return IncidentIntegrationMetadataAttributes_1.IncidentIntegrationMetadataAttributes; } })); +var IncidentIntegrationMetadataCreateData_1 = __nccwpck_require__(65853); +Object.defineProperty(exports, "IncidentIntegrationMetadataCreateData", ({ enumerable: true, get: function () { return IncidentIntegrationMetadataCreateData_1.IncidentIntegrationMetadataCreateData; } })); +var IncidentIntegrationMetadataCreateRequest_1 = __nccwpck_require__(90860); +Object.defineProperty(exports, "IncidentIntegrationMetadataCreateRequest", ({ enumerable: true, get: function () { return IncidentIntegrationMetadataCreateRequest_1.IncidentIntegrationMetadataCreateRequest; } })); +var IncidentIntegrationMetadataListResponse_1 = __nccwpck_require__(64982); +Object.defineProperty(exports, "IncidentIntegrationMetadataListResponse", ({ enumerable: true, get: function () { return IncidentIntegrationMetadataListResponse_1.IncidentIntegrationMetadataListResponse; } })); +var IncidentIntegrationMetadataPatchData_1 = __nccwpck_require__(15259); +Object.defineProperty(exports, "IncidentIntegrationMetadataPatchData", ({ enumerable: true, get: function () { return IncidentIntegrationMetadataPatchData_1.IncidentIntegrationMetadataPatchData; } })); +var IncidentIntegrationMetadataPatchRequest_1 = __nccwpck_require__(25934); +Object.defineProperty(exports, "IncidentIntegrationMetadataPatchRequest", ({ enumerable: true, get: function () { return IncidentIntegrationMetadataPatchRequest_1.IncidentIntegrationMetadataPatchRequest; } })); +var IncidentIntegrationMetadataResponse_1 = __nccwpck_require__(1842); +Object.defineProperty(exports, "IncidentIntegrationMetadataResponse", ({ enumerable: true, get: function () { return IncidentIntegrationMetadataResponse_1.IncidentIntegrationMetadataResponse; } })); +var IncidentIntegrationMetadataResponseData_1 = __nccwpck_require__(9714); +Object.defineProperty(exports, "IncidentIntegrationMetadataResponseData", ({ enumerable: true, get: function () { return IncidentIntegrationMetadataResponseData_1.IncidentIntegrationMetadataResponseData; } })); +var IncidentIntegrationRelationships_1 = __nccwpck_require__(68321); +Object.defineProperty(exports, "IncidentIntegrationRelationships", ({ enumerable: true, get: function () { return IncidentIntegrationRelationships_1.IncidentIntegrationRelationships; } })); +var IncidentNonDatadogCreator_1 = __nccwpck_require__(43167); +Object.defineProperty(exports, "IncidentNonDatadogCreator", ({ enumerable: true, get: function () { return IncidentNonDatadogCreator_1.IncidentNonDatadogCreator; } })); +var IncidentNotificationHandle_1 = __nccwpck_require__(94461); +Object.defineProperty(exports, "IncidentNotificationHandle", ({ enumerable: true, get: function () { return IncidentNotificationHandle_1.IncidentNotificationHandle; } })); +var IncidentResponse_1 = __nccwpck_require__(56223); +Object.defineProperty(exports, "IncidentResponse", ({ enumerable: true, get: function () { return IncidentResponse_1.IncidentResponse; } })); +var IncidentResponseAttributes_1 = __nccwpck_require__(6586); +Object.defineProperty(exports, "IncidentResponseAttributes", ({ enumerable: true, get: function () { return IncidentResponseAttributes_1.IncidentResponseAttributes; } })); +var IncidentResponseData_1 = __nccwpck_require__(21735); +Object.defineProperty(exports, "IncidentResponseData", ({ enumerable: true, get: function () { return IncidentResponseData_1.IncidentResponseData; } })); +var IncidentResponseMeta_1 = __nccwpck_require__(90078); +Object.defineProperty(exports, "IncidentResponseMeta", ({ enumerable: true, get: function () { return IncidentResponseMeta_1.IncidentResponseMeta; } })); +var IncidentResponseMetaPagination_1 = __nccwpck_require__(28322); +Object.defineProperty(exports, "IncidentResponseMetaPagination", ({ enumerable: true, get: function () { return IncidentResponseMetaPagination_1.IncidentResponseMetaPagination; } })); +var IncidentResponseRelationships_1 = __nccwpck_require__(96644); +Object.defineProperty(exports, "IncidentResponseRelationships", ({ enumerable: true, get: function () { return IncidentResponseRelationships_1.IncidentResponseRelationships; } })); +var IncidentSearchResponse_1 = __nccwpck_require__(21551); +Object.defineProperty(exports, "IncidentSearchResponse", ({ enumerable: true, get: function () { return IncidentSearchResponse_1.IncidentSearchResponse; } })); +var IncidentSearchResponseAttributes_1 = __nccwpck_require__(47306); +Object.defineProperty(exports, "IncidentSearchResponseAttributes", ({ enumerable: true, get: function () { return IncidentSearchResponseAttributes_1.IncidentSearchResponseAttributes; } })); +var IncidentSearchResponseData_1 = __nccwpck_require__(70007); +Object.defineProperty(exports, "IncidentSearchResponseData", ({ enumerable: true, get: function () { return IncidentSearchResponseData_1.IncidentSearchResponseData; } })); +var IncidentSearchResponseFacetsData_1 = __nccwpck_require__(89819); +Object.defineProperty(exports, "IncidentSearchResponseFacetsData", ({ enumerable: true, get: function () { return IncidentSearchResponseFacetsData_1.IncidentSearchResponseFacetsData; } })); +var IncidentSearchResponseFieldFacetData_1 = __nccwpck_require__(10464); +Object.defineProperty(exports, "IncidentSearchResponseFieldFacetData", ({ enumerable: true, get: function () { return IncidentSearchResponseFieldFacetData_1.IncidentSearchResponseFieldFacetData; } })); +var IncidentSearchResponseIncidentsData_1 = __nccwpck_require__(37228); +Object.defineProperty(exports, "IncidentSearchResponseIncidentsData", ({ enumerable: true, get: function () { return IncidentSearchResponseIncidentsData_1.IncidentSearchResponseIncidentsData; } })); +var IncidentSearchResponseMeta_1 = __nccwpck_require__(69646); +Object.defineProperty(exports, "IncidentSearchResponseMeta", ({ enumerable: true, get: function () { return IncidentSearchResponseMeta_1.IncidentSearchResponseMeta; } })); +var IncidentSearchResponseNumericFacetData_1 = __nccwpck_require__(23037); +Object.defineProperty(exports, "IncidentSearchResponseNumericFacetData", ({ enumerable: true, get: function () { return IncidentSearchResponseNumericFacetData_1.IncidentSearchResponseNumericFacetData; } })); +var IncidentSearchResponseNumericFacetDataAggregates_1 = __nccwpck_require__(21337); +Object.defineProperty(exports, "IncidentSearchResponseNumericFacetDataAggregates", ({ enumerable: true, get: function () { return IncidentSearchResponseNumericFacetDataAggregates_1.IncidentSearchResponseNumericFacetDataAggregates; } })); +var IncidentSearchResponsePropertyFieldFacetData_1 = __nccwpck_require__(989); +Object.defineProperty(exports, "IncidentSearchResponsePropertyFieldFacetData", ({ enumerable: true, get: function () { return IncidentSearchResponsePropertyFieldFacetData_1.IncidentSearchResponsePropertyFieldFacetData; } })); +var IncidentSearchResponseUserFacetData_1 = __nccwpck_require__(47965); +Object.defineProperty(exports, "IncidentSearchResponseUserFacetData", ({ enumerable: true, get: function () { return IncidentSearchResponseUserFacetData_1.IncidentSearchResponseUserFacetData; } })); +var IncidentServiceCreateAttributes_1 = __nccwpck_require__(31108); +Object.defineProperty(exports, "IncidentServiceCreateAttributes", ({ enumerable: true, get: function () { return IncidentServiceCreateAttributes_1.IncidentServiceCreateAttributes; } })); +var IncidentServiceCreateData_1 = __nccwpck_require__(34221); +Object.defineProperty(exports, "IncidentServiceCreateData", ({ enumerable: true, get: function () { return IncidentServiceCreateData_1.IncidentServiceCreateData; } })); +var IncidentServiceCreateRequest_1 = __nccwpck_require__(1276); +Object.defineProperty(exports, "IncidentServiceCreateRequest", ({ enumerable: true, get: function () { return IncidentServiceCreateRequest_1.IncidentServiceCreateRequest; } })); +var IncidentServiceRelationships_1 = __nccwpck_require__(60678); +Object.defineProperty(exports, "IncidentServiceRelationships", ({ enumerable: true, get: function () { return IncidentServiceRelationships_1.IncidentServiceRelationships; } })); +var IncidentServiceResponse_1 = __nccwpck_require__(47714); +Object.defineProperty(exports, "IncidentServiceResponse", ({ enumerable: true, get: function () { return IncidentServiceResponse_1.IncidentServiceResponse; } })); +var IncidentServiceResponseAttributes_1 = __nccwpck_require__(13207); +Object.defineProperty(exports, "IncidentServiceResponseAttributes", ({ enumerable: true, get: function () { return IncidentServiceResponseAttributes_1.IncidentServiceResponseAttributes; } })); +var IncidentServiceResponseData_1 = __nccwpck_require__(23554); +Object.defineProperty(exports, "IncidentServiceResponseData", ({ enumerable: true, get: function () { return IncidentServiceResponseData_1.IncidentServiceResponseData; } })); +var IncidentServicesResponse_1 = __nccwpck_require__(77803); +Object.defineProperty(exports, "IncidentServicesResponse", ({ enumerable: true, get: function () { return IncidentServicesResponse_1.IncidentServicesResponse; } })); +var IncidentServiceUpdateAttributes_1 = __nccwpck_require__(44621); +Object.defineProperty(exports, "IncidentServiceUpdateAttributes", ({ enumerable: true, get: function () { return IncidentServiceUpdateAttributes_1.IncidentServiceUpdateAttributes; } })); +var IncidentServiceUpdateData_1 = __nccwpck_require__(42788); +Object.defineProperty(exports, "IncidentServiceUpdateData", ({ enumerable: true, get: function () { return IncidentServiceUpdateData_1.IncidentServiceUpdateData; } })); +var IncidentServiceUpdateRequest_1 = __nccwpck_require__(31159); +Object.defineProperty(exports, "IncidentServiceUpdateRequest", ({ enumerable: true, get: function () { return IncidentServiceUpdateRequest_1.IncidentServiceUpdateRequest; } })); +var IncidentsResponse_1 = __nccwpck_require__(50980); +Object.defineProperty(exports, "IncidentsResponse", ({ enumerable: true, get: function () { return IncidentsResponse_1.IncidentsResponse; } })); +var IncidentTeamCreateAttributes_1 = __nccwpck_require__(66616); +Object.defineProperty(exports, "IncidentTeamCreateAttributes", ({ enumerable: true, get: function () { return IncidentTeamCreateAttributes_1.IncidentTeamCreateAttributes; } })); +var IncidentTeamCreateData_1 = __nccwpck_require__(84793); +Object.defineProperty(exports, "IncidentTeamCreateData", ({ enumerable: true, get: function () { return IncidentTeamCreateData_1.IncidentTeamCreateData; } })); +var IncidentTeamCreateRequest_1 = __nccwpck_require__(13216); +Object.defineProperty(exports, "IncidentTeamCreateRequest", ({ enumerable: true, get: function () { return IncidentTeamCreateRequest_1.IncidentTeamCreateRequest; } })); +var IncidentTeamRelationships_1 = __nccwpck_require__(39034); +Object.defineProperty(exports, "IncidentTeamRelationships", ({ enumerable: true, get: function () { return IncidentTeamRelationships_1.IncidentTeamRelationships; } })); +var IncidentTeamResponse_1 = __nccwpck_require__(95046); +Object.defineProperty(exports, "IncidentTeamResponse", ({ enumerable: true, get: function () { return IncidentTeamResponse_1.IncidentTeamResponse; } })); +var IncidentTeamResponseAttributes_1 = __nccwpck_require__(38675); +Object.defineProperty(exports, "IncidentTeamResponseAttributes", ({ enumerable: true, get: function () { return IncidentTeamResponseAttributes_1.IncidentTeamResponseAttributes; } })); +var IncidentTeamResponseData_1 = __nccwpck_require__(64310); +Object.defineProperty(exports, "IncidentTeamResponseData", ({ enumerable: true, get: function () { return IncidentTeamResponseData_1.IncidentTeamResponseData; } })); +var IncidentTeamsResponse_1 = __nccwpck_require__(79063); +Object.defineProperty(exports, "IncidentTeamsResponse", ({ enumerable: true, get: function () { return IncidentTeamsResponse_1.IncidentTeamsResponse; } })); +var IncidentTeamUpdateAttributes_1 = __nccwpck_require__(40025); +Object.defineProperty(exports, "IncidentTeamUpdateAttributes", ({ enumerable: true, get: function () { return IncidentTeamUpdateAttributes_1.IncidentTeamUpdateAttributes; } })); +var IncidentTeamUpdateData_1 = __nccwpck_require__(85208); +Object.defineProperty(exports, "IncidentTeamUpdateData", ({ enumerable: true, get: function () { return IncidentTeamUpdateData_1.IncidentTeamUpdateData; } })); +var IncidentTeamUpdateRequest_1 = __nccwpck_require__(76723); +Object.defineProperty(exports, "IncidentTeamUpdateRequest", ({ enumerable: true, get: function () { return IncidentTeamUpdateRequest_1.IncidentTeamUpdateRequest; } })); +var IncidentTimelineCellMarkdownCreateAttributes_1 = __nccwpck_require__(8059); +Object.defineProperty(exports, "IncidentTimelineCellMarkdownCreateAttributes", ({ enumerable: true, get: function () { return IncidentTimelineCellMarkdownCreateAttributes_1.IncidentTimelineCellMarkdownCreateAttributes; } })); +var IncidentTimelineCellMarkdownCreateAttributesContent_1 = __nccwpck_require__(86258); +Object.defineProperty(exports, "IncidentTimelineCellMarkdownCreateAttributesContent", ({ enumerable: true, get: function () { return IncidentTimelineCellMarkdownCreateAttributesContent_1.IncidentTimelineCellMarkdownCreateAttributesContent; } })); +var IncidentTodoAnonymousAssignee_1 = __nccwpck_require__(87860); +Object.defineProperty(exports, "IncidentTodoAnonymousAssignee", ({ enumerable: true, get: function () { return IncidentTodoAnonymousAssignee_1.IncidentTodoAnonymousAssignee; } })); +var IncidentTodoAttributes_1 = __nccwpck_require__(36465); +Object.defineProperty(exports, "IncidentTodoAttributes", ({ enumerable: true, get: function () { return IncidentTodoAttributes_1.IncidentTodoAttributes; } })); +var IncidentTodoCreateData_1 = __nccwpck_require__(12808); +Object.defineProperty(exports, "IncidentTodoCreateData", ({ enumerable: true, get: function () { return IncidentTodoCreateData_1.IncidentTodoCreateData; } })); +var IncidentTodoCreateRequest_1 = __nccwpck_require__(33987); +Object.defineProperty(exports, "IncidentTodoCreateRequest", ({ enumerable: true, get: function () { return IncidentTodoCreateRequest_1.IncidentTodoCreateRequest; } })); +var IncidentTodoListResponse_1 = __nccwpck_require__(11991); +Object.defineProperty(exports, "IncidentTodoListResponse", ({ enumerable: true, get: function () { return IncidentTodoListResponse_1.IncidentTodoListResponse; } })); +var IncidentTodoPatchData_1 = __nccwpck_require__(64092); +Object.defineProperty(exports, "IncidentTodoPatchData", ({ enumerable: true, get: function () { return IncidentTodoPatchData_1.IncidentTodoPatchData; } })); +var IncidentTodoPatchRequest_1 = __nccwpck_require__(66047); +Object.defineProperty(exports, "IncidentTodoPatchRequest", ({ enumerable: true, get: function () { return IncidentTodoPatchRequest_1.IncidentTodoPatchRequest; } })); +var IncidentTodoRelationships_1 = __nccwpck_require__(7009); +Object.defineProperty(exports, "IncidentTodoRelationships", ({ enumerable: true, get: function () { return IncidentTodoRelationships_1.IncidentTodoRelationships; } })); +var IncidentTodoResponse_1 = __nccwpck_require__(53775); +Object.defineProperty(exports, "IncidentTodoResponse", ({ enumerable: true, get: function () { return IncidentTodoResponse_1.IncidentTodoResponse; } })); +var IncidentTodoResponseData_1 = __nccwpck_require__(53367); +Object.defineProperty(exports, "IncidentTodoResponseData", ({ enumerable: true, get: function () { return IncidentTodoResponseData_1.IncidentTodoResponseData; } })); +var IncidentTypeAttributes_1 = __nccwpck_require__(2521); +Object.defineProperty(exports, "IncidentTypeAttributes", ({ enumerable: true, get: function () { return IncidentTypeAttributes_1.IncidentTypeAttributes; } })); +var IncidentTypeCreateData_1 = __nccwpck_require__(45696); +Object.defineProperty(exports, "IncidentTypeCreateData", ({ enumerable: true, get: function () { return IncidentTypeCreateData_1.IncidentTypeCreateData; } })); +var IncidentTypeCreateRequest_1 = __nccwpck_require__(81547); +Object.defineProperty(exports, "IncidentTypeCreateRequest", ({ enumerable: true, get: function () { return IncidentTypeCreateRequest_1.IncidentTypeCreateRequest; } })); +var IncidentTypeListResponse_1 = __nccwpck_require__(76975); +Object.defineProperty(exports, "IncidentTypeListResponse", ({ enumerable: true, get: function () { return IncidentTypeListResponse_1.IncidentTypeListResponse; } })); +var IncidentTypeObject_1 = __nccwpck_require__(79831); +Object.defineProperty(exports, "IncidentTypeObject", ({ enumerable: true, get: function () { return IncidentTypeObject_1.IncidentTypeObject; } })); +var IncidentTypePatchData_1 = __nccwpck_require__(41972); +Object.defineProperty(exports, "IncidentTypePatchData", ({ enumerable: true, get: function () { return IncidentTypePatchData_1.IncidentTypePatchData; } })); +var IncidentTypePatchRequest_1 = __nccwpck_require__(38343); +Object.defineProperty(exports, "IncidentTypePatchRequest", ({ enumerable: true, get: function () { return IncidentTypePatchRequest_1.IncidentTypePatchRequest; } })); +var IncidentTypeResponse_1 = __nccwpck_require__(72135); +Object.defineProperty(exports, "IncidentTypeResponse", ({ enumerable: true, get: function () { return IncidentTypeResponse_1.IncidentTypeResponse; } })); +var IncidentTypeUpdateAttributes_1 = __nccwpck_require__(93892); +Object.defineProperty(exports, "IncidentTypeUpdateAttributes", ({ enumerable: true, get: function () { return IncidentTypeUpdateAttributes_1.IncidentTypeUpdateAttributes; } })); +var IncidentUpdateAttributes_1 = __nccwpck_require__(27564); +Object.defineProperty(exports, "IncidentUpdateAttributes", ({ enumerable: true, get: function () { return IncidentUpdateAttributes_1.IncidentUpdateAttributes; } })); +var IncidentUpdateData_1 = __nccwpck_require__(60997); +Object.defineProperty(exports, "IncidentUpdateData", ({ enumerable: true, get: function () { return IncidentUpdateData_1.IncidentUpdateData; } })); +var IncidentUpdateRelationships_1 = __nccwpck_require__(77706); +Object.defineProperty(exports, "IncidentUpdateRelationships", ({ enumerable: true, get: function () { return IncidentUpdateRelationships_1.IncidentUpdateRelationships; } })); +var IncidentUpdateRequest_1 = __nccwpck_require__(8804); +Object.defineProperty(exports, "IncidentUpdateRequest", ({ enumerable: true, get: function () { return IncidentUpdateRequest_1.IncidentUpdateRequest; } })); +var IncidentUserAttributes_1 = __nccwpck_require__(33786); +Object.defineProperty(exports, "IncidentUserAttributes", ({ enumerable: true, get: function () { return IncidentUserAttributes_1.IncidentUserAttributes; } })); +var IncidentUserData_1 = __nccwpck_require__(66919); +Object.defineProperty(exports, "IncidentUserData", ({ enumerable: true, get: function () { return IncidentUserData_1.IncidentUserData; } })); +var InputSchema_1 = __nccwpck_require__(91207); +Object.defineProperty(exports, "InputSchema", ({ enumerable: true, get: function () { return InputSchema_1.InputSchema; } })); +var InputSchemaData_1 = __nccwpck_require__(18095); +Object.defineProperty(exports, "InputSchemaData", ({ enumerable: true, get: function () { return InputSchemaData_1.InputSchemaData; } })); +var InputSchemaDataAttributes_1 = __nccwpck_require__(89642); +Object.defineProperty(exports, "InputSchemaDataAttributes", ({ enumerable: true, get: function () { return InputSchemaDataAttributes_1.InputSchemaDataAttributes; } })); +var InputSchemaDataAttributesParametersItems_1 = __nccwpck_require__(51500); +Object.defineProperty(exports, "InputSchemaDataAttributesParametersItems", ({ enumerable: true, get: function () { return InputSchemaDataAttributesParametersItems_1.InputSchemaDataAttributesParametersItems; } })); +var InputSchemaDataAttributesParametersItemsData_1 = __nccwpck_require__(17492); +Object.defineProperty(exports, "InputSchemaDataAttributesParametersItemsData", ({ enumerable: true, get: function () { return InputSchemaDataAttributesParametersItemsData_1.InputSchemaDataAttributesParametersItemsData; } })); +var InputSchemaDataAttributesParametersItemsDataAttributes_1 = __nccwpck_require__(82133); +Object.defineProperty(exports, "InputSchemaDataAttributesParametersItemsDataAttributes", ({ enumerable: true, get: function () { return InputSchemaDataAttributesParametersItemsDataAttributes_1.InputSchemaDataAttributesParametersItemsDataAttributes; } })); +var IntakePayloadAccepted_1 = __nccwpck_require__(147); +Object.defineProperty(exports, "IntakePayloadAccepted", ({ enumerable: true, get: function () { return IntakePayloadAccepted_1.IntakePayloadAccepted; } })); +var InterfaceAttributes_1 = __nccwpck_require__(71478); +Object.defineProperty(exports, "InterfaceAttributes", ({ enumerable: true, get: function () { return InterfaceAttributes_1.InterfaceAttributes; } })); +var IPAllowlistAttributes_1 = __nccwpck_require__(90739); +Object.defineProperty(exports, "IPAllowlistAttributes", ({ enumerable: true, get: function () { return IPAllowlistAttributes_1.IPAllowlistAttributes; } })); +var IPAllowlistData_1 = __nccwpck_require__(53366); +Object.defineProperty(exports, "IPAllowlistData", ({ enumerable: true, get: function () { return IPAllowlistData_1.IPAllowlistData; } })); +var IPAllowlistEntry_1 = __nccwpck_require__(79768); +Object.defineProperty(exports, "IPAllowlistEntry", ({ enumerable: true, get: function () { return IPAllowlistEntry_1.IPAllowlistEntry; } })); +var IPAllowlistEntryAttributes_1 = __nccwpck_require__(87377); +Object.defineProperty(exports, "IPAllowlistEntryAttributes", ({ enumerable: true, get: function () { return IPAllowlistEntryAttributes_1.IPAllowlistEntryAttributes; } })); +var IPAllowlistEntryData_1 = __nccwpck_require__(22592); +Object.defineProperty(exports, "IPAllowlistEntryData", ({ enumerable: true, get: function () { return IPAllowlistEntryData_1.IPAllowlistEntryData; } })); +var IPAllowlistResponse_1 = __nccwpck_require__(69721); +Object.defineProperty(exports, "IPAllowlistResponse", ({ enumerable: true, get: function () { return IPAllowlistResponse_1.IPAllowlistResponse; } })); +var IPAllowlistUpdateRequest_1 = __nccwpck_require__(60006); +Object.defineProperty(exports, "IPAllowlistUpdateRequest", ({ enumerable: true, get: function () { return IPAllowlistUpdateRequest_1.IPAllowlistUpdateRequest; } })); +var JiraIntegrationMetadata_1 = __nccwpck_require__(77943); +Object.defineProperty(exports, "JiraIntegrationMetadata", ({ enumerable: true, get: function () { return JiraIntegrationMetadata_1.JiraIntegrationMetadata; } })); +var JiraIntegrationMetadataIssuesItem_1 = __nccwpck_require__(91204); +Object.defineProperty(exports, "JiraIntegrationMetadataIssuesItem", ({ enumerable: true, get: function () { return JiraIntegrationMetadataIssuesItem_1.JiraIntegrationMetadataIssuesItem; } })); +var JiraIssue_1 = __nccwpck_require__(7071); +Object.defineProperty(exports, "JiraIssue", ({ enumerable: true, get: function () { return JiraIssue_1.JiraIssue; } })); +var JiraIssueResult_1 = __nccwpck_require__(3170); +Object.defineProperty(exports, "JiraIssueResult", ({ enumerable: true, get: function () { return JiraIssueResult_1.JiraIssueResult; } })); +var JobCreateResponse_1 = __nccwpck_require__(10584); +Object.defineProperty(exports, "JobCreateResponse", ({ enumerable: true, get: function () { return JobCreateResponse_1.JobCreateResponse; } })); +var JobCreateResponseData_1 = __nccwpck_require__(19232); +Object.defineProperty(exports, "JobCreateResponseData", ({ enumerable: true, get: function () { return JobCreateResponseData_1.JobCreateResponseData; } })); +var JobDefinition_1 = __nccwpck_require__(67610); +Object.defineProperty(exports, "JobDefinition", ({ enumerable: true, get: function () { return JobDefinition_1.JobDefinition; } })); +var JobDefinitionFromRule_1 = __nccwpck_require__(47164); +Object.defineProperty(exports, "JobDefinitionFromRule", ({ enumerable: true, get: function () { return JobDefinitionFromRule_1.JobDefinitionFromRule; } })); +var JSONAPIErrorItem_1 = __nccwpck_require__(65877); +Object.defineProperty(exports, "JSONAPIErrorItem", ({ enumerable: true, get: function () { return JSONAPIErrorItem_1.JSONAPIErrorItem; } })); +var JSONAPIErrorResponse_1 = __nccwpck_require__(25869); +Object.defineProperty(exports, "JSONAPIErrorResponse", ({ enumerable: true, get: function () { return JSONAPIErrorResponse_1.JSONAPIErrorResponse; } })); +var LeakedKey_1 = __nccwpck_require__(66709); +Object.defineProperty(exports, "LeakedKey", ({ enumerable: true, get: function () { return LeakedKey_1.LeakedKey; } })); +var LeakedKeyAttributes_1 = __nccwpck_require__(56732); +Object.defineProperty(exports, "LeakedKeyAttributes", ({ enumerable: true, get: function () { return LeakedKeyAttributes_1.LeakedKeyAttributes; } })); +var ListAPIsResponse_1 = __nccwpck_require__(94088); +Object.defineProperty(exports, "ListAPIsResponse", ({ enumerable: true, get: function () { return ListAPIsResponse_1.ListAPIsResponse; } })); +var ListAPIsResponseData_1 = __nccwpck_require__(42416); +Object.defineProperty(exports, "ListAPIsResponseData", ({ enumerable: true, get: function () { return ListAPIsResponseData_1.ListAPIsResponseData; } })); +var ListAPIsResponseDataAttributes_1 = __nccwpck_require__(74201); +Object.defineProperty(exports, "ListAPIsResponseDataAttributes", ({ enumerable: true, get: function () { return ListAPIsResponseDataAttributes_1.ListAPIsResponseDataAttributes; } })); +var ListAPIsResponseMeta_1 = __nccwpck_require__(71105); +Object.defineProperty(exports, "ListAPIsResponseMeta", ({ enumerable: true, get: function () { return ListAPIsResponseMeta_1.ListAPIsResponseMeta; } })); +var ListAPIsResponseMetaPagination_1 = __nccwpck_require__(79809); +Object.defineProperty(exports, "ListAPIsResponseMetaPagination", ({ enumerable: true, get: function () { return ListAPIsResponseMetaPagination_1.ListAPIsResponseMetaPagination; } })); +var ListApplicationKeysResponse_1 = __nccwpck_require__(21881); +Object.defineProperty(exports, "ListApplicationKeysResponse", ({ enumerable: true, get: function () { return ListApplicationKeysResponse_1.ListApplicationKeysResponse; } })); +var ListAppsResponse_1 = __nccwpck_require__(86009); +Object.defineProperty(exports, "ListAppsResponse", ({ enumerable: true, get: function () { return ListAppsResponse_1.ListAppsResponse; } })); +var ListAppsResponseDataItems_1 = __nccwpck_require__(75677); +Object.defineProperty(exports, "ListAppsResponseDataItems", ({ enumerable: true, get: function () { return ListAppsResponseDataItems_1.ListAppsResponseDataItems; } })); +var ListAppsResponseDataItemsAttributes_1 = __nccwpck_require__(66388); +Object.defineProperty(exports, "ListAppsResponseDataItemsAttributes", ({ enumerable: true, get: function () { return ListAppsResponseDataItemsAttributes_1.ListAppsResponseDataItemsAttributes; } })); +var ListAppsResponseDataItemsRelationships_1 = __nccwpck_require__(7794); +Object.defineProperty(exports, "ListAppsResponseDataItemsRelationships", ({ enumerable: true, get: function () { return ListAppsResponseDataItemsRelationships_1.ListAppsResponseDataItemsRelationships; } })); +var ListAppsResponseMeta_1 = __nccwpck_require__(12816); +Object.defineProperty(exports, "ListAppsResponseMeta", ({ enumerable: true, get: function () { return ListAppsResponseMeta_1.ListAppsResponseMeta; } })); +var ListAppsResponseMetaPage_1 = __nccwpck_require__(68671); +Object.defineProperty(exports, "ListAppsResponseMetaPage", ({ enumerable: true, get: function () { return ListAppsResponseMetaPage_1.ListAppsResponseMetaPage; } })); +var ListDevicesResponse_1 = __nccwpck_require__(51308); +Object.defineProperty(exports, "ListDevicesResponse", ({ enumerable: true, get: function () { return ListDevicesResponse_1.ListDevicesResponse; } })); +var ListDevicesResponseMetadata_1 = __nccwpck_require__(81581); +Object.defineProperty(exports, "ListDevicesResponseMetadata", ({ enumerable: true, get: function () { return ListDevicesResponseMetadata_1.ListDevicesResponseMetadata; } })); +var ListDevicesResponseMetadataPage_1 = __nccwpck_require__(46570); +Object.defineProperty(exports, "ListDevicesResponseMetadataPage", ({ enumerable: true, get: function () { return ListDevicesResponseMetadataPage_1.ListDevicesResponseMetadataPage; } })); +var ListDowntimesResponse_1 = __nccwpck_require__(63361); +Object.defineProperty(exports, "ListDowntimesResponse", ({ enumerable: true, get: function () { return ListDowntimesResponse_1.ListDowntimesResponse; } })); +var ListEntityCatalogResponse_1 = __nccwpck_require__(98517); +Object.defineProperty(exports, "ListEntityCatalogResponse", ({ enumerable: true, get: function () { return ListEntityCatalogResponse_1.ListEntityCatalogResponse; } })); +var ListEntityCatalogResponseLinks_1 = __nccwpck_require__(33416); +Object.defineProperty(exports, "ListEntityCatalogResponseLinks", ({ enumerable: true, get: function () { return ListEntityCatalogResponseLinks_1.ListEntityCatalogResponseLinks; } })); +var ListFindingsMeta_1 = __nccwpck_require__(38845); +Object.defineProperty(exports, "ListFindingsMeta", ({ enumerable: true, get: function () { return ListFindingsMeta_1.ListFindingsMeta; } })); +var ListFindingsPage_1 = __nccwpck_require__(27051); +Object.defineProperty(exports, "ListFindingsPage", ({ enumerable: true, get: function () { return ListFindingsPage_1.ListFindingsPage; } })); +var ListFindingsResponse_1 = __nccwpck_require__(47267); +Object.defineProperty(exports, "ListFindingsResponse", ({ enumerable: true, get: function () { return ListFindingsResponse_1.ListFindingsResponse; } })); +var ListHistoricalJobsResponse_1 = __nccwpck_require__(21485); +Object.defineProperty(exports, "ListHistoricalJobsResponse", ({ enumerable: true, get: function () { return ListHistoricalJobsResponse_1.ListHistoricalJobsResponse; } })); +var ListPowerpacksResponse_1 = __nccwpck_require__(44232); +Object.defineProperty(exports, "ListPowerpacksResponse", ({ enumerable: true, get: function () { return ListPowerpacksResponse_1.ListPowerpacksResponse; } })); +var ListRulesResponse_1 = __nccwpck_require__(96964); +Object.defineProperty(exports, "ListRulesResponse", ({ enumerable: true, get: function () { return ListRulesResponse_1.ListRulesResponse; } })); +var ListRulesResponseDataItem_1 = __nccwpck_require__(49439); +Object.defineProperty(exports, "ListRulesResponseDataItem", ({ enumerable: true, get: function () { return ListRulesResponseDataItem_1.ListRulesResponseDataItem; } })); +var ListRulesResponseLinks_1 = __nccwpck_require__(6799); +Object.defineProperty(exports, "ListRulesResponseLinks", ({ enumerable: true, get: function () { return ListRulesResponseLinks_1.ListRulesResponseLinks; } })); +var ListTagsResponse_1 = __nccwpck_require__(4356); +Object.defineProperty(exports, "ListTagsResponse", ({ enumerable: true, get: function () { return ListTagsResponse_1.ListTagsResponse; } })); +var ListTagsResponseData_1 = __nccwpck_require__(37100); +Object.defineProperty(exports, "ListTagsResponseData", ({ enumerable: true, get: function () { return ListTagsResponseData_1.ListTagsResponseData; } })); +var ListTagsResponseDataAttributes_1 = __nccwpck_require__(78877); +Object.defineProperty(exports, "ListTagsResponseDataAttributes", ({ enumerable: true, get: function () { return ListTagsResponseDataAttributes_1.ListTagsResponseDataAttributes; } })); +var Log_1 = __nccwpck_require__(43646); +Object.defineProperty(exports, "Log", ({ enumerable: true, get: function () { return Log_1.Log; } })); +var LogAttributes_1 = __nccwpck_require__(92827); +Object.defineProperty(exports, "LogAttributes", ({ enumerable: true, get: function () { return LogAttributes_1.LogAttributes; } })); +var LogsAggregateBucket_1 = __nccwpck_require__(75008); +Object.defineProperty(exports, "LogsAggregateBucket", ({ enumerable: true, get: function () { return LogsAggregateBucket_1.LogsAggregateBucket; } })); +var LogsAggregateBucketValueTimeseriesPoint_1 = __nccwpck_require__(9269); +Object.defineProperty(exports, "LogsAggregateBucketValueTimeseriesPoint", ({ enumerable: true, get: function () { return LogsAggregateBucketValueTimeseriesPoint_1.LogsAggregateBucketValueTimeseriesPoint; } })); +var LogsAggregateRequest_1 = __nccwpck_require__(8321); +Object.defineProperty(exports, "LogsAggregateRequest", ({ enumerable: true, get: function () { return LogsAggregateRequest_1.LogsAggregateRequest; } })); +var LogsAggregateRequestPage_1 = __nccwpck_require__(23966); +Object.defineProperty(exports, "LogsAggregateRequestPage", ({ enumerable: true, get: function () { return LogsAggregateRequestPage_1.LogsAggregateRequestPage; } })); +var LogsAggregateResponse_1 = __nccwpck_require__(72629); +Object.defineProperty(exports, "LogsAggregateResponse", ({ enumerable: true, get: function () { return LogsAggregateResponse_1.LogsAggregateResponse; } })); +var LogsAggregateResponseData_1 = __nccwpck_require__(83573); +Object.defineProperty(exports, "LogsAggregateResponseData", ({ enumerable: true, get: function () { return LogsAggregateResponseData_1.LogsAggregateResponseData; } })); +var LogsAggregateSort_1 = __nccwpck_require__(22934); +Object.defineProperty(exports, "LogsAggregateSort", ({ enumerable: true, get: function () { return LogsAggregateSort_1.LogsAggregateSort; } })); +var LogsArchive_1 = __nccwpck_require__(5263); +Object.defineProperty(exports, "LogsArchive", ({ enumerable: true, get: function () { return LogsArchive_1.LogsArchive; } })); +var LogsArchiveAttributes_1 = __nccwpck_require__(88234); +Object.defineProperty(exports, "LogsArchiveAttributes", ({ enumerable: true, get: function () { return LogsArchiveAttributes_1.LogsArchiveAttributes; } })); +var LogsArchiveCreateRequest_1 = __nccwpck_require__(82654); +Object.defineProperty(exports, "LogsArchiveCreateRequest", ({ enumerable: true, get: function () { return LogsArchiveCreateRequest_1.LogsArchiveCreateRequest; } })); +var LogsArchiveCreateRequestAttributes_1 = __nccwpck_require__(34715); +Object.defineProperty(exports, "LogsArchiveCreateRequestAttributes", ({ enumerable: true, get: function () { return LogsArchiveCreateRequestAttributes_1.LogsArchiveCreateRequestAttributes; } })); +var LogsArchiveCreateRequestDefinition_1 = __nccwpck_require__(28239); +Object.defineProperty(exports, "LogsArchiveCreateRequestDefinition", ({ enumerable: true, get: function () { return LogsArchiveCreateRequestDefinition_1.LogsArchiveCreateRequestDefinition; } })); +var LogsArchiveDefinition_1 = __nccwpck_require__(90482); +Object.defineProperty(exports, "LogsArchiveDefinition", ({ enumerable: true, get: function () { return LogsArchiveDefinition_1.LogsArchiveDefinition; } })); +var LogsArchiveDestinationAzure_1 = __nccwpck_require__(44348); +Object.defineProperty(exports, "LogsArchiveDestinationAzure", ({ enumerable: true, get: function () { return LogsArchiveDestinationAzure_1.LogsArchiveDestinationAzure; } })); +var LogsArchiveDestinationGCS_1 = __nccwpck_require__(12104); +Object.defineProperty(exports, "LogsArchiveDestinationGCS", ({ enumerable: true, get: function () { return LogsArchiveDestinationGCS_1.LogsArchiveDestinationGCS; } })); +var LogsArchiveDestinationS3_1 = __nccwpck_require__(74729); +Object.defineProperty(exports, "LogsArchiveDestinationS3", ({ enumerable: true, get: function () { return LogsArchiveDestinationS3_1.LogsArchiveDestinationS3; } })); +var LogsArchiveIntegrationAzure_1 = __nccwpck_require__(99598); +Object.defineProperty(exports, "LogsArchiveIntegrationAzure", ({ enumerable: true, get: function () { return LogsArchiveIntegrationAzure_1.LogsArchiveIntegrationAzure; } })); +var LogsArchiveIntegrationGCS_1 = __nccwpck_require__(25158); +Object.defineProperty(exports, "LogsArchiveIntegrationGCS", ({ enumerable: true, get: function () { return LogsArchiveIntegrationGCS_1.LogsArchiveIntegrationGCS; } })); +var LogsArchiveIntegrationS3_1 = __nccwpck_require__(86623); +Object.defineProperty(exports, "LogsArchiveIntegrationS3", ({ enumerable: true, get: function () { return LogsArchiveIntegrationS3_1.LogsArchiveIntegrationS3; } })); +var LogsArchiveOrder_1 = __nccwpck_require__(56295); +Object.defineProperty(exports, "LogsArchiveOrder", ({ enumerable: true, get: function () { return LogsArchiveOrder_1.LogsArchiveOrder; } })); +var LogsArchiveOrderAttributes_1 = __nccwpck_require__(24082); +Object.defineProperty(exports, "LogsArchiveOrderAttributes", ({ enumerable: true, get: function () { return LogsArchiveOrderAttributes_1.LogsArchiveOrderAttributes; } })); +var LogsArchiveOrderDefinition_1 = __nccwpck_require__(54890); +Object.defineProperty(exports, "LogsArchiveOrderDefinition", ({ enumerable: true, get: function () { return LogsArchiveOrderDefinition_1.LogsArchiveOrderDefinition; } })); +var LogsArchives_1 = __nccwpck_require__(49386); +Object.defineProperty(exports, "LogsArchives", ({ enumerable: true, get: function () { return LogsArchives_1.LogsArchives; } })); +var LogsCompute_1 = __nccwpck_require__(14948); +Object.defineProperty(exports, "LogsCompute", ({ enumerable: true, get: function () { return LogsCompute_1.LogsCompute; } })); +var LogsGroupBy_1 = __nccwpck_require__(80619); +Object.defineProperty(exports, "LogsGroupBy", ({ enumerable: true, get: function () { return LogsGroupBy_1.LogsGroupBy; } })); +var LogsGroupByHistogram_1 = __nccwpck_require__(46657); +Object.defineProperty(exports, "LogsGroupByHistogram", ({ enumerable: true, get: function () { return LogsGroupByHistogram_1.LogsGroupByHistogram; } })); +var LogsListRequest_1 = __nccwpck_require__(18128); +Object.defineProperty(exports, "LogsListRequest", ({ enumerable: true, get: function () { return LogsListRequest_1.LogsListRequest; } })); +var LogsListRequestPage_1 = __nccwpck_require__(7039); +Object.defineProperty(exports, "LogsListRequestPage", ({ enumerable: true, get: function () { return LogsListRequestPage_1.LogsListRequestPage; } })); +var LogsListResponse_1 = __nccwpck_require__(52938); +Object.defineProperty(exports, "LogsListResponse", ({ enumerable: true, get: function () { return LogsListResponse_1.LogsListResponse; } })); +var LogsListResponseLinks_1 = __nccwpck_require__(97933); +Object.defineProperty(exports, "LogsListResponseLinks", ({ enumerable: true, get: function () { return LogsListResponseLinks_1.LogsListResponseLinks; } })); +var LogsMetricCompute_1 = __nccwpck_require__(80456); +Object.defineProperty(exports, "LogsMetricCompute", ({ enumerable: true, get: function () { return LogsMetricCompute_1.LogsMetricCompute; } })); +var LogsMetricCreateAttributes_1 = __nccwpck_require__(36556); +Object.defineProperty(exports, "LogsMetricCreateAttributes", ({ enumerable: true, get: function () { return LogsMetricCreateAttributes_1.LogsMetricCreateAttributes; } })); +var LogsMetricCreateData_1 = __nccwpck_require__(23717); +Object.defineProperty(exports, "LogsMetricCreateData", ({ enumerable: true, get: function () { return LogsMetricCreateData_1.LogsMetricCreateData; } })); +var LogsMetricCreateRequest_1 = __nccwpck_require__(49284); +Object.defineProperty(exports, "LogsMetricCreateRequest", ({ enumerable: true, get: function () { return LogsMetricCreateRequest_1.LogsMetricCreateRequest; } })); +var LogsMetricFilter_1 = __nccwpck_require__(51719); +Object.defineProperty(exports, "LogsMetricFilter", ({ enumerable: true, get: function () { return LogsMetricFilter_1.LogsMetricFilter; } })); +var LogsMetricGroupBy_1 = __nccwpck_require__(31967); +Object.defineProperty(exports, "LogsMetricGroupBy", ({ enumerable: true, get: function () { return LogsMetricGroupBy_1.LogsMetricGroupBy; } })); +var LogsMetricResponse_1 = __nccwpck_require__(87418); +Object.defineProperty(exports, "LogsMetricResponse", ({ enumerable: true, get: function () { return LogsMetricResponse_1.LogsMetricResponse; } })); +var LogsMetricResponseAttributes_1 = __nccwpck_require__(21983); +Object.defineProperty(exports, "LogsMetricResponseAttributes", ({ enumerable: true, get: function () { return LogsMetricResponseAttributes_1.LogsMetricResponseAttributes; } })); +var LogsMetricResponseCompute_1 = __nccwpck_require__(50401); +Object.defineProperty(exports, "LogsMetricResponseCompute", ({ enumerable: true, get: function () { return LogsMetricResponseCompute_1.LogsMetricResponseCompute; } })); +var LogsMetricResponseData_1 = __nccwpck_require__(39322); +Object.defineProperty(exports, "LogsMetricResponseData", ({ enumerable: true, get: function () { return LogsMetricResponseData_1.LogsMetricResponseData; } })); +var LogsMetricResponseFilter_1 = __nccwpck_require__(3720); +Object.defineProperty(exports, "LogsMetricResponseFilter", ({ enumerable: true, get: function () { return LogsMetricResponseFilter_1.LogsMetricResponseFilter; } })); +var LogsMetricResponseGroupBy_1 = __nccwpck_require__(75238); +Object.defineProperty(exports, "LogsMetricResponseGroupBy", ({ enumerable: true, get: function () { return LogsMetricResponseGroupBy_1.LogsMetricResponseGroupBy; } })); +var LogsMetricsResponse_1 = __nccwpck_require__(27507); +Object.defineProperty(exports, "LogsMetricsResponse", ({ enumerable: true, get: function () { return LogsMetricsResponse_1.LogsMetricsResponse; } })); +var LogsMetricUpdateAttributes_1 = __nccwpck_require__(54773); +Object.defineProperty(exports, "LogsMetricUpdateAttributes", ({ enumerable: true, get: function () { return LogsMetricUpdateAttributes_1.LogsMetricUpdateAttributes; } })); +var LogsMetricUpdateCompute_1 = __nccwpck_require__(77903); +Object.defineProperty(exports, "LogsMetricUpdateCompute", ({ enumerable: true, get: function () { return LogsMetricUpdateCompute_1.LogsMetricUpdateCompute; } })); +var LogsMetricUpdateData_1 = __nccwpck_require__(12252); +Object.defineProperty(exports, "LogsMetricUpdateData", ({ enumerable: true, get: function () { return LogsMetricUpdateData_1.LogsMetricUpdateData; } })); +var LogsMetricUpdateRequest_1 = __nccwpck_require__(13375); +Object.defineProperty(exports, "LogsMetricUpdateRequest", ({ enumerable: true, get: function () { return LogsMetricUpdateRequest_1.LogsMetricUpdateRequest; } })); +var LogsQueryFilter_1 = __nccwpck_require__(3407); +Object.defineProperty(exports, "LogsQueryFilter", ({ enumerable: true, get: function () { return LogsQueryFilter_1.LogsQueryFilter; } })); +var LogsQueryOptions_1 = __nccwpck_require__(5023); +Object.defineProperty(exports, "LogsQueryOptions", ({ enumerable: true, get: function () { return LogsQueryOptions_1.LogsQueryOptions; } })); +var LogsResponseMetadata_1 = __nccwpck_require__(84551); +Object.defineProperty(exports, "LogsResponseMetadata", ({ enumerable: true, get: function () { return LogsResponseMetadata_1.LogsResponseMetadata; } })); +var LogsResponseMetadataPage_1 = __nccwpck_require__(85784); +Object.defineProperty(exports, "LogsResponseMetadataPage", ({ enumerable: true, get: function () { return LogsResponseMetadataPage_1.LogsResponseMetadataPage; } })); +var LogsWarning_1 = __nccwpck_require__(94785); +Object.defineProperty(exports, "LogsWarning", ({ enumerable: true, get: function () { return LogsWarning_1.LogsWarning; } })); +var Metric_1 = __nccwpck_require__(14270); +Object.defineProperty(exports, "Metric", ({ enumerable: true, get: function () { return Metric_1.Metric; } })); +var MetricAllTags_1 = __nccwpck_require__(26734); +Object.defineProperty(exports, "MetricAllTags", ({ enumerable: true, get: function () { return MetricAllTags_1.MetricAllTags; } })); +var MetricAllTagsAttributes_1 = __nccwpck_require__(87947); +Object.defineProperty(exports, "MetricAllTagsAttributes", ({ enumerable: true, get: function () { return MetricAllTagsAttributes_1.MetricAllTagsAttributes; } })); +var MetricAllTagsResponse_1 = __nccwpck_require__(88449); +Object.defineProperty(exports, "MetricAllTagsResponse", ({ enumerable: true, get: function () { return MetricAllTagsResponse_1.MetricAllTagsResponse; } })); +var MetricAssetAttributes_1 = __nccwpck_require__(7449); +Object.defineProperty(exports, "MetricAssetAttributes", ({ enumerable: true, get: function () { return MetricAssetAttributes_1.MetricAssetAttributes; } })); +var MetricAssetDashboardRelationship_1 = __nccwpck_require__(34920); +Object.defineProperty(exports, "MetricAssetDashboardRelationship", ({ enumerable: true, get: function () { return MetricAssetDashboardRelationship_1.MetricAssetDashboardRelationship; } })); +var MetricAssetDashboardRelationships_1 = __nccwpck_require__(5655); +Object.defineProperty(exports, "MetricAssetDashboardRelationships", ({ enumerable: true, get: function () { return MetricAssetDashboardRelationships_1.MetricAssetDashboardRelationships; } })); +var MetricAssetMonitorRelationship_1 = __nccwpck_require__(47626); +Object.defineProperty(exports, "MetricAssetMonitorRelationship", ({ enumerable: true, get: function () { return MetricAssetMonitorRelationship_1.MetricAssetMonitorRelationship; } })); +var MetricAssetMonitorRelationships_1 = __nccwpck_require__(15993); +Object.defineProperty(exports, "MetricAssetMonitorRelationships", ({ enumerable: true, get: function () { return MetricAssetMonitorRelationships_1.MetricAssetMonitorRelationships; } })); +var MetricAssetNotebookRelationship_1 = __nccwpck_require__(11363); +Object.defineProperty(exports, "MetricAssetNotebookRelationship", ({ enumerable: true, get: function () { return MetricAssetNotebookRelationship_1.MetricAssetNotebookRelationship; } })); +var MetricAssetNotebookRelationships_1 = __nccwpck_require__(57510); +Object.defineProperty(exports, "MetricAssetNotebookRelationships", ({ enumerable: true, get: function () { return MetricAssetNotebookRelationships_1.MetricAssetNotebookRelationships; } })); +var MetricAssetResponseData_1 = __nccwpck_require__(62991); +Object.defineProperty(exports, "MetricAssetResponseData", ({ enumerable: true, get: function () { return MetricAssetResponseData_1.MetricAssetResponseData; } })); +var MetricAssetResponseRelationships_1 = __nccwpck_require__(99548); +Object.defineProperty(exports, "MetricAssetResponseRelationships", ({ enumerable: true, get: function () { return MetricAssetResponseRelationships_1.MetricAssetResponseRelationships; } })); +var MetricAssetSLORelationship_1 = __nccwpck_require__(8932); +Object.defineProperty(exports, "MetricAssetSLORelationship", ({ enumerable: true, get: function () { return MetricAssetSLORelationship_1.MetricAssetSLORelationship; } })); +var MetricAssetSLORelationships_1 = __nccwpck_require__(84971); +Object.defineProperty(exports, "MetricAssetSLORelationships", ({ enumerable: true, get: function () { return MetricAssetSLORelationships_1.MetricAssetSLORelationships; } })); +var MetricAssetsResponse_1 = __nccwpck_require__(71644); +Object.defineProperty(exports, "MetricAssetsResponse", ({ enumerable: true, get: function () { return MetricAssetsResponse_1.MetricAssetsResponse; } })); +var MetricBulkTagConfigCreate_1 = __nccwpck_require__(60442); +Object.defineProperty(exports, "MetricBulkTagConfigCreate", ({ enumerable: true, get: function () { return MetricBulkTagConfigCreate_1.MetricBulkTagConfigCreate; } })); +var MetricBulkTagConfigCreateAttributes_1 = __nccwpck_require__(11551); +Object.defineProperty(exports, "MetricBulkTagConfigCreateAttributes", ({ enumerable: true, get: function () { return MetricBulkTagConfigCreateAttributes_1.MetricBulkTagConfigCreateAttributes; } })); +var MetricBulkTagConfigCreateRequest_1 = __nccwpck_require__(91046); +Object.defineProperty(exports, "MetricBulkTagConfigCreateRequest", ({ enumerable: true, get: function () { return MetricBulkTagConfigCreateRequest_1.MetricBulkTagConfigCreateRequest; } })); +var MetricBulkTagConfigDelete_1 = __nccwpck_require__(75049); +Object.defineProperty(exports, "MetricBulkTagConfigDelete", ({ enumerable: true, get: function () { return MetricBulkTagConfigDelete_1.MetricBulkTagConfigDelete; } })); +var MetricBulkTagConfigDeleteAttributes_1 = __nccwpck_require__(53560); +Object.defineProperty(exports, "MetricBulkTagConfigDeleteAttributes", ({ enumerable: true, get: function () { return MetricBulkTagConfigDeleteAttributes_1.MetricBulkTagConfigDeleteAttributes; } })); +var MetricBulkTagConfigDeleteRequest_1 = __nccwpck_require__(448); +Object.defineProperty(exports, "MetricBulkTagConfigDeleteRequest", ({ enumerable: true, get: function () { return MetricBulkTagConfigDeleteRequest_1.MetricBulkTagConfigDeleteRequest; } })); +var MetricBulkTagConfigResponse_1 = __nccwpck_require__(14245); +Object.defineProperty(exports, "MetricBulkTagConfigResponse", ({ enumerable: true, get: function () { return MetricBulkTagConfigResponse_1.MetricBulkTagConfigResponse; } })); +var MetricBulkTagConfigStatus_1 = __nccwpck_require__(11336); +Object.defineProperty(exports, "MetricBulkTagConfigStatus", ({ enumerable: true, get: function () { return MetricBulkTagConfigStatus_1.MetricBulkTagConfigStatus; } })); +var MetricBulkTagConfigStatusAttributes_1 = __nccwpck_require__(48769); +Object.defineProperty(exports, "MetricBulkTagConfigStatusAttributes", ({ enumerable: true, get: function () { return MetricBulkTagConfigStatusAttributes_1.MetricBulkTagConfigStatusAttributes; } })); +var MetricCustomAggregation_1 = __nccwpck_require__(2171); +Object.defineProperty(exports, "MetricCustomAggregation", ({ enumerable: true, get: function () { return MetricCustomAggregation_1.MetricCustomAggregation; } })); +var MetricDashboardAsset_1 = __nccwpck_require__(23310); +Object.defineProperty(exports, "MetricDashboardAsset", ({ enumerable: true, get: function () { return MetricDashboardAsset_1.MetricDashboardAsset; } })); +var MetricDashboardAttributes_1 = __nccwpck_require__(50769); +Object.defineProperty(exports, "MetricDashboardAttributes", ({ enumerable: true, get: function () { return MetricDashboardAttributes_1.MetricDashboardAttributes; } })); +var MetricDistinctVolume_1 = __nccwpck_require__(6828); +Object.defineProperty(exports, "MetricDistinctVolume", ({ enumerable: true, get: function () { return MetricDistinctVolume_1.MetricDistinctVolume; } })); +var MetricDistinctVolumeAttributes_1 = __nccwpck_require__(58909); +Object.defineProperty(exports, "MetricDistinctVolumeAttributes", ({ enumerable: true, get: function () { return MetricDistinctVolumeAttributes_1.MetricDistinctVolumeAttributes; } })); +var MetricEstimate_1 = __nccwpck_require__(19124); +Object.defineProperty(exports, "MetricEstimate", ({ enumerable: true, get: function () { return MetricEstimate_1.MetricEstimate; } })); +var MetricEstimateAttributes_1 = __nccwpck_require__(6101); +Object.defineProperty(exports, "MetricEstimateAttributes", ({ enumerable: true, get: function () { return MetricEstimateAttributes_1.MetricEstimateAttributes; } })); +var MetricEstimateResponse_1 = __nccwpck_require__(51867); +Object.defineProperty(exports, "MetricEstimateResponse", ({ enumerable: true, get: function () { return MetricEstimateResponse_1.MetricEstimateResponse; } })); +var MetricIngestedIndexedVolume_1 = __nccwpck_require__(23032); +Object.defineProperty(exports, "MetricIngestedIndexedVolume", ({ enumerable: true, get: function () { return MetricIngestedIndexedVolume_1.MetricIngestedIndexedVolume; } })); +var MetricIngestedIndexedVolumeAttributes_1 = __nccwpck_require__(75281); +Object.defineProperty(exports, "MetricIngestedIndexedVolumeAttributes", ({ enumerable: true, get: function () { return MetricIngestedIndexedVolumeAttributes_1.MetricIngestedIndexedVolumeAttributes; } })); +var MetricMetadata_1 = __nccwpck_require__(79951); +Object.defineProperty(exports, "MetricMetadata", ({ enumerable: true, get: function () { return MetricMetadata_1.MetricMetadata; } })); +var MetricMetaPage_1 = __nccwpck_require__(45912); +Object.defineProperty(exports, "MetricMetaPage", ({ enumerable: true, get: function () { return MetricMetaPage_1.MetricMetaPage; } })); +var MetricMonitorAsset_1 = __nccwpck_require__(93428); +Object.defineProperty(exports, "MetricMonitorAsset", ({ enumerable: true, get: function () { return MetricMonitorAsset_1.MetricMonitorAsset; } })); +var MetricNotebookAsset_1 = __nccwpck_require__(31711); +Object.defineProperty(exports, "MetricNotebookAsset", ({ enumerable: true, get: function () { return MetricNotebookAsset_1.MetricNotebookAsset; } })); +var MetricOrigin_1 = __nccwpck_require__(59820); +Object.defineProperty(exports, "MetricOrigin", ({ enumerable: true, get: function () { return MetricOrigin_1.MetricOrigin; } })); +var MetricPaginationMeta_1 = __nccwpck_require__(69667); +Object.defineProperty(exports, "MetricPaginationMeta", ({ enumerable: true, get: function () { return MetricPaginationMeta_1.MetricPaginationMeta; } })); +var MetricPayload_1 = __nccwpck_require__(32014); +Object.defineProperty(exports, "MetricPayload", ({ enumerable: true, get: function () { return MetricPayload_1.MetricPayload; } })); +var MetricPoint_1 = __nccwpck_require__(77826); +Object.defineProperty(exports, "MetricPoint", ({ enumerable: true, get: function () { return MetricPoint_1.MetricPoint; } })); +var MetricResource_1 = __nccwpck_require__(82126); +Object.defineProperty(exports, "MetricResource", ({ enumerable: true, get: function () { return MetricResource_1.MetricResource; } })); +var MetricsAndMetricTagConfigurationsResponse_1 = __nccwpck_require__(30786); +Object.defineProperty(exports, "MetricsAndMetricTagConfigurationsResponse", ({ enumerable: true, get: function () { return MetricsAndMetricTagConfigurationsResponse_1.MetricsAndMetricTagConfigurationsResponse; } })); +var MetricSeries_1 = __nccwpck_require__(88247); +Object.defineProperty(exports, "MetricSeries", ({ enumerable: true, get: function () { return MetricSeries_1.MetricSeries; } })); +var MetricsListResponseLinks_1 = __nccwpck_require__(58733); +Object.defineProperty(exports, "MetricsListResponseLinks", ({ enumerable: true, get: function () { return MetricsListResponseLinks_1.MetricsListResponseLinks; } })); +var MetricSLOAsset_1 = __nccwpck_require__(63690); +Object.defineProperty(exports, "MetricSLOAsset", ({ enumerable: true, get: function () { return MetricSLOAsset_1.MetricSLOAsset; } })); +var MetricsScalarQuery_1 = __nccwpck_require__(1305); +Object.defineProperty(exports, "MetricsScalarQuery", ({ enumerable: true, get: function () { return MetricsScalarQuery_1.MetricsScalarQuery; } })); +var MetricsTimeseriesQuery_1 = __nccwpck_require__(32129); +Object.defineProperty(exports, "MetricsTimeseriesQuery", ({ enumerable: true, get: function () { return MetricsTimeseriesQuery_1.MetricsTimeseriesQuery; } })); +var MetricSuggestedTagsAndAggregations_1 = __nccwpck_require__(36270); +Object.defineProperty(exports, "MetricSuggestedTagsAndAggregations", ({ enumerable: true, get: function () { return MetricSuggestedTagsAndAggregations_1.MetricSuggestedTagsAndAggregations; } })); +var MetricSuggestedTagsAndAggregationsResponse_1 = __nccwpck_require__(10849); +Object.defineProperty(exports, "MetricSuggestedTagsAndAggregationsResponse", ({ enumerable: true, get: function () { return MetricSuggestedTagsAndAggregationsResponse_1.MetricSuggestedTagsAndAggregationsResponse; } })); +var MetricSuggestedTagsAttributes_1 = __nccwpck_require__(78283); +Object.defineProperty(exports, "MetricSuggestedTagsAttributes", ({ enumerable: true, get: function () { return MetricSuggestedTagsAttributes_1.MetricSuggestedTagsAttributes; } })); +var MetricTagConfiguration_1 = __nccwpck_require__(31720); +Object.defineProperty(exports, "MetricTagConfiguration", ({ enumerable: true, get: function () { return MetricTagConfiguration_1.MetricTagConfiguration; } })); +var MetricTagConfigurationAttributes_1 = __nccwpck_require__(25889); +Object.defineProperty(exports, "MetricTagConfigurationAttributes", ({ enumerable: true, get: function () { return MetricTagConfigurationAttributes_1.MetricTagConfigurationAttributes; } })); +var MetricTagConfigurationCreateAttributes_1 = __nccwpck_require__(51161); +Object.defineProperty(exports, "MetricTagConfigurationCreateAttributes", ({ enumerable: true, get: function () { return MetricTagConfigurationCreateAttributes_1.MetricTagConfigurationCreateAttributes; } })); +var MetricTagConfigurationCreateData_1 = __nccwpck_require__(74232); +Object.defineProperty(exports, "MetricTagConfigurationCreateData", ({ enumerable: true, get: function () { return MetricTagConfigurationCreateData_1.MetricTagConfigurationCreateData; } })); +var MetricTagConfigurationCreateRequest_1 = __nccwpck_require__(44819); +Object.defineProperty(exports, "MetricTagConfigurationCreateRequest", ({ enumerable: true, get: function () { return MetricTagConfigurationCreateRequest_1.MetricTagConfigurationCreateRequest; } })); +var MetricTagConfigurationResponse_1 = __nccwpck_require__(6175); +Object.defineProperty(exports, "MetricTagConfigurationResponse", ({ enumerable: true, get: function () { return MetricTagConfigurationResponse_1.MetricTagConfigurationResponse; } })); +var MetricTagConfigurationUpdateAttributes_1 = __nccwpck_require__(20844); +Object.defineProperty(exports, "MetricTagConfigurationUpdateAttributes", ({ enumerable: true, get: function () { return MetricTagConfigurationUpdateAttributes_1.MetricTagConfigurationUpdateAttributes; } })); +var MetricTagConfigurationUpdateData_1 = __nccwpck_require__(87429); +Object.defineProperty(exports, "MetricTagConfigurationUpdateData", ({ enumerable: true, get: function () { return MetricTagConfigurationUpdateData_1.MetricTagConfigurationUpdateData; } })); +var MetricTagConfigurationUpdateRequest_1 = __nccwpck_require__(53956); +Object.defineProperty(exports, "MetricTagConfigurationUpdateRequest", ({ enumerable: true, get: function () { return MetricTagConfigurationUpdateRequest_1.MetricTagConfigurationUpdateRequest; } })); +var MetricVolumesResponse_1 = __nccwpck_require__(18184); +Object.defineProperty(exports, "MetricVolumesResponse", ({ enumerable: true, get: function () { return MetricVolumesResponse_1.MetricVolumesResponse; } })); +var MicrosoftTeamsChannelInfoResponseAttributes_1 = __nccwpck_require__(6187); +Object.defineProperty(exports, "MicrosoftTeamsChannelInfoResponseAttributes", ({ enumerable: true, get: function () { return MicrosoftTeamsChannelInfoResponseAttributes_1.MicrosoftTeamsChannelInfoResponseAttributes; } })); +var MicrosoftTeamsChannelInfoResponseData_1 = __nccwpck_require__(76017); +Object.defineProperty(exports, "MicrosoftTeamsChannelInfoResponseData", ({ enumerable: true, get: function () { return MicrosoftTeamsChannelInfoResponseData_1.MicrosoftTeamsChannelInfoResponseData; } })); +var MicrosoftTeamsCreateTenantBasedHandleRequest_1 = __nccwpck_require__(20258); +Object.defineProperty(exports, "MicrosoftTeamsCreateTenantBasedHandleRequest", ({ enumerable: true, get: function () { return MicrosoftTeamsCreateTenantBasedHandleRequest_1.MicrosoftTeamsCreateTenantBasedHandleRequest; } })); +var MicrosoftTeamsGetChannelByNameResponse_1 = __nccwpck_require__(254); +Object.defineProperty(exports, "MicrosoftTeamsGetChannelByNameResponse", ({ enumerable: true, get: function () { return MicrosoftTeamsGetChannelByNameResponse_1.MicrosoftTeamsGetChannelByNameResponse; } })); +var MicrosoftTeamsTenantBasedHandleAttributes_1 = __nccwpck_require__(24994); +Object.defineProperty(exports, "MicrosoftTeamsTenantBasedHandleAttributes", ({ enumerable: true, get: function () { return MicrosoftTeamsTenantBasedHandleAttributes_1.MicrosoftTeamsTenantBasedHandleAttributes; } })); +var MicrosoftTeamsTenantBasedHandleInfoResponseAttributes_1 = __nccwpck_require__(29481); +Object.defineProperty(exports, "MicrosoftTeamsTenantBasedHandleInfoResponseAttributes", ({ enumerable: true, get: function () { return MicrosoftTeamsTenantBasedHandleInfoResponseAttributes_1.MicrosoftTeamsTenantBasedHandleInfoResponseAttributes; } })); +var MicrosoftTeamsTenantBasedHandleInfoResponseData_1 = __nccwpck_require__(62344); +Object.defineProperty(exports, "MicrosoftTeamsTenantBasedHandleInfoResponseData", ({ enumerable: true, get: function () { return MicrosoftTeamsTenantBasedHandleInfoResponseData_1.MicrosoftTeamsTenantBasedHandleInfoResponseData; } })); +var MicrosoftTeamsTenantBasedHandleRequestAttributes_1 = __nccwpck_require__(35023); +Object.defineProperty(exports, "MicrosoftTeamsTenantBasedHandleRequestAttributes", ({ enumerable: true, get: function () { return MicrosoftTeamsTenantBasedHandleRequestAttributes_1.MicrosoftTeamsTenantBasedHandleRequestAttributes; } })); +var MicrosoftTeamsTenantBasedHandleRequestData_1 = __nccwpck_require__(81610); +Object.defineProperty(exports, "MicrosoftTeamsTenantBasedHandleRequestData", ({ enumerable: true, get: function () { return MicrosoftTeamsTenantBasedHandleRequestData_1.MicrosoftTeamsTenantBasedHandleRequestData; } })); +var MicrosoftTeamsTenantBasedHandleResponse_1 = __nccwpck_require__(80356); +Object.defineProperty(exports, "MicrosoftTeamsTenantBasedHandleResponse", ({ enumerable: true, get: function () { return MicrosoftTeamsTenantBasedHandleResponse_1.MicrosoftTeamsTenantBasedHandleResponse; } })); +var MicrosoftTeamsTenantBasedHandleResponseData_1 = __nccwpck_require__(68908); +Object.defineProperty(exports, "MicrosoftTeamsTenantBasedHandleResponseData", ({ enumerable: true, get: function () { return MicrosoftTeamsTenantBasedHandleResponseData_1.MicrosoftTeamsTenantBasedHandleResponseData; } })); +var MicrosoftTeamsTenantBasedHandlesResponse_1 = __nccwpck_require__(42469); +Object.defineProperty(exports, "MicrosoftTeamsTenantBasedHandlesResponse", ({ enumerable: true, get: function () { return MicrosoftTeamsTenantBasedHandlesResponse_1.MicrosoftTeamsTenantBasedHandlesResponse; } })); +var MicrosoftTeamsUpdateTenantBasedHandleRequest_1 = __nccwpck_require__(75703); +Object.defineProperty(exports, "MicrosoftTeamsUpdateTenantBasedHandleRequest", ({ enumerable: true, get: function () { return MicrosoftTeamsUpdateTenantBasedHandleRequest_1.MicrosoftTeamsUpdateTenantBasedHandleRequest; } })); +var MicrosoftTeamsUpdateTenantBasedHandleRequestData_1 = __nccwpck_require__(73439); +Object.defineProperty(exports, "MicrosoftTeamsUpdateTenantBasedHandleRequestData", ({ enumerable: true, get: function () { return MicrosoftTeamsUpdateTenantBasedHandleRequestData_1.MicrosoftTeamsUpdateTenantBasedHandleRequestData; } })); +var MonitorConfigPolicyAttributeCreateRequest_1 = __nccwpck_require__(84915); +Object.defineProperty(exports, "MonitorConfigPolicyAttributeCreateRequest", ({ enumerable: true, get: function () { return MonitorConfigPolicyAttributeCreateRequest_1.MonitorConfigPolicyAttributeCreateRequest; } })); +var MonitorConfigPolicyAttributeEditRequest_1 = __nccwpck_require__(43199); +Object.defineProperty(exports, "MonitorConfigPolicyAttributeEditRequest", ({ enumerable: true, get: function () { return MonitorConfigPolicyAttributeEditRequest_1.MonitorConfigPolicyAttributeEditRequest; } })); +var MonitorConfigPolicyAttributeResponse_1 = __nccwpck_require__(10879); +Object.defineProperty(exports, "MonitorConfigPolicyAttributeResponse", ({ enumerable: true, get: function () { return MonitorConfigPolicyAttributeResponse_1.MonitorConfigPolicyAttributeResponse; } })); +var MonitorConfigPolicyCreateData_1 = __nccwpck_require__(44570); +Object.defineProperty(exports, "MonitorConfigPolicyCreateData", ({ enumerable: true, get: function () { return MonitorConfigPolicyCreateData_1.MonitorConfigPolicyCreateData; } })); +var MonitorConfigPolicyCreateRequest_1 = __nccwpck_require__(83417); +Object.defineProperty(exports, "MonitorConfigPolicyCreateRequest", ({ enumerable: true, get: function () { return MonitorConfigPolicyCreateRequest_1.MonitorConfigPolicyCreateRequest; } })); +var MonitorConfigPolicyEditData_1 = __nccwpck_require__(98166); +Object.defineProperty(exports, "MonitorConfigPolicyEditData", ({ enumerable: true, get: function () { return MonitorConfigPolicyEditData_1.MonitorConfigPolicyEditData; } })); +var MonitorConfigPolicyEditRequest_1 = __nccwpck_require__(88557); +Object.defineProperty(exports, "MonitorConfigPolicyEditRequest", ({ enumerable: true, get: function () { return MonitorConfigPolicyEditRequest_1.MonitorConfigPolicyEditRequest; } })); +var MonitorConfigPolicyListResponse_1 = __nccwpck_require__(70249); +Object.defineProperty(exports, "MonitorConfigPolicyListResponse", ({ enumerable: true, get: function () { return MonitorConfigPolicyListResponse_1.MonitorConfigPolicyListResponse; } })); +var MonitorConfigPolicyResponse_1 = __nccwpck_require__(46981); +Object.defineProperty(exports, "MonitorConfigPolicyResponse", ({ enumerable: true, get: function () { return MonitorConfigPolicyResponse_1.MonitorConfigPolicyResponse; } })); +var MonitorConfigPolicyResponseData_1 = __nccwpck_require__(29509); +Object.defineProperty(exports, "MonitorConfigPolicyResponseData", ({ enumerable: true, get: function () { return MonitorConfigPolicyResponseData_1.MonitorConfigPolicyResponseData; } })); +var MonitorConfigPolicyTagPolicy_1 = __nccwpck_require__(23250); +Object.defineProperty(exports, "MonitorConfigPolicyTagPolicy", ({ enumerable: true, get: function () { return MonitorConfigPolicyTagPolicy_1.MonitorConfigPolicyTagPolicy; } })); +var MonitorConfigPolicyTagPolicyCreateRequest_1 = __nccwpck_require__(96329); +Object.defineProperty(exports, "MonitorConfigPolicyTagPolicyCreateRequest", ({ enumerable: true, get: function () { return MonitorConfigPolicyTagPolicyCreateRequest_1.MonitorConfigPolicyTagPolicyCreateRequest; } })); +var MonitorDowntimeMatchResponse_1 = __nccwpck_require__(13601); +Object.defineProperty(exports, "MonitorDowntimeMatchResponse", ({ enumerable: true, get: function () { return MonitorDowntimeMatchResponse_1.MonitorDowntimeMatchResponse; } })); +var MonitorDowntimeMatchResponseAttributes_1 = __nccwpck_require__(23315); +Object.defineProperty(exports, "MonitorDowntimeMatchResponseAttributes", ({ enumerable: true, get: function () { return MonitorDowntimeMatchResponseAttributes_1.MonitorDowntimeMatchResponseAttributes; } })); +var MonitorDowntimeMatchResponseData_1 = __nccwpck_require__(6769); +Object.defineProperty(exports, "MonitorDowntimeMatchResponseData", ({ enumerable: true, get: function () { return MonitorDowntimeMatchResponseData_1.MonitorDowntimeMatchResponseData; } })); +var MonitorType_1 = __nccwpck_require__(51486); +Object.defineProperty(exports, "MonitorType", ({ enumerable: true, get: function () { return MonitorType_1.MonitorType; } })); +var MonthlyCostAttributionAttributes_1 = __nccwpck_require__(15930); +Object.defineProperty(exports, "MonthlyCostAttributionAttributes", ({ enumerable: true, get: function () { return MonthlyCostAttributionAttributes_1.MonthlyCostAttributionAttributes; } })); +var MonthlyCostAttributionBody_1 = __nccwpck_require__(90563); +Object.defineProperty(exports, "MonthlyCostAttributionBody", ({ enumerable: true, get: function () { return MonthlyCostAttributionBody_1.MonthlyCostAttributionBody; } })); +var MonthlyCostAttributionMeta_1 = __nccwpck_require__(958); +Object.defineProperty(exports, "MonthlyCostAttributionMeta", ({ enumerable: true, get: function () { return MonthlyCostAttributionMeta_1.MonthlyCostAttributionMeta; } })); +var MonthlyCostAttributionPagination_1 = __nccwpck_require__(59215); +Object.defineProperty(exports, "MonthlyCostAttributionPagination", ({ enumerable: true, get: function () { return MonthlyCostAttributionPagination_1.MonthlyCostAttributionPagination; } })); +var MonthlyCostAttributionResponse_1 = __nccwpck_require__(49548); +Object.defineProperty(exports, "MonthlyCostAttributionResponse", ({ enumerable: true, get: function () { return MonthlyCostAttributionResponse_1.MonthlyCostAttributionResponse; } })); +var MSTeamsIntegrationMetadata_1 = __nccwpck_require__(96703); +Object.defineProperty(exports, "MSTeamsIntegrationMetadata", ({ enumerable: true, get: function () { return MSTeamsIntegrationMetadata_1.MSTeamsIntegrationMetadata; } })); +var MSTeamsIntegrationMetadataTeamsItem_1 = __nccwpck_require__(90982); +Object.defineProperty(exports, "MSTeamsIntegrationMetadataTeamsItem", ({ enumerable: true, get: function () { return MSTeamsIntegrationMetadataTeamsItem_1.MSTeamsIntegrationMetadataTeamsItem; } })); +var NullableRelationshipToUser_1 = __nccwpck_require__(90511); +Object.defineProperty(exports, "NullableRelationshipToUser", ({ enumerable: true, get: function () { return NullableRelationshipToUser_1.NullableRelationshipToUser; } })); +var NullableRelationshipToUserData_1 = __nccwpck_require__(98583); +Object.defineProperty(exports, "NullableRelationshipToUserData", ({ enumerable: true, get: function () { return NullableRelationshipToUserData_1.NullableRelationshipToUserData; } })); +var NullableUserRelationship_1 = __nccwpck_require__(24189); +Object.defineProperty(exports, "NullableUserRelationship", ({ enumerable: true, get: function () { return NullableUserRelationship_1.NullableUserRelationship; } })); +var NullableUserRelationshipData_1 = __nccwpck_require__(18378); +Object.defineProperty(exports, "NullableUserRelationshipData", ({ enumerable: true, get: function () { return NullableUserRelationshipData_1.NullableUserRelationshipData; } })); +var OktaAccount_1 = __nccwpck_require__(81808); +Object.defineProperty(exports, "OktaAccount", ({ enumerable: true, get: function () { return OktaAccount_1.OktaAccount; } })); +var OktaAccountAttributes_1 = __nccwpck_require__(34617); +Object.defineProperty(exports, "OktaAccountAttributes", ({ enumerable: true, get: function () { return OktaAccountAttributes_1.OktaAccountAttributes; } })); +var OktaAccountRequest_1 = __nccwpck_require__(23475); +Object.defineProperty(exports, "OktaAccountRequest", ({ enumerable: true, get: function () { return OktaAccountRequest_1.OktaAccountRequest; } })); +var OktaAccountResponse_1 = __nccwpck_require__(80839); +Object.defineProperty(exports, "OktaAccountResponse", ({ enumerable: true, get: function () { return OktaAccountResponse_1.OktaAccountResponse; } })); +var OktaAccountResponseData_1 = __nccwpck_require__(97231); +Object.defineProperty(exports, "OktaAccountResponseData", ({ enumerable: true, get: function () { return OktaAccountResponseData_1.OktaAccountResponseData; } })); +var OktaAccountsResponse_1 = __nccwpck_require__(49788); +Object.defineProperty(exports, "OktaAccountsResponse", ({ enumerable: true, get: function () { return OktaAccountsResponse_1.OktaAccountsResponse; } })); +var OktaAccountUpdateRequest_1 = __nccwpck_require__(75132); +Object.defineProperty(exports, "OktaAccountUpdateRequest", ({ enumerable: true, get: function () { return OktaAccountUpdateRequest_1.OktaAccountUpdateRequest; } })); +var OktaAccountUpdateRequestAttributes_1 = __nccwpck_require__(20301); +Object.defineProperty(exports, "OktaAccountUpdateRequestAttributes", ({ enumerable: true, get: function () { return OktaAccountUpdateRequestAttributes_1.OktaAccountUpdateRequestAttributes; } })); +var OktaAccountUpdateRequestData_1 = __nccwpck_require__(39236); +Object.defineProperty(exports, "OktaAccountUpdateRequestData", ({ enumerable: true, get: function () { return OktaAccountUpdateRequestData_1.OktaAccountUpdateRequestData; } })); +var OnDemandConcurrencyCap_1 = __nccwpck_require__(61017); +Object.defineProperty(exports, "OnDemandConcurrencyCap", ({ enumerable: true, get: function () { return OnDemandConcurrencyCap_1.OnDemandConcurrencyCap; } })); +var OnDemandConcurrencyCapAttributes_1 = __nccwpck_require__(7016); +Object.defineProperty(exports, "OnDemandConcurrencyCapAttributes", ({ enumerable: true, get: function () { return OnDemandConcurrencyCapAttributes_1.OnDemandConcurrencyCapAttributes; } })); +var OnDemandConcurrencyCapResponse_1 = __nccwpck_require__(88394); +Object.defineProperty(exports, "OnDemandConcurrencyCapResponse", ({ enumerable: true, get: function () { return OnDemandConcurrencyCapResponse_1.OnDemandConcurrencyCapResponse; } })); +var OpenAPIEndpoint_1 = __nccwpck_require__(6293); +Object.defineProperty(exports, "OpenAPIEndpoint", ({ enumerable: true, get: function () { return OpenAPIEndpoint_1.OpenAPIEndpoint; } })); +var OpenAPIFile_1 = __nccwpck_require__(6018); +Object.defineProperty(exports, "OpenAPIFile", ({ enumerable: true, get: function () { return OpenAPIFile_1.OpenAPIFile; } })); +var OpsgenieServiceCreateAttributes_1 = __nccwpck_require__(23182); +Object.defineProperty(exports, "OpsgenieServiceCreateAttributes", ({ enumerable: true, get: function () { return OpsgenieServiceCreateAttributes_1.OpsgenieServiceCreateAttributes; } })); +var OpsgenieServiceCreateData_1 = __nccwpck_require__(44579); +Object.defineProperty(exports, "OpsgenieServiceCreateData", ({ enumerable: true, get: function () { return OpsgenieServiceCreateData_1.OpsgenieServiceCreateData; } })); +var OpsgenieServiceCreateRequest_1 = __nccwpck_require__(85606); +Object.defineProperty(exports, "OpsgenieServiceCreateRequest", ({ enumerable: true, get: function () { return OpsgenieServiceCreateRequest_1.OpsgenieServiceCreateRequest; } })); +var OpsgenieServiceResponse_1 = __nccwpck_require__(74804); +Object.defineProperty(exports, "OpsgenieServiceResponse", ({ enumerable: true, get: function () { return OpsgenieServiceResponse_1.OpsgenieServiceResponse; } })); +var OpsgenieServiceResponseAttributes_1 = __nccwpck_require__(71669); +Object.defineProperty(exports, "OpsgenieServiceResponseAttributes", ({ enumerable: true, get: function () { return OpsgenieServiceResponseAttributes_1.OpsgenieServiceResponseAttributes; } })); +var OpsgenieServiceResponseData_1 = __nccwpck_require__(5692); +Object.defineProperty(exports, "OpsgenieServiceResponseData", ({ enumerable: true, get: function () { return OpsgenieServiceResponseData_1.OpsgenieServiceResponseData; } })); +var OpsgenieServicesResponse_1 = __nccwpck_require__(11285); +Object.defineProperty(exports, "OpsgenieServicesResponse", ({ enumerable: true, get: function () { return OpsgenieServicesResponse_1.OpsgenieServicesResponse; } })); +var OpsgenieServiceUpdateAttributes_1 = __nccwpck_require__(30295); +Object.defineProperty(exports, "OpsgenieServiceUpdateAttributes", ({ enumerable: true, get: function () { return OpsgenieServiceUpdateAttributes_1.OpsgenieServiceUpdateAttributes; } })); +var OpsgenieServiceUpdateData_1 = __nccwpck_require__(40802); +Object.defineProperty(exports, "OpsgenieServiceUpdateData", ({ enumerable: true, get: function () { return OpsgenieServiceUpdateData_1.OpsgenieServiceUpdateData; } })); +var OpsgenieServiceUpdateRequest_1 = __nccwpck_require__(18097); +Object.defineProperty(exports, "OpsgenieServiceUpdateRequest", ({ enumerable: true, get: function () { return OpsgenieServiceUpdateRequest_1.OpsgenieServiceUpdateRequest; } })); +var Organization_1 = __nccwpck_require__(19297); +Object.defineProperty(exports, "Organization", ({ enumerable: true, get: function () { return Organization_1.Organization; } })); +var OrganizationAttributes_1 = __nccwpck_require__(98272); +Object.defineProperty(exports, "OrganizationAttributes", ({ enumerable: true, get: function () { return OrganizationAttributes_1.OrganizationAttributes; } })); +var OrgConfigGetResponse_1 = __nccwpck_require__(67501); +Object.defineProperty(exports, "OrgConfigGetResponse", ({ enumerable: true, get: function () { return OrgConfigGetResponse_1.OrgConfigGetResponse; } })); +var OrgConfigListResponse_1 = __nccwpck_require__(55683); +Object.defineProperty(exports, "OrgConfigListResponse", ({ enumerable: true, get: function () { return OrgConfigListResponse_1.OrgConfigListResponse; } })); +var OrgConfigRead_1 = __nccwpck_require__(71088); +Object.defineProperty(exports, "OrgConfigRead", ({ enumerable: true, get: function () { return OrgConfigRead_1.OrgConfigRead; } })); +var OrgConfigReadAttributes_1 = __nccwpck_require__(825); +Object.defineProperty(exports, "OrgConfigReadAttributes", ({ enumerable: true, get: function () { return OrgConfigReadAttributes_1.OrgConfigReadAttributes; } })); +var OrgConfigWrite_1 = __nccwpck_require__(76861); +Object.defineProperty(exports, "OrgConfigWrite", ({ enumerable: true, get: function () { return OrgConfigWrite_1.OrgConfigWrite; } })); +var OrgConfigWriteAttributes_1 = __nccwpck_require__(9876); +Object.defineProperty(exports, "OrgConfigWriteAttributes", ({ enumerable: true, get: function () { return OrgConfigWriteAttributes_1.OrgConfigWriteAttributes; } })); +var OrgConfigWriteRequest_1 = __nccwpck_require__(28268); +Object.defineProperty(exports, "OrgConfigWriteRequest", ({ enumerable: true, get: function () { return OrgConfigWriteRequest_1.OrgConfigWriteRequest; } })); +var OutcomesBatchAttributes_1 = __nccwpck_require__(84526); +Object.defineProperty(exports, "OutcomesBatchAttributes", ({ enumerable: true, get: function () { return OutcomesBatchAttributes_1.OutcomesBatchAttributes; } })); +var OutcomesBatchRequest_1 = __nccwpck_require__(62022); +Object.defineProperty(exports, "OutcomesBatchRequest", ({ enumerable: true, get: function () { return OutcomesBatchRequest_1.OutcomesBatchRequest; } })); +var OutcomesBatchRequestData_1 = __nccwpck_require__(23062); +Object.defineProperty(exports, "OutcomesBatchRequestData", ({ enumerable: true, get: function () { return OutcomesBatchRequestData_1.OutcomesBatchRequestData; } })); +var OutcomesBatchRequestItem_1 = __nccwpck_require__(16137); +Object.defineProperty(exports, "OutcomesBatchRequestItem", ({ enumerable: true, get: function () { return OutcomesBatchRequestItem_1.OutcomesBatchRequestItem; } })); +var OutcomesBatchResponse_1 = __nccwpck_require__(16872); +Object.defineProperty(exports, "OutcomesBatchResponse", ({ enumerable: true, get: function () { return OutcomesBatchResponse_1.OutcomesBatchResponse; } })); +var OutcomesBatchResponseAttributes_1 = __nccwpck_require__(73185); +Object.defineProperty(exports, "OutcomesBatchResponseAttributes", ({ enumerable: true, get: function () { return OutcomesBatchResponseAttributes_1.OutcomesBatchResponseAttributes; } })); +var OutcomesBatchResponseMeta_1 = __nccwpck_require__(8673); +Object.defineProperty(exports, "OutcomesBatchResponseMeta", ({ enumerable: true, get: function () { return OutcomesBatchResponseMeta_1.OutcomesBatchResponseMeta; } })); +var OutcomesResponse_1 = __nccwpck_require__(19376); +Object.defineProperty(exports, "OutcomesResponse", ({ enumerable: true, get: function () { return OutcomesResponse_1.OutcomesResponse; } })); +var OutcomesResponseDataItem_1 = __nccwpck_require__(95715); +Object.defineProperty(exports, "OutcomesResponseDataItem", ({ enumerable: true, get: function () { return OutcomesResponseDataItem_1.OutcomesResponseDataItem; } })); +var OutcomesResponseIncludedItem_1 = __nccwpck_require__(24023); +Object.defineProperty(exports, "OutcomesResponseIncludedItem", ({ enumerable: true, get: function () { return OutcomesResponseIncludedItem_1.OutcomesResponseIncludedItem; } })); +var OutcomesResponseIncludedRuleAttributes_1 = __nccwpck_require__(23055); +Object.defineProperty(exports, "OutcomesResponseIncludedRuleAttributes", ({ enumerable: true, get: function () { return OutcomesResponseIncludedRuleAttributes_1.OutcomesResponseIncludedRuleAttributes; } })); +var OutcomesResponseLinks_1 = __nccwpck_require__(97907); +Object.defineProperty(exports, "OutcomesResponseLinks", ({ enumerable: true, get: function () { return OutcomesResponseLinks_1.OutcomesResponseLinks; } })); +var Pagination_1 = __nccwpck_require__(72150); +Object.defineProperty(exports, "Pagination", ({ enumerable: true, get: function () { return Pagination_1.Pagination; } })); +var PartialAPIKey_1 = __nccwpck_require__(66474); +Object.defineProperty(exports, "PartialAPIKey", ({ enumerable: true, get: function () { return PartialAPIKey_1.PartialAPIKey; } })); +var PartialAPIKeyAttributes_1 = __nccwpck_require__(46767); +Object.defineProperty(exports, "PartialAPIKeyAttributes", ({ enumerable: true, get: function () { return PartialAPIKeyAttributes_1.PartialAPIKeyAttributes; } })); +var PartialApplicationKey_1 = __nccwpck_require__(61304); +Object.defineProperty(exports, "PartialApplicationKey", ({ enumerable: true, get: function () { return PartialApplicationKey_1.PartialApplicationKey; } })); +var PartialApplicationKeyAttributes_1 = __nccwpck_require__(59057); +Object.defineProperty(exports, "PartialApplicationKeyAttributes", ({ enumerable: true, get: function () { return PartialApplicationKeyAttributes_1.PartialApplicationKeyAttributes; } })); +var PartialApplicationKeyResponse_1 = __nccwpck_require__(3983); +Object.defineProperty(exports, "PartialApplicationKeyResponse", ({ enumerable: true, get: function () { return PartialApplicationKeyResponse_1.PartialApplicationKeyResponse; } })); +var Permission_1 = __nccwpck_require__(58841); +Object.defineProperty(exports, "Permission", ({ enumerable: true, get: function () { return Permission_1.Permission; } })); +var PermissionAttributes_1 = __nccwpck_require__(67176); +Object.defineProperty(exports, "PermissionAttributes", ({ enumerable: true, get: function () { return PermissionAttributes_1.PermissionAttributes; } })); +var PermissionsResponse_1 = __nccwpck_require__(47907); +Object.defineProperty(exports, "PermissionsResponse", ({ enumerable: true, get: function () { return PermissionsResponse_1.PermissionsResponse; } })); +var Powerpack_1 = __nccwpck_require__(41680); +Object.defineProperty(exports, "Powerpack", ({ enumerable: true, get: function () { return Powerpack_1.Powerpack; } })); +var PowerpackAttributes_1 = __nccwpck_require__(53753); +Object.defineProperty(exports, "PowerpackAttributes", ({ enumerable: true, get: function () { return PowerpackAttributes_1.PowerpackAttributes; } })); +var PowerpackData_1 = __nccwpck_require__(59416); +Object.defineProperty(exports, "PowerpackData", ({ enumerable: true, get: function () { return PowerpackData_1.PowerpackData; } })); +var PowerpackGroupWidget_1 = __nccwpck_require__(63617); +Object.defineProperty(exports, "PowerpackGroupWidget", ({ enumerable: true, get: function () { return PowerpackGroupWidget_1.PowerpackGroupWidget; } })); +var PowerpackGroupWidgetDefinition_1 = __nccwpck_require__(8484); +Object.defineProperty(exports, "PowerpackGroupWidgetDefinition", ({ enumerable: true, get: function () { return PowerpackGroupWidgetDefinition_1.PowerpackGroupWidgetDefinition; } })); +var PowerpackGroupWidgetLayout_1 = __nccwpck_require__(71071); +Object.defineProperty(exports, "PowerpackGroupWidgetLayout", ({ enumerable: true, get: function () { return PowerpackGroupWidgetLayout_1.PowerpackGroupWidgetLayout; } })); +var PowerpackInnerWidgetLayout_1 = __nccwpck_require__(88580); +Object.defineProperty(exports, "PowerpackInnerWidgetLayout", ({ enumerable: true, get: function () { return PowerpackInnerWidgetLayout_1.PowerpackInnerWidgetLayout; } })); +var PowerpackInnerWidgets_1 = __nccwpck_require__(33461); +Object.defineProperty(exports, "PowerpackInnerWidgets", ({ enumerable: true, get: function () { return PowerpackInnerWidgets_1.PowerpackInnerWidgets; } })); +var PowerpackRelationships_1 = __nccwpck_require__(48809); +Object.defineProperty(exports, "PowerpackRelationships", ({ enumerable: true, get: function () { return PowerpackRelationships_1.PowerpackRelationships; } })); +var PowerpackResponse_1 = __nccwpck_require__(22759); +Object.defineProperty(exports, "PowerpackResponse", ({ enumerable: true, get: function () { return PowerpackResponse_1.PowerpackResponse; } })); +var PowerpackResponseLinks_1 = __nccwpck_require__(41730); +Object.defineProperty(exports, "PowerpackResponseLinks", ({ enumerable: true, get: function () { return PowerpackResponseLinks_1.PowerpackResponseLinks; } })); +var PowerpacksResponseMeta_1 = __nccwpck_require__(80541); +Object.defineProperty(exports, "PowerpacksResponseMeta", ({ enumerable: true, get: function () { return PowerpacksResponseMeta_1.PowerpacksResponseMeta; } })); +var PowerpacksResponseMetaPagination_1 = __nccwpck_require__(17989); +Object.defineProperty(exports, "PowerpacksResponseMetaPagination", ({ enumerable: true, get: function () { return PowerpacksResponseMetaPagination_1.PowerpacksResponseMetaPagination; } })); +var PowerpackTemplateVariable_1 = __nccwpck_require__(38514); +Object.defineProperty(exports, "PowerpackTemplateVariable", ({ enumerable: true, get: function () { return PowerpackTemplateVariable_1.PowerpackTemplateVariable; } })); +var ProcessSummariesMeta_1 = __nccwpck_require__(45244); +Object.defineProperty(exports, "ProcessSummariesMeta", ({ enumerable: true, get: function () { return ProcessSummariesMeta_1.ProcessSummariesMeta; } })); +var ProcessSummariesMetaPage_1 = __nccwpck_require__(1323); +Object.defineProperty(exports, "ProcessSummariesMetaPage", ({ enumerable: true, get: function () { return ProcessSummariesMetaPage_1.ProcessSummariesMetaPage; } })); +var ProcessSummariesResponse_1 = __nccwpck_require__(17454); +Object.defineProperty(exports, "ProcessSummariesResponse", ({ enumerable: true, get: function () { return ProcessSummariesResponse_1.ProcessSummariesResponse; } })); +var ProcessSummary_1 = __nccwpck_require__(71861); +Object.defineProperty(exports, "ProcessSummary", ({ enumerable: true, get: function () { return ProcessSummary_1.ProcessSummary; } })); +var ProcessSummaryAttributes_1 = __nccwpck_require__(43388); +Object.defineProperty(exports, "ProcessSummaryAttributes", ({ enumerable: true, get: function () { return ProcessSummaryAttributes_1.ProcessSummaryAttributes; } })); +var Project_1 = __nccwpck_require__(95293); +Object.defineProperty(exports, "Project", ({ enumerable: true, get: function () { return Project_1.Project; } })); +var ProjectAttributes_1 = __nccwpck_require__(66484); +Object.defineProperty(exports, "ProjectAttributes", ({ enumerable: true, get: function () { return ProjectAttributes_1.ProjectAttributes; } })); +var ProjectCreate_1 = __nccwpck_require__(80433); +Object.defineProperty(exports, "ProjectCreate", ({ enumerable: true, get: function () { return ProjectCreate_1.ProjectCreate; } })); +var ProjectCreateAttributes_1 = __nccwpck_require__(38288); +Object.defineProperty(exports, "ProjectCreateAttributes", ({ enumerable: true, get: function () { return ProjectCreateAttributes_1.ProjectCreateAttributes; } })); +var ProjectCreateRequest_1 = __nccwpck_require__(17848); +Object.defineProperty(exports, "ProjectCreateRequest", ({ enumerable: true, get: function () { return ProjectCreateRequest_1.ProjectCreateRequest; } })); +var ProjectedCost_1 = __nccwpck_require__(405); +Object.defineProperty(exports, "ProjectedCost", ({ enumerable: true, get: function () { return ProjectedCost_1.ProjectedCost; } })); +var ProjectedCostAttributes_1 = __nccwpck_require__(96316); +Object.defineProperty(exports, "ProjectedCostAttributes", ({ enumerable: true, get: function () { return ProjectedCostAttributes_1.ProjectedCostAttributes; } })); +var ProjectedCostResponse_1 = __nccwpck_require__(71174); +Object.defineProperty(exports, "ProjectedCostResponse", ({ enumerable: true, get: function () { return ProjectedCostResponse_1.ProjectedCostResponse; } })); +var ProjectRelationship_1 = __nccwpck_require__(48743); +Object.defineProperty(exports, "ProjectRelationship", ({ enumerable: true, get: function () { return ProjectRelationship_1.ProjectRelationship; } })); +var ProjectRelationshipData_1 = __nccwpck_require__(97263); +Object.defineProperty(exports, "ProjectRelationshipData", ({ enumerable: true, get: function () { return ProjectRelationshipData_1.ProjectRelationshipData; } })); +var ProjectRelationships_1 = __nccwpck_require__(49170); +Object.defineProperty(exports, "ProjectRelationships", ({ enumerable: true, get: function () { return ProjectRelationships_1.ProjectRelationships; } })); +var ProjectResponse_1 = __nccwpck_require__(70510); +Object.defineProperty(exports, "ProjectResponse", ({ enumerable: true, get: function () { return ProjectResponse_1.ProjectResponse; } })); +var ProjectsResponse_1 = __nccwpck_require__(18255); +Object.defineProperty(exports, "ProjectsResponse", ({ enumerable: true, get: function () { return ProjectsResponse_1.ProjectsResponse; } })); +var Query_1 = __nccwpck_require__(61532); +Object.defineProperty(exports, "Query", ({ enumerable: true, get: function () { return Query_1.Query; } })); +var QueryFormula_1 = __nccwpck_require__(56556); +Object.defineProperty(exports, "QueryFormula", ({ enumerable: true, get: function () { return QueryFormula_1.QueryFormula; } })); +var RelationshipItem_1 = __nccwpck_require__(13703); +Object.defineProperty(exports, "RelationshipItem", ({ enumerable: true, get: function () { return RelationshipItem_1.RelationshipItem; } })); +var RelationshipToIncidentAttachment_1 = __nccwpck_require__(53938); +Object.defineProperty(exports, "RelationshipToIncidentAttachment", ({ enumerable: true, get: function () { return RelationshipToIncidentAttachment_1.RelationshipToIncidentAttachment; } })); +var RelationshipToIncidentAttachmentData_1 = __nccwpck_require__(78322); +Object.defineProperty(exports, "RelationshipToIncidentAttachmentData", ({ enumerable: true, get: function () { return RelationshipToIncidentAttachmentData_1.RelationshipToIncidentAttachmentData; } })); +var RelationshipToIncidentImpactData_1 = __nccwpck_require__(585); +Object.defineProperty(exports, "RelationshipToIncidentImpactData", ({ enumerable: true, get: function () { return RelationshipToIncidentImpactData_1.RelationshipToIncidentImpactData; } })); +var RelationshipToIncidentImpacts_1 = __nccwpck_require__(28220); +Object.defineProperty(exports, "RelationshipToIncidentImpacts", ({ enumerable: true, get: function () { return RelationshipToIncidentImpacts_1.RelationshipToIncidentImpacts; } })); +var RelationshipToIncidentIntegrationMetadataData_1 = __nccwpck_require__(22816); +Object.defineProperty(exports, "RelationshipToIncidentIntegrationMetadataData", ({ enumerable: true, get: function () { return RelationshipToIncidentIntegrationMetadataData_1.RelationshipToIncidentIntegrationMetadataData; } })); +var RelationshipToIncidentIntegrationMetadatas_1 = __nccwpck_require__(41575); +Object.defineProperty(exports, "RelationshipToIncidentIntegrationMetadatas", ({ enumerable: true, get: function () { return RelationshipToIncidentIntegrationMetadatas_1.RelationshipToIncidentIntegrationMetadatas; } })); +var RelationshipToIncidentPostmortem_1 = __nccwpck_require__(56149); +Object.defineProperty(exports, "RelationshipToIncidentPostmortem", ({ enumerable: true, get: function () { return RelationshipToIncidentPostmortem_1.RelationshipToIncidentPostmortem; } })); +var RelationshipToIncidentPostmortemData_1 = __nccwpck_require__(13461); +Object.defineProperty(exports, "RelationshipToIncidentPostmortemData", ({ enumerable: true, get: function () { return RelationshipToIncidentPostmortemData_1.RelationshipToIncidentPostmortemData; } })); +var RelationshipToIncidentResponderData_1 = __nccwpck_require__(79077); +Object.defineProperty(exports, "RelationshipToIncidentResponderData", ({ enumerable: true, get: function () { return RelationshipToIncidentResponderData_1.RelationshipToIncidentResponderData; } })); +var RelationshipToIncidentResponders_1 = __nccwpck_require__(93520); +Object.defineProperty(exports, "RelationshipToIncidentResponders", ({ enumerable: true, get: function () { return RelationshipToIncidentResponders_1.RelationshipToIncidentResponders; } })); +var RelationshipToIncidentUserDefinedFieldData_1 = __nccwpck_require__(19795); +Object.defineProperty(exports, "RelationshipToIncidentUserDefinedFieldData", ({ enumerable: true, get: function () { return RelationshipToIncidentUserDefinedFieldData_1.RelationshipToIncidentUserDefinedFieldData; } })); +var RelationshipToIncidentUserDefinedFields_1 = __nccwpck_require__(70078); +Object.defineProperty(exports, "RelationshipToIncidentUserDefinedFields", ({ enumerable: true, get: function () { return RelationshipToIncidentUserDefinedFields_1.RelationshipToIncidentUserDefinedFields; } })); +var RelationshipToOrganization_1 = __nccwpck_require__(22070); +Object.defineProperty(exports, "RelationshipToOrganization", ({ enumerable: true, get: function () { return RelationshipToOrganization_1.RelationshipToOrganization; } })); +var RelationshipToOrganizationData_1 = __nccwpck_require__(56006); +Object.defineProperty(exports, "RelationshipToOrganizationData", ({ enumerable: true, get: function () { return RelationshipToOrganizationData_1.RelationshipToOrganizationData; } })); +var RelationshipToOrganizations_1 = __nccwpck_require__(29213); +Object.defineProperty(exports, "RelationshipToOrganizations", ({ enumerable: true, get: function () { return RelationshipToOrganizations_1.RelationshipToOrganizations; } })); +var RelationshipToOutcome_1 = __nccwpck_require__(93545); +Object.defineProperty(exports, "RelationshipToOutcome", ({ enumerable: true, get: function () { return RelationshipToOutcome_1.RelationshipToOutcome; } })); +var RelationshipToOutcomeData_1 = __nccwpck_require__(52409); +Object.defineProperty(exports, "RelationshipToOutcomeData", ({ enumerable: true, get: function () { return RelationshipToOutcomeData_1.RelationshipToOutcomeData; } })); +var RelationshipToPermission_1 = __nccwpck_require__(62134); +Object.defineProperty(exports, "RelationshipToPermission", ({ enumerable: true, get: function () { return RelationshipToPermission_1.RelationshipToPermission; } })); +var RelationshipToPermissionData_1 = __nccwpck_require__(60390); +Object.defineProperty(exports, "RelationshipToPermissionData", ({ enumerable: true, get: function () { return RelationshipToPermissionData_1.RelationshipToPermissionData; } })); +var RelationshipToPermissions_1 = __nccwpck_require__(66813); +Object.defineProperty(exports, "RelationshipToPermissions", ({ enumerable: true, get: function () { return RelationshipToPermissions_1.RelationshipToPermissions; } })); +var RelationshipToRole_1 = __nccwpck_require__(53789); +Object.defineProperty(exports, "RelationshipToRole", ({ enumerable: true, get: function () { return RelationshipToRole_1.RelationshipToRole; } })); +var RelationshipToRoleData_1 = __nccwpck_require__(43229); +Object.defineProperty(exports, "RelationshipToRoleData", ({ enumerable: true, get: function () { return RelationshipToRoleData_1.RelationshipToRoleData; } })); +var RelationshipToRoles_1 = __nccwpck_require__(48248); +Object.defineProperty(exports, "RelationshipToRoles", ({ enumerable: true, get: function () { return RelationshipToRoles_1.RelationshipToRoles; } })); +var RelationshipToRule_1 = __nccwpck_require__(58179); +Object.defineProperty(exports, "RelationshipToRule", ({ enumerable: true, get: function () { return RelationshipToRule_1.RelationshipToRule; } })); +var RelationshipToRuleData_1 = __nccwpck_require__(19563); +Object.defineProperty(exports, "RelationshipToRuleData", ({ enumerable: true, get: function () { return RelationshipToRuleData_1.RelationshipToRuleData; } })); +var RelationshipToRuleDataObject_1 = __nccwpck_require__(15632); +Object.defineProperty(exports, "RelationshipToRuleDataObject", ({ enumerable: true, get: function () { return RelationshipToRuleDataObject_1.RelationshipToRuleDataObject; } })); +var RelationshipToSAMLAssertionAttribute_1 = __nccwpck_require__(84976); +Object.defineProperty(exports, "RelationshipToSAMLAssertionAttribute", ({ enumerable: true, get: function () { return RelationshipToSAMLAssertionAttribute_1.RelationshipToSAMLAssertionAttribute; } })); +var RelationshipToSAMLAssertionAttributeData_1 = __nccwpck_require__(22424); +Object.defineProperty(exports, "RelationshipToSAMLAssertionAttributeData", ({ enumerable: true, get: function () { return RelationshipToSAMLAssertionAttributeData_1.RelationshipToSAMLAssertionAttributeData; } })); +var RelationshipToTeam_1 = __nccwpck_require__(79264); +Object.defineProperty(exports, "RelationshipToTeam", ({ enumerable: true, get: function () { return RelationshipToTeam_1.RelationshipToTeam; } })); +var RelationshipToTeamData_1 = __nccwpck_require__(17064); +Object.defineProperty(exports, "RelationshipToTeamData", ({ enumerable: true, get: function () { return RelationshipToTeamData_1.RelationshipToTeamData; } })); +var RelationshipToTeamLinkData_1 = __nccwpck_require__(76692); +Object.defineProperty(exports, "RelationshipToTeamLinkData", ({ enumerable: true, get: function () { return RelationshipToTeamLinkData_1.RelationshipToTeamLinkData; } })); +var RelationshipToTeamLinks_1 = __nccwpck_require__(27939); +Object.defineProperty(exports, "RelationshipToTeamLinks", ({ enumerable: true, get: function () { return RelationshipToTeamLinks_1.RelationshipToTeamLinks; } })); +var RelationshipToUser_1 = __nccwpck_require__(29270); +Object.defineProperty(exports, "RelationshipToUser", ({ enumerable: true, get: function () { return RelationshipToUser_1.RelationshipToUser; } })); +var RelationshipToUserData_1 = __nccwpck_require__(57958); +Object.defineProperty(exports, "RelationshipToUserData", ({ enumerable: true, get: function () { return RelationshipToUserData_1.RelationshipToUserData; } })); +var RelationshipToUsers_1 = __nccwpck_require__(6109); +Object.defineProperty(exports, "RelationshipToUsers", ({ enumerable: true, get: function () { return RelationshipToUsers_1.RelationshipToUsers; } })); +var RelationshipToUserTeamPermission_1 = __nccwpck_require__(35904); +Object.defineProperty(exports, "RelationshipToUserTeamPermission", ({ enumerable: true, get: function () { return RelationshipToUserTeamPermission_1.RelationshipToUserTeamPermission; } })); +var RelationshipToUserTeamPermissionData_1 = __nccwpck_require__(53320); +Object.defineProperty(exports, "RelationshipToUserTeamPermissionData", ({ enumerable: true, get: function () { return RelationshipToUserTeamPermissionData_1.RelationshipToUserTeamPermissionData; } })); +var RelationshipToUserTeamTeam_1 = __nccwpck_require__(58030); +Object.defineProperty(exports, "RelationshipToUserTeamTeam", ({ enumerable: true, get: function () { return RelationshipToUserTeamTeam_1.RelationshipToUserTeamTeam; } })); +var RelationshipToUserTeamTeamData_1 = __nccwpck_require__(26334); +Object.defineProperty(exports, "RelationshipToUserTeamTeamData", ({ enumerable: true, get: function () { return RelationshipToUserTeamTeamData_1.RelationshipToUserTeamTeamData; } })); +var RelationshipToUserTeamUser_1 = __nccwpck_require__(15828); +Object.defineProperty(exports, "RelationshipToUserTeamUser", ({ enumerable: true, get: function () { return RelationshipToUserTeamUser_1.RelationshipToUserTeamUser; } })); +var RelationshipToUserTeamUserData_1 = __nccwpck_require__(21308); +Object.defineProperty(exports, "RelationshipToUserTeamUserData", ({ enumerable: true, get: function () { return RelationshipToUserTeamUserData_1.RelationshipToUserTeamUserData; } })); +var ReorderRetentionFiltersRequest_1 = __nccwpck_require__(10457); +Object.defineProperty(exports, "ReorderRetentionFiltersRequest", ({ enumerable: true, get: function () { return ReorderRetentionFiltersRequest_1.ReorderRetentionFiltersRequest; } })); +var ResponseMetaAttributes_1 = __nccwpck_require__(74173); +Object.defineProperty(exports, "ResponseMetaAttributes", ({ enumerable: true, get: function () { return ResponseMetaAttributes_1.ResponseMetaAttributes; } })); +var RestrictionPolicy_1 = __nccwpck_require__(34712); +Object.defineProperty(exports, "RestrictionPolicy", ({ enumerable: true, get: function () { return RestrictionPolicy_1.RestrictionPolicy; } })); +var RestrictionPolicyAttributes_1 = __nccwpck_require__(56433); +Object.defineProperty(exports, "RestrictionPolicyAttributes", ({ enumerable: true, get: function () { return RestrictionPolicyAttributes_1.RestrictionPolicyAttributes; } })); +var RestrictionPolicyBinding_1 = __nccwpck_require__(4955); +Object.defineProperty(exports, "RestrictionPolicyBinding", ({ enumerable: true, get: function () { return RestrictionPolicyBinding_1.RestrictionPolicyBinding; } })); +var RestrictionPolicyResponse_1 = __nccwpck_require__(61519); +Object.defineProperty(exports, "RestrictionPolicyResponse", ({ enumerable: true, get: function () { return RestrictionPolicyResponse_1.RestrictionPolicyResponse; } })); +var RestrictionPolicyUpdateRequest_1 = __nccwpck_require__(74964); +Object.defineProperty(exports, "RestrictionPolicyUpdateRequest", ({ enumerable: true, get: function () { return RestrictionPolicyUpdateRequest_1.RestrictionPolicyUpdateRequest; } })); +var RetentionFilter_1 = __nccwpck_require__(75276); +Object.defineProperty(exports, "RetentionFilter", ({ enumerable: true, get: function () { return RetentionFilter_1.RetentionFilter; } })); +var RetentionFilterAll_1 = __nccwpck_require__(45061); +Object.defineProperty(exports, "RetentionFilterAll", ({ enumerable: true, get: function () { return RetentionFilterAll_1.RetentionFilterAll; } })); +var RetentionFilterAllAttributes_1 = __nccwpck_require__(77388); +Object.defineProperty(exports, "RetentionFilterAllAttributes", ({ enumerable: true, get: function () { return RetentionFilterAllAttributes_1.RetentionFilterAllAttributes; } })); +var RetentionFilterAttributes_1 = __nccwpck_require__(34909); +Object.defineProperty(exports, "RetentionFilterAttributes", ({ enumerable: true, get: function () { return RetentionFilterAttributes_1.RetentionFilterAttributes; } })); +var RetentionFilterCreateAttributes_1 = __nccwpck_require__(73613); +Object.defineProperty(exports, "RetentionFilterCreateAttributes", ({ enumerable: true, get: function () { return RetentionFilterCreateAttributes_1.RetentionFilterCreateAttributes; } })); +var RetentionFilterCreateData_1 = __nccwpck_require__(92868); +Object.defineProperty(exports, "RetentionFilterCreateData", ({ enumerable: true, get: function () { return RetentionFilterCreateData_1.RetentionFilterCreateData; } })); +var RetentionFilterCreateRequest_1 = __nccwpck_require__(55415); +Object.defineProperty(exports, "RetentionFilterCreateRequest", ({ enumerable: true, get: function () { return RetentionFilterCreateRequest_1.RetentionFilterCreateRequest; } })); +var RetentionFilterCreateResponse_1 = __nccwpck_require__(59363); +Object.defineProperty(exports, "RetentionFilterCreateResponse", ({ enumerable: true, get: function () { return RetentionFilterCreateResponse_1.RetentionFilterCreateResponse; } })); +var RetentionFilterResponse_1 = __nccwpck_require__(26067); +Object.defineProperty(exports, "RetentionFilterResponse", ({ enumerable: true, get: function () { return RetentionFilterResponse_1.RetentionFilterResponse; } })); +var RetentionFiltersResponse_1 = __nccwpck_require__(65424); +Object.defineProperty(exports, "RetentionFiltersResponse", ({ enumerable: true, get: function () { return RetentionFiltersResponse_1.RetentionFiltersResponse; } })); +var RetentionFilterUpdateAttributes_1 = __nccwpck_require__(61928); +Object.defineProperty(exports, "RetentionFilterUpdateAttributes", ({ enumerable: true, get: function () { return RetentionFilterUpdateAttributes_1.RetentionFilterUpdateAttributes; } })); +var RetentionFilterUpdateData_1 = __nccwpck_require__(57929); +Object.defineProperty(exports, "RetentionFilterUpdateData", ({ enumerable: true, get: function () { return RetentionFilterUpdateData_1.RetentionFilterUpdateData; } })); +var RetentionFilterUpdateRequest_1 = __nccwpck_require__(42128); +Object.defineProperty(exports, "RetentionFilterUpdateRequest", ({ enumerable: true, get: function () { return RetentionFilterUpdateRequest_1.RetentionFilterUpdateRequest; } })); +var RetentionFilterWithoutAttributes_1 = __nccwpck_require__(36007); +Object.defineProperty(exports, "RetentionFilterWithoutAttributes", ({ enumerable: true, get: function () { return RetentionFilterWithoutAttributes_1.RetentionFilterWithoutAttributes; } })); +var Role_1 = __nccwpck_require__(97654); +Object.defineProperty(exports, "Role", ({ enumerable: true, get: function () { return Role_1.Role; } })); +var RoleAttributes_1 = __nccwpck_require__(64931); +Object.defineProperty(exports, "RoleAttributes", ({ enumerable: true, get: function () { return RoleAttributes_1.RoleAttributes; } })); +var RoleClone_1 = __nccwpck_require__(47421); +Object.defineProperty(exports, "RoleClone", ({ enumerable: true, get: function () { return RoleClone_1.RoleClone; } })); +var RoleCloneAttributes_1 = __nccwpck_require__(53524); +Object.defineProperty(exports, "RoleCloneAttributes", ({ enumerable: true, get: function () { return RoleCloneAttributes_1.RoleCloneAttributes; } })); +var RoleCloneRequest_1 = __nccwpck_require__(95244); +Object.defineProperty(exports, "RoleCloneRequest", ({ enumerable: true, get: function () { return RoleCloneRequest_1.RoleCloneRequest; } })); +var RoleCreateAttributes_1 = __nccwpck_require__(57043); +Object.defineProperty(exports, "RoleCreateAttributes", ({ enumerable: true, get: function () { return RoleCreateAttributes_1.RoleCreateAttributes; } })); +var RoleCreateData_1 = __nccwpck_require__(18742); +Object.defineProperty(exports, "RoleCreateData", ({ enumerable: true, get: function () { return RoleCreateData_1.RoleCreateData; } })); +var RoleCreateRequest_1 = __nccwpck_require__(18989); +Object.defineProperty(exports, "RoleCreateRequest", ({ enumerable: true, get: function () { return RoleCreateRequest_1.RoleCreateRequest; } })); +var RoleCreateResponse_1 = __nccwpck_require__(84185); +Object.defineProperty(exports, "RoleCreateResponse", ({ enumerable: true, get: function () { return RoleCreateResponse_1.RoleCreateResponse; } })); +var RoleCreateResponseData_1 = __nccwpck_require__(46665); +Object.defineProperty(exports, "RoleCreateResponseData", ({ enumerable: true, get: function () { return RoleCreateResponseData_1.RoleCreateResponseData; } })); +var RoleRelationships_1 = __nccwpck_require__(31367); +Object.defineProperty(exports, "RoleRelationships", ({ enumerable: true, get: function () { return RoleRelationships_1.RoleRelationships; } })); +var RoleResponse_1 = __nccwpck_require__(99465); +Object.defineProperty(exports, "RoleResponse", ({ enumerable: true, get: function () { return RoleResponse_1.RoleResponse; } })); +var RoleResponseRelationships_1 = __nccwpck_require__(94062); +Object.defineProperty(exports, "RoleResponseRelationships", ({ enumerable: true, get: function () { return RoleResponseRelationships_1.RoleResponseRelationships; } })); +var RolesResponse_1 = __nccwpck_require__(93774); +Object.defineProperty(exports, "RolesResponse", ({ enumerable: true, get: function () { return RolesResponse_1.RolesResponse; } })); +var RoleUpdateAttributes_1 = __nccwpck_require__(73630); +Object.defineProperty(exports, "RoleUpdateAttributes", ({ enumerable: true, get: function () { return RoleUpdateAttributes_1.RoleUpdateAttributes; } })); +var RoleUpdateData_1 = __nccwpck_require__(46099); +Object.defineProperty(exports, "RoleUpdateData", ({ enumerable: true, get: function () { return RoleUpdateData_1.RoleUpdateData; } })); +var RoleUpdateRequest_1 = __nccwpck_require__(15753); +Object.defineProperty(exports, "RoleUpdateRequest", ({ enumerable: true, get: function () { return RoleUpdateRequest_1.RoleUpdateRequest; } })); +var RoleUpdateResponse_1 = __nccwpck_require__(90808); +Object.defineProperty(exports, "RoleUpdateResponse", ({ enumerable: true, get: function () { return RoleUpdateResponse_1.RoleUpdateResponse; } })); +var RoleUpdateResponseData_1 = __nccwpck_require__(54848); +Object.defineProperty(exports, "RoleUpdateResponseData", ({ enumerable: true, get: function () { return RoleUpdateResponseData_1.RoleUpdateResponseData; } })); +var RuleAttributes_1 = __nccwpck_require__(79693); +Object.defineProperty(exports, "RuleAttributes", ({ enumerable: true, get: function () { return RuleAttributes_1.RuleAttributes; } })); +var RuleOutcomeRelationships_1 = __nccwpck_require__(96143); +Object.defineProperty(exports, "RuleOutcomeRelationships", ({ enumerable: true, get: function () { return RuleOutcomeRelationships_1.RuleOutcomeRelationships; } })); +var RUMAggregateBucketValueTimeseriesPoint_1 = __nccwpck_require__(57694); +Object.defineProperty(exports, "RUMAggregateBucketValueTimeseriesPoint", ({ enumerable: true, get: function () { return RUMAggregateBucketValueTimeseriesPoint_1.RUMAggregateBucketValueTimeseriesPoint; } })); +var RUMAggregateRequest_1 = __nccwpck_require__(24564); +Object.defineProperty(exports, "RUMAggregateRequest", ({ enumerable: true, get: function () { return RUMAggregateRequest_1.RUMAggregateRequest; } })); +var RUMAggregateSort_1 = __nccwpck_require__(5221); +Object.defineProperty(exports, "RUMAggregateSort", ({ enumerable: true, get: function () { return RUMAggregateSort_1.RUMAggregateSort; } })); +var RUMAggregationBucketsResponse_1 = __nccwpck_require__(71102); +Object.defineProperty(exports, "RUMAggregationBucketsResponse", ({ enumerable: true, get: function () { return RUMAggregationBucketsResponse_1.RUMAggregationBucketsResponse; } })); +var RUMAnalyticsAggregateResponse_1 = __nccwpck_require__(81256); +Object.defineProperty(exports, "RUMAnalyticsAggregateResponse", ({ enumerable: true, get: function () { return RUMAnalyticsAggregateResponse_1.RUMAnalyticsAggregateResponse; } })); +var RUMApplication_1 = __nccwpck_require__(60304); +Object.defineProperty(exports, "RUMApplication", ({ enumerable: true, get: function () { return RUMApplication_1.RUMApplication; } })); +var RUMApplicationAttributes_1 = __nccwpck_require__(9849); +Object.defineProperty(exports, "RUMApplicationAttributes", ({ enumerable: true, get: function () { return RUMApplicationAttributes_1.RUMApplicationAttributes; } })); +var RUMApplicationCreate_1 = __nccwpck_require__(18168); +Object.defineProperty(exports, "RUMApplicationCreate", ({ enumerable: true, get: function () { return RUMApplicationCreate_1.RUMApplicationCreate; } })); +var RUMApplicationCreateAttributes_1 = __nccwpck_require__(50609); +Object.defineProperty(exports, "RUMApplicationCreateAttributes", ({ enumerable: true, get: function () { return RUMApplicationCreateAttributes_1.RUMApplicationCreateAttributes; } })); +var RUMApplicationCreateRequest_1 = __nccwpck_require__(99787); +Object.defineProperty(exports, "RUMApplicationCreateRequest", ({ enumerable: true, get: function () { return RUMApplicationCreateRequest_1.RUMApplicationCreateRequest; } })); +var RUMApplicationList_1 = __nccwpck_require__(21560); +Object.defineProperty(exports, "RUMApplicationList", ({ enumerable: true, get: function () { return RUMApplicationList_1.RUMApplicationList; } })); +var RUMApplicationListAttributes_1 = __nccwpck_require__(66577); +Object.defineProperty(exports, "RUMApplicationListAttributes", ({ enumerable: true, get: function () { return RUMApplicationListAttributes_1.RUMApplicationListAttributes; } })); +var RUMApplicationResponse_1 = __nccwpck_require__(90631); +Object.defineProperty(exports, "RUMApplicationResponse", ({ enumerable: true, get: function () { return RUMApplicationResponse_1.RUMApplicationResponse; } })); +var RUMApplicationsResponse_1 = __nccwpck_require__(2268); +Object.defineProperty(exports, "RUMApplicationsResponse", ({ enumerable: true, get: function () { return RUMApplicationsResponse_1.RUMApplicationsResponse; } })); +var RUMApplicationUpdate_1 = __nccwpck_require__(94573); +Object.defineProperty(exports, "RUMApplicationUpdate", ({ enumerable: true, get: function () { return RUMApplicationUpdate_1.RUMApplicationUpdate; } })); +var RUMApplicationUpdateAttributes_1 = __nccwpck_require__(39780); +Object.defineProperty(exports, "RUMApplicationUpdateAttributes", ({ enumerable: true, get: function () { return RUMApplicationUpdateAttributes_1.RUMApplicationUpdateAttributes; } })); +var RUMApplicationUpdateRequest_1 = __nccwpck_require__(63900); +Object.defineProperty(exports, "RUMApplicationUpdateRequest", ({ enumerable: true, get: function () { return RUMApplicationUpdateRequest_1.RUMApplicationUpdateRequest; } })); +var RUMBucketResponse_1 = __nccwpck_require__(69005); +Object.defineProperty(exports, "RUMBucketResponse", ({ enumerable: true, get: function () { return RUMBucketResponse_1.RUMBucketResponse; } })); +var RUMCompute_1 = __nccwpck_require__(69251); +Object.defineProperty(exports, "RUMCompute", ({ enumerable: true, get: function () { return RUMCompute_1.RUMCompute; } })); +var RUMEvent_1 = __nccwpck_require__(218); +Object.defineProperty(exports, "RUMEvent", ({ enumerable: true, get: function () { return RUMEvent_1.RUMEvent; } })); +var RUMEventAttributes_1 = __nccwpck_require__(47903); +Object.defineProperty(exports, "RUMEventAttributes", ({ enumerable: true, get: function () { return RUMEventAttributes_1.RUMEventAttributes; } })); +var RUMEventsResponse_1 = __nccwpck_require__(43482); +Object.defineProperty(exports, "RUMEventsResponse", ({ enumerable: true, get: function () { return RUMEventsResponse_1.RUMEventsResponse; } })); +var RUMGroupBy_1 = __nccwpck_require__(38952); +Object.defineProperty(exports, "RUMGroupBy", ({ enumerable: true, get: function () { return RUMGroupBy_1.RUMGroupBy; } })); +var RUMGroupByHistogram_1 = __nccwpck_require__(2672); +Object.defineProperty(exports, "RUMGroupByHistogram", ({ enumerable: true, get: function () { return RUMGroupByHistogram_1.RUMGroupByHistogram; } })); +var RumMetricCompute_1 = __nccwpck_require__(51983); +Object.defineProperty(exports, "RumMetricCompute", ({ enumerable: true, get: function () { return RumMetricCompute_1.RumMetricCompute; } })); +var RumMetricCreateAttributes_1 = __nccwpck_require__(52357); +Object.defineProperty(exports, "RumMetricCreateAttributes", ({ enumerable: true, get: function () { return RumMetricCreateAttributes_1.RumMetricCreateAttributes; } })); +var RumMetricCreateData_1 = __nccwpck_require__(23084); +Object.defineProperty(exports, "RumMetricCreateData", ({ enumerable: true, get: function () { return RumMetricCreateData_1.RumMetricCreateData; } })); +var RumMetricCreateRequest_1 = __nccwpck_require__(18383); +Object.defineProperty(exports, "RumMetricCreateRequest", ({ enumerable: true, get: function () { return RumMetricCreateRequest_1.RumMetricCreateRequest; } })); +var RumMetricFilter_1 = __nccwpck_require__(54794); +Object.defineProperty(exports, "RumMetricFilter", ({ enumerable: true, get: function () { return RumMetricFilter_1.RumMetricFilter; } })); +var RumMetricGroupBy_1 = __nccwpck_require__(94740); +Object.defineProperty(exports, "RumMetricGroupBy", ({ enumerable: true, get: function () { return RumMetricGroupBy_1.RumMetricGroupBy; } })); +var RumMetricResponse_1 = __nccwpck_require__(94171); +Object.defineProperty(exports, "RumMetricResponse", ({ enumerable: true, get: function () { return RumMetricResponse_1.RumMetricResponse; } })); +var RumMetricResponseAttributes_1 = __nccwpck_require__(72846); +Object.defineProperty(exports, "RumMetricResponseAttributes", ({ enumerable: true, get: function () { return RumMetricResponseAttributes_1.RumMetricResponseAttributes; } })); +var RumMetricResponseCompute_1 = __nccwpck_require__(87726); +Object.defineProperty(exports, "RumMetricResponseCompute", ({ enumerable: true, get: function () { return RumMetricResponseCompute_1.RumMetricResponseCompute; } })); +var RumMetricResponseData_1 = __nccwpck_require__(83523); +Object.defineProperty(exports, "RumMetricResponseData", ({ enumerable: true, get: function () { return RumMetricResponseData_1.RumMetricResponseData; } })); +var RumMetricResponseFilter_1 = __nccwpck_require__(18689); +Object.defineProperty(exports, "RumMetricResponseFilter", ({ enumerable: true, get: function () { return RumMetricResponseFilter_1.RumMetricResponseFilter; } })); +var RumMetricResponseGroupBy_1 = __nccwpck_require__(44565); +Object.defineProperty(exports, "RumMetricResponseGroupBy", ({ enumerable: true, get: function () { return RumMetricResponseGroupBy_1.RumMetricResponseGroupBy; } })); +var RumMetricResponseUniqueness_1 = __nccwpck_require__(29219); +Object.defineProperty(exports, "RumMetricResponseUniqueness", ({ enumerable: true, get: function () { return RumMetricResponseUniqueness_1.RumMetricResponseUniqueness; } })); +var RumMetricsResponse_1 = __nccwpck_require__(86728); +Object.defineProperty(exports, "RumMetricsResponse", ({ enumerable: true, get: function () { return RumMetricsResponse_1.RumMetricsResponse; } })); +var RumMetricUniqueness_1 = __nccwpck_require__(84556); +Object.defineProperty(exports, "RumMetricUniqueness", ({ enumerable: true, get: function () { return RumMetricUniqueness_1.RumMetricUniqueness; } })); +var RumMetricUpdateAttributes_1 = __nccwpck_require__(9056); +Object.defineProperty(exports, "RumMetricUpdateAttributes", ({ enumerable: true, get: function () { return RumMetricUpdateAttributes_1.RumMetricUpdateAttributes; } })); +var RumMetricUpdateCompute_1 = __nccwpck_require__(70672); +Object.defineProperty(exports, "RumMetricUpdateCompute", ({ enumerable: true, get: function () { return RumMetricUpdateCompute_1.RumMetricUpdateCompute; } })); +var RumMetricUpdateData_1 = __nccwpck_require__(58449); +Object.defineProperty(exports, "RumMetricUpdateData", ({ enumerable: true, get: function () { return RumMetricUpdateData_1.RumMetricUpdateData; } })); +var RumMetricUpdateRequest_1 = __nccwpck_require__(56584); +Object.defineProperty(exports, "RumMetricUpdateRequest", ({ enumerable: true, get: function () { return RumMetricUpdateRequest_1.RumMetricUpdateRequest; } })); +var RUMQueryFilter_1 = __nccwpck_require__(78768); +Object.defineProperty(exports, "RUMQueryFilter", ({ enumerable: true, get: function () { return RUMQueryFilter_1.RUMQueryFilter; } })); +var RUMQueryOptions_1 = __nccwpck_require__(52642); +Object.defineProperty(exports, "RUMQueryOptions", ({ enumerable: true, get: function () { return RUMQueryOptions_1.RUMQueryOptions; } })); +var RUMQueryPageOptions_1 = __nccwpck_require__(55843); +Object.defineProperty(exports, "RUMQueryPageOptions", ({ enumerable: true, get: function () { return RUMQueryPageOptions_1.RUMQueryPageOptions; } })); +var RUMResponseLinks_1 = __nccwpck_require__(95930); +Object.defineProperty(exports, "RUMResponseLinks", ({ enumerable: true, get: function () { return RUMResponseLinks_1.RUMResponseLinks; } })); +var RUMResponseMetadata_1 = __nccwpck_require__(67838); +Object.defineProperty(exports, "RUMResponseMetadata", ({ enumerable: true, get: function () { return RUMResponseMetadata_1.RUMResponseMetadata; } })); +var RUMResponsePage_1 = __nccwpck_require__(45760); +Object.defineProperty(exports, "RUMResponsePage", ({ enumerable: true, get: function () { return RUMResponsePage_1.RUMResponsePage; } })); +var RUMSearchEventsRequest_1 = __nccwpck_require__(15056); +Object.defineProperty(exports, "RUMSearchEventsRequest", ({ enumerable: true, get: function () { return RUMSearchEventsRequest_1.RUMSearchEventsRequest; } })); +var RUMWarning_1 = __nccwpck_require__(15214); +Object.defineProperty(exports, "RUMWarning", ({ enumerable: true, get: function () { return RUMWarning_1.RUMWarning; } })); +var RunHistoricalJobRequest_1 = __nccwpck_require__(28957); +Object.defineProperty(exports, "RunHistoricalJobRequest", ({ enumerable: true, get: function () { return RunHistoricalJobRequest_1.RunHistoricalJobRequest; } })); +var RunHistoricalJobRequestAttributes_1 = __nccwpck_require__(44884); +Object.defineProperty(exports, "RunHistoricalJobRequestAttributes", ({ enumerable: true, get: function () { return RunHistoricalJobRequestAttributes_1.RunHistoricalJobRequestAttributes; } })); +var RunHistoricalJobRequestData_1 = __nccwpck_require__(88829); +Object.defineProperty(exports, "RunHistoricalJobRequestData", ({ enumerable: true, get: function () { return RunHistoricalJobRequestData_1.RunHistoricalJobRequestData; } })); +var SAMLAssertionAttribute_1 = __nccwpck_require__(62903); +Object.defineProperty(exports, "SAMLAssertionAttribute", ({ enumerable: true, get: function () { return SAMLAssertionAttribute_1.SAMLAssertionAttribute; } })); +var SAMLAssertionAttributeAttributes_1 = __nccwpck_require__(42914); +Object.defineProperty(exports, "SAMLAssertionAttributeAttributes", ({ enumerable: true, get: function () { return SAMLAssertionAttributeAttributes_1.SAMLAssertionAttributeAttributes; } })); +var ScalarFormulaQueryRequest_1 = __nccwpck_require__(65815); +Object.defineProperty(exports, "ScalarFormulaQueryRequest", ({ enumerable: true, get: function () { return ScalarFormulaQueryRequest_1.ScalarFormulaQueryRequest; } })); +var ScalarFormulaQueryResponse_1 = __nccwpck_require__(90851); +Object.defineProperty(exports, "ScalarFormulaQueryResponse", ({ enumerable: true, get: function () { return ScalarFormulaQueryResponse_1.ScalarFormulaQueryResponse; } })); +var ScalarFormulaRequest_1 = __nccwpck_require__(35945); +Object.defineProperty(exports, "ScalarFormulaRequest", ({ enumerable: true, get: function () { return ScalarFormulaRequest_1.ScalarFormulaRequest; } })); +var ScalarFormulaRequestAttributes_1 = __nccwpck_require__(73144); +Object.defineProperty(exports, "ScalarFormulaRequestAttributes", ({ enumerable: true, get: function () { return ScalarFormulaRequestAttributes_1.ScalarFormulaRequestAttributes; } })); +var ScalarFormulaResponseAtrributes_1 = __nccwpck_require__(3582); +Object.defineProperty(exports, "ScalarFormulaResponseAtrributes", ({ enumerable: true, get: function () { return ScalarFormulaResponseAtrributes_1.ScalarFormulaResponseAtrributes; } })); +var ScalarMeta_1 = __nccwpck_require__(50707); +Object.defineProperty(exports, "ScalarMeta", ({ enumerable: true, get: function () { return ScalarMeta_1.ScalarMeta; } })); +var ScalarResponse_1 = __nccwpck_require__(93237); +Object.defineProperty(exports, "ScalarResponse", ({ enumerable: true, get: function () { return ScalarResponse_1.ScalarResponse; } })); +var Script_1 = __nccwpck_require__(43745); +Object.defineProperty(exports, "Script", ({ enumerable: true, get: function () { return Script_1.Script; } })); +var ScriptData_1 = __nccwpck_require__(11953); +Object.defineProperty(exports, "ScriptData", ({ enumerable: true, get: function () { return ScriptData_1.ScriptData; } })); +var ScriptDataAttributes_1 = __nccwpck_require__(30864); +Object.defineProperty(exports, "ScriptDataAttributes", ({ enumerable: true, get: function () { return ScriptDataAttributes_1.ScriptDataAttributes; } })); +var SecurityFilter_1 = __nccwpck_require__(23594); +Object.defineProperty(exports, "SecurityFilter", ({ enumerable: true, get: function () { return SecurityFilter_1.SecurityFilter; } })); +var SecurityFilterAttributes_1 = __nccwpck_require__(56367); +Object.defineProperty(exports, "SecurityFilterAttributes", ({ enumerable: true, get: function () { return SecurityFilterAttributes_1.SecurityFilterAttributes; } })); +var SecurityFilterCreateAttributes_1 = __nccwpck_require__(17079); +Object.defineProperty(exports, "SecurityFilterCreateAttributes", ({ enumerable: true, get: function () { return SecurityFilterCreateAttributes_1.SecurityFilterCreateAttributes; } })); +var SecurityFilterCreateData_1 = __nccwpck_require__(29282); +Object.defineProperty(exports, "SecurityFilterCreateData", ({ enumerable: true, get: function () { return SecurityFilterCreateData_1.SecurityFilterCreateData; } })); +var SecurityFilterCreateRequest_1 = __nccwpck_require__(17681); +Object.defineProperty(exports, "SecurityFilterCreateRequest", ({ enumerable: true, get: function () { return SecurityFilterCreateRequest_1.SecurityFilterCreateRequest; } })); +var SecurityFilterExclusionFilter_1 = __nccwpck_require__(31978); +Object.defineProperty(exports, "SecurityFilterExclusionFilter", ({ enumerable: true, get: function () { return SecurityFilterExclusionFilter_1.SecurityFilterExclusionFilter; } })); +var SecurityFilterExclusionFilterResponse_1 = __nccwpck_require__(53453); +Object.defineProperty(exports, "SecurityFilterExclusionFilterResponse", ({ enumerable: true, get: function () { return SecurityFilterExclusionFilterResponse_1.SecurityFilterExclusionFilterResponse; } })); +var SecurityFilterMeta_1 = __nccwpck_require__(54939); +Object.defineProperty(exports, "SecurityFilterMeta", ({ enumerable: true, get: function () { return SecurityFilterMeta_1.SecurityFilterMeta; } })); +var SecurityFilterResponse_1 = __nccwpck_require__(20781); +Object.defineProperty(exports, "SecurityFilterResponse", ({ enumerable: true, get: function () { return SecurityFilterResponse_1.SecurityFilterResponse; } })); +var SecurityFiltersResponse_1 = __nccwpck_require__(61802); +Object.defineProperty(exports, "SecurityFiltersResponse", ({ enumerable: true, get: function () { return SecurityFiltersResponse_1.SecurityFiltersResponse; } })); +var SecurityFilterUpdateAttributes_1 = __nccwpck_require__(79194); +Object.defineProperty(exports, "SecurityFilterUpdateAttributes", ({ enumerable: true, get: function () { return SecurityFilterUpdateAttributes_1.SecurityFilterUpdateAttributes; } })); +var SecurityFilterUpdateData_1 = __nccwpck_require__(50855); +Object.defineProperty(exports, "SecurityFilterUpdateData", ({ enumerable: true, get: function () { return SecurityFilterUpdateData_1.SecurityFilterUpdateData; } })); +var SecurityFilterUpdateRequest_1 = __nccwpck_require__(46370); +Object.defineProperty(exports, "SecurityFilterUpdateRequest", ({ enumerable: true, get: function () { return SecurityFilterUpdateRequest_1.SecurityFilterUpdateRequest; } })); +var SecurityMonitoringFilter_1 = __nccwpck_require__(21664); +Object.defineProperty(exports, "SecurityMonitoringFilter", ({ enumerable: true, get: function () { return SecurityMonitoringFilter_1.SecurityMonitoringFilter; } })); +var SecurityMonitoringListRulesResponse_1 = __nccwpck_require__(37804); +Object.defineProperty(exports, "SecurityMonitoringListRulesResponse", ({ enumerable: true, get: function () { return SecurityMonitoringListRulesResponse_1.SecurityMonitoringListRulesResponse; } })); +var SecurityMonitoringReferenceTable_1 = __nccwpck_require__(21445); +Object.defineProperty(exports, "SecurityMonitoringReferenceTable", ({ enumerable: true, get: function () { return SecurityMonitoringReferenceTable_1.SecurityMonitoringReferenceTable; } })); +var SecurityMonitoringRuleCase_1 = __nccwpck_require__(53816); +Object.defineProperty(exports, "SecurityMonitoringRuleCase", ({ enumerable: true, get: function () { return SecurityMonitoringRuleCase_1.SecurityMonitoringRuleCase; } })); +var SecurityMonitoringRuleCaseCreate_1 = __nccwpck_require__(70304); +Object.defineProperty(exports, "SecurityMonitoringRuleCaseCreate", ({ enumerable: true, get: function () { return SecurityMonitoringRuleCaseCreate_1.SecurityMonitoringRuleCaseCreate; } })); +var SecurityMonitoringRuleConvertResponse_1 = __nccwpck_require__(32246); +Object.defineProperty(exports, "SecurityMonitoringRuleConvertResponse", ({ enumerable: true, get: function () { return SecurityMonitoringRuleConvertResponse_1.SecurityMonitoringRuleConvertResponse; } })); +var SecurityMonitoringRuleImpossibleTravelOptions_1 = __nccwpck_require__(38295); +Object.defineProperty(exports, "SecurityMonitoringRuleImpossibleTravelOptions", ({ enumerable: true, get: function () { return SecurityMonitoringRuleImpossibleTravelOptions_1.SecurityMonitoringRuleImpossibleTravelOptions; } })); +var SecurityMonitoringRuleNewValueOptions_1 = __nccwpck_require__(58005); +Object.defineProperty(exports, "SecurityMonitoringRuleNewValueOptions", ({ enumerable: true, get: function () { return SecurityMonitoringRuleNewValueOptions_1.SecurityMonitoringRuleNewValueOptions; } })); +var SecurityMonitoringRuleOptions_1 = __nccwpck_require__(98960); +Object.defineProperty(exports, "SecurityMonitoringRuleOptions", ({ enumerable: true, get: function () { return SecurityMonitoringRuleOptions_1.SecurityMonitoringRuleOptions; } })); +var SecurityMonitoringRuleQueryPayload_1 = __nccwpck_require__(70006); +Object.defineProperty(exports, "SecurityMonitoringRuleQueryPayload", ({ enumerable: true, get: function () { return SecurityMonitoringRuleQueryPayload_1.SecurityMonitoringRuleQueryPayload; } })); +var SecurityMonitoringRuleQueryPayloadData_1 = __nccwpck_require__(38534); +Object.defineProperty(exports, "SecurityMonitoringRuleQueryPayloadData", ({ enumerable: true, get: function () { return SecurityMonitoringRuleQueryPayloadData_1.SecurityMonitoringRuleQueryPayloadData; } })); +var SecurityMonitoringRuleTestRequest_1 = __nccwpck_require__(73875); +Object.defineProperty(exports, "SecurityMonitoringRuleTestRequest", ({ enumerable: true, get: function () { return SecurityMonitoringRuleTestRequest_1.SecurityMonitoringRuleTestRequest; } })); +var SecurityMonitoringRuleTestResponse_1 = __nccwpck_require__(29127); +Object.defineProperty(exports, "SecurityMonitoringRuleTestResponse", ({ enumerable: true, get: function () { return SecurityMonitoringRuleTestResponse_1.SecurityMonitoringRuleTestResponse; } })); +var SecurityMonitoringRuleThirdPartyOptions_1 = __nccwpck_require__(54845); +Object.defineProperty(exports, "SecurityMonitoringRuleThirdPartyOptions", ({ enumerable: true, get: function () { return SecurityMonitoringRuleThirdPartyOptions_1.SecurityMonitoringRuleThirdPartyOptions; } })); +var SecurityMonitoringRuleUpdatePayload_1 = __nccwpck_require__(91763); +Object.defineProperty(exports, "SecurityMonitoringRuleUpdatePayload", ({ enumerable: true, get: function () { return SecurityMonitoringRuleUpdatePayload_1.SecurityMonitoringRuleUpdatePayload; } })); +var SecurityMonitoringSignal_1 = __nccwpck_require__(53934); +Object.defineProperty(exports, "SecurityMonitoringSignal", ({ enumerable: true, get: function () { return SecurityMonitoringSignal_1.SecurityMonitoringSignal; } })); +var SecurityMonitoringSignalAssigneeUpdateAttributes_1 = __nccwpck_require__(82761); +Object.defineProperty(exports, "SecurityMonitoringSignalAssigneeUpdateAttributes", ({ enumerable: true, get: function () { return SecurityMonitoringSignalAssigneeUpdateAttributes_1.SecurityMonitoringSignalAssigneeUpdateAttributes; } })); +var SecurityMonitoringSignalAssigneeUpdateData_1 = __nccwpck_require__(68776); +Object.defineProperty(exports, "SecurityMonitoringSignalAssigneeUpdateData", ({ enumerable: true, get: function () { return SecurityMonitoringSignalAssigneeUpdateData_1.SecurityMonitoringSignalAssigneeUpdateData; } })); +var SecurityMonitoringSignalAssigneeUpdateRequest_1 = __nccwpck_require__(34563); +Object.defineProperty(exports, "SecurityMonitoringSignalAssigneeUpdateRequest", ({ enumerable: true, get: function () { return SecurityMonitoringSignalAssigneeUpdateRequest_1.SecurityMonitoringSignalAssigneeUpdateRequest; } })); +var SecurityMonitoringSignalAttributes_1 = __nccwpck_require__(28568); +Object.defineProperty(exports, "SecurityMonitoringSignalAttributes", ({ enumerable: true, get: function () { return SecurityMonitoringSignalAttributes_1.SecurityMonitoringSignalAttributes; } })); +var SecurityMonitoringSignalIncidentsUpdateAttributes_1 = __nccwpck_require__(39091); +Object.defineProperty(exports, "SecurityMonitoringSignalIncidentsUpdateAttributes", ({ enumerable: true, get: function () { return SecurityMonitoringSignalIncidentsUpdateAttributes_1.SecurityMonitoringSignalIncidentsUpdateAttributes; } })); +var SecurityMonitoringSignalIncidentsUpdateData_1 = __nccwpck_require__(9750); +Object.defineProperty(exports, "SecurityMonitoringSignalIncidentsUpdateData", ({ enumerable: true, get: function () { return SecurityMonitoringSignalIncidentsUpdateData_1.SecurityMonitoringSignalIncidentsUpdateData; } })); +var SecurityMonitoringSignalIncidentsUpdateRequest_1 = __nccwpck_require__(39245); +Object.defineProperty(exports, "SecurityMonitoringSignalIncidentsUpdateRequest", ({ enumerable: true, get: function () { return SecurityMonitoringSignalIncidentsUpdateRequest_1.SecurityMonitoringSignalIncidentsUpdateRequest; } })); +var SecurityMonitoringSignalListRequest_1 = __nccwpck_require__(87569); +Object.defineProperty(exports, "SecurityMonitoringSignalListRequest", ({ enumerable: true, get: function () { return SecurityMonitoringSignalListRequest_1.SecurityMonitoringSignalListRequest; } })); +var SecurityMonitoringSignalListRequestFilter_1 = __nccwpck_require__(65167); +Object.defineProperty(exports, "SecurityMonitoringSignalListRequestFilter", ({ enumerable: true, get: function () { return SecurityMonitoringSignalListRequestFilter_1.SecurityMonitoringSignalListRequestFilter; } })); +var SecurityMonitoringSignalListRequestPage_1 = __nccwpck_require__(50030); +Object.defineProperty(exports, "SecurityMonitoringSignalListRequestPage", ({ enumerable: true, get: function () { return SecurityMonitoringSignalListRequestPage_1.SecurityMonitoringSignalListRequestPage; } })); +var SecurityMonitoringSignalResponse_1 = __nccwpck_require__(88193); +Object.defineProperty(exports, "SecurityMonitoringSignalResponse", ({ enumerable: true, get: function () { return SecurityMonitoringSignalResponse_1.SecurityMonitoringSignalResponse; } })); +var SecurityMonitoringSignalRuleCreatePayload_1 = __nccwpck_require__(60976); +Object.defineProperty(exports, "SecurityMonitoringSignalRuleCreatePayload", ({ enumerable: true, get: function () { return SecurityMonitoringSignalRuleCreatePayload_1.SecurityMonitoringSignalRuleCreatePayload; } })); +var SecurityMonitoringSignalRulePayload_1 = __nccwpck_require__(66248); +Object.defineProperty(exports, "SecurityMonitoringSignalRulePayload", ({ enumerable: true, get: function () { return SecurityMonitoringSignalRulePayload_1.SecurityMonitoringSignalRulePayload; } })); +var SecurityMonitoringSignalRuleQuery_1 = __nccwpck_require__(11234); +Object.defineProperty(exports, "SecurityMonitoringSignalRuleQuery", ({ enumerable: true, get: function () { return SecurityMonitoringSignalRuleQuery_1.SecurityMonitoringSignalRuleQuery; } })); +var SecurityMonitoringSignalRuleResponse_1 = __nccwpck_require__(28303); +Object.defineProperty(exports, "SecurityMonitoringSignalRuleResponse", ({ enumerable: true, get: function () { return SecurityMonitoringSignalRuleResponse_1.SecurityMonitoringSignalRuleResponse; } })); +var SecurityMonitoringSignalRuleResponseQuery_1 = __nccwpck_require__(1811); +Object.defineProperty(exports, "SecurityMonitoringSignalRuleResponseQuery", ({ enumerable: true, get: function () { return SecurityMonitoringSignalRuleResponseQuery_1.SecurityMonitoringSignalRuleResponseQuery; } })); +var SecurityMonitoringSignalsListResponse_1 = __nccwpck_require__(11098); +Object.defineProperty(exports, "SecurityMonitoringSignalsListResponse", ({ enumerable: true, get: function () { return SecurityMonitoringSignalsListResponse_1.SecurityMonitoringSignalsListResponse; } })); +var SecurityMonitoringSignalsListResponseLinks_1 = __nccwpck_require__(58941); +Object.defineProperty(exports, "SecurityMonitoringSignalsListResponseLinks", ({ enumerable: true, get: function () { return SecurityMonitoringSignalsListResponseLinks_1.SecurityMonitoringSignalsListResponseLinks; } })); +var SecurityMonitoringSignalsListResponseMeta_1 = __nccwpck_require__(31467); +Object.defineProperty(exports, "SecurityMonitoringSignalsListResponseMeta", ({ enumerable: true, get: function () { return SecurityMonitoringSignalsListResponseMeta_1.SecurityMonitoringSignalsListResponseMeta; } })); +var SecurityMonitoringSignalsListResponseMetaPage_1 = __nccwpck_require__(80732); +Object.defineProperty(exports, "SecurityMonitoringSignalsListResponseMetaPage", ({ enumerable: true, get: function () { return SecurityMonitoringSignalsListResponseMetaPage_1.SecurityMonitoringSignalsListResponseMetaPage; } })); +var SecurityMonitoringSignalStateUpdateAttributes_1 = __nccwpck_require__(50437); +Object.defineProperty(exports, "SecurityMonitoringSignalStateUpdateAttributes", ({ enumerable: true, get: function () { return SecurityMonitoringSignalStateUpdateAttributes_1.SecurityMonitoringSignalStateUpdateAttributes; } })); +var SecurityMonitoringSignalStateUpdateData_1 = __nccwpck_require__(13484); +Object.defineProperty(exports, "SecurityMonitoringSignalStateUpdateData", ({ enumerable: true, get: function () { return SecurityMonitoringSignalStateUpdateData_1.SecurityMonitoringSignalStateUpdateData; } })); +var SecurityMonitoringSignalStateUpdateRequest_1 = __nccwpck_require__(30063); +Object.defineProperty(exports, "SecurityMonitoringSignalStateUpdateRequest", ({ enumerable: true, get: function () { return SecurityMonitoringSignalStateUpdateRequest_1.SecurityMonitoringSignalStateUpdateRequest; } })); +var SecurityMonitoringSignalTriageAttributes_1 = __nccwpck_require__(751); +Object.defineProperty(exports, "SecurityMonitoringSignalTriageAttributes", ({ enumerable: true, get: function () { return SecurityMonitoringSignalTriageAttributes_1.SecurityMonitoringSignalTriageAttributes; } })); +var SecurityMonitoringSignalTriageUpdateData_1 = __nccwpck_require__(20775); +Object.defineProperty(exports, "SecurityMonitoringSignalTriageUpdateData", ({ enumerable: true, get: function () { return SecurityMonitoringSignalTriageUpdateData_1.SecurityMonitoringSignalTriageUpdateData; } })); +var SecurityMonitoringSignalTriageUpdateResponse_1 = __nccwpck_require__(76652); +Object.defineProperty(exports, "SecurityMonitoringSignalTriageUpdateResponse", ({ enumerable: true, get: function () { return SecurityMonitoringSignalTriageUpdateResponse_1.SecurityMonitoringSignalTriageUpdateResponse; } })); +var SecurityMonitoringStandardRuleCreatePayload_1 = __nccwpck_require__(37011); +Object.defineProperty(exports, "SecurityMonitoringStandardRuleCreatePayload", ({ enumerable: true, get: function () { return SecurityMonitoringStandardRuleCreatePayload_1.SecurityMonitoringStandardRuleCreatePayload; } })); +var SecurityMonitoringStandardRulePayload_1 = __nccwpck_require__(83871); +Object.defineProperty(exports, "SecurityMonitoringStandardRulePayload", ({ enumerable: true, get: function () { return SecurityMonitoringStandardRulePayload_1.SecurityMonitoringStandardRulePayload; } })); +var SecurityMonitoringStandardRuleQuery_1 = __nccwpck_require__(39113); +Object.defineProperty(exports, "SecurityMonitoringStandardRuleQuery", ({ enumerable: true, get: function () { return SecurityMonitoringStandardRuleQuery_1.SecurityMonitoringStandardRuleQuery; } })); +var SecurityMonitoringStandardRuleResponse_1 = __nccwpck_require__(83934); +Object.defineProperty(exports, "SecurityMonitoringStandardRuleResponse", ({ enumerable: true, get: function () { return SecurityMonitoringStandardRuleResponse_1.SecurityMonitoringStandardRuleResponse; } })); +var SecurityMonitoringStandardRuleTestPayload_1 = __nccwpck_require__(27143); +Object.defineProperty(exports, "SecurityMonitoringStandardRuleTestPayload", ({ enumerable: true, get: function () { return SecurityMonitoringStandardRuleTestPayload_1.SecurityMonitoringStandardRuleTestPayload; } })); +var SecurityMonitoringSuppression_1 = __nccwpck_require__(70419); +Object.defineProperty(exports, "SecurityMonitoringSuppression", ({ enumerable: true, get: function () { return SecurityMonitoringSuppression_1.SecurityMonitoringSuppression; } })); +var SecurityMonitoringSuppressionAttributes_1 = __nccwpck_require__(41814); +Object.defineProperty(exports, "SecurityMonitoringSuppressionAttributes", ({ enumerable: true, get: function () { return SecurityMonitoringSuppressionAttributes_1.SecurityMonitoringSuppressionAttributes; } })); +var SecurityMonitoringSuppressionCreateAttributes_1 = __nccwpck_require__(42026); +Object.defineProperty(exports, "SecurityMonitoringSuppressionCreateAttributes", ({ enumerable: true, get: function () { return SecurityMonitoringSuppressionCreateAttributes_1.SecurityMonitoringSuppressionCreateAttributes; } })); +var SecurityMonitoringSuppressionCreateData_1 = __nccwpck_require__(84887); +Object.defineProperty(exports, "SecurityMonitoringSuppressionCreateData", ({ enumerable: true, get: function () { return SecurityMonitoringSuppressionCreateData_1.SecurityMonitoringSuppressionCreateData; } })); +var SecurityMonitoringSuppressionCreateRequest_1 = __nccwpck_require__(67698); +Object.defineProperty(exports, "SecurityMonitoringSuppressionCreateRequest", ({ enumerable: true, get: function () { return SecurityMonitoringSuppressionCreateRequest_1.SecurityMonitoringSuppressionCreateRequest; } })); +var SecurityMonitoringSuppressionResponse_1 = __nccwpck_require__(5984); +Object.defineProperty(exports, "SecurityMonitoringSuppressionResponse", ({ enumerable: true, get: function () { return SecurityMonitoringSuppressionResponse_1.SecurityMonitoringSuppressionResponse; } })); +var SecurityMonitoringSuppressionsResponse_1 = __nccwpck_require__(97577); +Object.defineProperty(exports, "SecurityMonitoringSuppressionsResponse", ({ enumerable: true, get: function () { return SecurityMonitoringSuppressionsResponse_1.SecurityMonitoringSuppressionsResponse; } })); +var SecurityMonitoringSuppressionUpdateAttributes_1 = __nccwpck_require__(44315); +Object.defineProperty(exports, "SecurityMonitoringSuppressionUpdateAttributes", ({ enumerable: true, get: function () { return SecurityMonitoringSuppressionUpdateAttributes_1.SecurityMonitoringSuppressionUpdateAttributes; } })); +var SecurityMonitoringSuppressionUpdateData_1 = __nccwpck_require__(60398); +Object.defineProperty(exports, "SecurityMonitoringSuppressionUpdateData", ({ enumerable: true, get: function () { return SecurityMonitoringSuppressionUpdateData_1.SecurityMonitoringSuppressionUpdateData; } })); +var SecurityMonitoringSuppressionUpdateRequest_1 = __nccwpck_require__(59029); +Object.defineProperty(exports, "SecurityMonitoringSuppressionUpdateRequest", ({ enumerable: true, get: function () { return SecurityMonitoringSuppressionUpdateRequest_1.SecurityMonitoringSuppressionUpdateRequest; } })); +var SecurityMonitoringThirdPartyRootQuery_1 = __nccwpck_require__(1521); +Object.defineProperty(exports, "SecurityMonitoringThirdPartyRootQuery", ({ enumerable: true, get: function () { return SecurityMonitoringThirdPartyRootQuery_1.SecurityMonitoringThirdPartyRootQuery; } })); +var SecurityMonitoringThirdPartyRuleCase_1 = __nccwpck_require__(91755); +Object.defineProperty(exports, "SecurityMonitoringThirdPartyRuleCase", ({ enumerable: true, get: function () { return SecurityMonitoringThirdPartyRuleCase_1.SecurityMonitoringThirdPartyRuleCase; } })); +var SecurityMonitoringThirdPartyRuleCaseCreate_1 = __nccwpck_require__(22375); +Object.defineProperty(exports, "SecurityMonitoringThirdPartyRuleCaseCreate", ({ enumerable: true, get: function () { return SecurityMonitoringThirdPartyRuleCaseCreate_1.SecurityMonitoringThirdPartyRuleCaseCreate; } })); +var SecurityMonitoringTriageUser_1 = __nccwpck_require__(91717); +Object.defineProperty(exports, "SecurityMonitoringTriageUser", ({ enumerable: true, get: function () { return SecurityMonitoringTriageUser_1.SecurityMonitoringTriageUser; } })); +var SecurityMonitoringUser_1 = __nccwpck_require__(61249); +Object.defineProperty(exports, "SecurityMonitoringUser", ({ enumerable: true, get: function () { return SecurityMonitoringUser_1.SecurityMonitoringUser; } })); +var SensitiveDataScannerConfigRequest_1 = __nccwpck_require__(34649); +Object.defineProperty(exports, "SensitiveDataScannerConfigRequest", ({ enumerable: true, get: function () { return SensitiveDataScannerConfigRequest_1.SensitiveDataScannerConfigRequest; } })); +var SensitiveDataScannerConfiguration_1 = __nccwpck_require__(25736); +Object.defineProperty(exports, "SensitiveDataScannerConfiguration", ({ enumerable: true, get: function () { return SensitiveDataScannerConfiguration_1.SensitiveDataScannerConfiguration; } })); +var SensitiveDataScannerConfigurationData_1 = __nccwpck_require__(69424); +Object.defineProperty(exports, "SensitiveDataScannerConfigurationData", ({ enumerable: true, get: function () { return SensitiveDataScannerConfigurationData_1.SensitiveDataScannerConfigurationData; } })); +var SensitiveDataScannerConfigurationRelationships_1 = __nccwpck_require__(26097); +Object.defineProperty(exports, "SensitiveDataScannerConfigurationRelationships", ({ enumerable: true, get: function () { return SensitiveDataScannerConfigurationRelationships_1.SensitiveDataScannerConfigurationRelationships; } })); +var SensitiveDataScannerCreateGroupResponse_1 = __nccwpck_require__(11990); +Object.defineProperty(exports, "SensitiveDataScannerCreateGroupResponse", ({ enumerable: true, get: function () { return SensitiveDataScannerCreateGroupResponse_1.SensitiveDataScannerCreateGroupResponse; } })); +var SensitiveDataScannerCreateRuleResponse_1 = __nccwpck_require__(15889); +Object.defineProperty(exports, "SensitiveDataScannerCreateRuleResponse", ({ enumerable: true, get: function () { return SensitiveDataScannerCreateRuleResponse_1.SensitiveDataScannerCreateRuleResponse; } })); +var SensitiveDataScannerFilter_1 = __nccwpck_require__(95870); +Object.defineProperty(exports, "SensitiveDataScannerFilter", ({ enumerable: true, get: function () { return SensitiveDataScannerFilter_1.SensitiveDataScannerFilter; } })); +var SensitiveDataScannerGetConfigResponse_1 = __nccwpck_require__(58163); +Object.defineProperty(exports, "SensitiveDataScannerGetConfigResponse", ({ enumerable: true, get: function () { return SensitiveDataScannerGetConfigResponse_1.SensitiveDataScannerGetConfigResponse; } })); +var SensitiveDataScannerGetConfigResponseData_1 = __nccwpck_require__(21499); +Object.defineProperty(exports, "SensitiveDataScannerGetConfigResponseData", ({ enumerable: true, get: function () { return SensitiveDataScannerGetConfigResponseData_1.SensitiveDataScannerGetConfigResponseData; } })); +var SensitiveDataScannerGroup_1 = __nccwpck_require__(82557); +Object.defineProperty(exports, "SensitiveDataScannerGroup", ({ enumerable: true, get: function () { return SensitiveDataScannerGroup_1.SensitiveDataScannerGroup; } })); +var SensitiveDataScannerGroupAttributes_1 = __nccwpck_require__(45364); +Object.defineProperty(exports, "SensitiveDataScannerGroupAttributes", ({ enumerable: true, get: function () { return SensitiveDataScannerGroupAttributes_1.SensitiveDataScannerGroupAttributes; } })); +var SensitiveDataScannerGroupCreate_1 = __nccwpck_require__(54193); +Object.defineProperty(exports, "SensitiveDataScannerGroupCreate", ({ enumerable: true, get: function () { return SensitiveDataScannerGroupCreate_1.SensitiveDataScannerGroupCreate; } })); +var SensitiveDataScannerGroupCreateRequest_1 = __nccwpck_require__(47128); +Object.defineProperty(exports, "SensitiveDataScannerGroupCreateRequest", ({ enumerable: true, get: function () { return SensitiveDataScannerGroupCreateRequest_1.SensitiveDataScannerGroupCreateRequest; } })); +var SensitiveDataScannerGroupData_1 = __nccwpck_require__(94621); +Object.defineProperty(exports, "SensitiveDataScannerGroupData", ({ enumerable: true, get: function () { return SensitiveDataScannerGroupData_1.SensitiveDataScannerGroupData; } })); +var SensitiveDataScannerGroupDeleteRequest_1 = __nccwpck_require__(47034); +Object.defineProperty(exports, "SensitiveDataScannerGroupDeleteRequest", ({ enumerable: true, get: function () { return SensitiveDataScannerGroupDeleteRequest_1.SensitiveDataScannerGroupDeleteRequest; } })); +var SensitiveDataScannerGroupDeleteResponse_1 = __nccwpck_require__(49145); +Object.defineProperty(exports, "SensitiveDataScannerGroupDeleteResponse", ({ enumerable: true, get: function () { return SensitiveDataScannerGroupDeleteResponse_1.SensitiveDataScannerGroupDeleteResponse; } })); +var SensitiveDataScannerGroupIncludedItem_1 = __nccwpck_require__(22098); +Object.defineProperty(exports, "SensitiveDataScannerGroupIncludedItem", ({ enumerable: true, get: function () { return SensitiveDataScannerGroupIncludedItem_1.SensitiveDataScannerGroupIncludedItem; } })); +var SensitiveDataScannerGroupItem_1 = __nccwpck_require__(5874); +Object.defineProperty(exports, "SensitiveDataScannerGroupItem", ({ enumerable: true, get: function () { return SensitiveDataScannerGroupItem_1.SensitiveDataScannerGroupItem; } })); +var SensitiveDataScannerGroupList_1 = __nccwpck_require__(24577); +Object.defineProperty(exports, "SensitiveDataScannerGroupList", ({ enumerable: true, get: function () { return SensitiveDataScannerGroupList_1.SensitiveDataScannerGroupList; } })); +var SensitiveDataScannerGroupRelationships_1 = __nccwpck_require__(78450); +Object.defineProperty(exports, "SensitiveDataScannerGroupRelationships", ({ enumerable: true, get: function () { return SensitiveDataScannerGroupRelationships_1.SensitiveDataScannerGroupRelationships; } })); +var SensitiveDataScannerGroupResponse_1 = __nccwpck_require__(73806); +Object.defineProperty(exports, "SensitiveDataScannerGroupResponse", ({ enumerable: true, get: function () { return SensitiveDataScannerGroupResponse_1.SensitiveDataScannerGroupResponse; } })); +var SensitiveDataScannerGroupUpdate_1 = __nccwpck_require__(51480); +Object.defineProperty(exports, "SensitiveDataScannerGroupUpdate", ({ enumerable: true, get: function () { return SensitiveDataScannerGroupUpdate_1.SensitiveDataScannerGroupUpdate; } })); +var SensitiveDataScannerGroupUpdateRequest_1 = __nccwpck_require__(41707); +Object.defineProperty(exports, "SensitiveDataScannerGroupUpdateRequest", ({ enumerable: true, get: function () { return SensitiveDataScannerGroupUpdateRequest_1.SensitiveDataScannerGroupUpdateRequest; } })); +var SensitiveDataScannerGroupUpdateResponse_1 = __nccwpck_require__(63023); +Object.defineProperty(exports, "SensitiveDataScannerGroupUpdateResponse", ({ enumerable: true, get: function () { return SensitiveDataScannerGroupUpdateResponse_1.SensitiveDataScannerGroupUpdateResponse; } })); +var SensitiveDataScannerIncludedKeywordConfiguration_1 = __nccwpck_require__(88031); +Object.defineProperty(exports, "SensitiveDataScannerIncludedKeywordConfiguration", ({ enumerable: true, get: function () { return SensitiveDataScannerIncludedKeywordConfiguration_1.SensitiveDataScannerIncludedKeywordConfiguration; } })); +var SensitiveDataScannerMeta_1 = __nccwpck_require__(51649); +Object.defineProperty(exports, "SensitiveDataScannerMeta", ({ enumerable: true, get: function () { return SensitiveDataScannerMeta_1.SensitiveDataScannerMeta; } })); +var SensitiveDataScannerMetaVersionOnly_1 = __nccwpck_require__(14544); +Object.defineProperty(exports, "SensitiveDataScannerMetaVersionOnly", ({ enumerable: true, get: function () { return SensitiveDataScannerMetaVersionOnly_1.SensitiveDataScannerMetaVersionOnly; } })); +var SensitiveDataScannerReorderConfig_1 = __nccwpck_require__(80051); +Object.defineProperty(exports, "SensitiveDataScannerReorderConfig", ({ enumerable: true, get: function () { return SensitiveDataScannerReorderConfig_1.SensitiveDataScannerReorderConfig; } })); +var SensitiveDataScannerReorderGroupsResponse_1 = __nccwpck_require__(74462); +Object.defineProperty(exports, "SensitiveDataScannerReorderGroupsResponse", ({ enumerable: true, get: function () { return SensitiveDataScannerReorderGroupsResponse_1.SensitiveDataScannerReorderGroupsResponse; } })); +var SensitiveDataScannerRule_1 = __nccwpck_require__(15814); +Object.defineProperty(exports, "SensitiveDataScannerRule", ({ enumerable: true, get: function () { return SensitiveDataScannerRule_1.SensitiveDataScannerRule; } })); +var SensitiveDataScannerRuleAttributes_1 = __nccwpck_require__(36787); +Object.defineProperty(exports, "SensitiveDataScannerRuleAttributes", ({ enumerable: true, get: function () { return SensitiveDataScannerRuleAttributes_1.SensitiveDataScannerRuleAttributes; } })); +var SensitiveDataScannerRuleCreate_1 = __nccwpck_require__(38934); +Object.defineProperty(exports, "SensitiveDataScannerRuleCreate", ({ enumerable: true, get: function () { return SensitiveDataScannerRuleCreate_1.SensitiveDataScannerRuleCreate; } })); +var SensitiveDataScannerRuleCreateRequest_1 = __nccwpck_require__(16413); +Object.defineProperty(exports, "SensitiveDataScannerRuleCreateRequest", ({ enumerable: true, get: function () { return SensitiveDataScannerRuleCreateRequest_1.SensitiveDataScannerRuleCreateRequest; } })); +var SensitiveDataScannerRuleData_1 = __nccwpck_require__(60214); +Object.defineProperty(exports, "SensitiveDataScannerRuleData", ({ enumerable: true, get: function () { return SensitiveDataScannerRuleData_1.SensitiveDataScannerRuleData; } })); +var SensitiveDataScannerRuleDeleteRequest_1 = __nccwpck_require__(78332); +Object.defineProperty(exports, "SensitiveDataScannerRuleDeleteRequest", ({ enumerable: true, get: function () { return SensitiveDataScannerRuleDeleteRequest_1.SensitiveDataScannerRuleDeleteRequest; } })); +var SensitiveDataScannerRuleDeleteResponse_1 = __nccwpck_require__(35326); +Object.defineProperty(exports, "SensitiveDataScannerRuleDeleteResponse", ({ enumerable: true, get: function () { return SensitiveDataScannerRuleDeleteResponse_1.SensitiveDataScannerRuleDeleteResponse; } })); +var SensitiveDataScannerRuleIncludedItem_1 = __nccwpck_require__(73677); +Object.defineProperty(exports, "SensitiveDataScannerRuleIncludedItem", ({ enumerable: true, get: function () { return SensitiveDataScannerRuleIncludedItem_1.SensitiveDataScannerRuleIncludedItem; } })); +var SensitiveDataScannerRuleRelationships_1 = __nccwpck_require__(15671); +Object.defineProperty(exports, "SensitiveDataScannerRuleRelationships", ({ enumerable: true, get: function () { return SensitiveDataScannerRuleRelationships_1.SensitiveDataScannerRuleRelationships; } })); +var SensitiveDataScannerRuleResponse_1 = __nccwpck_require__(76313); +Object.defineProperty(exports, "SensitiveDataScannerRuleResponse", ({ enumerable: true, get: function () { return SensitiveDataScannerRuleResponse_1.SensitiveDataScannerRuleResponse; } })); +var SensitiveDataScannerRuleUpdate_1 = __nccwpck_require__(32539); +Object.defineProperty(exports, "SensitiveDataScannerRuleUpdate", ({ enumerable: true, get: function () { return SensitiveDataScannerRuleUpdate_1.SensitiveDataScannerRuleUpdate; } })); +var SensitiveDataScannerRuleUpdateRequest_1 = __nccwpck_require__(18470); +Object.defineProperty(exports, "SensitiveDataScannerRuleUpdateRequest", ({ enumerable: true, get: function () { return SensitiveDataScannerRuleUpdateRequest_1.SensitiveDataScannerRuleUpdateRequest; } })); +var SensitiveDataScannerRuleUpdateResponse_1 = __nccwpck_require__(2664); +Object.defineProperty(exports, "SensitiveDataScannerRuleUpdateResponse", ({ enumerable: true, get: function () { return SensitiveDataScannerRuleUpdateResponse_1.SensitiveDataScannerRuleUpdateResponse; } })); +var SensitiveDataScannerStandardPattern_1 = __nccwpck_require__(89711); +Object.defineProperty(exports, "SensitiveDataScannerStandardPattern", ({ enumerable: true, get: function () { return SensitiveDataScannerStandardPattern_1.SensitiveDataScannerStandardPattern; } })); +var SensitiveDataScannerStandardPatternAttributes_1 = __nccwpck_require__(23882); +Object.defineProperty(exports, "SensitiveDataScannerStandardPatternAttributes", ({ enumerable: true, get: function () { return SensitiveDataScannerStandardPatternAttributes_1.SensitiveDataScannerStandardPatternAttributes; } })); +var SensitiveDataScannerStandardPatternData_1 = __nccwpck_require__(60407); +Object.defineProperty(exports, "SensitiveDataScannerStandardPatternData", ({ enumerable: true, get: function () { return SensitiveDataScannerStandardPatternData_1.SensitiveDataScannerStandardPatternData; } })); +var SensitiveDataScannerStandardPatternsResponseData_1 = __nccwpck_require__(85517); +Object.defineProperty(exports, "SensitiveDataScannerStandardPatternsResponseData", ({ enumerable: true, get: function () { return SensitiveDataScannerStandardPatternsResponseData_1.SensitiveDataScannerStandardPatternsResponseData; } })); +var SensitiveDataScannerStandardPatternsResponseItem_1 = __nccwpck_require__(22530); +Object.defineProperty(exports, "SensitiveDataScannerStandardPatternsResponseItem", ({ enumerable: true, get: function () { return SensitiveDataScannerStandardPatternsResponseItem_1.SensitiveDataScannerStandardPatternsResponseItem; } })); +var SensitiveDataScannerTextReplacement_1 = __nccwpck_require__(98695); +Object.defineProperty(exports, "SensitiveDataScannerTextReplacement", ({ enumerable: true, get: function () { return SensitiveDataScannerTextReplacement_1.SensitiveDataScannerTextReplacement; } })); +var ServiceAccountCreateAttributes_1 = __nccwpck_require__(27781); +Object.defineProperty(exports, "ServiceAccountCreateAttributes", ({ enumerable: true, get: function () { return ServiceAccountCreateAttributes_1.ServiceAccountCreateAttributes; } })); +var ServiceAccountCreateData_1 = __nccwpck_require__(59788); +Object.defineProperty(exports, "ServiceAccountCreateData", ({ enumerable: true, get: function () { return ServiceAccountCreateData_1.ServiceAccountCreateData; } })); +var ServiceAccountCreateRequest_1 = __nccwpck_require__(67439); +Object.defineProperty(exports, "ServiceAccountCreateRequest", ({ enumerable: true, get: function () { return ServiceAccountCreateRequest_1.ServiceAccountCreateRequest; } })); +var ServiceDefinitionCreateResponse_1 = __nccwpck_require__(43373); +Object.defineProperty(exports, "ServiceDefinitionCreateResponse", ({ enumerable: true, get: function () { return ServiceDefinitionCreateResponse_1.ServiceDefinitionCreateResponse; } })); +var ServiceDefinitionData_1 = __nccwpck_require__(1746); +Object.defineProperty(exports, "ServiceDefinitionData", ({ enumerable: true, get: function () { return ServiceDefinitionData_1.ServiceDefinitionData; } })); +var ServiceDefinitionDataAttributes_1 = __nccwpck_require__(39431); +Object.defineProperty(exports, "ServiceDefinitionDataAttributes", ({ enumerable: true, get: function () { return ServiceDefinitionDataAttributes_1.ServiceDefinitionDataAttributes; } })); +var ServiceDefinitionGetResponse_1 = __nccwpck_require__(17815); +Object.defineProperty(exports, "ServiceDefinitionGetResponse", ({ enumerable: true, get: function () { return ServiceDefinitionGetResponse_1.ServiceDefinitionGetResponse; } })); +var ServiceDefinitionMeta_1 = __nccwpck_require__(98387); +Object.defineProperty(exports, "ServiceDefinitionMeta", ({ enumerable: true, get: function () { return ServiceDefinitionMeta_1.ServiceDefinitionMeta; } })); +var ServiceDefinitionMetaWarnings_1 = __nccwpck_require__(20514); +Object.defineProperty(exports, "ServiceDefinitionMetaWarnings", ({ enumerable: true, get: function () { return ServiceDefinitionMetaWarnings_1.ServiceDefinitionMetaWarnings; } })); +var ServiceDefinitionsListResponse_1 = __nccwpck_require__(22694); +Object.defineProperty(exports, "ServiceDefinitionsListResponse", ({ enumerable: true, get: function () { return ServiceDefinitionsListResponse_1.ServiceDefinitionsListResponse; } })); +var ServiceDefinitionV1_1 = __nccwpck_require__(66083); +Object.defineProperty(exports, "ServiceDefinitionV1", ({ enumerable: true, get: function () { return ServiceDefinitionV1_1.ServiceDefinitionV1; } })); +var ServiceDefinitionV1Contact_1 = __nccwpck_require__(68135); +Object.defineProperty(exports, "ServiceDefinitionV1Contact", ({ enumerable: true, get: function () { return ServiceDefinitionV1Contact_1.ServiceDefinitionV1Contact; } })); +var ServiceDefinitionV1Info_1 = __nccwpck_require__(97127); +Object.defineProperty(exports, "ServiceDefinitionV1Info", ({ enumerable: true, get: function () { return ServiceDefinitionV1Info_1.ServiceDefinitionV1Info; } })); +var ServiceDefinitionV1Integrations_1 = __nccwpck_require__(23020); +Object.defineProperty(exports, "ServiceDefinitionV1Integrations", ({ enumerable: true, get: function () { return ServiceDefinitionV1Integrations_1.ServiceDefinitionV1Integrations; } })); +var ServiceDefinitionV1Org_1 = __nccwpck_require__(98125); +Object.defineProperty(exports, "ServiceDefinitionV1Org", ({ enumerable: true, get: function () { return ServiceDefinitionV1Org_1.ServiceDefinitionV1Org; } })); +var ServiceDefinitionV1Resource_1 = __nccwpck_require__(87839); +Object.defineProperty(exports, "ServiceDefinitionV1Resource", ({ enumerable: true, get: function () { return ServiceDefinitionV1Resource_1.ServiceDefinitionV1Resource; } })); +var ServiceDefinitionV2_1 = __nccwpck_require__(12262); +Object.defineProperty(exports, "ServiceDefinitionV2", ({ enumerable: true, get: function () { return ServiceDefinitionV2_1.ServiceDefinitionV2; } })); +var ServiceDefinitionV2Doc_1 = __nccwpck_require__(18894); +Object.defineProperty(exports, "ServiceDefinitionV2Doc", ({ enumerable: true, get: function () { return ServiceDefinitionV2Doc_1.ServiceDefinitionV2Doc; } })); +var ServiceDefinitionV2Dot1_1 = __nccwpck_require__(95248); +Object.defineProperty(exports, "ServiceDefinitionV2Dot1", ({ enumerable: true, get: function () { return ServiceDefinitionV2Dot1_1.ServiceDefinitionV2Dot1; } })); +var ServiceDefinitionV2Dot1Email_1 = __nccwpck_require__(96034); +Object.defineProperty(exports, "ServiceDefinitionV2Dot1Email", ({ enumerable: true, get: function () { return ServiceDefinitionV2Dot1Email_1.ServiceDefinitionV2Dot1Email; } })); +var ServiceDefinitionV2Dot1Integrations_1 = __nccwpck_require__(60671); +Object.defineProperty(exports, "ServiceDefinitionV2Dot1Integrations", ({ enumerable: true, get: function () { return ServiceDefinitionV2Dot1Integrations_1.ServiceDefinitionV2Dot1Integrations; } })); +var ServiceDefinitionV2Dot1Link_1 = __nccwpck_require__(65212); +Object.defineProperty(exports, "ServiceDefinitionV2Dot1Link", ({ enumerable: true, get: function () { return ServiceDefinitionV2Dot1Link_1.ServiceDefinitionV2Dot1Link; } })); +var ServiceDefinitionV2Dot1MSTeams_1 = __nccwpck_require__(38744); +Object.defineProperty(exports, "ServiceDefinitionV2Dot1MSTeams", ({ enumerable: true, get: function () { return ServiceDefinitionV2Dot1MSTeams_1.ServiceDefinitionV2Dot1MSTeams; } })); +var ServiceDefinitionV2Dot1Opsgenie_1 = __nccwpck_require__(39712); +Object.defineProperty(exports, "ServiceDefinitionV2Dot1Opsgenie", ({ enumerable: true, get: function () { return ServiceDefinitionV2Dot1Opsgenie_1.ServiceDefinitionV2Dot1Opsgenie; } })); +var ServiceDefinitionV2Dot1Pagerduty_1 = __nccwpck_require__(79117); +Object.defineProperty(exports, "ServiceDefinitionV2Dot1Pagerduty", ({ enumerable: true, get: function () { return ServiceDefinitionV2Dot1Pagerduty_1.ServiceDefinitionV2Dot1Pagerduty; } })); +var ServiceDefinitionV2Dot1Slack_1 = __nccwpck_require__(61462); +Object.defineProperty(exports, "ServiceDefinitionV2Dot1Slack", ({ enumerable: true, get: function () { return ServiceDefinitionV2Dot1Slack_1.ServiceDefinitionV2Dot1Slack; } })); +var ServiceDefinitionV2Dot2_1 = __nccwpck_require__(28201); +Object.defineProperty(exports, "ServiceDefinitionV2Dot2", ({ enumerable: true, get: function () { return ServiceDefinitionV2Dot2_1.ServiceDefinitionV2Dot2; } })); +var ServiceDefinitionV2Dot2Contact_1 = __nccwpck_require__(82017); +Object.defineProperty(exports, "ServiceDefinitionV2Dot2Contact", ({ enumerable: true, get: function () { return ServiceDefinitionV2Dot2Contact_1.ServiceDefinitionV2Dot2Contact; } })); +var ServiceDefinitionV2Dot2Integrations_1 = __nccwpck_require__(58330); +Object.defineProperty(exports, "ServiceDefinitionV2Dot2Integrations", ({ enumerable: true, get: function () { return ServiceDefinitionV2Dot2Integrations_1.ServiceDefinitionV2Dot2Integrations; } })); +var ServiceDefinitionV2Dot2Link_1 = __nccwpck_require__(5857); +Object.defineProperty(exports, "ServiceDefinitionV2Dot2Link", ({ enumerable: true, get: function () { return ServiceDefinitionV2Dot2Link_1.ServiceDefinitionV2Dot2Link; } })); +var ServiceDefinitionV2Dot2Opsgenie_1 = __nccwpck_require__(59425); +Object.defineProperty(exports, "ServiceDefinitionV2Dot2Opsgenie", ({ enumerable: true, get: function () { return ServiceDefinitionV2Dot2Opsgenie_1.ServiceDefinitionV2Dot2Opsgenie; } })); +var ServiceDefinitionV2Dot2Pagerduty_1 = __nccwpck_require__(84330); +Object.defineProperty(exports, "ServiceDefinitionV2Dot2Pagerduty", ({ enumerable: true, get: function () { return ServiceDefinitionV2Dot2Pagerduty_1.ServiceDefinitionV2Dot2Pagerduty; } })); +var ServiceDefinitionV2Email_1 = __nccwpck_require__(19604); +Object.defineProperty(exports, "ServiceDefinitionV2Email", ({ enumerable: true, get: function () { return ServiceDefinitionV2Email_1.ServiceDefinitionV2Email; } })); +var ServiceDefinitionV2Integrations_1 = __nccwpck_require__(83429); +Object.defineProperty(exports, "ServiceDefinitionV2Integrations", ({ enumerable: true, get: function () { return ServiceDefinitionV2Integrations_1.ServiceDefinitionV2Integrations; } })); +var ServiceDefinitionV2Link_1 = __nccwpck_require__(53666); +Object.defineProperty(exports, "ServiceDefinitionV2Link", ({ enumerable: true, get: function () { return ServiceDefinitionV2Link_1.ServiceDefinitionV2Link; } })); +var ServiceDefinitionV2MSTeams_1 = __nccwpck_require__(4618); +Object.defineProperty(exports, "ServiceDefinitionV2MSTeams", ({ enumerable: true, get: function () { return ServiceDefinitionV2MSTeams_1.ServiceDefinitionV2MSTeams; } })); +var ServiceDefinitionV2Opsgenie_1 = __nccwpck_require__(14534); +Object.defineProperty(exports, "ServiceDefinitionV2Opsgenie", ({ enumerable: true, get: function () { return ServiceDefinitionV2Opsgenie_1.ServiceDefinitionV2Opsgenie; } })); +var ServiceDefinitionV2Repo_1 = __nccwpck_require__(17294); +Object.defineProperty(exports, "ServiceDefinitionV2Repo", ({ enumerable: true, get: function () { return ServiceDefinitionV2Repo_1.ServiceDefinitionV2Repo; } })); +var ServiceDefinitionV2Slack_1 = __nccwpck_require__(75492); +Object.defineProperty(exports, "ServiceDefinitionV2Slack", ({ enumerable: true, get: function () { return ServiceDefinitionV2Slack_1.ServiceDefinitionV2Slack; } })); +var ServiceNowTicket_1 = __nccwpck_require__(6395); +Object.defineProperty(exports, "ServiceNowTicket", ({ enumerable: true, get: function () { return ServiceNowTicket_1.ServiceNowTicket; } })); +var ServiceNowTicketResult_1 = __nccwpck_require__(36286); +Object.defineProperty(exports, "ServiceNowTicketResult", ({ enumerable: true, get: function () { return ServiceNowTicketResult_1.ServiceNowTicketResult; } })); +var SlackIntegrationMetadata_1 = __nccwpck_require__(18833); +Object.defineProperty(exports, "SlackIntegrationMetadata", ({ enumerable: true, get: function () { return SlackIntegrationMetadata_1.SlackIntegrationMetadata; } })); +var SlackIntegrationMetadataChannelItem_1 = __nccwpck_require__(40669); +Object.defineProperty(exports, "SlackIntegrationMetadataChannelItem", ({ enumerable: true, get: function () { return SlackIntegrationMetadataChannelItem_1.SlackIntegrationMetadataChannelItem; } })); +var SloReportCreateRequest_1 = __nccwpck_require__(57861); +Object.defineProperty(exports, "SloReportCreateRequest", ({ enumerable: true, get: function () { return SloReportCreateRequest_1.SloReportCreateRequest; } })); +var SloReportCreateRequestAttributes_1 = __nccwpck_require__(57164); +Object.defineProperty(exports, "SloReportCreateRequestAttributes", ({ enumerable: true, get: function () { return SloReportCreateRequestAttributes_1.SloReportCreateRequestAttributes; } })); +var SloReportCreateRequestData_1 = __nccwpck_require__(27685); +Object.defineProperty(exports, "SloReportCreateRequestData", ({ enumerable: true, get: function () { return SloReportCreateRequestData_1.SloReportCreateRequestData; } })); +var SLOReportPostResponse_1 = __nccwpck_require__(7075); +Object.defineProperty(exports, "SLOReportPostResponse", ({ enumerable: true, get: function () { return SLOReportPostResponse_1.SLOReportPostResponse; } })); +var SLOReportPostResponseData_1 = __nccwpck_require__(18123); +Object.defineProperty(exports, "SLOReportPostResponseData", ({ enumerable: true, get: function () { return SLOReportPostResponseData_1.SLOReportPostResponseData; } })); +var SLOReportStatusGetResponse_1 = __nccwpck_require__(64933); +Object.defineProperty(exports, "SLOReportStatusGetResponse", ({ enumerable: true, get: function () { return SLOReportStatusGetResponse_1.SLOReportStatusGetResponse; } })); +var SLOReportStatusGetResponseAttributes_1 = __nccwpck_require__(25452); +Object.defineProperty(exports, "SLOReportStatusGetResponseAttributes", ({ enumerable: true, get: function () { return SLOReportStatusGetResponseAttributes_1.SLOReportStatusGetResponseAttributes; } })); +var SLOReportStatusGetResponseData_1 = __nccwpck_require__(27557); +Object.defineProperty(exports, "SLOReportStatusGetResponseData", ({ enumerable: true, get: function () { return SLOReportStatusGetResponseData_1.SLOReportStatusGetResponseData; } })); +var Span_1 = __nccwpck_require__(93934); +Object.defineProperty(exports, "Span", ({ enumerable: true, get: function () { return Span_1.Span; } })); +var SpansAggregateBucket_1 = __nccwpck_require__(44848); +Object.defineProperty(exports, "SpansAggregateBucket", ({ enumerable: true, get: function () { return SpansAggregateBucket_1.SpansAggregateBucket; } })); +var SpansAggregateBucketAttributes_1 = __nccwpck_require__(91897); +Object.defineProperty(exports, "SpansAggregateBucketAttributes", ({ enumerable: true, get: function () { return SpansAggregateBucketAttributes_1.SpansAggregateBucketAttributes; } })); +var SpansAggregateBucketValueTimeseriesPoint_1 = __nccwpck_require__(55781); +Object.defineProperty(exports, "SpansAggregateBucketValueTimeseriesPoint", ({ enumerable: true, get: function () { return SpansAggregateBucketValueTimeseriesPoint_1.SpansAggregateBucketValueTimeseriesPoint; } })); +var SpansAggregateData_1 = __nccwpck_require__(23874); +Object.defineProperty(exports, "SpansAggregateData", ({ enumerable: true, get: function () { return SpansAggregateData_1.SpansAggregateData; } })); +var SpansAggregateRequest_1 = __nccwpck_require__(11633); +Object.defineProperty(exports, "SpansAggregateRequest", ({ enumerable: true, get: function () { return SpansAggregateRequest_1.SpansAggregateRequest; } })); +var SpansAggregateRequestAttributes_1 = __nccwpck_require__(78832); +Object.defineProperty(exports, "SpansAggregateRequestAttributes", ({ enumerable: true, get: function () { return SpansAggregateRequestAttributes_1.SpansAggregateRequestAttributes; } })); +var SpansAggregateResponse_1 = __nccwpck_require__(29925); +Object.defineProperty(exports, "SpansAggregateResponse", ({ enumerable: true, get: function () { return SpansAggregateResponse_1.SpansAggregateResponse; } })); +var SpansAggregateResponseMetadata_1 = __nccwpck_require__(58652); +Object.defineProperty(exports, "SpansAggregateResponseMetadata", ({ enumerable: true, get: function () { return SpansAggregateResponseMetadata_1.SpansAggregateResponseMetadata; } })); +var SpansAggregateSort_1 = __nccwpck_require__(63302); +Object.defineProperty(exports, "SpansAggregateSort", ({ enumerable: true, get: function () { return SpansAggregateSort_1.SpansAggregateSort; } })); +var SpansAttributes_1 = __nccwpck_require__(62252); +Object.defineProperty(exports, "SpansAttributes", ({ enumerable: true, get: function () { return SpansAttributes_1.SpansAttributes; } })); +var SpansCompute_1 = __nccwpck_require__(4244); +Object.defineProperty(exports, "SpansCompute", ({ enumerable: true, get: function () { return SpansCompute_1.SpansCompute; } })); +var SpansFilter_1 = __nccwpck_require__(2659); +Object.defineProperty(exports, "SpansFilter", ({ enumerable: true, get: function () { return SpansFilter_1.SpansFilter; } })); +var SpansFilterCreate_1 = __nccwpck_require__(26175); +Object.defineProperty(exports, "SpansFilterCreate", ({ enumerable: true, get: function () { return SpansFilterCreate_1.SpansFilterCreate; } })); +var SpansGroupBy_1 = __nccwpck_require__(24155); +Object.defineProperty(exports, "SpansGroupBy", ({ enumerable: true, get: function () { return SpansGroupBy_1.SpansGroupBy; } })); +var SpansGroupByHistogram_1 = __nccwpck_require__(91729); +Object.defineProperty(exports, "SpansGroupByHistogram", ({ enumerable: true, get: function () { return SpansGroupByHistogram_1.SpansGroupByHistogram; } })); +var SpansListRequest_1 = __nccwpck_require__(6944); +Object.defineProperty(exports, "SpansListRequest", ({ enumerable: true, get: function () { return SpansListRequest_1.SpansListRequest; } })); +var SpansListRequestAttributes_1 = __nccwpck_require__(26633); +Object.defineProperty(exports, "SpansListRequestAttributes", ({ enumerable: true, get: function () { return SpansListRequestAttributes_1.SpansListRequestAttributes; } })); +var SpansListRequestData_1 = __nccwpck_require__(50984); +Object.defineProperty(exports, "SpansListRequestData", ({ enumerable: true, get: function () { return SpansListRequestData_1.SpansListRequestData; } })); +var SpansListRequestPage_1 = __nccwpck_require__(24687); +Object.defineProperty(exports, "SpansListRequestPage", ({ enumerable: true, get: function () { return SpansListRequestPage_1.SpansListRequestPage; } })); +var SpansListResponse_1 = __nccwpck_require__(4730); +Object.defineProperty(exports, "SpansListResponse", ({ enumerable: true, get: function () { return SpansListResponse_1.SpansListResponse; } })); +var SpansListResponseLinks_1 = __nccwpck_require__(70653); +Object.defineProperty(exports, "SpansListResponseLinks", ({ enumerable: true, get: function () { return SpansListResponseLinks_1.SpansListResponseLinks; } })); +var SpansListResponseMetadata_1 = __nccwpck_require__(76051); +Object.defineProperty(exports, "SpansListResponseMetadata", ({ enumerable: true, get: function () { return SpansListResponseMetadata_1.SpansListResponseMetadata; } })); +var SpansMetricCompute_1 = __nccwpck_require__(47256); +Object.defineProperty(exports, "SpansMetricCompute", ({ enumerable: true, get: function () { return SpansMetricCompute_1.SpansMetricCompute; } })); +var SpansMetricCreateAttributes_1 = __nccwpck_require__(50108); +Object.defineProperty(exports, "SpansMetricCreateAttributes", ({ enumerable: true, get: function () { return SpansMetricCreateAttributes_1.SpansMetricCreateAttributes; } })); +var SpansMetricCreateData_1 = __nccwpck_require__(96341); +Object.defineProperty(exports, "SpansMetricCreateData", ({ enumerable: true, get: function () { return SpansMetricCreateData_1.SpansMetricCreateData; } })); +var SpansMetricCreateRequest_1 = __nccwpck_require__(4820); +Object.defineProperty(exports, "SpansMetricCreateRequest", ({ enumerable: true, get: function () { return SpansMetricCreateRequest_1.SpansMetricCreateRequest; } })); +var SpansMetricFilter_1 = __nccwpck_require__(75351); +Object.defineProperty(exports, "SpansMetricFilter", ({ enumerable: true, get: function () { return SpansMetricFilter_1.SpansMetricFilter; } })); +var SpansMetricGroupBy_1 = __nccwpck_require__(65903); +Object.defineProperty(exports, "SpansMetricGroupBy", ({ enumerable: true, get: function () { return SpansMetricGroupBy_1.SpansMetricGroupBy; } })); +var SpansMetricResponse_1 = __nccwpck_require__(75242); +Object.defineProperty(exports, "SpansMetricResponse", ({ enumerable: true, get: function () { return SpansMetricResponse_1.SpansMetricResponse; } })); +var SpansMetricResponseAttributes_1 = __nccwpck_require__(21743); +Object.defineProperty(exports, "SpansMetricResponseAttributes", ({ enumerable: true, get: function () { return SpansMetricResponseAttributes_1.SpansMetricResponseAttributes; } })); +var SpansMetricResponseCompute_1 = __nccwpck_require__(48478); +Object.defineProperty(exports, "SpansMetricResponseCompute", ({ enumerable: true, get: function () { return SpansMetricResponseCompute_1.SpansMetricResponseCompute; } })); +var SpansMetricResponseData_1 = __nccwpck_require__(45290); +Object.defineProperty(exports, "SpansMetricResponseData", ({ enumerable: true, get: function () { return SpansMetricResponseData_1.SpansMetricResponseData; } })); +var SpansMetricResponseFilter_1 = __nccwpck_require__(10520); +Object.defineProperty(exports, "SpansMetricResponseFilter", ({ enumerable: true, get: function () { return SpansMetricResponseFilter_1.SpansMetricResponseFilter; } })); +var SpansMetricResponseGroupBy_1 = __nccwpck_require__(38326); +Object.defineProperty(exports, "SpansMetricResponseGroupBy", ({ enumerable: true, get: function () { return SpansMetricResponseGroupBy_1.SpansMetricResponseGroupBy; } })); +var SpansMetricsResponse_1 = __nccwpck_require__(75043); +Object.defineProperty(exports, "SpansMetricsResponse", ({ enumerable: true, get: function () { return SpansMetricsResponse_1.SpansMetricsResponse; } })); +var SpansMetricUpdateAttributes_1 = __nccwpck_require__(94533); +Object.defineProperty(exports, "SpansMetricUpdateAttributes", ({ enumerable: true, get: function () { return SpansMetricUpdateAttributes_1.SpansMetricUpdateAttributes; } })); +var SpansMetricUpdateCompute_1 = __nccwpck_require__(21887); +Object.defineProperty(exports, "SpansMetricUpdateCompute", ({ enumerable: true, get: function () { return SpansMetricUpdateCompute_1.SpansMetricUpdateCompute; } })); +var SpansMetricUpdateData_1 = __nccwpck_require__(69260); +Object.defineProperty(exports, "SpansMetricUpdateData", ({ enumerable: true, get: function () { return SpansMetricUpdateData_1.SpansMetricUpdateData; } })); +var SpansMetricUpdateRequest_1 = __nccwpck_require__(99311); +Object.defineProperty(exports, "SpansMetricUpdateRequest", ({ enumerable: true, get: function () { return SpansMetricUpdateRequest_1.SpansMetricUpdateRequest; } })); +var SpansQueryFilter_1 = __nccwpck_require__(29439); +Object.defineProperty(exports, "SpansQueryFilter", ({ enumerable: true, get: function () { return SpansQueryFilter_1.SpansQueryFilter; } })); +var SpansQueryOptions_1 = __nccwpck_require__(94927); +Object.defineProperty(exports, "SpansQueryOptions", ({ enumerable: true, get: function () { return SpansQueryOptions_1.SpansQueryOptions; } })); +var SpansResponseMetadataPage_1 = __nccwpck_require__(16136); +Object.defineProperty(exports, "SpansResponseMetadataPage", ({ enumerable: true, get: function () { return SpansResponseMetadataPage_1.SpansResponseMetadataPage; } })); +var SpansWarning_1 = __nccwpck_require__(45713); +Object.defineProperty(exports, "SpansWarning", ({ enumerable: true, get: function () { return SpansWarning_1.SpansWarning; } })); +var Team_1 = __nccwpck_require__(74567); +Object.defineProperty(exports, "Team", ({ enumerable: true, get: function () { return Team_1.Team; } })); +var TeamAttributes_1 = __nccwpck_require__(67442); +Object.defineProperty(exports, "TeamAttributes", ({ enumerable: true, get: function () { return TeamAttributes_1.TeamAttributes; } })); +var TeamCreate_1 = __nccwpck_require__(30971); +Object.defineProperty(exports, "TeamCreate", ({ enumerable: true, get: function () { return TeamCreate_1.TeamCreate; } })); +var TeamCreateAttributes_1 = __nccwpck_require__(82510); +Object.defineProperty(exports, "TeamCreateAttributes", ({ enumerable: true, get: function () { return TeamCreateAttributes_1.TeamCreateAttributes; } })); +var TeamCreateRelationships_1 = __nccwpck_require__(62768); +Object.defineProperty(exports, "TeamCreateRelationships", ({ enumerable: true, get: function () { return TeamCreateRelationships_1.TeamCreateRelationships; } })); +var TeamCreateRequest_1 = __nccwpck_require__(5862); +Object.defineProperty(exports, "TeamCreateRequest", ({ enumerable: true, get: function () { return TeamCreateRequest_1.TeamCreateRequest; } })); +var TeamLink_1 = __nccwpck_require__(1527); +Object.defineProperty(exports, "TeamLink", ({ enumerable: true, get: function () { return TeamLink_1.TeamLink; } })); +var TeamLinkAttributes_1 = __nccwpck_require__(64898); +Object.defineProperty(exports, "TeamLinkAttributes", ({ enumerable: true, get: function () { return TeamLinkAttributes_1.TeamLinkAttributes; } })); +var TeamLinkCreate_1 = __nccwpck_require__(37355); +Object.defineProperty(exports, "TeamLinkCreate", ({ enumerable: true, get: function () { return TeamLinkCreate_1.TeamLinkCreate; } })); +var TeamLinkCreateRequest_1 = __nccwpck_require__(79382); +Object.defineProperty(exports, "TeamLinkCreateRequest", ({ enumerable: true, get: function () { return TeamLinkCreateRequest_1.TeamLinkCreateRequest; } })); +var TeamLinkResponse_1 = __nccwpck_require__(15588); +Object.defineProperty(exports, "TeamLinkResponse", ({ enumerable: true, get: function () { return TeamLinkResponse_1.TeamLinkResponse; } })); +var TeamLinksResponse_1 = __nccwpck_require__(14597); +Object.defineProperty(exports, "TeamLinksResponse", ({ enumerable: true, get: function () { return TeamLinksResponse_1.TeamLinksResponse; } })); +var TeamPermissionSetting_1 = __nccwpck_require__(83078); +Object.defineProperty(exports, "TeamPermissionSetting", ({ enumerable: true, get: function () { return TeamPermissionSetting_1.TeamPermissionSetting; } })); +var TeamPermissionSettingAttributes_1 = __nccwpck_require__(5011); +Object.defineProperty(exports, "TeamPermissionSettingAttributes", ({ enumerable: true, get: function () { return TeamPermissionSettingAttributes_1.TeamPermissionSettingAttributes; } })); +var TeamPermissionSettingResponse_1 = __nccwpck_require__(80966); +Object.defineProperty(exports, "TeamPermissionSettingResponse", ({ enumerable: true, get: function () { return TeamPermissionSettingResponse_1.TeamPermissionSettingResponse; } })); +var TeamPermissionSettingsResponse_1 = __nccwpck_require__(21566); +Object.defineProperty(exports, "TeamPermissionSettingsResponse", ({ enumerable: true, get: function () { return TeamPermissionSettingsResponse_1.TeamPermissionSettingsResponse; } })); +var TeamPermissionSettingUpdate_1 = __nccwpck_require__(15611); +Object.defineProperty(exports, "TeamPermissionSettingUpdate", ({ enumerable: true, get: function () { return TeamPermissionSettingUpdate_1.TeamPermissionSettingUpdate; } })); +var TeamPermissionSettingUpdateAttributes_1 = __nccwpck_require__(67726); +Object.defineProperty(exports, "TeamPermissionSettingUpdateAttributes", ({ enumerable: true, get: function () { return TeamPermissionSettingUpdateAttributes_1.TeamPermissionSettingUpdateAttributes; } })); +var TeamPermissionSettingUpdateRequest_1 = __nccwpck_require__(51654); +Object.defineProperty(exports, "TeamPermissionSettingUpdateRequest", ({ enumerable: true, get: function () { return TeamPermissionSettingUpdateRequest_1.TeamPermissionSettingUpdateRequest; } })); +var TeamRelationships_1 = __nccwpck_require__(42172); +Object.defineProperty(exports, "TeamRelationships", ({ enumerable: true, get: function () { return TeamRelationships_1.TeamRelationships; } })); +var TeamRelationshipsLinks_1 = __nccwpck_require__(57559); +Object.defineProperty(exports, "TeamRelationshipsLinks", ({ enumerable: true, get: function () { return TeamRelationshipsLinks_1.TeamRelationshipsLinks; } })); +var TeamResponse_1 = __nccwpck_require__(77076); +Object.defineProperty(exports, "TeamResponse", ({ enumerable: true, get: function () { return TeamResponse_1.TeamResponse; } })); +var TeamsResponse_1 = __nccwpck_require__(33749); +Object.defineProperty(exports, "TeamsResponse", ({ enumerable: true, get: function () { return TeamsResponse_1.TeamsResponse; } })); +var TeamsResponseLinks_1 = __nccwpck_require__(63368); +Object.defineProperty(exports, "TeamsResponseLinks", ({ enumerable: true, get: function () { return TeamsResponseLinks_1.TeamsResponseLinks; } })); +var TeamsResponseMeta_1 = __nccwpck_require__(13508); +Object.defineProperty(exports, "TeamsResponseMeta", ({ enumerable: true, get: function () { return TeamsResponseMeta_1.TeamsResponseMeta; } })); +var TeamsResponseMetaPagination_1 = __nccwpck_require__(15520); +Object.defineProperty(exports, "TeamsResponseMetaPagination", ({ enumerable: true, get: function () { return TeamsResponseMetaPagination_1.TeamsResponseMetaPagination; } })); +var TeamUpdate_1 = __nccwpck_require__(89410); +Object.defineProperty(exports, "TeamUpdate", ({ enumerable: true, get: function () { return TeamUpdate_1.TeamUpdate; } })); +var TeamUpdateAttributes_1 = __nccwpck_require__(32951); +Object.defineProperty(exports, "TeamUpdateAttributes", ({ enumerable: true, get: function () { return TeamUpdateAttributes_1.TeamUpdateAttributes; } })); +var TeamUpdateRelationships_1 = __nccwpck_require__(87523); +Object.defineProperty(exports, "TeamUpdateRelationships", ({ enumerable: true, get: function () { return TeamUpdateRelationships_1.TeamUpdateRelationships; } })); +var TeamUpdateRequest_1 = __nccwpck_require__(80337); +Object.defineProperty(exports, "TeamUpdateRequest", ({ enumerable: true, get: function () { return TeamUpdateRequest_1.TeamUpdateRequest; } })); +var TimeseriesFormulaQueryRequest_1 = __nccwpck_require__(49411); +Object.defineProperty(exports, "TimeseriesFormulaQueryRequest", ({ enumerable: true, get: function () { return TimeseriesFormulaQueryRequest_1.TimeseriesFormulaQueryRequest; } })); +var TimeseriesFormulaQueryResponse_1 = __nccwpck_require__(21719); +Object.defineProperty(exports, "TimeseriesFormulaQueryResponse", ({ enumerable: true, get: function () { return TimeseriesFormulaQueryResponse_1.TimeseriesFormulaQueryResponse; } })); +var TimeseriesFormulaRequest_1 = __nccwpck_require__(31757); +Object.defineProperty(exports, "TimeseriesFormulaRequest", ({ enumerable: true, get: function () { return TimeseriesFormulaRequest_1.TimeseriesFormulaRequest; } })); +var TimeseriesFormulaRequestAttributes_1 = __nccwpck_require__(18596); +Object.defineProperty(exports, "TimeseriesFormulaRequestAttributes", ({ enumerable: true, get: function () { return TimeseriesFormulaRequestAttributes_1.TimeseriesFormulaRequestAttributes; } })); +var TimeseriesResponse_1 = __nccwpck_require__(38817); +Object.defineProperty(exports, "TimeseriesResponse", ({ enumerable: true, get: function () { return TimeseriesResponse_1.TimeseriesResponse; } })); +var TimeseriesResponseAttributes_1 = __nccwpck_require__(7648); +Object.defineProperty(exports, "TimeseriesResponseAttributes", ({ enumerable: true, get: function () { return TimeseriesResponseAttributes_1.TimeseriesResponseAttributes; } })); +var TimeseriesResponseSeries_1 = __nccwpck_require__(10636); +Object.defineProperty(exports, "TimeseriesResponseSeries", ({ enumerable: true, get: function () { return TimeseriesResponseSeries_1.TimeseriesResponseSeries; } })); +var Unit_1 = __nccwpck_require__(38792); +Object.defineProperty(exports, "Unit", ({ enumerable: true, get: function () { return Unit_1.Unit; } })); +var UpdateAppRequest_1 = __nccwpck_require__(27691); +Object.defineProperty(exports, "UpdateAppRequest", ({ enumerable: true, get: function () { return UpdateAppRequest_1.UpdateAppRequest; } })); +var UpdateAppRequestData_1 = __nccwpck_require__(61971); +Object.defineProperty(exports, "UpdateAppRequestData", ({ enumerable: true, get: function () { return UpdateAppRequestData_1.UpdateAppRequestData; } })); +var UpdateAppRequestDataAttributes_1 = __nccwpck_require__(56150); +Object.defineProperty(exports, "UpdateAppRequestDataAttributes", ({ enumerable: true, get: function () { return UpdateAppRequestDataAttributes_1.UpdateAppRequestDataAttributes; } })); +var UpdateAppResponse_1 = __nccwpck_require__(88911); +Object.defineProperty(exports, "UpdateAppResponse", ({ enumerable: true, get: function () { return UpdateAppResponse_1.UpdateAppResponse; } })); +var UpdateAppResponseData_1 = __nccwpck_require__(91223); +Object.defineProperty(exports, "UpdateAppResponseData", ({ enumerable: true, get: function () { return UpdateAppResponseData_1.UpdateAppResponseData; } })); +var UpdateAppResponseDataAttributes_1 = __nccwpck_require__(11906); +Object.defineProperty(exports, "UpdateAppResponseDataAttributes", ({ enumerable: true, get: function () { return UpdateAppResponseDataAttributes_1.UpdateAppResponseDataAttributes; } })); +var UpdateAppResponseRelationship_1 = __nccwpck_require__(92801); +Object.defineProperty(exports, "UpdateAppResponseRelationship", ({ enumerable: true, get: function () { return UpdateAppResponseRelationship_1.UpdateAppResponseRelationship; } })); +var UpdateOpenAPIResponse_1 = __nccwpck_require__(10180); +Object.defineProperty(exports, "UpdateOpenAPIResponse", ({ enumerable: true, get: function () { return UpdateOpenAPIResponse_1.UpdateOpenAPIResponse; } })); +var UpdateOpenAPIResponseAttributes_1 = __nccwpck_require__(99813); +Object.defineProperty(exports, "UpdateOpenAPIResponseAttributes", ({ enumerable: true, get: function () { return UpdateOpenAPIResponseAttributes_1.UpdateOpenAPIResponseAttributes; } })); +var UpdateOpenAPIResponseData_1 = __nccwpck_require__(69420); +Object.defineProperty(exports, "UpdateOpenAPIResponseData", ({ enumerable: true, get: function () { return UpdateOpenAPIResponseData_1.UpdateOpenAPIResponseData; } })); +var UpdateRuleRequest_1 = __nccwpck_require__(16776); +Object.defineProperty(exports, "UpdateRuleRequest", ({ enumerable: true, get: function () { return UpdateRuleRequest_1.UpdateRuleRequest; } })); +var UpdateRuleRequestData_1 = __nccwpck_require__(78640); +Object.defineProperty(exports, "UpdateRuleRequestData", ({ enumerable: true, get: function () { return UpdateRuleRequestData_1.UpdateRuleRequestData; } })); +var UpdateRuleResponse_1 = __nccwpck_require__(65330); +Object.defineProperty(exports, "UpdateRuleResponse", ({ enumerable: true, get: function () { return UpdateRuleResponse_1.UpdateRuleResponse; } })); +var UpdateRuleResponseData_1 = __nccwpck_require__(66290); +Object.defineProperty(exports, "UpdateRuleResponseData", ({ enumerable: true, get: function () { return UpdateRuleResponseData_1.UpdateRuleResponseData; } })); +var UpsertCatalogEntityResponse_1 = __nccwpck_require__(96534); +Object.defineProperty(exports, "UpsertCatalogEntityResponse", ({ enumerable: true, get: function () { return UpsertCatalogEntityResponse_1.UpsertCatalogEntityResponse; } })); +var UsageApplicationSecurityMonitoringResponse_1 = __nccwpck_require__(71114); +Object.defineProperty(exports, "UsageApplicationSecurityMonitoringResponse", ({ enumerable: true, get: function () { return UsageApplicationSecurityMonitoringResponse_1.UsageApplicationSecurityMonitoringResponse; } })); +var UsageAttributesObject_1 = __nccwpck_require__(30381); +Object.defineProperty(exports, "UsageAttributesObject", ({ enumerable: true, get: function () { return UsageAttributesObject_1.UsageAttributesObject; } })); +var UsageDataObject_1 = __nccwpck_require__(98456); +Object.defineProperty(exports, "UsageDataObject", ({ enumerable: true, get: function () { return UsageDataObject_1.UsageDataObject; } })); +var UsageLambdaTracedInvocationsResponse_1 = __nccwpck_require__(41883); +Object.defineProperty(exports, "UsageLambdaTracedInvocationsResponse", ({ enumerable: true, get: function () { return UsageLambdaTracedInvocationsResponse_1.UsageLambdaTracedInvocationsResponse; } })); +var UsageObservabilityPipelinesResponse_1 = __nccwpck_require__(62952); +Object.defineProperty(exports, "UsageObservabilityPipelinesResponse", ({ enumerable: true, get: function () { return UsageObservabilityPipelinesResponse_1.UsageObservabilityPipelinesResponse; } })); +var UsageTimeSeriesObject_1 = __nccwpck_require__(8772); +Object.defineProperty(exports, "UsageTimeSeriesObject", ({ enumerable: true, get: function () { return UsageTimeSeriesObject_1.UsageTimeSeriesObject; } })); +var User_1 = __nccwpck_require__(37849); +Object.defineProperty(exports, "User", ({ enumerable: true, get: function () { return User_1.User; } })); +var UserAttributes_1 = __nccwpck_require__(91432); +Object.defineProperty(exports, "UserAttributes", ({ enumerable: true, get: function () { return UserAttributes_1.UserAttributes; } })); +var UserCreateAttributes_1 = __nccwpck_require__(81052); +Object.defineProperty(exports, "UserCreateAttributes", ({ enumerable: true, get: function () { return UserCreateAttributes_1.UserCreateAttributes; } })); +var UserCreateData_1 = __nccwpck_require__(59509); +Object.defineProperty(exports, "UserCreateData", ({ enumerable: true, get: function () { return UserCreateData_1.UserCreateData; } })); +var UserCreateRequest_1 = __nccwpck_require__(86516); +Object.defineProperty(exports, "UserCreateRequest", ({ enumerable: true, get: function () { return UserCreateRequest_1.UserCreateRequest; } })); +var UserInvitationData_1 = __nccwpck_require__(5902); +Object.defineProperty(exports, "UserInvitationData", ({ enumerable: true, get: function () { return UserInvitationData_1.UserInvitationData; } })); +var UserInvitationDataAttributes_1 = __nccwpck_require__(1771); +Object.defineProperty(exports, "UserInvitationDataAttributes", ({ enumerable: true, get: function () { return UserInvitationDataAttributes_1.UserInvitationDataAttributes; } })); +var UserInvitationRelationships_1 = __nccwpck_require__(8735); +Object.defineProperty(exports, "UserInvitationRelationships", ({ enumerable: true, get: function () { return UserInvitationRelationships_1.UserInvitationRelationships; } })); +var UserInvitationResponse_1 = __nccwpck_require__(69201); +Object.defineProperty(exports, "UserInvitationResponse", ({ enumerable: true, get: function () { return UserInvitationResponse_1.UserInvitationResponse; } })); +var UserInvitationResponseData_1 = __nccwpck_require__(49217); +Object.defineProperty(exports, "UserInvitationResponseData", ({ enumerable: true, get: function () { return UserInvitationResponseData_1.UserInvitationResponseData; } })); +var UserInvitationsRequest_1 = __nccwpck_require__(5876); +Object.defineProperty(exports, "UserInvitationsRequest", ({ enumerable: true, get: function () { return UserInvitationsRequest_1.UserInvitationsRequest; } })); +var UserInvitationsResponse_1 = __nccwpck_require__(6310); +Object.defineProperty(exports, "UserInvitationsResponse", ({ enumerable: true, get: function () { return UserInvitationsResponse_1.UserInvitationsResponse; } })); +var UserRelationshipData_1 = __nccwpck_require__(29299); +Object.defineProperty(exports, "UserRelationshipData", ({ enumerable: true, get: function () { return UserRelationshipData_1.UserRelationshipData; } })); +var UserRelationships_1 = __nccwpck_require__(6622); +Object.defineProperty(exports, "UserRelationships", ({ enumerable: true, get: function () { return UserRelationships_1.UserRelationships; } })); +var UserResponse_1 = __nccwpck_require__(40234); +Object.defineProperty(exports, "UserResponse", ({ enumerable: true, get: function () { return UserResponse_1.UserResponse; } })); +var UserResponseRelationships_1 = __nccwpck_require__(5755); +Object.defineProperty(exports, "UserResponseRelationships", ({ enumerable: true, get: function () { return UserResponseRelationships_1.UserResponseRelationships; } })); +var UsersRelationship_1 = __nccwpck_require__(57630); +Object.defineProperty(exports, "UsersRelationship", ({ enumerable: true, get: function () { return UsersRelationship_1.UsersRelationship; } })); +var UsersResponse_1 = __nccwpck_require__(38531); +Object.defineProperty(exports, "UsersResponse", ({ enumerable: true, get: function () { return UsersResponse_1.UsersResponse; } })); +var UserTeam_1 = __nccwpck_require__(26092); +Object.defineProperty(exports, "UserTeam", ({ enumerable: true, get: function () { return UserTeam_1.UserTeam; } })); +var UserTeamAttributes_1 = __nccwpck_require__(58077); +Object.defineProperty(exports, "UserTeamAttributes", ({ enumerable: true, get: function () { return UserTeamAttributes_1.UserTeamAttributes; } })); +var UserTeamCreate_1 = __nccwpck_require__(81884); +Object.defineProperty(exports, "UserTeamCreate", ({ enumerable: true, get: function () { return UserTeamCreate_1.UserTeamCreate; } })); +var UserTeamPermission_1 = __nccwpck_require__(65391); +Object.defineProperty(exports, "UserTeamPermission", ({ enumerable: true, get: function () { return UserTeamPermission_1.UserTeamPermission; } })); +var UserTeamPermissionAttributes_1 = __nccwpck_require__(74922); +Object.defineProperty(exports, "UserTeamPermissionAttributes", ({ enumerable: true, get: function () { return UserTeamPermissionAttributes_1.UserTeamPermissionAttributes; } })); +var UserTeamRelationships_1 = __nccwpck_require__(28293); +Object.defineProperty(exports, "UserTeamRelationships", ({ enumerable: true, get: function () { return UserTeamRelationships_1.UserTeamRelationships; } })); +var UserTeamRequest_1 = __nccwpck_require__(21703); +Object.defineProperty(exports, "UserTeamRequest", ({ enumerable: true, get: function () { return UserTeamRequest_1.UserTeamRequest; } })); +var UserTeamResponse_1 = __nccwpck_require__(115); +Object.defineProperty(exports, "UserTeamResponse", ({ enumerable: true, get: function () { return UserTeamResponse_1.UserTeamResponse; } })); +var UserTeamsResponse_1 = __nccwpck_require__(67504); +Object.defineProperty(exports, "UserTeamsResponse", ({ enumerable: true, get: function () { return UserTeamsResponse_1.UserTeamsResponse; } })); +var UserTeamUpdate_1 = __nccwpck_require__(50809); +Object.defineProperty(exports, "UserTeamUpdate", ({ enumerable: true, get: function () { return UserTeamUpdate_1.UserTeamUpdate; } })); +var UserTeamUpdateRequest_1 = __nccwpck_require__(75600); +Object.defineProperty(exports, "UserTeamUpdateRequest", ({ enumerable: true, get: function () { return UserTeamUpdateRequest_1.UserTeamUpdateRequest; } })); +var UserUpdateAttributes_1 = __nccwpck_require__(86181); +Object.defineProperty(exports, "UserUpdateAttributes", ({ enumerable: true, get: function () { return UserUpdateAttributes_1.UserUpdateAttributes; } })); +var UserUpdateData_1 = __nccwpck_require__(3820); +Object.defineProperty(exports, "UserUpdateData", ({ enumerable: true, get: function () { return UserUpdateData_1.UserUpdateData; } })); +var UserUpdateRequest_1 = __nccwpck_require__(60879); +Object.defineProperty(exports, "UserUpdateRequest", ({ enumerable: true, get: function () { return UserUpdateRequest_1.UserUpdateRequest; } })); +var WorkflowInstanceCreateMeta_1 = __nccwpck_require__(27693); +Object.defineProperty(exports, "WorkflowInstanceCreateMeta", ({ enumerable: true, get: function () { return WorkflowInstanceCreateMeta_1.WorkflowInstanceCreateMeta; } })); +var WorkflowInstanceCreateRequest_1 = __nccwpck_require__(10023); +Object.defineProperty(exports, "WorkflowInstanceCreateRequest", ({ enumerable: true, get: function () { return WorkflowInstanceCreateRequest_1.WorkflowInstanceCreateRequest; } })); +var WorkflowInstanceCreateResponse_1 = __nccwpck_require__(63027); +Object.defineProperty(exports, "WorkflowInstanceCreateResponse", ({ enumerable: true, get: function () { return WorkflowInstanceCreateResponse_1.WorkflowInstanceCreateResponse; } })); +var WorkflowInstanceCreateResponseData_1 = __nccwpck_require__(49147); +Object.defineProperty(exports, "WorkflowInstanceCreateResponseData", ({ enumerable: true, get: function () { return WorkflowInstanceCreateResponseData_1.WorkflowInstanceCreateResponseData; } })); +var WorkflowInstanceListItem_1 = __nccwpck_require__(39447); +Object.defineProperty(exports, "WorkflowInstanceListItem", ({ enumerable: true, get: function () { return WorkflowInstanceListItem_1.WorkflowInstanceListItem; } })); +var WorkflowListInstancesResponse_1 = __nccwpck_require__(75720); +Object.defineProperty(exports, "WorkflowListInstancesResponse", ({ enumerable: true, get: function () { return WorkflowListInstancesResponse_1.WorkflowListInstancesResponse; } })); +var WorkflowListInstancesResponseMeta_1 = __nccwpck_require__(15969); +Object.defineProperty(exports, "WorkflowListInstancesResponseMeta", ({ enumerable: true, get: function () { return WorkflowListInstancesResponseMeta_1.WorkflowListInstancesResponseMeta; } })); +var WorkflowListInstancesResponseMetaPage_1 = __nccwpck_require__(34110); +Object.defineProperty(exports, "WorkflowListInstancesResponseMetaPage", ({ enumerable: true, get: function () { return WorkflowListInstancesResponseMetaPage_1.WorkflowListInstancesResponseMetaPage; } })); +var WorklflowCancelInstanceResponse_1 = __nccwpck_require__(99689); +Object.defineProperty(exports, "WorklflowCancelInstanceResponse", ({ enumerable: true, get: function () { return WorklflowCancelInstanceResponse_1.WorklflowCancelInstanceResponse; } })); +var WorklflowCancelInstanceResponseData_1 = __nccwpck_require__(75193); +Object.defineProperty(exports, "WorklflowCancelInstanceResponseData", ({ enumerable: true, get: function () { return WorklflowCancelInstanceResponseData_1.WorklflowCancelInstanceResponseData; } })); +var WorklflowGetInstanceResponse_1 = __nccwpck_require__(54867); +Object.defineProperty(exports, "WorklflowGetInstanceResponse", ({ enumerable: true, get: function () { return WorklflowGetInstanceResponse_1.WorklflowGetInstanceResponse; } })); +var WorklflowGetInstanceResponseData_1 = __nccwpck_require__(5595); +Object.defineProperty(exports, "WorklflowGetInstanceResponseData", ({ enumerable: true, get: function () { return WorklflowGetInstanceResponseData_1.WorklflowGetInstanceResponseData; } })); +var WorklflowGetInstanceResponseDataAttributes_1 = __nccwpck_require__(31150); +Object.defineProperty(exports, "WorklflowGetInstanceResponseDataAttributes", ({ enumerable: true, get: function () { return WorklflowGetInstanceResponseDataAttributes_1.WorklflowGetInstanceResponseDataAttributes; } })); +var XRayServicesIncludeAll_1 = __nccwpck_require__(65349); +Object.defineProperty(exports, "XRayServicesIncludeAll", ({ enumerable: true, get: function () { return XRayServicesIncludeAll_1.XRayServicesIncludeAll; } })); +var XRayServicesIncludeOnly_1 = __nccwpck_require__(37842); +Object.defineProperty(exports, "XRayServicesIncludeOnly", ({ enumerable: true, get: function () { return XRayServicesIncludeOnly_1.XRayServicesIncludeOnly; } })); +var ObjectSerializer_1 = __nccwpck_require__(89837); +Object.defineProperty(exports, "ObjectSerializer", ({ enumerable: true, get: function () { return ObjectSerializer_1.ObjectSerializer; } })); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 94255: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.APIErrorResponse = void 0; +/** + * API error response. + */ +class APIErrorResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return APIErrorResponse.attributeTypeMap; + } +} +exports.APIErrorResponse = APIErrorResponse; +/** + * @ignore + */ +APIErrorResponse.attributeTypeMap = { + errors: { + baseName: "errors", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=APIErrorResponse.js.map + +/***/ }), + +/***/ 92304: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.APIKeyCreateAttributes = void 0; +/** + * Attributes used to create an API Key. + */ +class APIKeyCreateAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return APIKeyCreateAttributes.attributeTypeMap; + } +} +exports.APIKeyCreateAttributes = APIKeyCreateAttributes; +/** + * @ignore + */ +APIKeyCreateAttributes.attributeTypeMap = { + category: { + baseName: "category", + type: "string", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + remoteConfigReadEnabled: { + baseName: "remote_config_read_enabled", + type: "boolean", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=APIKeyCreateAttributes.js.map + +/***/ }), + +/***/ 1217: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.APIKeyCreateData = void 0; +/** + * Object used to create an API key. + */ +class APIKeyCreateData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return APIKeyCreateData.attributeTypeMap; + } +} +exports.APIKeyCreateData = APIKeyCreateData; +/** + * @ignore + */ +APIKeyCreateData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "APIKeyCreateAttributes", + required: true, + }, + type: { + baseName: "type", + type: "APIKeysType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=APIKeyCreateData.js.map + +/***/ }), + +/***/ 10040: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.APIKeyCreateRequest = void 0; +/** + * Request used to create an API key. + */ +class APIKeyCreateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return APIKeyCreateRequest.attributeTypeMap; + } +} +exports.APIKeyCreateRequest = APIKeyCreateRequest; +/** + * @ignore + */ +APIKeyCreateRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "APIKeyCreateData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=APIKeyCreateRequest.js.map + +/***/ }), + +/***/ 21458: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.APIKeyRelationships = void 0; +/** + * Resources related to the API key. + */ +class APIKeyRelationships { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return APIKeyRelationships.attributeTypeMap; + } +} +exports.APIKeyRelationships = APIKeyRelationships; +/** + * @ignore + */ +APIKeyRelationships.attributeTypeMap = { + createdBy: { + baseName: "created_by", + type: "RelationshipToUser", + }, + modifiedBy: { + baseName: "modified_by", + type: "NullableRelationshipToUser", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=APIKeyRelationships.js.map + +/***/ }), + +/***/ 28046: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.APIKeyResponse = void 0; +/** + * Response for retrieving an API key. + */ +class APIKeyResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return APIKeyResponse.attributeTypeMap; + } +} +exports.APIKeyResponse = APIKeyResponse; +/** + * @ignore + */ +APIKeyResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "FullAPIKey", + }, + included: { + baseName: "included", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=APIKeyResponse.js.map + +/***/ }), + +/***/ 95697: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.APIKeyUpdateAttributes = void 0; +/** + * Attributes used to update an API Key. + */ +class APIKeyUpdateAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return APIKeyUpdateAttributes.attributeTypeMap; + } +} +exports.APIKeyUpdateAttributes = APIKeyUpdateAttributes; +/** + * @ignore + */ +APIKeyUpdateAttributes.attributeTypeMap = { + category: { + baseName: "category", + type: "string", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + remoteConfigReadEnabled: { + baseName: "remote_config_read_enabled", + type: "boolean", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=APIKeyUpdateAttributes.js.map + +/***/ }), + +/***/ 76256: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.APIKeyUpdateData = void 0; +/** + * Object used to update an API key. + */ +class APIKeyUpdateData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return APIKeyUpdateData.attributeTypeMap; + } +} +exports.APIKeyUpdateData = APIKeyUpdateData; +/** + * @ignore + */ +APIKeyUpdateData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "APIKeyUpdateAttributes", + required: true, + }, + id: { + baseName: "id", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "APIKeysType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=APIKeyUpdateData.js.map + +/***/ }), + +/***/ 66059: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.APIKeyUpdateRequest = void 0; +/** + * Request used to update an API key. + */ +class APIKeyUpdateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return APIKeyUpdateRequest.attributeTypeMap; + } +} +exports.APIKeyUpdateRequest = APIKeyUpdateRequest; +/** + * @ignore + */ +APIKeyUpdateRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "APIKeyUpdateData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=APIKeyUpdateRequest.js.map + +/***/ }), + +/***/ 25167: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.APIKeysResponse = void 0; +/** + * Response for a list of API keys. + */ +class APIKeysResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return APIKeysResponse.attributeTypeMap; + } +} +exports.APIKeysResponse = APIKeysResponse; +/** + * @ignore + */ +APIKeysResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "Array", + }, + included: { + baseName: "included", + type: "Array", + }, + meta: { + baseName: "meta", + type: "APIKeysResponseMeta", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=APIKeysResponse.js.map + +/***/ }), + +/***/ 34958: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.APIKeysResponseMeta = void 0; +/** + * Additional information related to api keys response. + */ +class APIKeysResponseMeta { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return APIKeysResponseMeta.attributeTypeMap; + } +} +exports.APIKeysResponseMeta = APIKeysResponseMeta; +/** + * @ignore + */ +APIKeysResponseMeta.attributeTypeMap = { + maxAllowed: { + baseName: "max_allowed", + type: "number", + format: "int64", + }, + page: { + baseName: "page", + type: "APIKeysResponseMetaPage", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=APIKeysResponseMeta.js.map + +/***/ }), + +/***/ 94873: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.APIKeysResponseMetaPage = void 0; +/** + * Additional information related to the API keys response. + */ +class APIKeysResponseMetaPage { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return APIKeysResponseMetaPage.attributeTypeMap; + } +} +exports.APIKeysResponseMetaPage = APIKeysResponseMetaPage; +/** + * @ignore + */ +APIKeysResponseMetaPage.attributeTypeMap = { + totalFilteredCount: { + baseName: "total_filtered_count", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=APIKeysResponseMetaPage.js.map + +/***/ }), + +/***/ 44733: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSAccountCreateRequest = void 0; +/** + * AWS Account Create Request body. + */ +class AWSAccountCreateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSAccountCreateRequest.attributeTypeMap; + } +} +exports.AWSAccountCreateRequest = AWSAccountCreateRequest; +/** + * @ignore + */ +AWSAccountCreateRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "AWSAccountCreateRequestData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSAccountCreateRequest.js.map + +/***/ }), + +/***/ 5524: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSAccountCreateRequestAttributes = void 0; +/** + * The AWS Account Integration Config to be created. + */ +class AWSAccountCreateRequestAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSAccountCreateRequestAttributes.attributeTypeMap; + } +} +exports.AWSAccountCreateRequestAttributes = AWSAccountCreateRequestAttributes; +/** + * @ignore + */ +AWSAccountCreateRequestAttributes.attributeTypeMap = { + accountTags: { + baseName: "account_tags", + type: "Array", + }, + authConfig: { + baseName: "auth_config", + type: "AWSAuthConfig", + required: true, + }, + awsAccountId: { + baseName: "aws_account_id", + type: "string", + required: true, + }, + awsPartition: { + baseName: "aws_partition", + type: "AWSAccountPartition", + required: true, + }, + awsRegions: { + baseName: "aws_regions", + type: "AWSRegions", + }, + logsConfig: { + baseName: "logs_config", + type: "AWSLogsConfig", + }, + metricsConfig: { + baseName: "metrics_config", + type: "AWSMetricsConfig", + }, + resourcesConfig: { + baseName: "resources_config", + type: "AWSResourcesConfig", + }, + tracesConfig: { + baseName: "traces_config", + type: "AWSTracesConfig", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSAccountCreateRequestAttributes.js.map + +/***/ }), + +/***/ 28637: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSAccountCreateRequestData = void 0; +/** + * AWS Account Create Request data. + */ +class AWSAccountCreateRequestData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSAccountCreateRequestData.attributeTypeMap; + } +} +exports.AWSAccountCreateRequestData = AWSAccountCreateRequestData; +/** + * @ignore + */ +AWSAccountCreateRequestData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "AWSAccountCreateRequestAttributes", + required: true, + }, + type: { + baseName: "type", + type: "AWSAccountType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSAccountCreateRequestData.js.map + +/***/ }), + +/***/ 65305: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSAccountResponse = void 0; +/** + * AWS Account response body. + */ +class AWSAccountResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSAccountResponse.attributeTypeMap; + } +} +exports.AWSAccountResponse = AWSAccountResponse; +/** + * @ignore + */ +AWSAccountResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "AWSAccountResponseData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSAccountResponse.js.map + +/***/ }), + +/***/ 77320: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSAccountResponseAttributes = void 0; +/** + * AWS Account response attributes. + */ +class AWSAccountResponseAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSAccountResponseAttributes.attributeTypeMap; + } +} +exports.AWSAccountResponseAttributes = AWSAccountResponseAttributes; +/** + * @ignore + */ +AWSAccountResponseAttributes.attributeTypeMap = { + accountTags: { + baseName: "account_tags", + type: "Array", + }, + authConfig: { + baseName: "auth_config", + type: "AWSAuthConfig", + }, + awsAccountId: { + baseName: "aws_account_id", + type: "string", + required: true, + }, + awsPartition: { + baseName: "aws_partition", + type: "AWSAccountPartition", + }, + awsRegions: { + baseName: "aws_regions", + type: "AWSRegions", + }, + createdAt: { + baseName: "created_at", + type: "Date", + format: "date-time", + }, + logsConfig: { + baseName: "logs_config", + type: "AWSLogsConfig", + }, + metricsConfig: { + baseName: "metrics_config", + type: "AWSMetricsConfig", + }, + modifiedAt: { + baseName: "modified_at", + type: "Date", + format: "date-time", + }, + resourcesConfig: { + baseName: "resources_config", + type: "AWSResourcesConfig", + }, + tracesConfig: { + baseName: "traces_config", + type: "AWSTracesConfig", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSAccountResponseAttributes.js.map + +/***/ }), + +/***/ 44873: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSAccountResponseData = void 0; +/** + * AWS Account response data. + */ +class AWSAccountResponseData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSAccountResponseData.attributeTypeMap; + } +} +exports.AWSAccountResponseData = AWSAccountResponseData; +/** + * @ignore + */ +AWSAccountResponseData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "AWSAccountResponseAttributes", + }, + id: { + baseName: "id", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "AWSAccountType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSAccountResponseData.js.map + +/***/ }), + +/***/ 46790: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSAccountUpdateRequest = void 0; +/** + * AWS Account Update Request body. + */ +class AWSAccountUpdateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSAccountUpdateRequest.attributeTypeMap; + } +} +exports.AWSAccountUpdateRequest = AWSAccountUpdateRequest; +/** + * @ignore + */ +AWSAccountUpdateRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "AWSAccountUpdateRequestData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSAccountUpdateRequest.js.map + +/***/ }), + +/***/ 50323: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSAccountUpdateRequestAttributes = void 0; +/** + * The AWS Account Integration Config to be updated. + */ +class AWSAccountUpdateRequestAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSAccountUpdateRequestAttributes.attributeTypeMap; + } +} +exports.AWSAccountUpdateRequestAttributes = AWSAccountUpdateRequestAttributes; +/** + * @ignore + */ +AWSAccountUpdateRequestAttributes.attributeTypeMap = { + accountTags: { + baseName: "account_tags", + type: "Array", + }, + authConfig: { + baseName: "auth_config", + type: "AWSAuthConfig", + }, + awsAccountId: { + baseName: "aws_account_id", + type: "string", + required: true, + }, + awsPartition: { + baseName: "aws_partition", + type: "AWSAccountPartition", + }, + awsRegions: { + baseName: "aws_regions", + type: "AWSRegions", + }, + logsConfig: { + baseName: "logs_config", + type: "AWSLogsConfig", + }, + metricsConfig: { + baseName: "metrics_config", + type: "AWSMetricsConfig", + }, + resourcesConfig: { + baseName: "resources_config", + type: "AWSResourcesConfig", + }, + tracesConfig: { + baseName: "traces_config", + type: "AWSTracesConfig", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSAccountUpdateRequestAttributes.js.map + +/***/ }), + +/***/ 50710: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSAccountUpdateRequestData = void 0; +/** + * AWS Account Update Request data. + */ +class AWSAccountUpdateRequestData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSAccountUpdateRequestData.attributeTypeMap; + } +} +exports.AWSAccountUpdateRequestData = AWSAccountUpdateRequestData; +/** + * @ignore + */ +AWSAccountUpdateRequestData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "AWSAccountUpdateRequestAttributes", + required: true, + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "AWSAccountType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSAccountUpdateRequestData.js.map + +/***/ }), + +/***/ 48510: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSAccountsResponse = void 0; +/** + * AWS Accounts response body. + */ +class AWSAccountsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSAccountsResponse.attributeTypeMap; + } +} +exports.AWSAccountsResponse = AWSAccountsResponse; +/** + * @ignore + */ +AWSAccountsResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSAccountsResponse.js.map + +/***/ }), + +/***/ 87765: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSAuthConfigKeys = void 0; +/** + * AWS Authentication config to integrate your account using an access key pair. + */ +class AWSAuthConfigKeys { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSAuthConfigKeys.attributeTypeMap; + } +} +exports.AWSAuthConfigKeys = AWSAuthConfigKeys; +/** + * @ignore + */ +AWSAuthConfigKeys.attributeTypeMap = { + accessKeyId: { + baseName: "access_key_id", + type: "string", + required: true, + }, + secretAccessKey: { + baseName: "secret_access_key", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSAuthConfigKeys.js.map + +/***/ }), + +/***/ 20609: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSAuthConfigRole = void 0; +/** + * AWS Authentication config to integrate your account using an IAM role. + */ +class AWSAuthConfigRole { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSAuthConfigRole.attributeTypeMap; + } +} +exports.AWSAuthConfigRole = AWSAuthConfigRole; +/** + * @ignore + */ +AWSAuthConfigRole.attributeTypeMap = { + externalId: { + baseName: "external_id", + type: "string", + }, + roleName: { + baseName: "role_name", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSAuthConfigRole.js.map + +/***/ }), + +/***/ 44208: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSLambdaForwarderConfig = void 0; +/** + * Log Autosubscription configuration for Datadog Forwarder Lambda functions. Automatically set up triggers for existing + * and new logs for some services, ensuring no logs from new resources are missed and saving time spent on manual configuration. + */ +class AWSLambdaForwarderConfig { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSLambdaForwarderConfig.attributeTypeMap; + } +} +exports.AWSLambdaForwarderConfig = AWSLambdaForwarderConfig; +/** + * @ignore + */ +AWSLambdaForwarderConfig.attributeTypeMap = { + lambdas: { + baseName: "lambdas", + type: "Array", + }, + sources: { + baseName: "sources", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSLambdaForwarderConfig.js.map + +/***/ }), + +/***/ 31376: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSLogsConfig = void 0; +/** + * AWS Logs Collection config. + */ +class AWSLogsConfig { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSLogsConfig.attributeTypeMap; + } +} +exports.AWSLogsConfig = AWSLogsConfig; +/** + * @ignore + */ +AWSLogsConfig.attributeTypeMap = { + lambdaForwarder: { + baseName: "lambda_forwarder", + type: "AWSLambdaForwarderConfig", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSLogsConfig.js.map + +/***/ }), + +/***/ 49157: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSLogsServicesResponse = void 0; +/** + * AWS Logs Services response body + */ +class AWSLogsServicesResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSLogsServicesResponse.attributeTypeMap; + } +} +exports.AWSLogsServicesResponse = AWSLogsServicesResponse; +/** + * @ignore + */ +AWSLogsServicesResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "AWSLogsServicesResponseData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSLogsServicesResponse.js.map + +/***/ }), + +/***/ 91276: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSLogsServicesResponseAttributes = void 0; +/** + * AWS Logs Services response body + */ +class AWSLogsServicesResponseAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSLogsServicesResponseAttributes.attributeTypeMap; + } +} +exports.AWSLogsServicesResponseAttributes = AWSLogsServicesResponseAttributes; +/** + * @ignore + */ +AWSLogsServicesResponseAttributes.attributeTypeMap = { + logsServices: { + baseName: "logs_services", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSLogsServicesResponseAttributes.js.map + +/***/ }), + +/***/ 61989: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSLogsServicesResponseData = void 0; +/** + * AWS Logs Services response body + */ +class AWSLogsServicesResponseData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSLogsServicesResponseData.attributeTypeMap; + } +} +exports.AWSLogsServicesResponseData = AWSLogsServicesResponseData; +/** + * @ignore + */ +AWSLogsServicesResponseData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "AWSLogsServicesResponseAttributes", + }, + id: { + baseName: "id", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "AWSLogsServicesResponseDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSLogsServicesResponseData.js.map + +/***/ }), + +/***/ 2430: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSMetricsConfig = void 0; +/** + * AWS Metrics Collection config. + */ +class AWSMetricsConfig { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSMetricsConfig.attributeTypeMap; + } +} +exports.AWSMetricsConfig = AWSMetricsConfig; +/** + * @ignore + */ +AWSMetricsConfig.attributeTypeMap = { + automuteEnabled: { + baseName: "automute_enabled", + type: "boolean", + }, + collectCloudwatchAlarms: { + baseName: "collect_cloudwatch_alarms", + type: "boolean", + }, + collectCustomMetrics: { + baseName: "collect_custom_metrics", + type: "boolean", + }, + enabled: { + baseName: "enabled", + type: "boolean", + }, + namespaceFilters: { + baseName: "namespace_filters", + type: "AWSNamespaceFilters", + }, + tagFilters: { + baseName: "tag_filters", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSMetricsConfig.js.map + +/***/ }), + +/***/ 44147: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSNamespaceFiltersExcludeOnly = void 0; +/** + * Exclude only these namespaces from metrics collection. Defaults to `["AWS/SQS", "AWS/ElasticMapReduce"]`. + * `AWS/SQS` and `AWS/ElasticMapReduce` are excluded by default to reduce your AWS CloudWatch costs from `GetMetricData` API calls. + */ +class AWSNamespaceFiltersExcludeOnly { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSNamespaceFiltersExcludeOnly.attributeTypeMap; + } +} +exports.AWSNamespaceFiltersExcludeOnly = AWSNamespaceFiltersExcludeOnly; +/** + * @ignore + */ +AWSNamespaceFiltersExcludeOnly.attributeTypeMap = { + excludeOnly: { + baseName: "exclude_only", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSNamespaceFiltersExcludeOnly.js.map + +/***/ }), + +/***/ 27705: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSNamespaceFiltersIncludeOnly = void 0; +/** + * Include only these namespaces. + */ +class AWSNamespaceFiltersIncludeOnly { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSNamespaceFiltersIncludeOnly.attributeTypeMap; + } +} +exports.AWSNamespaceFiltersIncludeOnly = AWSNamespaceFiltersIncludeOnly; +/** + * @ignore + */ +AWSNamespaceFiltersIncludeOnly.attributeTypeMap = { + includeOnly: { + baseName: "include_only", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSNamespaceFiltersIncludeOnly.js.map + +/***/ }), + +/***/ 80194: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSNamespaceTagFilter = void 0; +/** + * AWS Metrics Collection tag filters list. Defaults to `[]`. + * The array of custom AWS resource tags (in the form `key:value`) defines a filter that Datadog uses when collecting metrics from a specified service. + * Wildcards, such as `?` (match a single character) and `*` (match multiple characters), and exclusion using `!` before the tag are supported. + * For EC2, only hosts that match one of the defined tags will be imported into Datadog. The rest will be ignored. + * For example, `env:production,instance-type:c?.*,!region:us-east-1`. + */ +class AWSNamespaceTagFilter { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSNamespaceTagFilter.attributeTypeMap; + } +} +exports.AWSNamespaceTagFilter = AWSNamespaceTagFilter; +/** + * @ignore + */ +AWSNamespaceTagFilter.attributeTypeMap = { + namespace: { + baseName: "namespace", + type: "string", + }, + tags: { + baseName: "tags", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSNamespaceTagFilter.js.map + +/***/ }), + +/***/ 34266: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSNamespacesResponse = void 0; +/** + * AWS Namespaces response body. + */ +class AWSNamespacesResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSNamespacesResponse.attributeTypeMap; + } +} +exports.AWSNamespacesResponse = AWSNamespacesResponse; +/** + * @ignore + */ +AWSNamespacesResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "AWSNamespacesResponseData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSNamespacesResponse.js.map + +/***/ }), + +/***/ 14879: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSNamespacesResponseAttributes = void 0; +/** + * AWS Namespaces response attributes. + */ +class AWSNamespacesResponseAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSNamespacesResponseAttributes.attributeTypeMap; + } +} +exports.AWSNamespacesResponseAttributes = AWSNamespacesResponseAttributes; +/** + * @ignore + */ +AWSNamespacesResponseAttributes.attributeTypeMap = { + namespaces: { + baseName: "namespaces", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSNamespacesResponseAttributes.js.map + +/***/ }), + +/***/ 75706: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSNamespacesResponseData = void 0; +/** + * AWS Namespaces response data. + */ +class AWSNamespacesResponseData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSNamespacesResponseData.attributeTypeMap; + } +} +exports.AWSNamespacesResponseData = AWSNamespacesResponseData; +/** + * @ignore + */ +AWSNamespacesResponseData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "AWSNamespacesResponseAttributes", + }, + id: { + baseName: "id", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "AWSNamespacesResponseDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSNamespacesResponseData.js.map + +/***/ }), + +/***/ 91698: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSNewExternalIDResponse = void 0; +/** + * AWS External ID response body. + */ +class AWSNewExternalIDResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSNewExternalIDResponse.attributeTypeMap; + } +} +exports.AWSNewExternalIDResponse = AWSNewExternalIDResponse; +/** + * @ignore + */ +AWSNewExternalIDResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "AWSNewExternalIDResponseData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSNewExternalIDResponse.js.map + +/***/ }), + +/***/ 26311: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSNewExternalIDResponseAttributes = void 0; +/** + * AWS External ID response body. + */ +class AWSNewExternalIDResponseAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSNewExternalIDResponseAttributes.attributeTypeMap; + } +} +exports.AWSNewExternalIDResponseAttributes = AWSNewExternalIDResponseAttributes; +/** + * @ignore + */ +AWSNewExternalIDResponseAttributes.attributeTypeMap = { + externalId: { + baseName: "external_id", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSNewExternalIDResponseAttributes.js.map + +/***/ }), + +/***/ 41394: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSNewExternalIDResponseData = void 0; +/** + * AWS External ID response body. + */ +class AWSNewExternalIDResponseData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSNewExternalIDResponseData.attributeTypeMap; + } +} +exports.AWSNewExternalIDResponseData = AWSNewExternalIDResponseData; +/** + * @ignore + */ +AWSNewExternalIDResponseData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "AWSNewExternalIDResponseAttributes", + }, + id: { + baseName: "id", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "AWSNewExternalIDResponseDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSNewExternalIDResponseData.js.map + +/***/ }), + +/***/ 33163: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSRegionsIncludeAll = void 0; +/** + * Include all regions. Defaults to `true`. + */ +class AWSRegionsIncludeAll { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSRegionsIncludeAll.attributeTypeMap; + } +} +exports.AWSRegionsIncludeAll = AWSRegionsIncludeAll; +/** + * @ignore + */ +AWSRegionsIncludeAll.attributeTypeMap = { + includeAll: { + baseName: "include_all", + type: "boolean", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSRegionsIncludeAll.js.map + +/***/ }), + +/***/ 55300: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSRegionsIncludeOnly = void 0; +/** + * Include only these regions. + */ +class AWSRegionsIncludeOnly { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSRegionsIncludeOnly.attributeTypeMap; + } +} +exports.AWSRegionsIncludeOnly = AWSRegionsIncludeOnly; +/** + * @ignore + */ +AWSRegionsIncludeOnly.attributeTypeMap = { + includeOnly: { + baseName: "include_only", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSRegionsIncludeOnly.js.map + +/***/ }), + +/***/ 57610: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSResourcesConfig = void 0; +/** + * AWS Resources Collection config. + */ +class AWSResourcesConfig { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSResourcesConfig.attributeTypeMap; + } +} +exports.AWSResourcesConfig = AWSResourcesConfig; +/** + * @ignore + */ +AWSResourcesConfig.attributeTypeMap = { + cloudSecurityPostureManagementCollection: { + baseName: "cloud_security_posture_management_collection", + type: "boolean", + }, + extendedCollection: { + baseName: "extended_collection", + type: "boolean", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSResourcesConfig.js.map + +/***/ }), + +/***/ 40117: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AWSTracesConfig = void 0; +/** + * AWS Traces Collection config. + */ +class AWSTracesConfig { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AWSTracesConfig.attributeTypeMap; + } +} +exports.AWSTracesConfig = AWSTracesConfig; +/** + * @ignore + */ +AWSTracesConfig.attributeTypeMap = { + xrayServices: { + baseName: "xray_services", + type: "XRayServicesList", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AWSTracesConfig.js.map + +/***/ }), + +/***/ 57753: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ActiveBillingDimensionsAttributes = void 0; +/** + * List of active billing dimensions. + */ +class ActiveBillingDimensionsAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ActiveBillingDimensionsAttributes.attributeTypeMap; + } +} +exports.ActiveBillingDimensionsAttributes = ActiveBillingDimensionsAttributes; +/** + * @ignore + */ +ActiveBillingDimensionsAttributes.attributeTypeMap = { + month: { + baseName: "month", + type: "Date", + format: "date-time", + }, + values: { + baseName: "values", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ActiveBillingDimensionsAttributes.js.map + +/***/ }), + +/***/ 34376: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ActiveBillingDimensionsBody = void 0; +/** + * Active billing dimensions data. + */ +class ActiveBillingDimensionsBody { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ActiveBillingDimensionsBody.attributeTypeMap; + } +} +exports.ActiveBillingDimensionsBody = ActiveBillingDimensionsBody; +/** + * @ignore + */ +ActiveBillingDimensionsBody.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "ActiveBillingDimensionsAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "ActiveBillingDimensionsType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ActiveBillingDimensionsBody.js.map + +/***/ }), + +/***/ 47335: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ActiveBillingDimensionsResponse = void 0; +/** + * Active billing dimensions response. + */ +class ActiveBillingDimensionsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ActiveBillingDimensionsResponse.attributeTypeMap; + } +} +exports.ActiveBillingDimensionsResponse = ActiveBillingDimensionsResponse; +/** + * @ignore + */ +ActiveBillingDimensionsResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "ActiveBillingDimensionsBody", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ActiveBillingDimensionsResponse.js.map + +/***/ }), + +/***/ 20316: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AppBuilderError = void 0; +/** + * The definition of `AppBuilderError` object. + */ +class AppBuilderError { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AppBuilderError.attributeTypeMap; + } +} +exports.AppBuilderError = AppBuilderError; +/** + * @ignore + */ +AppBuilderError.attributeTypeMap = { + errors: { + baseName: "errors", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AppBuilderError.js.map + +/***/ }), + +/***/ 15127: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AppBuilderErrorErrorsItems = void 0; +/** + * The definition of `AppBuilderErrorErrorsItems` object. + */ +class AppBuilderErrorErrorsItems { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AppBuilderErrorErrorsItems.attributeTypeMap; + } +} +exports.AppBuilderErrorErrorsItems = AppBuilderErrorErrorsItems; +/** + * @ignore + */ +AppBuilderErrorErrorsItems.attributeTypeMap = { + detail: { + baseName: "detail", + type: "string", + }, + source: { + baseName: "source", + type: "AppBuilderErrorErrorsItemsSource", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AppBuilderErrorErrorsItems.js.map + +/***/ }), + +/***/ 56966: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AppBuilderErrorErrorsItemsSource = void 0; +/** + * The definition of `AppBuilderErrorErrorsItemsSource` object. + */ +class AppBuilderErrorErrorsItemsSource { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AppBuilderErrorErrorsItemsSource.attributeTypeMap; + } +} +exports.AppBuilderErrorErrorsItemsSource = AppBuilderErrorErrorsItemsSource; +/** + * @ignore + */ +AppBuilderErrorErrorsItemsSource.attributeTypeMap = { + parameter: { + baseName: "parameter", + type: "string", + }, + pointer: { + baseName: "pointer", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AppBuilderErrorErrorsItemsSource.js.map + +/***/ }), + +/***/ 38438: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AppBuilderEvent = void 0; +/** + * The definition of `AppBuilderEvent` object. + */ +class AppBuilderEvent { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AppBuilderEvent.attributeTypeMap; + } +} +exports.AppBuilderEvent = AppBuilderEvent; +/** + * @ignore + */ +AppBuilderEvent.attributeTypeMap = { + name: { + baseName: "name", + type: "AppBuilderEventName", + }, + type: { + baseName: "type", + type: "AppBuilderEventType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AppBuilderEvent.js.map + +/***/ }), + +/***/ 14646: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AppMeta = void 0; +/** + * The definition of `AppMeta` object. + */ +class AppMeta { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AppMeta.attributeTypeMap; + } +} +exports.AppMeta = AppMeta; +/** + * @ignore + */ +AppMeta.attributeTypeMap = { + createdAt: { + baseName: "created_at", + type: "string", + }, + deletedAt: { + baseName: "deleted_at", + type: "string", + }, + orgId: { + baseName: "org_id", + type: "number", + format: "int64", + }, + runAsUser: { + baseName: "run_as_user", + type: "string", + }, + updatedAt: { + baseName: "updated_at", + type: "string", + }, + updatedSinceDeployment: { + baseName: "updated_since_deployment", + type: "boolean", + }, + userId: { + baseName: "user_id", + type: "number", + format: "int64", + }, + userName: { + baseName: "user_name", + type: "string", + }, + userUuid: { + baseName: "user_uuid", + type: "string", + }, + version: { + baseName: "version", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AppMeta.js.map + +/***/ }), + +/***/ 5518: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ApplicationKeyCreateAttributes = void 0; +/** + * Attributes used to create an application Key. + */ +class ApplicationKeyCreateAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ApplicationKeyCreateAttributes.attributeTypeMap; + } +} +exports.ApplicationKeyCreateAttributes = ApplicationKeyCreateAttributes; +/** + * @ignore + */ +ApplicationKeyCreateAttributes.attributeTypeMap = { + name: { + baseName: "name", + type: "string", + required: true, + }, + scopes: { + baseName: "scopes", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ApplicationKeyCreateAttributes.js.map + +/***/ }), + +/***/ 56067: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ApplicationKeyCreateData = void 0; +/** + * Object used to create an application key. + */ +class ApplicationKeyCreateData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ApplicationKeyCreateData.attributeTypeMap; + } +} +exports.ApplicationKeyCreateData = ApplicationKeyCreateData; +/** + * @ignore + */ +ApplicationKeyCreateData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "ApplicationKeyCreateAttributes", + required: true, + }, + type: { + baseName: "type", + type: "ApplicationKeysType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ApplicationKeyCreateData.js.map + +/***/ }), + +/***/ 7718: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ApplicationKeyCreateRequest = void 0; +/** + * Request used to create an application key. + */ +class ApplicationKeyCreateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ApplicationKeyCreateRequest.attributeTypeMap; + } +} +exports.ApplicationKeyCreateRequest = ApplicationKeyCreateRequest; +/** + * @ignore + */ +ApplicationKeyCreateRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "ApplicationKeyCreateData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ApplicationKeyCreateRequest.js.map + +/***/ }), + +/***/ 99580: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ApplicationKeyRelationships = void 0; +/** + * Resources related to the application key. + */ +class ApplicationKeyRelationships { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ApplicationKeyRelationships.attributeTypeMap; + } +} +exports.ApplicationKeyRelationships = ApplicationKeyRelationships; +/** + * @ignore + */ +ApplicationKeyRelationships.attributeTypeMap = { + ownedBy: { + baseName: "owned_by", + type: "RelationshipToUser", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ApplicationKeyRelationships.js.map + +/***/ }), + +/***/ 18452: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ApplicationKeyResponse = void 0; +/** + * Response for retrieving an application key. + */ +class ApplicationKeyResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ApplicationKeyResponse.attributeTypeMap; + } +} +exports.ApplicationKeyResponse = ApplicationKeyResponse; +/** + * @ignore + */ +ApplicationKeyResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "FullApplicationKey", + }, + included: { + baseName: "included", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ApplicationKeyResponse.js.map + +/***/ }), + +/***/ 46341: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ApplicationKeyResponseMeta = void 0; +/** + * Additional information related to the application key response. + */ +class ApplicationKeyResponseMeta { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ApplicationKeyResponseMeta.attributeTypeMap; + } +} +exports.ApplicationKeyResponseMeta = ApplicationKeyResponseMeta; +/** + * @ignore + */ +ApplicationKeyResponseMeta.attributeTypeMap = { + maxAllowedPerUser: { + baseName: "max_allowed_per_user", + type: "number", + format: "int64", + }, + page: { + baseName: "page", + type: "ApplicationKeyResponseMetaPage", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ApplicationKeyResponseMeta.js.map + +/***/ }), + +/***/ 8450: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ApplicationKeyResponseMetaPage = void 0; +/** + * Additional information related to the application key response. + */ +class ApplicationKeyResponseMetaPage { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ApplicationKeyResponseMetaPage.attributeTypeMap; + } +} +exports.ApplicationKeyResponseMetaPage = ApplicationKeyResponseMetaPage; +/** + * @ignore + */ +ApplicationKeyResponseMetaPage.attributeTypeMap = { + totalFilteredCount: { + baseName: "total_filtered_count", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ApplicationKeyResponseMetaPage.js.map + +/***/ }), + +/***/ 96279: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ApplicationKeyUpdateAttributes = void 0; +/** + * Attributes used to update an application Key. + */ +class ApplicationKeyUpdateAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ApplicationKeyUpdateAttributes.attributeTypeMap; + } +} +exports.ApplicationKeyUpdateAttributes = ApplicationKeyUpdateAttributes; +/** + * @ignore + */ +ApplicationKeyUpdateAttributes.attributeTypeMap = { + name: { + baseName: "name", + type: "string", + }, + scopes: { + baseName: "scopes", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ApplicationKeyUpdateAttributes.js.map + +/***/ }), + +/***/ 52290: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ApplicationKeyUpdateData = void 0; +/** + * Object used to update an application key. + */ +class ApplicationKeyUpdateData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ApplicationKeyUpdateData.attributeTypeMap; + } +} +exports.ApplicationKeyUpdateData = ApplicationKeyUpdateData; +/** + * @ignore + */ +ApplicationKeyUpdateData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "ApplicationKeyUpdateAttributes", + required: true, + }, + id: { + baseName: "id", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "ApplicationKeysType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ApplicationKeyUpdateData.js.map + +/***/ }), + +/***/ 56561: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ApplicationKeyUpdateRequest = void 0; +/** + * Request used to update an application key. + */ +class ApplicationKeyUpdateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ApplicationKeyUpdateRequest.attributeTypeMap; + } +} +exports.ApplicationKeyUpdateRequest = ApplicationKeyUpdateRequest; +/** + * @ignore + */ +ApplicationKeyUpdateRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "ApplicationKeyUpdateData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ApplicationKeyUpdateRequest.js.map + +/***/ }), + +/***/ 11638: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuditLogsEvent = void 0; +/** + * Object description of an Audit Logs event after it is processed and stored by Datadog. + */ +class AuditLogsEvent { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AuditLogsEvent.attributeTypeMap; + } +} +exports.AuditLogsEvent = AuditLogsEvent; +/** + * @ignore + */ +AuditLogsEvent.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "AuditLogsEventAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "AuditLogsEventType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AuditLogsEvent.js.map + +/***/ }), + +/***/ 81955: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuditLogsEventAttributes = void 0; +/** + * JSON object containing all event attributes and their associated values. + */ +class AuditLogsEventAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AuditLogsEventAttributes.attributeTypeMap; + } +} +exports.AuditLogsEventAttributes = AuditLogsEventAttributes; +/** + * @ignore + */ +AuditLogsEventAttributes.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "{ [key: string]: any; }", + }, + message: { + baseName: "message", + type: "string", + }, + service: { + baseName: "service", + type: "string", + }, + tags: { + baseName: "tags", + type: "Array", + }, + timestamp: { + baseName: "timestamp", + type: "Date", + format: "date-time", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AuditLogsEventAttributes.js.map + +/***/ }), + +/***/ 21710: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuditLogsEventsResponse = void 0; +/** + * Response object with all events matching the request and pagination information. + */ +class AuditLogsEventsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AuditLogsEventsResponse.attributeTypeMap; + } +} +exports.AuditLogsEventsResponse = AuditLogsEventsResponse; +/** + * @ignore + */ +AuditLogsEventsResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "Array", + }, + links: { + baseName: "links", + type: "AuditLogsResponseLinks", + }, + meta: { + baseName: "meta", + type: "AuditLogsResponseMetadata", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AuditLogsEventsResponse.js.map + +/***/ }), + +/***/ 9124: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuditLogsQueryFilter = void 0; +/** + * Search and filter query settings. + */ +class AuditLogsQueryFilter { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AuditLogsQueryFilter.attributeTypeMap; + } +} +exports.AuditLogsQueryFilter = AuditLogsQueryFilter; +/** + * @ignore + */ +AuditLogsQueryFilter.attributeTypeMap = { + from: { + baseName: "from", + type: "string", + }, + query: { + baseName: "query", + type: "string", + }, + to: { + baseName: "to", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AuditLogsQueryFilter.js.map + +/***/ }), + +/***/ 79694: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuditLogsQueryOptions = void 0; +/** + * Global query options that are used during the query. + * Note: Specify either timezone or time offset, not both. Otherwise, the query fails. + */ +class AuditLogsQueryOptions { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AuditLogsQueryOptions.attributeTypeMap; + } +} +exports.AuditLogsQueryOptions = AuditLogsQueryOptions; +/** + * @ignore + */ +AuditLogsQueryOptions.attributeTypeMap = { + timeOffset: { + baseName: "time_offset", + type: "number", + format: "int64", + }, + timezone: { + baseName: "timezone", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AuditLogsQueryOptions.js.map + +/***/ }), + +/***/ 239: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuditLogsQueryPageOptions = void 0; +/** + * Paging attributes for listing events. + */ +class AuditLogsQueryPageOptions { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AuditLogsQueryPageOptions.attributeTypeMap; + } +} +exports.AuditLogsQueryPageOptions = AuditLogsQueryPageOptions; +/** + * @ignore + */ +AuditLogsQueryPageOptions.attributeTypeMap = { + cursor: { + baseName: "cursor", + type: "string", + }, + limit: { + baseName: "limit", + type: "number", + format: "int32", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AuditLogsQueryPageOptions.js.map + +/***/ }), + +/***/ 20750: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuditLogsResponseLinks = void 0; +/** + * Links attributes. + */ +class AuditLogsResponseLinks { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AuditLogsResponseLinks.attributeTypeMap; + } +} +exports.AuditLogsResponseLinks = AuditLogsResponseLinks; +/** + * @ignore + */ +AuditLogsResponseLinks.attributeTypeMap = { + next: { + baseName: "next", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AuditLogsResponseLinks.js.map + +/***/ }), + +/***/ 69442: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuditLogsResponseMetadata = void 0; +/** + * The metadata associated with a request. + */ +class AuditLogsResponseMetadata { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AuditLogsResponseMetadata.attributeTypeMap; + } +} +exports.AuditLogsResponseMetadata = AuditLogsResponseMetadata; +/** + * @ignore + */ +AuditLogsResponseMetadata.attributeTypeMap = { + elapsed: { + baseName: "elapsed", + type: "number", + format: "int64", + }, + page: { + baseName: "page", + type: "AuditLogsResponsePage", + }, + requestId: { + baseName: "request_id", + type: "string", + }, + status: { + baseName: "status", + type: "AuditLogsResponseStatus", + }, + warnings: { + baseName: "warnings", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AuditLogsResponseMetadata.js.map + +/***/ }), + +/***/ 83964: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuditLogsResponsePage = void 0; +/** + * Paging attributes. + */ +class AuditLogsResponsePage { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AuditLogsResponsePage.attributeTypeMap; + } +} +exports.AuditLogsResponsePage = AuditLogsResponsePage; +/** + * @ignore + */ +AuditLogsResponsePage.attributeTypeMap = { + after: { + baseName: "after", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AuditLogsResponsePage.js.map + +/***/ }), + +/***/ 3108: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuditLogsSearchEventsRequest = void 0; +/** + * The request for a Audit Logs events list. + */ +class AuditLogsSearchEventsRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AuditLogsSearchEventsRequest.attributeTypeMap; + } +} +exports.AuditLogsSearchEventsRequest = AuditLogsSearchEventsRequest; +/** + * @ignore + */ +AuditLogsSearchEventsRequest.attributeTypeMap = { + filter: { + baseName: "filter", + type: "AuditLogsQueryFilter", + }, + options: { + baseName: "options", + type: "AuditLogsQueryOptions", + }, + page: { + baseName: "page", + type: "AuditLogsQueryPageOptions", + }, + sort: { + baseName: "sort", + type: "AuditLogsSort", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AuditLogsSearchEventsRequest.js.map + +/***/ }), + +/***/ 58802: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuditLogsWarning = void 0; +/** + * Warning message indicating something that went wrong with the query. + */ +class AuditLogsWarning { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AuditLogsWarning.attributeTypeMap; + } +} +exports.AuditLogsWarning = AuditLogsWarning; +/** + * @ignore + */ +AuditLogsWarning.attributeTypeMap = { + code: { + baseName: "code", + type: "string", + }, + detail: { + baseName: "detail", + type: "string", + }, + title: { + baseName: "title", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AuditLogsWarning.js.map + +/***/ }), + +/***/ 39496: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthNMapping = void 0; +/** + * The AuthN Mapping object returned by API. + */ +class AuthNMapping { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AuthNMapping.attributeTypeMap; + } +} +exports.AuthNMapping = AuthNMapping; +/** + * @ignore + */ +AuthNMapping.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "AuthNMappingAttributes", + }, + id: { + baseName: "id", + type: "string", + required: true, + }, + relationships: { + baseName: "relationships", + type: "AuthNMappingRelationships", + }, + type: { + baseName: "type", + type: "AuthNMappingsType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AuthNMapping.js.map + +/***/ }), + +/***/ 38337: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthNMappingAttributes = void 0; +/** + * Attributes of AuthN Mapping. + */ +class AuthNMappingAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AuthNMappingAttributes.attributeTypeMap; + } +} +exports.AuthNMappingAttributes = AuthNMappingAttributes; +/** + * @ignore + */ +AuthNMappingAttributes.attributeTypeMap = { + attributeKey: { + baseName: "attribute_key", + type: "string", + }, + attributeValue: { + baseName: "attribute_value", + type: "string", + }, + createdAt: { + baseName: "created_at", + type: "Date", + format: "date-time", + }, + modifiedAt: { + baseName: "modified_at", + type: "Date", + format: "date-time", + }, + samlAssertionAttributeId: { + baseName: "saml_assertion_attribute_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AuthNMappingAttributes.js.map + +/***/ }), + +/***/ 7833: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthNMappingCreateAttributes = void 0; +/** + * Key/Value pair of attributes used for create request. + */ +class AuthNMappingCreateAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AuthNMappingCreateAttributes.attributeTypeMap; + } +} +exports.AuthNMappingCreateAttributes = AuthNMappingCreateAttributes; +/** + * @ignore + */ +AuthNMappingCreateAttributes.attributeTypeMap = { + attributeKey: { + baseName: "attribute_key", + type: "string", + }, + attributeValue: { + baseName: "attribute_value", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AuthNMappingCreateAttributes.js.map + +/***/ }), + +/***/ 83448: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthNMappingCreateData = void 0; +/** + * Data for creating an AuthN Mapping. + */ +class AuthNMappingCreateData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AuthNMappingCreateData.attributeTypeMap; + } +} +exports.AuthNMappingCreateData = AuthNMappingCreateData; +/** + * @ignore + */ +AuthNMappingCreateData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "AuthNMappingCreateAttributes", + }, + relationships: { + baseName: "relationships", + type: "AuthNMappingCreateRelationships", + }, + type: { + baseName: "type", + type: "AuthNMappingsType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AuthNMappingCreateData.js.map + +/***/ }), + +/***/ 60371: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthNMappingCreateRequest = void 0; +/** + * Request for creating an AuthN Mapping. + */ +class AuthNMappingCreateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AuthNMappingCreateRequest.attributeTypeMap; + } +} +exports.AuthNMappingCreateRequest = AuthNMappingCreateRequest; +/** + * @ignore + */ +AuthNMappingCreateRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "AuthNMappingCreateData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AuthNMappingCreateRequest.js.map + +/***/ }), + +/***/ 35583: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthNMappingRelationshipToRole = void 0; +/** + * Relationship of AuthN Mapping to a Role. + */ +class AuthNMappingRelationshipToRole { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AuthNMappingRelationshipToRole.attributeTypeMap; + } +} +exports.AuthNMappingRelationshipToRole = AuthNMappingRelationshipToRole; +/** + * @ignore + */ +AuthNMappingRelationshipToRole.attributeTypeMap = { + role: { + baseName: "role", + type: "RelationshipToRole", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AuthNMappingRelationshipToRole.js.map + +/***/ }), + +/***/ 71090: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthNMappingRelationshipToTeam = void 0; +/** + * Relationship of AuthN Mapping to a Team. + */ +class AuthNMappingRelationshipToTeam { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AuthNMappingRelationshipToTeam.attributeTypeMap; + } +} +exports.AuthNMappingRelationshipToTeam = AuthNMappingRelationshipToTeam; +/** + * @ignore + */ +AuthNMappingRelationshipToTeam.attributeTypeMap = { + team: { + baseName: "team", + type: "RelationshipToTeam", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AuthNMappingRelationshipToTeam.js.map + +/***/ }), + +/***/ 71441: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthNMappingRelationships = void 0; +/** + * All relationships associated with AuthN Mapping. + */ +class AuthNMappingRelationships { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AuthNMappingRelationships.attributeTypeMap; + } +} +exports.AuthNMappingRelationships = AuthNMappingRelationships; +/** + * @ignore + */ +AuthNMappingRelationships.attributeTypeMap = { + role: { + baseName: "role", + type: "RelationshipToRole", + }, + samlAssertionAttribute: { + baseName: "saml_assertion_attribute", + type: "RelationshipToSAMLAssertionAttribute", + }, + team: { + baseName: "team", + type: "RelationshipToTeam", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AuthNMappingRelationships.js.map + +/***/ }), + +/***/ 2783: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthNMappingResponse = void 0; +/** + * AuthN Mapping response from the API. + */ +class AuthNMappingResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AuthNMappingResponse.attributeTypeMap; + } +} +exports.AuthNMappingResponse = AuthNMappingResponse; +/** + * @ignore + */ +AuthNMappingResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "AuthNMapping", + }, + included: { + baseName: "included", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AuthNMappingResponse.js.map + +/***/ }), + +/***/ 51573: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthNMappingTeam = void 0; +/** + * Team. + */ +class AuthNMappingTeam { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AuthNMappingTeam.attributeTypeMap; + } +} +exports.AuthNMappingTeam = AuthNMappingTeam; +/** + * @ignore + */ +AuthNMappingTeam.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "AuthNMappingTeamAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "TeamType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AuthNMappingTeam.js.map + +/***/ }), + +/***/ 60572: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthNMappingTeamAttributes = void 0; +/** + * Team attributes. + */ +class AuthNMappingTeamAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AuthNMappingTeamAttributes.attributeTypeMap; + } +} +exports.AuthNMappingTeamAttributes = AuthNMappingTeamAttributes; +/** + * @ignore + */ +AuthNMappingTeamAttributes.attributeTypeMap = { + avatar: { + baseName: "avatar", + type: "string", + }, + banner: { + baseName: "banner", + type: "number", + format: "int64", + }, + handle: { + baseName: "handle", + type: "string", + }, + linkCount: { + baseName: "link_count", + type: "number", + format: "int32", + }, + name: { + baseName: "name", + type: "string", + }, + summary: { + baseName: "summary", + type: "string", + }, + userCount: { + baseName: "user_count", + type: "number", + format: "int32", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AuthNMappingTeamAttributes.js.map + +/***/ }), + +/***/ 78412: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthNMappingUpdateAttributes = void 0; +/** + * Key/Value pair of attributes used for update request. + */ +class AuthNMappingUpdateAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AuthNMappingUpdateAttributes.attributeTypeMap; + } +} +exports.AuthNMappingUpdateAttributes = AuthNMappingUpdateAttributes; +/** + * @ignore + */ +AuthNMappingUpdateAttributes.attributeTypeMap = { + attributeKey: { + baseName: "attribute_key", + type: "string", + }, + attributeValue: { + baseName: "attribute_value", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AuthNMappingUpdateAttributes.js.map + +/***/ }), + +/***/ 52901: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthNMappingUpdateData = void 0; +/** + * Data for updating an AuthN Mapping. + */ +class AuthNMappingUpdateData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AuthNMappingUpdateData.attributeTypeMap; + } +} +exports.AuthNMappingUpdateData = AuthNMappingUpdateData; +/** + * @ignore + */ +AuthNMappingUpdateData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "AuthNMappingUpdateAttributes", + }, + id: { + baseName: "id", + type: "string", + required: true, + }, + relationships: { + baseName: "relationships", + type: "AuthNMappingUpdateRelationships", + }, + type: { + baseName: "type", + type: "AuthNMappingsType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AuthNMappingUpdateData.js.map + +/***/ }), + +/***/ 27076: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthNMappingUpdateRequest = void 0; +/** + * Request to update an AuthN Mapping. + */ +class AuthNMappingUpdateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AuthNMappingUpdateRequest.attributeTypeMap; + } +} +exports.AuthNMappingUpdateRequest = AuthNMappingUpdateRequest; +/** + * @ignore + */ +AuthNMappingUpdateRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "AuthNMappingUpdateData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AuthNMappingUpdateRequest.js.map + +/***/ }), + +/***/ 24164: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthNMappingsResponse = void 0; +/** + * Array of AuthN Mappings response. + */ +class AuthNMappingsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AuthNMappingsResponse.attributeTypeMap; + } +} +exports.AuthNMappingsResponse = AuthNMappingsResponse; +/** + * @ignore + */ +AuthNMappingsResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "Array", + }, + included: { + baseName: "included", + type: "Array", + }, + meta: { + baseName: "meta", + type: "ResponseMetaAttributes", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AuthNMappingsResponse.js.map + +/***/ }), + +/***/ 81193: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AwsCURConfig = void 0; +/** + * AWS CUR config. + */ +class AwsCURConfig { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AwsCURConfig.attributeTypeMap; + } +} +exports.AwsCURConfig = AwsCURConfig; +/** + * @ignore + */ +AwsCURConfig.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "AwsCURConfigAttributes", + required: true, + }, + id: { + baseName: "id", + type: "number", + format: "int64", + }, + type: { + baseName: "type", + type: "AwsCURConfigType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AwsCURConfig.js.map + +/***/ }), + +/***/ 70488: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AwsCURConfigAttributes = void 0; +/** + * Attributes for An AWS CUR config. + */ +class AwsCURConfigAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AwsCURConfigAttributes.attributeTypeMap; + } +} +exports.AwsCURConfigAttributes = AwsCURConfigAttributes; +/** + * @ignore + */ +AwsCURConfigAttributes.attributeTypeMap = { + accountId: { + baseName: "account_id", + type: "string", + required: true, + }, + bucketName: { + baseName: "bucket_name", + type: "string", + required: true, + }, + bucketRegion: { + baseName: "bucket_region", + type: "string", + required: true, + }, + createdAt: { + baseName: "created_at", + type: "string", + }, + errorMessages: { + baseName: "error_messages", + type: "Array", + }, + months: { + baseName: "months", + type: "number", + format: "int32", + }, + reportName: { + baseName: "report_name", + type: "string", + required: true, + }, + reportPrefix: { + baseName: "report_prefix", + type: "string", + required: true, + }, + status: { + baseName: "status", + type: "string", + required: true, + }, + statusUpdatedAt: { + baseName: "status_updated_at", + type: "string", + }, + updatedAt: { + baseName: "updated_at", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AwsCURConfigAttributes.js.map + +/***/ }), + +/***/ 69763: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AwsCURConfigPatchData = void 0; +/** + * AWS CUR config Patch data. + */ +class AwsCURConfigPatchData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AwsCURConfigPatchData.attributeTypeMap; + } +} +exports.AwsCURConfigPatchData = AwsCURConfigPatchData; +/** + * @ignore + */ +AwsCURConfigPatchData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "AwsCURConfigPatchRequestAttributes", + required: true, + }, + type: { + baseName: "type", + type: "AwsCURConfigPatchRequestType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AwsCURConfigPatchData.js.map + +/***/ }), + +/***/ 25542: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AwsCURConfigPatchRequest = void 0; +/** + * AWS CUR config Patch Request. + */ +class AwsCURConfigPatchRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AwsCURConfigPatchRequest.attributeTypeMap; + } +} +exports.AwsCURConfigPatchRequest = AwsCURConfigPatchRequest; +/** + * @ignore + */ +AwsCURConfigPatchRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "AwsCURConfigPatchData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AwsCURConfigPatchRequest.js.map + +/***/ }), + +/***/ 30675: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AwsCURConfigPatchRequestAttributes = void 0; +/** + * Attributes for AWS CUR config Patch Request. + */ +class AwsCURConfigPatchRequestAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AwsCURConfigPatchRequestAttributes.attributeTypeMap; + } +} +exports.AwsCURConfigPatchRequestAttributes = AwsCURConfigPatchRequestAttributes; +/** + * @ignore + */ +AwsCURConfigPatchRequestAttributes.attributeTypeMap = { + isEnabled: { + baseName: "is_enabled", + type: "boolean", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AwsCURConfigPatchRequestAttributes.js.map + +/***/ }), + +/***/ 27687: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AwsCURConfigPostData = void 0; +/** + * AWS CUR config Post data. + */ +class AwsCURConfigPostData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AwsCURConfigPostData.attributeTypeMap; + } +} +exports.AwsCURConfigPostData = AwsCURConfigPostData; +/** + * @ignore + */ +AwsCURConfigPostData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "AwsCURConfigPostRequestAttributes", + required: true, + }, + type: { + baseName: "type", + type: "AwsCURConfigPostRequestType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AwsCURConfigPostData.js.map + +/***/ }), + +/***/ 24866: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AwsCURConfigPostRequest = void 0; +/** + * AWS CUR config Post Request. + */ +class AwsCURConfigPostRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AwsCURConfigPostRequest.attributeTypeMap; + } +} +exports.AwsCURConfigPostRequest = AwsCURConfigPostRequest; +/** + * @ignore + */ +AwsCURConfigPostRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "AwsCURConfigPostData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AwsCURConfigPostRequest.js.map + +/***/ }), + +/***/ 21975: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AwsCURConfigPostRequestAttributes = void 0; +/** + * Attributes for AWS CUR config Post Request. + */ +class AwsCURConfigPostRequestAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AwsCURConfigPostRequestAttributes.attributeTypeMap; + } +} +exports.AwsCURConfigPostRequestAttributes = AwsCURConfigPostRequestAttributes; +/** + * @ignore + */ +AwsCURConfigPostRequestAttributes.attributeTypeMap = { + accountId: { + baseName: "account_id", + type: "string", + required: true, + }, + bucketName: { + baseName: "bucket_name", + type: "string", + required: true, + }, + bucketRegion: { + baseName: "bucket_region", + type: "string", + }, + isEnabled: { + baseName: "is_enabled", + type: "boolean", + }, + months: { + baseName: "months", + type: "number", + format: "int32", + }, + reportName: { + baseName: "report_name", + type: "string", + required: true, + }, + reportPrefix: { + baseName: "report_prefix", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AwsCURConfigPostRequestAttributes.js.map + +/***/ }), + +/***/ 88122: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AwsCURConfigResponse = void 0; +/** + * Response of AWS CUR config. + */ +class AwsCURConfigResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AwsCURConfigResponse.attributeTypeMap; + } +} +exports.AwsCURConfigResponse = AwsCURConfigResponse; +/** + * @ignore + */ +AwsCURConfigResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "AwsCURConfig", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AwsCURConfigResponse.js.map + +/***/ }), + +/***/ 80435: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AwsCURConfigsResponse = void 0; +/** + * List of AWS CUR configs. + */ +class AwsCURConfigsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AwsCURConfigsResponse.attributeTypeMap; + } +} +exports.AwsCURConfigsResponse = AwsCURConfigsResponse; +/** + * @ignore + */ +AwsCURConfigsResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AwsCURConfigsResponse.js.map + +/***/ }), + +/***/ 59673: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AzureUCConfig = void 0; +/** + * Azure config. + */ +class AzureUCConfig { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AzureUCConfig.attributeTypeMap; + } +} +exports.AzureUCConfig = AzureUCConfig; +/** + * @ignore + */ +AzureUCConfig.attributeTypeMap = { + accountId: { + baseName: "account_id", + type: "string", + required: true, + }, + clientId: { + baseName: "client_id", + type: "string", + required: true, + }, + createdAt: { + baseName: "created_at", + type: "string", + }, + datasetType: { + baseName: "dataset_type", + type: "string", + required: true, + }, + errorMessages: { + baseName: "error_messages", + type: "Array", + }, + exportName: { + baseName: "export_name", + type: "string", + required: true, + }, + exportPath: { + baseName: "export_path", + type: "string", + required: true, + }, + id: { + baseName: "id", + type: "number", + format: "int64", + }, + months: { + baseName: "months", + type: "number", + format: "int32", + }, + scope: { + baseName: "scope", + type: "string", + required: true, + }, + status: { + baseName: "status", + type: "string", + required: true, + }, + statusUpdatedAt: { + baseName: "status_updated_at", + type: "string", + }, + storageAccount: { + baseName: "storage_account", + type: "string", + required: true, + }, + storageContainer: { + baseName: "storage_container", + type: "string", + required: true, + }, + updatedAt: { + baseName: "updated_at", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AzureUCConfig.js.map + +/***/ }), + +/***/ 65177: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AzureUCConfigPair = void 0; +/** + * Azure config pair. + */ +class AzureUCConfigPair { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AzureUCConfigPair.attributeTypeMap; + } +} +exports.AzureUCConfigPair = AzureUCConfigPair; +/** + * @ignore + */ +AzureUCConfigPair.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "AzureUCConfigPairAttributes", + required: true, + }, + id: { + baseName: "id", + type: "number", + format: "int64", + }, + type: { + baseName: "type", + type: "AzureUCConfigPairType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AzureUCConfigPair.js.map + +/***/ }), + +/***/ 62696: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AzureUCConfigPairAttributes = void 0; +/** + * Attributes for Azure config pair. + */ +class AzureUCConfigPairAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AzureUCConfigPairAttributes.attributeTypeMap; + } +} +exports.AzureUCConfigPairAttributes = AzureUCConfigPairAttributes; +/** + * @ignore + */ +AzureUCConfigPairAttributes.attributeTypeMap = { + configs: { + baseName: "configs", + type: "Array", + required: true, + }, + id: { + baseName: "id", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AzureUCConfigPairAttributes.js.map + +/***/ }), + +/***/ 92867: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AzureUCConfigPairsResponse = void 0; +/** + * Response of Azure config pair. + */ +class AzureUCConfigPairsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AzureUCConfigPairsResponse.attributeTypeMap; + } +} +exports.AzureUCConfigPairsResponse = AzureUCConfigPairsResponse; +/** + * @ignore + */ +AzureUCConfigPairsResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "AzureUCConfigPair", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AzureUCConfigPairsResponse.js.map + +/***/ }), + +/***/ 90419: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AzureUCConfigPatchData = void 0; +/** + * Azure config Patch data. + */ +class AzureUCConfigPatchData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AzureUCConfigPatchData.attributeTypeMap; + } +} +exports.AzureUCConfigPatchData = AzureUCConfigPatchData; +/** + * @ignore + */ +AzureUCConfigPatchData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "AzureUCConfigPatchRequestAttributes", + required: true, + }, + type: { + baseName: "type", + type: "AzureUCConfigPatchRequestType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AzureUCConfigPatchData.js.map + +/***/ }), + +/***/ 33750: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AzureUCConfigPatchRequest = void 0; +/** + * Azure config Patch Request. + */ +class AzureUCConfigPatchRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AzureUCConfigPatchRequest.attributeTypeMap; + } +} +exports.AzureUCConfigPatchRequest = AzureUCConfigPatchRequest; +/** + * @ignore + */ +AzureUCConfigPatchRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "AzureUCConfigPatchData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AzureUCConfigPatchRequest.js.map + +/***/ }), + +/***/ 6947: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AzureUCConfigPatchRequestAttributes = void 0; +/** + * Attributes for Azure config Patch Request. + */ +class AzureUCConfigPatchRequestAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AzureUCConfigPatchRequestAttributes.attributeTypeMap; + } +} +exports.AzureUCConfigPatchRequestAttributes = AzureUCConfigPatchRequestAttributes; +/** + * @ignore + */ +AzureUCConfigPatchRequestAttributes.attributeTypeMap = { + isEnabled: { + baseName: "is_enabled", + type: "boolean", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AzureUCConfigPatchRequestAttributes.js.map + +/***/ }), + +/***/ 53623: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AzureUCConfigPostData = void 0; +/** + * Azure config Post data. + */ +class AzureUCConfigPostData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AzureUCConfigPostData.attributeTypeMap; + } +} +exports.AzureUCConfigPostData = AzureUCConfigPostData; +/** + * @ignore + */ +AzureUCConfigPostData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "AzureUCConfigPostRequestAttributes", + required: true, + }, + type: { + baseName: "type", + type: "AzureUCConfigPostRequestType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AzureUCConfigPostData.js.map + +/***/ }), + +/***/ 68178: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AzureUCConfigPostRequest = void 0; +/** + * Azure config Post Request. + */ +class AzureUCConfigPostRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AzureUCConfigPostRequest.attributeTypeMap; + } +} +exports.AzureUCConfigPostRequest = AzureUCConfigPostRequest; +/** + * @ignore + */ +AzureUCConfigPostRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "AzureUCConfigPostData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AzureUCConfigPostRequest.js.map + +/***/ }), + +/***/ 58183: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AzureUCConfigPostRequestAttributes = void 0; +/** + * Attributes for Azure config Post Request. + */ +class AzureUCConfigPostRequestAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AzureUCConfigPostRequestAttributes.attributeTypeMap; + } +} +exports.AzureUCConfigPostRequestAttributes = AzureUCConfigPostRequestAttributes; +/** + * @ignore + */ +AzureUCConfigPostRequestAttributes.attributeTypeMap = { + accountId: { + baseName: "account_id", + type: "string", + required: true, + }, + actualBillConfig: { + baseName: "actual_bill_config", + type: "BillConfig", + required: true, + }, + amortizedBillConfig: { + baseName: "amortized_bill_config", + type: "BillConfig", + required: true, + }, + clientId: { + baseName: "client_id", + type: "string", + required: true, + }, + isEnabled: { + baseName: "is_enabled", + type: "boolean", + }, + scope: { + baseName: "scope", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AzureUCConfigPostRequestAttributes.js.map + +/***/ }), + +/***/ 82947: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AzureUCConfigsResponse = void 0; +/** + * List of Azure accounts with configs. + */ +class AzureUCConfigsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return AzureUCConfigsResponse.attributeTypeMap; + } +} +exports.AzureUCConfigsResponse = AzureUCConfigsResponse; +/** + * @ignore + */ +AzureUCConfigsResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=AzureUCConfigsResponse.js.map + +/***/ }), + +/***/ 65009: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.BillConfig = void 0; +/** + * Bill config. + */ +class BillConfig { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return BillConfig.attributeTypeMap; + } +} +exports.BillConfig = BillConfig; +/** + * @ignore + */ +BillConfig.attributeTypeMap = { + exportName: { + baseName: "export_name", + type: "string", + required: true, + }, + exportPath: { + baseName: "export_path", + type: "string", + required: true, + }, + storageAccount: { + baseName: "storage_account", + type: "string", + required: true, + }, + storageContainer: { + baseName: "storage_container", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=BillConfig.js.map + +/***/ }), + +/***/ 11673: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.BillingDimensionsMappingBodyItem = void 0; +/** + * The mapping data for each billing dimension. + */ +class BillingDimensionsMappingBodyItem { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return BillingDimensionsMappingBodyItem.attributeTypeMap; + } +} +exports.BillingDimensionsMappingBodyItem = BillingDimensionsMappingBodyItem; +/** + * @ignore + */ +BillingDimensionsMappingBodyItem.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "BillingDimensionsMappingBodyItemAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "ActiveBillingDimensionsType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=BillingDimensionsMappingBodyItem.js.map + +/***/ }), + +/***/ 95176: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.BillingDimensionsMappingBodyItemAttributes = void 0; +/** + * Mapping of billing dimensions to endpoint keys. + */ +class BillingDimensionsMappingBodyItemAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return BillingDimensionsMappingBodyItemAttributes.attributeTypeMap; + } +} +exports.BillingDimensionsMappingBodyItemAttributes = BillingDimensionsMappingBodyItemAttributes; +/** + * @ignore + */ +BillingDimensionsMappingBodyItemAttributes.attributeTypeMap = { + endpoints: { + baseName: "endpoints", + type: "Array", + }, + inAppLabel: { + baseName: "in_app_label", + type: "string", + }, + timestamp: { + baseName: "timestamp", + type: "Date", + format: "date-time", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=BillingDimensionsMappingBodyItemAttributes.js.map + +/***/ }), + +/***/ 43906: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.BillingDimensionsMappingBodyItemAttributesEndpointsItems = void 0; +/** + * An endpoint's keys mapped to the billing_dimension. + */ +class BillingDimensionsMappingBodyItemAttributesEndpointsItems { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return BillingDimensionsMappingBodyItemAttributesEndpointsItems.attributeTypeMap; + } +} +exports.BillingDimensionsMappingBodyItemAttributesEndpointsItems = BillingDimensionsMappingBodyItemAttributesEndpointsItems; +/** + * @ignore + */ +BillingDimensionsMappingBodyItemAttributesEndpointsItems.attributeTypeMap = { + id: { + baseName: "id", + type: "string", + }, + keys: { + baseName: "keys", + type: "Array", + }, + status: { + baseName: "status", + type: "BillingDimensionsMappingBodyItemAttributesEndpointsItemsStatus", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=BillingDimensionsMappingBodyItemAttributesEndpointsItems.js.map + +/***/ }), + +/***/ 85689: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.BillingDimensionsMappingResponse = void 0; +/** + * Billing dimensions mapping response. + */ +class BillingDimensionsMappingResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return BillingDimensionsMappingResponse.attributeTypeMap; + } +} +exports.BillingDimensionsMappingResponse = BillingDimensionsMappingResponse; +/** + * @ignore + */ +BillingDimensionsMappingResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=BillingDimensionsMappingResponse.js.map + +/***/ }), + +/***/ 89612: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.BulkMuteFindingsRequest = void 0; +/** + * The new bulk mute finding request. + */ +class BulkMuteFindingsRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return BulkMuteFindingsRequest.attributeTypeMap; + } +} +exports.BulkMuteFindingsRequest = BulkMuteFindingsRequest; +/** + * @ignore + */ +BulkMuteFindingsRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "BulkMuteFindingsRequestData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=BulkMuteFindingsRequest.js.map + +/***/ }), + +/***/ 7997: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.BulkMuteFindingsRequestAttributes = void 0; +/** + * The mute properties to be updated. + */ +class BulkMuteFindingsRequestAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return BulkMuteFindingsRequestAttributes.attributeTypeMap; + } +} +exports.BulkMuteFindingsRequestAttributes = BulkMuteFindingsRequestAttributes; +/** + * @ignore + */ +BulkMuteFindingsRequestAttributes.attributeTypeMap = { + mute: { + baseName: "mute", + type: "BulkMuteFindingsRequestProperties", + required: true, + }, +}; +//# sourceMappingURL=BulkMuteFindingsRequestAttributes.js.map + +/***/ }), + +/***/ 95668: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.BulkMuteFindingsRequestData = void 0; +/** + * Data object containing the new bulk mute properties of the finding. + */ +class BulkMuteFindingsRequestData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return BulkMuteFindingsRequestData.attributeTypeMap; + } +} +exports.BulkMuteFindingsRequestData = BulkMuteFindingsRequestData; +/** + * @ignore + */ +BulkMuteFindingsRequestData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "BulkMuteFindingsRequestAttributes", + required: true, + }, + id: { + baseName: "id", + type: "string", + required: true, + }, + meta: { + baseName: "meta", + type: "BulkMuteFindingsRequestMeta", + required: true, + }, + type: { + baseName: "type", + type: "FindingType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=BulkMuteFindingsRequestData.js.map + +/***/ }), + +/***/ 71949: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.BulkMuteFindingsRequestMeta = void 0; +/** + * Meta object containing the findings to be updated. + */ +class BulkMuteFindingsRequestMeta { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return BulkMuteFindingsRequestMeta.attributeTypeMap; + } +} +exports.BulkMuteFindingsRequestMeta = BulkMuteFindingsRequestMeta; +/** + * @ignore + */ +BulkMuteFindingsRequestMeta.attributeTypeMap = { + findings: { + baseName: "findings", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=BulkMuteFindingsRequestMeta.js.map + +/***/ }), + +/***/ 26855: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.BulkMuteFindingsRequestMetaFindings = void 0; +/** + * Finding object containing the finding information. + */ +class BulkMuteFindingsRequestMetaFindings { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return BulkMuteFindingsRequestMetaFindings.attributeTypeMap; + } +} +exports.BulkMuteFindingsRequestMetaFindings = BulkMuteFindingsRequestMetaFindings; +/** + * @ignore + */ +BulkMuteFindingsRequestMetaFindings.attributeTypeMap = { + findingId: { + baseName: "finding_id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=BulkMuteFindingsRequestMetaFindings.js.map + +/***/ }), + +/***/ 89809: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.BulkMuteFindingsRequestProperties = void 0; +/** + * Object containing the new mute properties of the findings. + */ +class BulkMuteFindingsRequestProperties { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return BulkMuteFindingsRequestProperties.attributeTypeMap; + } +} +exports.BulkMuteFindingsRequestProperties = BulkMuteFindingsRequestProperties; +/** + * @ignore + */ +BulkMuteFindingsRequestProperties.attributeTypeMap = { + description: { + baseName: "description", + type: "string", + }, + expirationDate: { + baseName: "expiration_date", + type: "number", + format: "int64", + }, + muted: { + baseName: "muted", + type: "boolean", + required: true, + }, + reason: { + baseName: "reason", + type: "FindingMuteReason", + required: true, + }, +}; +//# sourceMappingURL=BulkMuteFindingsRequestProperties.js.map + +/***/ }), + +/***/ 49998: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.BulkMuteFindingsResponse = void 0; +/** + * The expected response schema. + */ +class BulkMuteFindingsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return BulkMuteFindingsResponse.attributeTypeMap; + } +} +exports.BulkMuteFindingsResponse = BulkMuteFindingsResponse; +/** + * @ignore + */ +BulkMuteFindingsResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "BulkMuteFindingsResponseData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=BulkMuteFindingsResponse.js.map + +/***/ }), + +/***/ 28286: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.BulkMuteFindingsResponseData = void 0; +/** + * Data object containing the ID of the request that was updated. + */ +class BulkMuteFindingsResponseData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return BulkMuteFindingsResponseData.attributeTypeMap; + } +} +exports.BulkMuteFindingsResponseData = BulkMuteFindingsResponseData; +/** + * @ignore + */ +BulkMuteFindingsResponseData.attributeTypeMap = { + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "FindingType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=BulkMuteFindingsResponseData.js.map + +/***/ }), + +/***/ 76747: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppAggregateBucketValueTimeseriesPoint = void 0; +/** + * A timeseries point. + */ +class CIAppAggregateBucketValueTimeseriesPoint { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppAggregateBucketValueTimeseriesPoint.attributeTypeMap; + } +} +exports.CIAppAggregateBucketValueTimeseriesPoint = CIAppAggregateBucketValueTimeseriesPoint; +/** + * @ignore + */ +CIAppAggregateBucketValueTimeseriesPoint.attributeTypeMap = { + time: { + baseName: "time", + type: "Date", + format: "date-time", + }, + value: { + baseName: "value", + type: "number", + format: "double", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppAggregateBucketValueTimeseriesPoint.js.map + +/***/ }), + +/***/ 35220: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppAggregateSort = void 0; +/** + * A sort rule. The `aggregation` field is required when `type` is `measure`. + */ +class CIAppAggregateSort { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppAggregateSort.attributeTypeMap; + } +} +exports.CIAppAggregateSort = CIAppAggregateSort; +/** + * @ignore + */ +CIAppAggregateSort.attributeTypeMap = { + aggregation: { + baseName: "aggregation", + type: "CIAppAggregationFunction", + }, + metric: { + baseName: "metric", + type: "string", + }, + order: { + baseName: "order", + type: "CIAppSortOrder", + }, + type: { + baseName: "type", + type: "CIAppAggregateSortType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppAggregateSort.js.map + +/***/ }), + +/***/ 47253: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppCIError = void 0; +/** + * Contains information of the CI error. + */ +class CIAppCIError { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppCIError.attributeTypeMap; + } +} +exports.CIAppCIError = CIAppCIError; +/** + * @ignore + */ +CIAppCIError.attributeTypeMap = { + domain: { + baseName: "domain", + type: "CIAppCIErrorDomain", + }, + message: { + baseName: "message", + type: "string", + }, + stack: { + baseName: "stack", + type: "string", + }, + type: { + baseName: "type", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppCIError.js.map + +/***/ }), + +/***/ 1590: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppCompute = void 0; +/** + * A compute rule to compute metrics or timeseries. + */ +class CIAppCompute { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppCompute.attributeTypeMap; + } +} +exports.CIAppCompute = CIAppCompute; +/** + * @ignore + */ +CIAppCompute.attributeTypeMap = { + aggregation: { + baseName: "aggregation", + type: "CIAppAggregationFunction", + required: true, + }, + interval: { + baseName: "interval", + type: "string", + }, + metric: { + baseName: "metric", + type: "string", + }, + type: { + baseName: "type", + type: "CIAppComputeType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppCompute.js.map + +/***/ }), + +/***/ 65916: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppCreatePipelineEventRequest = void 0; +/** + * Request object. + */ +class CIAppCreatePipelineEventRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppCreatePipelineEventRequest.attributeTypeMap; + } +} +exports.CIAppCreatePipelineEventRequest = CIAppCreatePipelineEventRequest; +/** + * @ignore + */ +CIAppCreatePipelineEventRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "CIAppCreatePipelineEventRequestData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppCreatePipelineEventRequest.js.map + +/***/ }), + +/***/ 24653: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppCreatePipelineEventRequestAttributes = void 0; +/** + * Attributes of the pipeline event to create. + */ +class CIAppCreatePipelineEventRequestAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppCreatePipelineEventRequestAttributes.attributeTypeMap; + } +} +exports.CIAppCreatePipelineEventRequestAttributes = CIAppCreatePipelineEventRequestAttributes; +/** + * @ignore + */ +CIAppCreatePipelineEventRequestAttributes.attributeTypeMap = { + env: { + baseName: "env", + type: "string", + }, + resource: { + baseName: "resource", + type: "CIAppCreatePipelineEventRequestAttributesResource", + required: true, + }, + service: { + baseName: "service", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppCreatePipelineEventRequestAttributes.js.map + +/***/ }), + +/***/ 45828: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppCreatePipelineEventRequestData = void 0; +/** + * Data of the pipeline event to create. + */ +class CIAppCreatePipelineEventRequestData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppCreatePipelineEventRequestData.attributeTypeMap; + } +} +exports.CIAppCreatePipelineEventRequestData = CIAppCreatePipelineEventRequestData; +/** + * @ignore + */ +CIAppCreatePipelineEventRequestData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "CIAppCreatePipelineEventRequestAttributes", + }, + type: { + baseName: "type", + type: "CIAppCreatePipelineEventRequestDataType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppCreatePipelineEventRequestData.js.map + +/***/ }), + +/***/ 40718: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppEventAttributes = void 0; +/** + * JSON object containing all event attributes and their associated values. + */ +class CIAppEventAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppEventAttributes.attributeTypeMap; + } +} +exports.CIAppEventAttributes = CIAppEventAttributes; +/** + * @ignore + */ +CIAppEventAttributes.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "{ [key: string]: any; }", + }, + tags: { + baseName: "tags", + type: "Array", + }, + testLevel: { + baseName: "test_level", + type: "CIAppTestLevel", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppEventAttributes.js.map + +/***/ }), + +/***/ 75783: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppGitInfo = void 0; +/** + * If pipelines are triggered due to actions to a Git repository, then all payloads must contain this. + * Note that either `tag` or `branch` has to be provided, but not both. + */ +class CIAppGitInfo { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppGitInfo.attributeTypeMap; + } +} +exports.CIAppGitInfo = CIAppGitInfo; +/** + * @ignore + */ +CIAppGitInfo.attributeTypeMap = { + authorEmail: { + baseName: "author_email", + type: "string", + required: true, + }, + authorName: { + baseName: "author_name", + type: "string", + }, + authorTime: { + baseName: "author_time", + type: "string", + }, + branch: { + baseName: "branch", + type: "string", + }, + commitTime: { + baseName: "commit_time", + type: "string", + }, + committerEmail: { + baseName: "committer_email", + type: "string", + }, + committerName: { + baseName: "committer_name", + type: "string", + }, + defaultBranch: { + baseName: "default_branch", + type: "string", + }, + message: { + baseName: "message", + type: "string", + }, + repositoryUrl: { + baseName: "repository_url", + type: "string", + required: true, + }, + sha: { + baseName: "sha", + type: "string", + required: true, + }, + tag: { + baseName: "tag", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppGitInfo.js.map + +/***/ }), + +/***/ 35191: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppGroupByHistogram = void 0; +/** + * Used to perform a histogram computation (only for measure facets). + * At most, 100 buckets are allowed, the number of buckets is `(max - min)/interval`. + */ +class CIAppGroupByHistogram { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppGroupByHistogram.attributeTypeMap; + } +} +exports.CIAppGroupByHistogram = CIAppGroupByHistogram; +/** + * @ignore + */ +CIAppGroupByHistogram.attributeTypeMap = { + interval: { + baseName: "interval", + type: "number", + required: true, + format: "double", + }, + max: { + baseName: "max", + type: "number", + required: true, + format: "double", + }, + min: { + baseName: "min", + type: "number", + required: true, + format: "double", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppGroupByHistogram.js.map + +/***/ }), + +/***/ 577: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppHostInfo = void 0; +/** + * Contains information of the host running the pipeline, stage, job, or step. + */ +class CIAppHostInfo { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppHostInfo.attributeTypeMap; + } +} +exports.CIAppHostInfo = CIAppHostInfo; +/** + * @ignore + */ +CIAppHostInfo.attributeTypeMap = { + hostname: { + baseName: "hostname", + type: "string", + }, + labels: { + baseName: "labels", + type: "Array", + }, + name: { + baseName: "name", + type: "string", + }, + workspace: { + baseName: "workspace", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppHostInfo.js.map + +/***/ }), + +/***/ 64273: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppPipelineEvent = void 0; +/** + * Object description of a pipeline event after being processed and stored by Datadog. + */ +class CIAppPipelineEvent { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppPipelineEvent.attributeTypeMap; + } +} +exports.CIAppPipelineEvent = CIAppPipelineEvent; +/** + * @ignore + */ +CIAppPipelineEvent.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "CIAppPipelineEventAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "CIAppPipelineEventTypeName", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppPipelineEvent.js.map + +/***/ }), + +/***/ 76752: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppPipelineEventAttributes = void 0; +/** + * JSON object containing all event attributes and their associated values. + */ +class CIAppPipelineEventAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppPipelineEventAttributes.attributeTypeMap; + } +} +exports.CIAppPipelineEventAttributes = CIAppPipelineEventAttributes; +/** + * @ignore + */ +CIAppPipelineEventAttributes.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "{ [key: string]: any; }", + }, + ciLevel: { + baseName: "ci_level", + type: "CIAppPipelineLevel", + }, + tags: { + baseName: "tags", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppPipelineEventAttributes.js.map + +/***/ }), + +/***/ 34657: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppPipelineEventFinishedPipeline = void 0; +/** + * Details of a finished pipeline. + */ +class CIAppPipelineEventFinishedPipeline { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppPipelineEventFinishedPipeline.attributeTypeMap; + } +} +exports.CIAppPipelineEventFinishedPipeline = CIAppPipelineEventFinishedPipeline; +/** + * @ignore + */ +CIAppPipelineEventFinishedPipeline.attributeTypeMap = { + end: { + baseName: "end", + type: "Date", + required: true, + format: "date-time", + }, + error: { + baseName: "error", + type: "CIAppCIError", + }, + git: { + baseName: "git", + type: "CIAppGitInfo", + }, + isManual: { + baseName: "is_manual", + type: "boolean", + }, + isResumed: { + baseName: "is_resumed", + type: "boolean", + }, + level: { + baseName: "level", + type: "CIAppPipelineEventPipelineLevel", + required: true, + }, + metrics: { + baseName: "metrics", + type: "Array", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + node: { + baseName: "node", + type: "CIAppHostInfo", + }, + parameters: { + baseName: "parameters", + type: "{ [key: string]: string; }", + }, + parentPipeline: { + baseName: "parent_pipeline", + type: "CIAppPipelineEventParentPipeline", + }, + partialRetry: { + baseName: "partial_retry", + type: "boolean", + required: true, + }, + pipelineId: { + baseName: "pipeline_id", + type: "string", + }, + previousAttempt: { + baseName: "previous_attempt", + type: "CIAppPipelineEventPreviousPipeline", + }, + queueTime: { + baseName: "queue_time", + type: "number", + format: "int64", + }, + start: { + baseName: "start", + type: "Date", + required: true, + format: "date-time", + }, + status: { + baseName: "status", + type: "CIAppPipelineEventPipelineStatus", + required: true, + }, + tags: { + baseName: "tags", + type: "Array", + }, + uniqueId: { + baseName: "unique_id", + type: "string", + required: true, + }, + url: { + baseName: "url", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppPipelineEventFinishedPipeline.js.map + +/***/ }), + +/***/ 39459: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppPipelineEventInProgressPipeline = void 0; +/** + * Details of a running pipeline. + */ +class CIAppPipelineEventInProgressPipeline { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppPipelineEventInProgressPipeline.attributeTypeMap; + } +} +exports.CIAppPipelineEventInProgressPipeline = CIAppPipelineEventInProgressPipeline; +/** + * @ignore + */ +CIAppPipelineEventInProgressPipeline.attributeTypeMap = { + error: { + baseName: "error", + type: "CIAppCIError", + }, + git: { + baseName: "git", + type: "CIAppGitInfo", + }, + isManual: { + baseName: "is_manual", + type: "boolean", + }, + isResumed: { + baseName: "is_resumed", + type: "boolean", + }, + level: { + baseName: "level", + type: "CIAppPipelineEventPipelineLevel", + required: true, + }, + metrics: { + baseName: "metrics", + type: "Array", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + node: { + baseName: "node", + type: "CIAppHostInfo", + }, + parameters: { + baseName: "parameters", + type: "{ [key: string]: string; }", + }, + parentPipeline: { + baseName: "parent_pipeline", + type: "CIAppPipelineEventParentPipeline", + }, + partialRetry: { + baseName: "partial_retry", + type: "boolean", + required: true, + }, + pipelineId: { + baseName: "pipeline_id", + type: "string", + }, + previousAttempt: { + baseName: "previous_attempt", + type: "CIAppPipelineEventPreviousPipeline", + }, + queueTime: { + baseName: "queue_time", + type: "number", + format: "int64", + }, + start: { + baseName: "start", + type: "Date", + required: true, + format: "date-time", + }, + status: { + baseName: "status", + type: "CIAppPipelineEventPipelineInProgressStatus", + required: true, + }, + tags: { + baseName: "tags", + type: "Array", + }, + uniqueId: { + baseName: "unique_id", + type: "string", + required: true, + }, + url: { + baseName: "url", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppPipelineEventInProgressPipeline.js.map + +/***/ }), + +/***/ 31170: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppPipelineEventJob = void 0; +/** + * Details of a CI job. + */ +class CIAppPipelineEventJob { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppPipelineEventJob.attributeTypeMap; + } +} +exports.CIAppPipelineEventJob = CIAppPipelineEventJob; +/** + * @ignore + */ +CIAppPipelineEventJob.attributeTypeMap = { + dependencies: { + baseName: "dependencies", + type: "Array", + }, + end: { + baseName: "end", + type: "Date", + required: true, + format: "date-time", + }, + error: { + baseName: "error", + type: "CIAppCIError", + }, + git: { + baseName: "git", + type: "CIAppGitInfo", + }, + id: { + baseName: "id", + type: "string", + required: true, + }, + level: { + baseName: "level", + type: "CIAppPipelineEventJobLevel", + required: true, + }, + metrics: { + baseName: "metrics", + type: "Array", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + node: { + baseName: "node", + type: "CIAppHostInfo", + }, + parameters: { + baseName: "parameters", + type: "{ [key: string]: string; }", + }, + pipelineName: { + baseName: "pipeline_name", + type: "string", + required: true, + }, + pipelineUniqueId: { + baseName: "pipeline_unique_id", + type: "string", + required: true, + }, + queueTime: { + baseName: "queue_time", + type: "number", + format: "int64", + }, + stageId: { + baseName: "stage_id", + type: "string", + }, + stageName: { + baseName: "stage_name", + type: "string", + }, + start: { + baseName: "start", + type: "Date", + required: true, + format: "date-time", + }, + status: { + baseName: "status", + type: "CIAppPipelineEventJobStatus", + required: true, + }, + tags: { + baseName: "tags", + type: "Array", + }, + url: { + baseName: "url", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppPipelineEventJob.js.map + +/***/ }), + +/***/ 42807: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppPipelineEventParentPipeline = void 0; +/** + * If the pipeline is triggered as child of another pipeline, this should contain the details of the parent pipeline. + */ +class CIAppPipelineEventParentPipeline { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppPipelineEventParentPipeline.attributeTypeMap; + } +} +exports.CIAppPipelineEventParentPipeline = CIAppPipelineEventParentPipeline; +/** + * @ignore + */ +CIAppPipelineEventParentPipeline.attributeTypeMap = { + id: { + baseName: "id", + type: "string", + required: true, + }, + url: { + baseName: "url", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppPipelineEventParentPipeline.js.map + +/***/ }), + +/***/ 17462: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppPipelineEventPreviousPipeline = void 0; +/** + * If the pipeline is a retry, this should contain the details of the previous attempt. + */ +class CIAppPipelineEventPreviousPipeline { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppPipelineEventPreviousPipeline.attributeTypeMap; + } +} +exports.CIAppPipelineEventPreviousPipeline = CIAppPipelineEventPreviousPipeline; +/** + * @ignore + */ +CIAppPipelineEventPreviousPipeline.attributeTypeMap = { + id: { + baseName: "id", + type: "string", + required: true, + }, + url: { + baseName: "url", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppPipelineEventPreviousPipeline.js.map + +/***/ }), + +/***/ 53599: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppPipelineEventStage = void 0; +/** + * Details of a CI stage. + */ +class CIAppPipelineEventStage { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppPipelineEventStage.attributeTypeMap; + } +} +exports.CIAppPipelineEventStage = CIAppPipelineEventStage; +/** + * @ignore + */ +CIAppPipelineEventStage.attributeTypeMap = { + dependencies: { + baseName: "dependencies", + type: "Array", + }, + end: { + baseName: "end", + type: "Date", + required: true, + format: "date-time", + }, + error: { + baseName: "error", + type: "CIAppCIError", + }, + git: { + baseName: "git", + type: "CIAppGitInfo", + }, + id: { + baseName: "id", + type: "string", + required: true, + }, + level: { + baseName: "level", + type: "CIAppPipelineEventStageLevel", + required: true, + }, + metrics: { + baseName: "metrics", + type: "Array", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + node: { + baseName: "node", + type: "CIAppHostInfo", + }, + parameters: { + baseName: "parameters", + type: "{ [key: string]: string; }", + }, + pipelineName: { + baseName: "pipeline_name", + type: "string", + required: true, + }, + pipelineUniqueId: { + baseName: "pipeline_unique_id", + type: "string", + required: true, + }, + queueTime: { + baseName: "queue_time", + type: "number", + format: "int64", + }, + start: { + baseName: "start", + type: "Date", + required: true, + format: "date-time", + }, + status: { + baseName: "status", + type: "CIAppPipelineEventStageStatus", + required: true, + }, + tags: { + baseName: "tags", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppPipelineEventStage.js.map + +/***/ }), + +/***/ 94523: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppPipelineEventStep = void 0; +/** + * Details of a CI step. + */ +class CIAppPipelineEventStep { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppPipelineEventStep.attributeTypeMap; + } +} +exports.CIAppPipelineEventStep = CIAppPipelineEventStep; +/** + * @ignore + */ +CIAppPipelineEventStep.attributeTypeMap = { + end: { + baseName: "end", + type: "Date", + required: true, + format: "date-time", + }, + error: { + baseName: "error", + type: "CIAppCIError", + }, + git: { + baseName: "git", + type: "CIAppGitInfo", + }, + id: { + baseName: "id", + type: "string", + required: true, + }, + jobId: { + baseName: "job_id", + type: "string", + }, + jobName: { + baseName: "job_name", + type: "string", + }, + level: { + baseName: "level", + type: "CIAppPipelineEventStepLevel", + required: true, + }, + metrics: { + baseName: "metrics", + type: "Array", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + node: { + baseName: "node", + type: "CIAppHostInfo", + }, + parameters: { + baseName: "parameters", + type: "{ [key: string]: string; }", + }, + pipelineName: { + baseName: "pipeline_name", + type: "string", + required: true, + }, + pipelineUniqueId: { + baseName: "pipeline_unique_id", + type: "string", + required: true, + }, + stageId: { + baseName: "stage_id", + type: "string", + }, + stageName: { + baseName: "stage_name", + type: "string", + }, + start: { + baseName: "start", + type: "Date", + required: true, + format: "date-time", + }, + status: { + baseName: "status", + type: "CIAppPipelineEventStepStatus", + required: true, + }, + tags: { + baseName: "tags", + type: "Array", + }, + url: { + baseName: "url", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppPipelineEventStep.js.map + +/***/ }), + +/***/ 19439: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppPipelineEventsRequest = void 0; +/** + * The request for a pipelines search. + */ +class CIAppPipelineEventsRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppPipelineEventsRequest.attributeTypeMap; + } +} +exports.CIAppPipelineEventsRequest = CIAppPipelineEventsRequest; +/** + * @ignore + */ +CIAppPipelineEventsRequest.attributeTypeMap = { + filter: { + baseName: "filter", + type: "CIAppPipelinesQueryFilter", + }, + options: { + baseName: "options", + type: "CIAppQueryOptions", + }, + page: { + baseName: "page", + type: "CIAppQueryPageOptions", + }, + sort: { + baseName: "sort", + type: "CIAppSort", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppPipelineEventsRequest.js.map + +/***/ }), + +/***/ 39307: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppPipelineEventsResponse = void 0; +/** + * Response object with all pipeline events matching the request and pagination information. + */ +class CIAppPipelineEventsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppPipelineEventsResponse.attributeTypeMap; + } +} +exports.CIAppPipelineEventsResponse = CIAppPipelineEventsResponse; +/** + * @ignore + */ +CIAppPipelineEventsResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "Array", + }, + links: { + baseName: "links", + type: "CIAppResponseLinks", + }, + meta: { + baseName: "meta", + type: "CIAppResponseMetadataWithPagination", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppPipelineEventsResponse.js.map + +/***/ }), + +/***/ 35524: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppPipelinesAggregateRequest = void 0; +/** + * The object sent with the request to retrieve aggregation buckets of pipeline events from your organization. + */ +class CIAppPipelinesAggregateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppPipelinesAggregateRequest.attributeTypeMap; + } +} +exports.CIAppPipelinesAggregateRequest = CIAppPipelinesAggregateRequest; +/** + * @ignore + */ +CIAppPipelinesAggregateRequest.attributeTypeMap = { + compute: { + baseName: "compute", + type: "Array", + }, + filter: { + baseName: "filter", + type: "CIAppPipelinesQueryFilter", + }, + groupBy: { + baseName: "group_by", + type: "Array", + }, + options: { + baseName: "options", + type: "CIAppQueryOptions", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppPipelinesAggregateRequest.js.map + +/***/ }), + +/***/ 76334: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppPipelinesAggregationBucketsResponse = void 0; +/** + * The query results. + */ +class CIAppPipelinesAggregationBucketsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppPipelinesAggregationBucketsResponse.attributeTypeMap; + } +} +exports.CIAppPipelinesAggregationBucketsResponse = CIAppPipelinesAggregationBucketsResponse; +/** + * @ignore + */ +CIAppPipelinesAggregationBucketsResponse.attributeTypeMap = { + buckets: { + baseName: "buckets", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppPipelinesAggregationBucketsResponse.js.map + +/***/ }), + +/***/ 9688: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppPipelinesAnalyticsAggregateResponse = void 0; +/** + * The response object for the pipeline events aggregate API endpoint. + */ +class CIAppPipelinesAnalyticsAggregateResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppPipelinesAnalyticsAggregateResponse.attributeTypeMap; + } +} +exports.CIAppPipelinesAnalyticsAggregateResponse = CIAppPipelinesAnalyticsAggregateResponse; +/** + * @ignore + */ +CIAppPipelinesAnalyticsAggregateResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "CIAppPipelinesAggregationBucketsResponse", + }, + links: { + baseName: "links", + type: "CIAppResponseLinks", + }, + meta: { + baseName: "meta", + type: "CIAppResponseMetadata", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppPipelinesAnalyticsAggregateResponse.js.map + +/***/ }), + +/***/ 54877: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppPipelinesBucketResponse = void 0; +/** + * Bucket values. + */ +class CIAppPipelinesBucketResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppPipelinesBucketResponse.attributeTypeMap; + } +} +exports.CIAppPipelinesBucketResponse = CIAppPipelinesBucketResponse; +/** + * @ignore + */ +CIAppPipelinesBucketResponse.attributeTypeMap = { + by: { + baseName: "by", + type: "{ [key: string]: any; }", + }, + computes: { + baseName: "computes", + type: "{ [key: string]: CIAppAggregateBucketValue; }", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppPipelinesBucketResponse.js.map + +/***/ }), + +/***/ 16056: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppPipelinesGroupBy = void 0; +/** + * A group-by rule. + */ +class CIAppPipelinesGroupBy { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppPipelinesGroupBy.attributeTypeMap; + } +} +exports.CIAppPipelinesGroupBy = CIAppPipelinesGroupBy; +/** + * @ignore + */ +CIAppPipelinesGroupBy.attributeTypeMap = { + facet: { + baseName: "facet", + type: "string", + required: true, + }, + histogram: { + baseName: "histogram", + type: "CIAppGroupByHistogram", + }, + limit: { + baseName: "limit", + type: "number", + format: "int64", + }, + missing: { + baseName: "missing", + type: "CIAppGroupByMissing", + }, + sort: { + baseName: "sort", + type: "CIAppAggregateSort", + }, + total: { + baseName: "total", + type: "CIAppGroupByTotal", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppPipelinesGroupBy.js.map + +/***/ }), + +/***/ 93280: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppPipelinesQueryFilter = void 0; +/** + * The search and filter query settings. + */ +class CIAppPipelinesQueryFilter { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppPipelinesQueryFilter.attributeTypeMap; + } +} +exports.CIAppPipelinesQueryFilter = CIAppPipelinesQueryFilter; +/** + * @ignore + */ +CIAppPipelinesQueryFilter.attributeTypeMap = { + from: { + baseName: "from", + type: "string", + }, + query: { + baseName: "query", + type: "string", + }, + to: { + baseName: "to", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppPipelinesQueryFilter.js.map + +/***/ }), + +/***/ 61937: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppQueryOptions = void 0; +/** + * Global query options that are used during the query. + * Only supply timezone or time offset, not both. Otherwise, the query fails. + */ +class CIAppQueryOptions { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppQueryOptions.attributeTypeMap; + } +} +exports.CIAppQueryOptions = CIAppQueryOptions; +/** + * @ignore + */ +CIAppQueryOptions.attributeTypeMap = { + timeOffset: { + baseName: "time_offset", + type: "number", + format: "int64", + }, + timezone: { + baseName: "timezone", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppQueryOptions.js.map + +/***/ }), + +/***/ 17028: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppQueryPageOptions = void 0; +/** + * Paging attributes for listing events. + */ +class CIAppQueryPageOptions { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppQueryPageOptions.attributeTypeMap; + } +} +exports.CIAppQueryPageOptions = CIAppQueryPageOptions; +/** + * @ignore + */ +CIAppQueryPageOptions.attributeTypeMap = { + cursor: { + baseName: "cursor", + type: "string", + }, + limit: { + baseName: "limit", + type: "number", + format: "int32", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppQueryPageOptions.js.map + +/***/ }), + +/***/ 65027: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppResponseLinks = void 0; +/** + * Links attributes. + */ +class CIAppResponseLinks { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppResponseLinks.attributeTypeMap; + } +} +exports.CIAppResponseLinks = CIAppResponseLinks; +/** + * @ignore + */ +CIAppResponseLinks.attributeTypeMap = { + next: { + baseName: "next", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppResponseLinks.js.map + +/***/ }), + +/***/ 62841: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppResponseMetadata = void 0; +/** + * The metadata associated with a request. + */ +class CIAppResponseMetadata { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppResponseMetadata.attributeTypeMap; + } +} +exports.CIAppResponseMetadata = CIAppResponseMetadata; +/** + * @ignore + */ +CIAppResponseMetadata.attributeTypeMap = { + elapsed: { + baseName: "elapsed", + type: "number", + format: "int64", + }, + requestId: { + baseName: "request_id", + type: "string", + }, + status: { + baseName: "status", + type: "CIAppResponseStatus", + }, + warnings: { + baseName: "warnings", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppResponseMetadata.js.map + +/***/ }), + +/***/ 64661: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppResponseMetadataWithPagination = void 0; +/** + * The metadata associated with a request. + */ +class CIAppResponseMetadataWithPagination { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppResponseMetadataWithPagination.attributeTypeMap; + } +} +exports.CIAppResponseMetadataWithPagination = CIAppResponseMetadataWithPagination; +/** + * @ignore + */ +CIAppResponseMetadataWithPagination.attributeTypeMap = { + elapsed: { + baseName: "elapsed", + type: "number", + format: "int64", + }, + page: { + baseName: "page", + type: "CIAppResponsePage", + }, + requestId: { + baseName: "request_id", + type: "string", + }, + status: { + baseName: "status", + type: "CIAppResponseStatus", + }, + warnings: { + baseName: "warnings", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppResponseMetadataWithPagination.js.map + +/***/ }), + +/***/ 81679: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppResponsePage = void 0; +/** + * Paging attributes. + */ +class CIAppResponsePage { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppResponsePage.attributeTypeMap; + } +} +exports.CIAppResponsePage = CIAppResponsePage; +/** + * @ignore + */ +CIAppResponsePage.attributeTypeMap = { + after: { + baseName: "after", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppResponsePage.js.map + +/***/ }), + +/***/ 86375: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppTestEvent = void 0; +/** + * Object description of test event after being processed and stored by Datadog. + */ +class CIAppTestEvent { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppTestEvent.attributeTypeMap; + } +} +exports.CIAppTestEvent = CIAppTestEvent; +/** + * @ignore + */ +CIAppTestEvent.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "CIAppEventAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "CIAppTestEventTypeName", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppTestEvent.js.map + +/***/ }), + +/***/ 78081: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppTestEventsRequest = void 0; +/** + * The request for a tests search. + */ +class CIAppTestEventsRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppTestEventsRequest.attributeTypeMap; + } +} +exports.CIAppTestEventsRequest = CIAppTestEventsRequest; +/** + * @ignore + */ +CIAppTestEventsRequest.attributeTypeMap = { + filter: { + baseName: "filter", + type: "CIAppTestsQueryFilter", + }, + options: { + baseName: "options", + type: "CIAppQueryOptions", + }, + page: { + baseName: "page", + type: "CIAppQueryPageOptions", + }, + sort: { + baseName: "sort", + type: "CIAppSort", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppTestEventsRequest.js.map + +/***/ }), + +/***/ 39669: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppTestEventsResponse = void 0; +/** + * Response object with all test events matching the request and pagination information. + */ +class CIAppTestEventsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppTestEventsResponse.attributeTypeMap; + } +} +exports.CIAppTestEventsResponse = CIAppTestEventsResponse; +/** + * @ignore + */ +CIAppTestEventsResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "Array", + }, + links: { + baseName: "links", + type: "CIAppResponseLinks", + }, + meta: { + baseName: "meta", + type: "CIAppResponseMetadataWithPagination", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppTestEventsResponse.js.map + +/***/ }), + +/***/ 90678: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppTestsAggregateRequest = void 0; +/** + * The object sent with the request to retrieve aggregation buckets of test events from your organization. + */ +class CIAppTestsAggregateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppTestsAggregateRequest.attributeTypeMap; + } +} +exports.CIAppTestsAggregateRequest = CIAppTestsAggregateRequest; +/** + * @ignore + */ +CIAppTestsAggregateRequest.attributeTypeMap = { + compute: { + baseName: "compute", + type: "Array", + }, + filter: { + baseName: "filter", + type: "CIAppTestsQueryFilter", + }, + groupBy: { + baseName: "group_by", + type: "Array", + }, + options: { + baseName: "options", + type: "CIAppQueryOptions", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppTestsAggregateRequest.js.map + +/***/ }), + +/***/ 91300: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppTestsAggregationBucketsResponse = void 0; +/** + * The query results. + */ +class CIAppTestsAggregationBucketsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppTestsAggregationBucketsResponse.attributeTypeMap; + } +} +exports.CIAppTestsAggregationBucketsResponse = CIAppTestsAggregationBucketsResponse; +/** + * @ignore + */ +CIAppTestsAggregationBucketsResponse.attributeTypeMap = { + buckets: { + baseName: "buckets", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppTestsAggregationBucketsResponse.js.map + +/***/ }), + +/***/ 52058: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppTestsAnalyticsAggregateResponse = void 0; +/** + * The response object for the test events aggregate API endpoint. + */ +class CIAppTestsAnalyticsAggregateResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppTestsAnalyticsAggregateResponse.attributeTypeMap; + } +} +exports.CIAppTestsAnalyticsAggregateResponse = CIAppTestsAnalyticsAggregateResponse; +/** + * @ignore + */ +CIAppTestsAnalyticsAggregateResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "CIAppTestsAggregationBucketsResponse", + }, + links: { + baseName: "links", + type: "CIAppResponseLinks", + }, + meta: { + baseName: "meta", + type: "CIAppResponseMetadataWithPagination", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppTestsAnalyticsAggregateResponse.js.map + +/***/ }), + +/***/ 98623: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppTestsBucketResponse = void 0; +/** + * Bucket values. + */ +class CIAppTestsBucketResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppTestsBucketResponse.attributeTypeMap; + } +} +exports.CIAppTestsBucketResponse = CIAppTestsBucketResponse; +/** + * @ignore + */ +CIAppTestsBucketResponse.attributeTypeMap = { + by: { + baseName: "by", + type: "{ [key: string]: any; }", + }, + computes: { + baseName: "computes", + type: "{ [key: string]: CIAppAggregateBucketValue; }", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppTestsBucketResponse.js.map + +/***/ }), + +/***/ 42870: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppTestsGroupBy = void 0; +/** + * A group-by rule. + */ +class CIAppTestsGroupBy { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppTestsGroupBy.attributeTypeMap; + } +} +exports.CIAppTestsGroupBy = CIAppTestsGroupBy; +/** + * @ignore + */ +CIAppTestsGroupBy.attributeTypeMap = { + facet: { + baseName: "facet", + type: "string", + required: true, + }, + histogram: { + baseName: "histogram", + type: "CIAppGroupByHistogram", + }, + limit: { + baseName: "limit", + type: "number", + format: "int64", + }, + missing: { + baseName: "missing", + type: "CIAppGroupByMissing", + }, + sort: { + baseName: "sort", + type: "CIAppAggregateSort", + }, + total: { + baseName: "total", + type: "CIAppGroupByTotal", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppTestsGroupBy.js.map + +/***/ }), + +/***/ 53266: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppTestsQueryFilter = void 0; +/** + * The search and filter query settings. + */ +class CIAppTestsQueryFilter { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppTestsQueryFilter.attributeTypeMap; + } +} +exports.CIAppTestsQueryFilter = CIAppTestsQueryFilter; +/** + * @ignore + */ +CIAppTestsQueryFilter.attributeTypeMap = { + from: { + baseName: "from", + type: "string", + }, + query: { + baseName: "query", + type: "string", + }, + to: { + baseName: "to", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppTestsQueryFilter.js.map + +/***/ }), + +/***/ 48183: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIAppWarning = void 0; +/** + * A warning message indicating something that went wrong with the query. + */ +class CIAppWarning { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CIAppWarning.attributeTypeMap; + } +} +exports.CIAppWarning = CIAppWarning; +/** + * @ignore + */ +CIAppWarning.attributeTypeMap = { + code: { + baseName: "code", + type: "string", + }, + detail: { + baseName: "detail", + type: "string", + }, + title: { + baseName: "title", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CIAppWarning.js.map + +/***/ }), + +/***/ 83134: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CSMAgentsMetadata = void 0; +/** + * Metadata related to the paginated response. + */ +class CSMAgentsMetadata { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CSMAgentsMetadata.attributeTypeMap; + } +} +exports.CSMAgentsMetadata = CSMAgentsMetadata; +/** + * @ignore + */ +CSMAgentsMetadata.attributeTypeMap = { + pageIndex: { + baseName: "page_index", + type: "number", + format: "int64", + }, + pageSize: { + baseName: "page_size", + type: "number", + format: "int64", + }, + totalFiltered: { + baseName: "total_filtered", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CSMAgentsMetadata.js.map + +/***/ }), + +/***/ 84356: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CalculatedField = void 0; +/** + * Calculated field. + */ +class CalculatedField { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CalculatedField.attributeTypeMap; + } +} +exports.CalculatedField = CalculatedField; +/** + * @ignore + */ +CalculatedField.attributeTypeMap = { + expression: { + baseName: "expression", + type: "string", + required: true, + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CalculatedField.js.map + +/***/ }), + +/***/ 53857: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CancelDataDeletionResponseBody = void 0; +/** + * The response from the cancel data deletion request endpoint. + */ +class CancelDataDeletionResponseBody { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CancelDataDeletionResponseBody.attributeTypeMap; + } +} +exports.CancelDataDeletionResponseBody = CancelDataDeletionResponseBody; +/** + * @ignore + */ +CancelDataDeletionResponseBody.attributeTypeMap = { + data: { + baseName: "data", + type: "DataDeletionResponseItem", + }, + meta: { + baseName: "meta", + type: "DataDeletionResponseMeta", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CancelDataDeletionResponseBody.js.map + +/***/ }), + +/***/ 92974: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Case = void 0; +/** + * A case + */ +class Case { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return Case.attributeTypeMap; + } +} +exports.Case = Case; +/** + * @ignore + */ +Case.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "CaseAttributes", + required: true, + }, + id: { + baseName: "id", + type: "string", + required: true, + }, + relationships: { + baseName: "relationships", + type: "CaseRelationships", + }, + type: { + baseName: "type", + type: "CaseResourceType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=Case.js.map + +/***/ }), + +/***/ 64507: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CaseAssign = void 0; +/** + * Case assign + */ +class CaseAssign { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CaseAssign.attributeTypeMap; + } +} +exports.CaseAssign = CaseAssign; +/** + * @ignore + */ +CaseAssign.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "CaseAssignAttributes", + required: true, + }, + type: { + baseName: "type", + type: "CaseResourceType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CaseAssign.js.map + +/***/ }), + +/***/ 78638: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CaseAssignAttributes = void 0; +/** + * Case assign attributes + */ +class CaseAssignAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CaseAssignAttributes.attributeTypeMap; + } +} +exports.CaseAssignAttributes = CaseAssignAttributes; +/** + * @ignore + */ +CaseAssignAttributes.attributeTypeMap = { + assigneeId: { + baseName: "assignee_id", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CaseAssignAttributes.js.map + +/***/ }), + +/***/ 10438: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CaseAssignRequest = void 0; +/** + * Case assign request + */ +class CaseAssignRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CaseAssignRequest.attributeTypeMap; + } +} +exports.CaseAssignRequest = CaseAssignRequest; +/** + * @ignore + */ +CaseAssignRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "CaseAssign", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CaseAssignRequest.js.map + +/***/ }), + +/***/ 65355: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CaseAttributes = void 0; +/** + * Case attributes + */ +class CaseAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CaseAttributes.attributeTypeMap; + } +} +exports.CaseAttributes = CaseAttributes; +/** + * @ignore + */ +CaseAttributes.attributeTypeMap = { + archivedAt: { + baseName: "archived_at", + type: "Date", + format: "date-time", + }, + closedAt: { + baseName: "closed_at", + type: "Date", + format: "date-time", + }, + createdAt: { + baseName: "created_at", + type: "Date", + format: "date-time", + }, + description: { + baseName: "description", + type: "string", + }, + jiraIssue: { + baseName: "jira_issue", + type: "JiraIssue", + }, + key: { + baseName: "key", + type: "string", + }, + modifiedAt: { + baseName: "modified_at", + type: "Date", + format: "date-time", + }, + priority: { + baseName: "priority", + type: "CasePriority", + }, + serviceNowTicket: { + baseName: "service_now_ticket", + type: "ServiceNowTicket", + }, + status: { + baseName: "status", + type: "CaseStatus", + }, + title: { + baseName: "title", + type: "string", + }, + type: { + baseName: "type", + type: "CaseType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CaseAttributes.js.map + +/***/ }), + +/***/ 45982: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CaseCreate = void 0; +/** + * Case creation data + */ +class CaseCreate { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CaseCreate.attributeTypeMap; + } +} +exports.CaseCreate = CaseCreate; +/** + * @ignore + */ +CaseCreate.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "CaseCreateAttributes", + required: true, + }, + relationships: { + baseName: "relationships", + type: "CaseCreateRelationships", + }, + type: { + baseName: "type", + type: "CaseResourceType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CaseCreate.js.map + +/***/ }), + +/***/ 96571: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CaseCreateAttributes = void 0; +/** + * Case creation attributes + */ +class CaseCreateAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CaseCreateAttributes.attributeTypeMap; + } +} +exports.CaseCreateAttributes = CaseCreateAttributes; +/** + * @ignore + */ +CaseCreateAttributes.attributeTypeMap = { + description: { + baseName: "description", + type: "string", + }, + priority: { + baseName: "priority", + type: "CasePriority", + }, + title: { + baseName: "title", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "CaseType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CaseCreateAttributes.js.map + +/***/ }), + +/***/ 99199: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CaseCreateRelationships = void 0; +/** + * Relationships formed with the case on creation + */ +class CaseCreateRelationships { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CaseCreateRelationships.attributeTypeMap; + } +} +exports.CaseCreateRelationships = CaseCreateRelationships; +/** + * @ignore + */ +CaseCreateRelationships.attributeTypeMap = { + assignee: { + baseName: "assignee", + type: "NullableUserRelationship", + }, + project: { + baseName: "project", + type: "ProjectRelationship", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CaseCreateRelationships.js.map + +/***/ }), + +/***/ 99253: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CaseCreateRequest = void 0; +/** + * Case create request + */ +class CaseCreateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CaseCreateRequest.attributeTypeMap; + } +} +exports.CaseCreateRequest = CaseCreateRequest; +/** + * @ignore + */ +CaseCreateRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "CaseCreate", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CaseCreateRequest.js.map + +/***/ }), + +/***/ 29393: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CaseEmpty = void 0; +/** + * Case empty request data + */ +class CaseEmpty { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CaseEmpty.attributeTypeMap; + } +} +exports.CaseEmpty = CaseEmpty; +/** + * @ignore + */ +CaseEmpty.attributeTypeMap = { + type: { + baseName: "type", + type: "CaseResourceType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CaseEmpty.js.map + +/***/ }), + +/***/ 3960: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CaseEmptyRequest = void 0; +/** + * Case empty request + */ +class CaseEmptyRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CaseEmptyRequest.attributeTypeMap; + } +} +exports.CaseEmptyRequest = CaseEmptyRequest; +/** + * @ignore + */ +CaseEmptyRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "CaseEmpty", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CaseEmptyRequest.js.map + +/***/ }), + +/***/ 38063: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CaseRelationships = void 0; +/** + * Resources related to a case + */ +class CaseRelationships { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CaseRelationships.attributeTypeMap; + } +} +exports.CaseRelationships = CaseRelationships; +/** + * @ignore + */ +CaseRelationships.attributeTypeMap = { + assignee: { + baseName: "assignee", + type: "NullableUserRelationship", + }, + createdBy: { + baseName: "created_by", + type: "NullableUserRelationship", + }, + modifiedBy: { + baseName: "modified_by", + type: "NullableUserRelationship", + }, + project: { + baseName: "project", + type: "ProjectRelationship", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CaseRelationships.js.map + +/***/ }), + +/***/ 66369: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CaseResponse = void 0; +/** + * Case response + */ +class CaseResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CaseResponse.attributeTypeMap; + } +} +exports.CaseResponse = CaseResponse; +/** + * @ignore + */ +CaseResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "Case", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CaseResponse.js.map + +/***/ }), + +/***/ 86811: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CaseUpdatePriority = void 0; +/** + * Case priority status + */ +class CaseUpdatePriority { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CaseUpdatePriority.attributeTypeMap; + } +} +exports.CaseUpdatePriority = CaseUpdatePriority; +/** + * @ignore + */ +CaseUpdatePriority.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "CaseUpdatePriorityAttributes", + required: true, + }, + type: { + baseName: "type", + type: "CaseResourceType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CaseUpdatePriority.js.map + +/***/ }), + +/***/ 54369: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CaseUpdatePriorityAttributes = void 0; +/** + * Case update priority attributes + */ +class CaseUpdatePriorityAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CaseUpdatePriorityAttributes.attributeTypeMap; + } +} +exports.CaseUpdatePriorityAttributes = CaseUpdatePriorityAttributes; +/** + * @ignore + */ +CaseUpdatePriorityAttributes.attributeTypeMap = { + priority: { + baseName: "priority", + type: "CasePriority", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CaseUpdatePriorityAttributes.js.map + +/***/ }), + +/***/ 94662: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CaseUpdatePriorityRequest = void 0; +/** + * Case update priority request + */ +class CaseUpdatePriorityRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CaseUpdatePriorityRequest.attributeTypeMap; + } +} +exports.CaseUpdatePriorityRequest = CaseUpdatePriorityRequest; +/** + * @ignore + */ +CaseUpdatePriorityRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "CaseUpdatePriority", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CaseUpdatePriorityRequest.js.map + +/***/ }), + +/***/ 4121: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CaseUpdateStatus = void 0; +/** + * Case update status + */ +class CaseUpdateStatus { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CaseUpdateStatus.attributeTypeMap; + } +} +exports.CaseUpdateStatus = CaseUpdateStatus; +/** + * @ignore + */ +CaseUpdateStatus.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "CaseUpdateStatusAttributes", + required: true, + }, + type: { + baseName: "type", + type: "CaseResourceType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CaseUpdateStatus.js.map + +/***/ }), + +/***/ 1256: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CaseUpdateStatusAttributes = void 0; +/** + * Case update status attributes + */ +class CaseUpdateStatusAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CaseUpdateStatusAttributes.attributeTypeMap; + } +} +exports.CaseUpdateStatusAttributes = CaseUpdateStatusAttributes; +/** + * @ignore + */ +CaseUpdateStatusAttributes.attributeTypeMap = { + status: { + baseName: "status", + type: "CaseStatus", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CaseUpdateStatusAttributes.js.map + +/***/ }), + +/***/ 15536: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CaseUpdateStatusRequest = void 0; +/** + * Case update status request + */ +class CaseUpdateStatusRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CaseUpdateStatusRequest.attributeTypeMap; + } +} +exports.CaseUpdateStatusRequest = CaseUpdateStatusRequest; +/** + * @ignore + */ +CaseUpdateStatusRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "CaseUpdateStatus", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CaseUpdateStatusRequest.js.map + +/***/ }), + +/***/ 3702: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CasesResponse = void 0; +/** + * Response with cases + */ +class CasesResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CasesResponse.attributeTypeMap; + } +} +exports.CasesResponse = CasesResponse; +/** + * @ignore + */ +CasesResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "Array", + }, + meta: { + baseName: "meta", + type: "CasesResponseMeta", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CasesResponse.js.map + +/***/ }), + +/***/ 99983: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CasesResponseMeta = void 0; +/** + * Cases response metadata + */ +class CasesResponseMeta { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CasesResponseMeta.attributeTypeMap; + } +} +exports.CasesResponseMeta = CasesResponseMeta; +/** + * @ignore + */ +CasesResponseMeta.attributeTypeMap = { + page: { + baseName: "page", + type: "CasesResponseMetaPagination", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CasesResponseMeta.js.map + +/***/ }), + +/***/ 5887: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CasesResponseMetaPagination = void 0; +/** + * Pagination metadata + */ +class CasesResponseMetaPagination { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CasesResponseMetaPagination.attributeTypeMap; + } +} +exports.CasesResponseMetaPagination = CasesResponseMetaPagination; +/** + * @ignore + */ +CasesResponseMetaPagination.attributeTypeMap = { + current: { + baseName: "current", + type: "number", + format: "int64", + }, + size: { + baseName: "size", + type: "number", + format: "int64", + }, + total: { + baseName: "total", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CasesResponseMetaPagination.js.map + +/***/ }), + +/***/ 24074: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ChangeEventCustomAttributes = void 0; +/** + * Object representing custom change event attributes. + */ +class ChangeEventCustomAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ChangeEventCustomAttributes.attributeTypeMap; + } +} +exports.ChangeEventCustomAttributes = ChangeEventCustomAttributes; +/** + * @ignore + */ +ChangeEventCustomAttributes.attributeTypeMap = { + author: { + baseName: "author", + type: "ChangeEventCustomAttributesAuthor", + }, + changeMetadata: { + baseName: "change_metadata", + type: "{ [key: string]: any; }", + }, + changedResource: { + baseName: "changed_resource", + type: "ChangeEventCustomAttributesChangedResource", + required: true, + }, + impactedResources: { + baseName: "impacted_resources", + type: "Array", + }, + newValue: { + baseName: "new_value", + type: "{ [key: string]: any; }", + }, + prevValue: { + baseName: "prev_value", + type: "{ [key: string]: any; }", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ChangeEventCustomAttributes.js.map + +/***/ }), + +/***/ 33957: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ChangeEventCustomAttributesAuthor = void 0; +/** + * Object representing the entity which made the change. Optional field but if provided should include `type` and `name`. + */ +class ChangeEventCustomAttributesAuthor { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ChangeEventCustomAttributesAuthor.attributeTypeMap; + } +} +exports.ChangeEventCustomAttributesAuthor = ChangeEventCustomAttributesAuthor; +/** + * @ignore + */ +ChangeEventCustomAttributesAuthor.attributeTypeMap = { + name: { + baseName: "name", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "ChangeEventCustomAttributesAuthorType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ChangeEventCustomAttributesAuthor.js.map + +/***/ }), + +/***/ 61208: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ChangeEventCustomAttributesChangedResource = void 0; +/** + * Object representing a uniquely identified resource. Only the resource type `feature_flag` is supported. + */ +class ChangeEventCustomAttributesChangedResource { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ChangeEventCustomAttributesChangedResource.attributeTypeMap; + } +} +exports.ChangeEventCustomAttributesChangedResource = ChangeEventCustomAttributesChangedResource; +/** + * @ignore + */ +ChangeEventCustomAttributesChangedResource.attributeTypeMap = { + name: { + baseName: "name", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "ChangeEventCustomAttributesChangedResourceType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ChangeEventCustomAttributesChangedResource.js.map + +/***/ }), + +/***/ 56278: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ChangeEventCustomAttributesImpactedResourcesItems = void 0; +/** + * Object representing a uniquely identified resource. Only the resource type `service` is supported. + */ +class ChangeEventCustomAttributesImpactedResourcesItems { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ChangeEventCustomAttributesImpactedResourcesItems.attributeTypeMap; + } +} +exports.ChangeEventCustomAttributesImpactedResourcesItems = ChangeEventCustomAttributesImpactedResourcesItems; +/** + * @ignore + */ +ChangeEventCustomAttributesImpactedResourcesItems.attributeTypeMap = { + name: { + baseName: "name", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "ChangeEventCustomAttributesImpactedResourcesItemsType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ChangeEventCustomAttributesImpactedResourcesItems.js.map + +/***/ }), + +/***/ 650: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ChargebackBreakdown = void 0; +/** + * Charges breakdown. + */ +class ChargebackBreakdown { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ChargebackBreakdown.attributeTypeMap; + } +} +exports.ChargebackBreakdown = ChargebackBreakdown; +/** + * @ignore + */ +ChargebackBreakdown.attributeTypeMap = { + chargeType: { + baseName: "charge_type", + type: "string", + }, + cost: { + baseName: "cost", + type: "number", + format: "double", + }, + productName: { + baseName: "product_name", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ChargebackBreakdown.js.map + +/***/ }), + +/***/ 11814: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudConfigurationComplianceRuleOptions = void 0; +/** + * Options for cloud_configuration rules. + * Fields `resourceType` and `regoRule` are mandatory when managing custom `cloud_configuration` rules. + */ +class CloudConfigurationComplianceRuleOptions { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudConfigurationComplianceRuleOptions.attributeTypeMap; + } +} +exports.CloudConfigurationComplianceRuleOptions = CloudConfigurationComplianceRuleOptions; +/** + * @ignore + */ +CloudConfigurationComplianceRuleOptions.attributeTypeMap = { + complexRule: { + baseName: "complexRule", + type: "boolean", + }, + regoRule: { + baseName: "regoRule", + type: "CloudConfigurationRegoRule", + }, + resourceType: { + baseName: "resourceType", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudConfigurationComplianceRuleOptions.js.map + +/***/ }), + +/***/ 10186: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudConfigurationRegoRule = void 0; +/** + * Rule details. + */ +class CloudConfigurationRegoRule { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudConfigurationRegoRule.attributeTypeMap; + } +} +exports.CloudConfigurationRegoRule = CloudConfigurationRegoRule; +/** + * @ignore + */ +CloudConfigurationRegoRule.attributeTypeMap = { + policy: { + baseName: "policy", + type: "string", + required: true, + }, + resourceTypes: { + baseName: "resourceTypes", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudConfigurationRegoRule.js.map + +/***/ }), + +/***/ 94761: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudConfigurationRuleCaseCreate = void 0; +/** + * Description of signals. + */ +class CloudConfigurationRuleCaseCreate { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudConfigurationRuleCaseCreate.attributeTypeMap; + } +} +exports.CloudConfigurationRuleCaseCreate = CloudConfigurationRuleCaseCreate; +/** + * @ignore + */ +CloudConfigurationRuleCaseCreate.attributeTypeMap = { + notifications: { + baseName: "notifications", + type: "Array", + }, + status: { + baseName: "status", + type: "SecurityMonitoringRuleSeverity", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudConfigurationRuleCaseCreate.js.map + +/***/ }), + +/***/ 25470: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudConfigurationRuleComplianceSignalOptions = void 0; +/** + * How to generate compliance signals. Useful for cloud_configuration rules only. + */ +class CloudConfigurationRuleComplianceSignalOptions { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudConfigurationRuleComplianceSignalOptions.attributeTypeMap; + } +} +exports.CloudConfigurationRuleComplianceSignalOptions = CloudConfigurationRuleComplianceSignalOptions; +/** + * @ignore + */ +CloudConfigurationRuleComplianceSignalOptions.attributeTypeMap = { + defaultActivationStatus: { + baseName: "defaultActivationStatus", + type: "boolean", + }, + defaultGroupByFields: { + baseName: "defaultGroupByFields", + type: "Array", + }, + userActivationStatus: { + baseName: "userActivationStatus", + type: "boolean", + }, + userGroupByFields: { + baseName: "userGroupByFields", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudConfigurationRuleComplianceSignalOptions.js.map + +/***/ }), + +/***/ 51023: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudConfigurationRuleCreatePayload = void 0; +/** + * Create a new cloud configuration rule. + */ +class CloudConfigurationRuleCreatePayload { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudConfigurationRuleCreatePayload.attributeTypeMap; + } +} +exports.CloudConfigurationRuleCreatePayload = CloudConfigurationRuleCreatePayload; +/** + * @ignore + */ +CloudConfigurationRuleCreatePayload.attributeTypeMap = { + cases: { + baseName: "cases", + type: "Array", + required: true, + }, + complianceSignalOptions: { + baseName: "complianceSignalOptions", + type: "CloudConfigurationRuleComplianceSignalOptions", + required: true, + }, + filters: { + baseName: "filters", + type: "Array", + }, + isEnabled: { + baseName: "isEnabled", + type: "boolean", + required: true, + }, + message: { + baseName: "message", + type: "string", + required: true, + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + options: { + baseName: "options", + type: "CloudConfigurationRuleOptions", + required: true, + }, + tags: { + baseName: "tags", + type: "Array", + }, + type: { + baseName: "type", + type: "CloudConfigurationRuleType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudConfigurationRuleCreatePayload.js.map + +/***/ }), + +/***/ 55311: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudConfigurationRuleOptions = void 0; +/** + * Options on cloud configuration rules. + */ +class CloudConfigurationRuleOptions { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudConfigurationRuleOptions.attributeTypeMap; + } +} +exports.CloudConfigurationRuleOptions = CloudConfigurationRuleOptions; +/** + * @ignore + */ +CloudConfigurationRuleOptions.attributeTypeMap = { + complianceRuleOptions: { + baseName: "complianceRuleOptions", + type: "CloudConfigurationComplianceRuleOptions", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudConfigurationRuleOptions.js.map + +/***/ }), + +/***/ 85939: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudConfigurationRulePayload = void 0; +/** + * The payload of a cloud configuration rule. + */ +class CloudConfigurationRulePayload { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudConfigurationRulePayload.attributeTypeMap; + } +} +exports.CloudConfigurationRulePayload = CloudConfigurationRulePayload; +/** + * @ignore + */ +CloudConfigurationRulePayload.attributeTypeMap = { + cases: { + baseName: "cases", + type: "Array", + required: true, + }, + complianceSignalOptions: { + baseName: "complianceSignalOptions", + type: "CloudConfigurationRuleComplianceSignalOptions", + required: true, + }, + filters: { + baseName: "filters", + type: "Array", + }, + isEnabled: { + baseName: "isEnabled", + type: "boolean", + required: true, + }, + message: { + baseName: "message", + type: "string", + required: true, + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + options: { + baseName: "options", + type: "CloudConfigurationRuleOptions", + required: true, + }, + tags: { + baseName: "tags", + type: "Array", + }, + type: { + baseName: "type", + type: "CloudConfigurationRuleType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudConfigurationRulePayload.js.map + +/***/ }), + +/***/ 92369: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudWorkloadSecurityAgentRuleAction = void 0; +/** + * The action the rule can perform if triggered. + */ +class CloudWorkloadSecurityAgentRuleAction { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudWorkloadSecurityAgentRuleAction.attributeTypeMap; + } +} +exports.CloudWorkloadSecurityAgentRuleAction = CloudWorkloadSecurityAgentRuleAction; +/** + * @ignore + */ +CloudWorkloadSecurityAgentRuleAction.attributeTypeMap = { + filter: { + baseName: "filter", + type: "string", + }, + kill: { + baseName: "kill", + type: "CloudWorkloadSecurityAgentRuleKill", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudWorkloadSecurityAgentRuleAction.js.map + +/***/ }), + +/***/ 67926: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudWorkloadSecurityAgentRuleAttributes = void 0; +/** + * A Cloud Workload Security Agent rule returned by the API. + */ +class CloudWorkloadSecurityAgentRuleAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudWorkloadSecurityAgentRuleAttributes.attributeTypeMap; + } +} +exports.CloudWorkloadSecurityAgentRuleAttributes = CloudWorkloadSecurityAgentRuleAttributes; +/** + * @ignore + */ +CloudWorkloadSecurityAgentRuleAttributes.attributeTypeMap = { + actions: { + baseName: "actions", + type: "Array", + }, + agentConstraint: { + baseName: "agentConstraint", + type: "string", + }, + category: { + baseName: "category", + type: "string", + }, + creationAuthorUuId: { + baseName: "creationAuthorUuId", + type: "string", + }, + creationDate: { + baseName: "creationDate", + type: "number", + format: "int64", + }, + creator: { + baseName: "creator", + type: "CloudWorkloadSecurityAgentRuleCreatorAttributes", + }, + defaultRule: { + baseName: "defaultRule", + type: "boolean", + }, + description: { + baseName: "description", + type: "string", + }, + enabled: { + baseName: "enabled", + type: "boolean", + }, + expression: { + baseName: "expression", + type: "string", + }, + filters: { + baseName: "filters", + type: "Array", + }, + name: { + baseName: "name", + type: "string", + }, + updateAuthorUuId: { + baseName: "updateAuthorUuId", + type: "string", + }, + updateDate: { + baseName: "updateDate", + type: "number", + format: "int64", + }, + updatedAt: { + baseName: "updatedAt", + type: "number", + format: "int64", + }, + updater: { + baseName: "updater", + type: "CloudWorkloadSecurityAgentRuleUpdaterAttributes", + }, + version: { + baseName: "version", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudWorkloadSecurityAgentRuleAttributes.js.map + +/***/ }), + +/***/ 94218: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudWorkloadSecurityAgentRuleCreateAttributes = void 0; +/** + * Create a new Cloud Workload Security Agent rule. + */ +class CloudWorkloadSecurityAgentRuleCreateAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudWorkloadSecurityAgentRuleCreateAttributes.attributeTypeMap; + } +} +exports.CloudWorkloadSecurityAgentRuleCreateAttributes = CloudWorkloadSecurityAgentRuleCreateAttributes; +/** + * @ignore + */ +CloudWorkloadSecurityAgentRuleCreateAttributes.attributeTypeMap = { + description: { + baseName: "description", + type: "string", + }, + enabled: { + baseName: "enabled", + type: "boolean", + }, + expression: { + baseName: "expression", + type: "string", + required: true, + }, + filters: { + baseName: "filters", + type: "Array", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudWorkloadSecurityAgentRuleCreateAttributes.js.map + +/***/ }), + +/***/ 94839: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudWorkloadSecurityAgentRuleCreateData = void 0; +/** + * Object for a single Agent rule. + */ +class CloudWorkloadSecurityAgentRuleCreateData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudWorkloadSecurityAgentRuleCreateData.attributeTypeMap; + } +} +exports.CloudWorkloadSecurityAgentRuleCreateData = CloudWorkloadSecurityAgentRuleCreateData; +/** + * @ignore + */ +CloudWorkloadSecurityAgentRuleCreateData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "CloudWorkloadSecurityAgentRuleCreateAttributes", + required: true, + }, + type: { + baseName: "type", + type: "CloudWorkloadSecurityAgentRuleType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudWorkloadSecurityAgentRuleCreateData.js.map + +/***/ }), + +/***/ 18098: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudWorkloadSecurityAgentRuleCreateRequest = void 0; +/** + * Request object that includes the Agent rule to create. + */ +class CloudWorkloadSecurityAgentRuleCreateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudWorkloadSecurityAgentRuleCreateRequest.attributeTypeMap; + } +} +exports.CloudWorkloadSecurityAgentRuleCreateRequest = CloudWorkloadSecurityAgentRuleCreateRequest; +/** + * @ignore + */ +CloudWorkloadSecurityAgentRuleCreateRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "CloudWorkloadSecurityAgentRuleCreateData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudWorkloadSecurityAgentRuleCreateRequest.js.map + +/***/ }), + +/***/ 32918: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudWorkloadSecurityAgentRuleCreatorAttributes = void 0; +/** + * The attributes of the user who created the Agent rule. + */ +class CloudWorkloadSecurityAgentRuleCreatorAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudWorkloadSecurityAgentRuleCreatorAttributes.attributeTypeMap; + } +} +exports.CloudWorkloadSecurityAgentRuleCreatorAttributes = CloudWorkloadSecurityAgentRuleCreatorAttributes; +/** + * @ignore + */ +CloudWorkloadSecurityAgentRuleCreatorAttributes.attributeTypeMap = { + handle: { + baseName: "handle", + type: "string", + }, + name: { + baseName: "name", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudWorkloadSecurityAgentRuleCreatorAttributes.js.map + +/***/ }), + +/***/ 84635: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudWorkloadSecurityAgentRuleData = void 0; +/** + * Object for a single Agent rule. + */ +class CloudWorkloadSecurityAgentRuleData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudWorkloadSecurityAgentRuleData.attributeTypeMap; + } +} +exports.CloudWorkloadSecurityAgentRuleData = CloudWorkloadSecurityAgentRuleData; +/** + * @ignore + */ +CloudWorkloadSecurityAgentRuleData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "CloudWorkloadSecurityAgentRuleAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "CloudWorkloadSecurityAgentRuleType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudWorkloadSecurityAgentRuleData.js.map + +/***/ }), + +/***/ 81715: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudWorkloadSecurityAgentRuleKill = void 0; +/** + * Kill system call applied on the container matching the rule + */ +class CloudWorkloadSecurityAgentRuleKill { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudWorkloadSecurityAgentRuleKill.attributeTypeMap; + } +} +exports.CloudWorkloadSecurityAgentRuleKill = CloudWorkloadSecurityAgentRuleKill; +/** + * @ignore + */ +CloudWorkloadSecurityAgentRuleKill.attributeTypeMap = { + signal: { + baseName: "signal", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudWorkloadSecurityAgentRuleKill.js.map + +/***/ }), + +/***/ 11200: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudWorkloadSecurityAgentRuleResponse = void 0; +/** + * Response object that includes an Agent rule. + */ +class CloudWorkloadSecurityAgentRuleResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudWorkloadSecurityAgentRuleResponse.attributeTypeMap; + } +} +exports.CloudWorkloadSecurityAgentRuleResponse = CloudWorkloadSecurityAgentRuleResponse; +/** + * @ignore + */ +CloudWorkloadSecurityAgentRuleResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "CloudWorkloadSecurityAgentRuleData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudWorkloadSecurityAgentRuleResponse.js.map + +/***/ }), + +/***/ 54235: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudWorkloadSecurityAgentRuleUpdateAttributes = void 0; +/** + * Update an existing Cloud Workload Security Agent rule. + */ +class CloudWorkloadSecurityAgentRuleUpdateAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudWorkloadSecurityAgentRuleUpdateAttributes.attributeTypeMap; + } +} +exports.CloudWorkloadSecurityAgentRuleUpdateAttributes = CloudWorkloadSecurityAgentRuleUpdateAttributes; +/** + * @ignore + */ +CloudWorkloadSecurityAgentRuleUpdateAttributes.attributeTypeMap = { + description: { + baseName: "description", + type: "string", + }, + enabled: { + baseName: "enabled", + type: "boolean", + }, + expression: { + baseName: "expression", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudWorkloadSecurityAgentRuleUpdateAttributes.js.map + +/***/ }), + +/***/ 35950: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudWorkloadSecurityAgentRuleUpdateData = void 0; +/** + * Object for a single Agent rule. + */ +class CloudWorkloadSecurityAgentRuleUpdateData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudWorkloadSecurityAgentRuleUpdateData.attributeTypeMap; + } +} +exports.CloudWorkloadSecurityAgentRuleUpdateData = CloudWorkloadSecurityAgentRuleUpdateData; +/** + * @ignore + */ +CloudWorkloadSecurityAgentRuleUpdateData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "CloudWorkloadSecurityAgentRuleUpdateAttributes", + required: true, + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "CloudWorkloadSecurityAgentRuleType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudWorkloadSecurityAgentRuleUpdateData.js.map + +/***/ }), + +/***/ 18709: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudWorkloadSecurityAgentRuleUpdateRequest = void 0; +/** + * Request object that includes the Agent rule with the attributes to update. + */ +class CloudWorkloadSecurityAgentRuleUpdateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudWorkloadSecurityAgentRuleUpdateRequest.attributeTypeMap; + } +} +exports.CloudWorkloadSecurityAgentRuleUpdateRequest = CloudWorkloadSecurityAgentRuleUpdateRequest; +/** + * @ignore + */ +CloudWorkloadSecurityAgentRuleUpdateRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "CloudWorkloadSecurityAgentRuleUpdateData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudWorkloadSecurityAgentRuleUpdateRequest.js.map + +/***/ }), + +/***/ 92451: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudWorkloadSecurityAgentRuleUpdaterAttributes = void 0; +/** + * The attributes of the user who last updated the Agent rule. + */ +class CloudWorkloadSecurityAgentRuleUpdaterAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudWorkloadSecurityAgentRuleUpdaterAttributes.attributeTypeMap; + } +} +exports.CloudWorkloadSecurityAgentRuleUpdaterAttributes = CloudWorkloadSecurityAgentRuleUpdaterAttributes; +/** + * @ignore + */ +CloudWorkloadSecurityAgentRuleUpdaterAttributes.attributeTypeMap = { + handle: { + baseName: "handle", + type: "string", + }, + name: { + baseName: "name", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudWorkloadSecurityAgentRuleUpdaterAttributes.js.map + +/***/ }), + +/***/ 94221: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudWorkloadSecurityAgentRulesListResponse = void 0; +/** + * Response object that includes a list of Agent rule. + */ +class CloudWorkloadSecurityAgentRulesListResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudWorkloadSecurityAgentRulesListResponse.attributeTypeMap; + } +} +exports.CloudWorkloadSecurityAgentRulesListResponse = CloudWorkloadSecurityAgentRulesListResponse; +/** + * @ignore + */ +CloudWorkloadSecurityAgentRulesListResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudWorkloadSecurityAgentRulesListResponse.js.map + +/***/ }), + +/***/ 73749: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudflareAccountCreateRequest = void 0; +/** + * Payload schema when adding a Cloudflare account. + */ +class CloudflareAccountCreateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudflareAccountCreateRequest.attributeTypeMap; + } +} +exports.CloudflareAccountCreateRequest = CloudflareAccountCreateRequest; +/** + * @ignore + */ +CloudflareAccountCreateRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "CloudflareAccountCreateRequestData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudflareAccountCreateRequest.js.map + +/***/ }), + +/***/ 34332: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudflareAccountCreateRequestAttributes = void 0; +/** + * Attributes object for creating a Cloudflare account. + */ +class CloudflareAccountCreateRequestAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudflareAccountCreateRequestAttributes.attributeTypeMap; + } +} +exports.CloudflareAccountCreateRequestAttributes = CloudflareAccountCreateRequestAttributes; +/** + * @ignore + */ +CloudflareAccountCreateRequestAttributes.attributeTypeMap = { + apiKey: { + baseName: "api_key", + type: "string", + required: true, + }, + email: { + baseName: "email", + type: "string", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + resources: { + baseName: "resources", + type: "Array", + }, + zones: { + baseName: "zones", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudflareAccountCreateRequestAttributes.js.map + +/***/ }), + +/***/ 39861: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudflareAccountCreateRequestData = void 0; +/** + * Data object for creating a Cloudflare account. + */ +class CloudflareAccountCreateRequestData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudflareAccountCreateRequestData.attributeTypeMap; + } +} +exports.CloudflareAccountCreateRequestData = CloudflareAccountCreateRequestData; +/** + * @ignore + */ +CloudflareAccountCreateRequestData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "CloudflareAccountCreateRequestAttributes", + required: true, + }, + type: { + baseName: "type", + type: "CloudflareAccountType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudflareAccountCreateRequestData.js.map + +/***/ }), + +/***/ 59905: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudflareAccountResponse = void 0; +/** + * The expected response schema when getting a Cloudflare account. + */ +class CloudflareAccountResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudflareAccountResponse.attributeTypeMap; + } +} +exports.CloudflareAccountResponse = CloudflareAccountResponse; +/** + * @ignore + */ +CloudflareAccountResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "CloudflareAccountResponseData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudflareAccountResponse.js.map + +/***/ }), + +/***/ 5856: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudflareAccountResponseAttributes = void 0; +/** + * Attributes object of a Cloudflare account. + */ +class CloudflareAccountResponseAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudflareAccountResponseAttributes.attributeTypeMap; + } +} +exports.CloudflareAccountResponseAttributes = CloudflareAccountResponseAttributes; +/** + * @ignore + */ +CloudflareAccountResponseAttributes.attributeTypeMap = { + email: { + baseName: "email", + type: "string", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + resources: { + baseName: "resources", + type: "Array", + }, + zones: { + baseName: "zones", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudflareAccountResponseAttributes.js.map + +/***/ }), + +/***/ 1393: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudflareAccountResponseData = void 0; +/** + * Data object of a Cloudflare account. + */ +class CloudflareAccountResponseData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudflareAccountResponseData.attributeTypeMap; + } +} +exports.CloudflareAccountResponseData = CloudflareAccountResponseData; +/** + * @ignore + */ +CloudflareAccountResponseData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "CloudflareAccountResponseAttributes", + required: true, + }, + id: { + baseName: "id", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "CloudflareAccountType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudflareAccountResponseData.js.map + +/***/ }), + +/***/ 82238: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudflareAccountUpdateRequest = void 0; +/** + * Payload schema when updating a Cloudflare account. + */ +class CloudflareAccountUpdateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudflareAccountUpdateRequest.attributeTypeMap; + } +} +exports.CloudflareAccountUpdateRequest = CloudflareAccountUpdateRequest; +/** + * @ignore + */ +CloudflareAccountUpdateRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "CloudflareAccountUpdateRequestData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudflareAccountUpdateRequest.js.map + +/***/ }), + +/***/ 25787: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudflareAccountUpdateRequestAttributes = void 0; +/** + * Attributes object for updating a Cloudflare account. + */ +class CloudflareAccountUpdateRequestAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudflareAccountUpdateRequestAttributes.attributeTypeMap; + } +} +exports.CloudflareAccountUpdateRequestAttributes = CloudflareAccountUpdateRequestAttributes; +/** + * @ignore + */ +CloudflareAccountUpdateRequestAttributes.attributeTypeMap = { + apiKey: { + baseName: "api_key", + type: "string", + required: true, + }, + email: { + baseName: "email", + type: "string", + }, + name: { + baseName: "name", + type: "string", + }, + resources: { + baseName: "resources", + type: "Array", + }, + zones: { + baseName: "zones", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudflareAccountUpdateRequestAttributes.js.map + +/***/ }), + +/***/ 29806: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudflareAccountUpdateRequestData = void 0; +/** + * Data object for updating a Cloudflare account. + */ +class CloudflareAccountUpdateRequestData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudflareAccountUpdateRequestData.attributeTypeMap; + } +} +exports.CloudflareAccountUpdateRequestData = CloudflareAccountUpdateRequestData; +/** + * @ignore + */ +CloudflareAccountUpdateRequestData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "CloudflareAccountUpdateRequestAttributes", + }, + type: { + baseName: "type", + type: "CloudflareAccountType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudflareAccountUpdateRequestData.js.map + +/***/ }), + +/***/ 80054: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CloudflareAccountsResponse = void 0; +/** + * The expected response schema when getting Cloudflare accounts. + */ +class CloudflareAccountsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CloudflareAccountsResponse.attributeTypeMap; + } +} +exports.CloudflareAccountsResponse = CloudflareAccountsResponse; +/** + * @ignore + */ +CloudflareAccountsResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CloudflareAccountsResponse.js.map + +/***/ }), + +/***/ 75123: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Component = void 0; +/** + * The definition of `Component` object. + */ +class Component { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return Component.attributeTypeMap; + } +} +exports.Component = Component; +/** + * @ignore + */ +Component.attributeTypeMap = { + events: { + baseName: "events", + type: "Array", + }, + id: { + baseName: "id", + type: "string", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + properties: { + baseName: "properties", + type: "ComponentProperties", + required: true, + }, + type: { + baseName: "type", + type: "ComponentType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=Component.js.map + +/***/ }), + +/***/ 89203: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ComponentGrid = void 0; +/** + * The definition of `ComponentGrid` object. + */ +class ComponentGrid { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ComponentGrid.attributeTypeMap; + } +} +exports.ComponentGrid = ComponentGrid; +/** + * @ignore + */ +ComponentGrid.attributeTypeMap = { + events: { + baseName: "events", + type: "Array", + }, + id: { + baseName: "id", + type: "string", + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + properties: { + baseName: "properties", + type: "ComponentGridProperties", + required: true, + }, + type: { + baseName: "type", + type: "ComponentGridType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ComponentGrid.js.map + +/***/ }), + +/***/ 80138: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ComponentGridProperties = void 0; +/** + * The definition of `ComponentGridProperties` object. + */ +class ComponentGridProperties { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ComponentGridProperties.attributeTypeMap; + } +} +exports.ComponentGridProperties = ComponentGridProperties; +/** + * @ignore + */ +ComponentGridProperties.attributeTypeMap = { + backgroundColor: { + baseName: "backgroundColor", + type: "string", + }, + children: { + baseName: "children", + type: "Array", + }, + isVisible: { + baseName: "isVisible", + type: "ComponentGridPropertiesIsVisible", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ComponentGridProperties.js.map + +/***/ }), + +/***/ 5514: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ComponentProperties = void 0; +/** + * The definition of `ComponentProperties` object. + */ +class ComponentProperties { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ComponentProperties.attributeTypeMap; + } +} +exports.ComponentProperties = ComponentProperties; +/** + * @ignore + */ +ComponentProperties.attributeTypeMap = { + children: { + baseName: "children", + type: "Array", + }, + isVisible: { + baseName: "isVisible", + type: "ComponentPropertiesIsVisible", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ComponentProperties.js.map + +/***/ }), + +/***/ 4146: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ConfluentAccountCreateRequest = void 0; +/** + * Payload schema when adding a Confluent account. + */ +class ConfluentAccountCreateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ConfluentAccountCreateRequest.attributeTypeMap; + } +} +exports.ConfluentAccountCreateRequest = ConfluentAccountCreateRequest; +/** + * @ignore + */ +ConfluentAccountCreateRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "ConfluentAccountCreateRequestData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ConfluentAccountCreateRequest.js.map + +/***/ }), + +/***/ 31847: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ConfluentAccountCreateRequestAttributes = void 0; +/** + * Attributes associated with the account creation request. + */ +class ConfluentAccountCreateRequestAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ConfluentAccountCreateRequestAttributes.attributeTypeMap; + } +} +exports.ConfluentAccountCreateRequestAttributes = ConfluentAccountCreateRequestAttributes; +/** + * @ignore + */ +ConfluentAccountCreateRequestAttributes.attributeTypeMap = { + apiKey: { + baseName: "api_key", + type: "string", + required: true, + }, + apiSecret: { + baseName: "api_secret", + type: "string", + required: true, + }, + resources: { + baseName: "resources", + type: "Array", + }, + tags: { + baseName: "tags", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ConfluentAccountCreateRequestAttributes.js.map + +/***/ }), + +/***/ 44530: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ConfluentAccountCreateRequestData = void 0; +/** + * The data body for adding a Confluent account. + */ +class ConfluentAccountCreateRequestData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ConfluentAccountCreateRequestData.attributeTypeMap; + } +} +exports.ConfluentAccountCreateRequestData = ConfluentAccountCreateRequestData; +/** + * @ignore + */ +ConfluentAccountCreateRequestData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "ConfluentAccountCreateRequestAttributes", + required: true, + }, + type: { + baseName: "type", + type: "ConfluentAccountType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ConfluentAccountCreateRequestData.js.map + +/***/ }), + +/***/ 70218: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ConfluentAccountResourceAttributes = void 0; +/** + * Attributes object for updating a Confluent resource. + */ +class ConfluentAccountResourceAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ConfluentAccountResourceAttributes.attributeTypeMap; + } +} +exports.ConfluentAccountResourceAttributes = ConfluentAccountResourceAttributes; +/** + * @ignore + */ +ConfluentAccountResourceAttributes.attributeTypeMap = { + enableCustomMetrics: { + baseName: "enable_custom_metrics", + type: "boolean", + }, + id: { + baseName: "id", + type: "string", + }, + resourceType: { + baseName: "resource_type", + type: "string", + required: true, + }, + tags: { + baseName: "tags", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ConfluentAccountResourceAttributes.js.map + +/***/ }), + +/***/ 74880: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ConfluentAccountResponse = void 0; +/** + * The expected response schema when getting a Confluent account. + */ +class ConfluentAccountResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ConfluentAccountResponse.attributeTypeMap; + } +} +exports.ConfluentAccountResponse = ConfluentAccountResponse; +/** + * @ignore + */ +ConfluentAccountResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "ConfluentAccountResponseData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ConfluentAccountResponse.js.map + +/***/ }), + +/***/ 89705: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ConfluentAccountResponseAttributes = void 0; +/** + * The attributes of a Confluent account. + */ +class ConfluentAccountResponseAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ConfluentAccountResponseAttributes.attributeTypeMap; + } +} +exports.ConfluentAccountResponseAttributes = ConfluentAccountResponseAttributes; +/** + * @ignore + */ +ConfluentAccountResponseAttributes.attributeTypeMap = { + apiKey: { + baseName: "api_key", + type: "string", + required: true, + }, + resources: { + baseName: "resources", + type: "Array", + }, + tags: { + baseName: "tags", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ConfluentAccountResponseAttributes.js.map + +/***/ }), + +/***/ 17115: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ConfluentAccountResponseData = void 0; +/** + * An API key and API secret pair that represents a Confluent account. + */ +class ConfluentAccountResponseData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ConfluentAccountResponseData.attributeTypeMap; + } +} +exports.ConfluentAccountResponseData = ConfluentAccountResponseData; +/** + * @ignore + */ +ConfluentAccountResponseData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "ConfluentAccountResponseAttributes", + required: true, + }, + id: { + baseName: "id", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "ConfluentAccountType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ConfluentAccountResponseData.js.map + +/***/ }), + +/***/ 95477: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ConfluentAccountUpdateRequest = void 0; +/** + * The JSON:API request for updating a Confluent account. + */ +class ConfluentAccountUpdateRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ConfluentAccountUpdateRequest.attributeTypeMap; + } +} +exports.ConfluentAccountUpdateRequest = ConfluentAccountUpdateRequest; +/** + * @ignore + */ +ConfluentAccountUpdateRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "ConfluentAccountUpdateRequestData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ConfluentAccountUpdateRequest.js.map + +/***/ }), + +/***/ 32092: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ConfluentAccountUpdateRequestAttributes = void 0; +/** + * Attributes object for updating a Confluent account. + */ +class ConfluentAccountUpdateRequestAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ConfluentAccountUpdateRequestAttributes.attributeTypeMap; + } +} +exports.ConfluentAccountUpdateRequestAttributes = ConfluentAccountUpdateRequestAttributes; +/** + * @ignore + */ +ConfluentAccountUpdateRequestAttributes.attributeTypeMap = { + apiKey: { + baseName: "api_key", + type: "string", + required: true, + }, + apiSecret: { + baseName: "api_secret", + type: "string", + required: true, + }, + tags: { + baseName: "tags", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ConfluentAccountUpdateRequestAttributes.js.map + +/***/ }), + +/***/ 96245: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ConfluentAccountUpdateRequestData = void 0; +/** + * Data object for updating a Confluent account. + */ +class ConfluentAccountUpdateRequestData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ConfluentAccountUpdateRequestData.attributeTypeMap; + } +} +exports.ConfluentAccountUpdateRequestData = ConfluentAccountUpdateRequestData; +/** + * @ignore + */ +ConfluentAccountUpdateRequestData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "ConfluentAccountUpdateRequestAttributes", + required: true, + }, + type: { + baseName: "type", + type: "ConfluentAccountType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ConfluentAccountUpdateRequestData.js.map + +/***/ }), + +/***/ 63913: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ConfluentAccountsResponse = void 0; +/** + * Confluent account returned by the API. + */ +class ConfluentAccountsResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ConfluentAccountsResponse.attributeTypeMap; + } +} +exports.ConfluentAccountsResponse = ConfluentAccountsResponse; +/** + * @ignore + */ +ConfluentAccountsResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ConfluentAccountsResponse.js.map + +/***/ }), + +/***/ 59765: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ConfluentResourceRequest = void 0; +/** + * The JSON:API request for updating a Confluent resource. + */ +class ConfluentResourceRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ConfluentResourceRequest.attributeTypeMap; + } +} +exports.ConfluentResourceRequest = ConfluentResourceRequest; +/** + * @ignore + */ +ConfluentResourceRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "ConfluentResourceRequestData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ConfluentResourceRequest.js.map + +/***/ }), + +/***/ 63388: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ConfluentResourceRequestAttributes = void 0; +/** + * Attributes object for updating a Confluent resource. + */ +class ConfluentResourceRequestAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ConfluentResourceRequestAttributes.attributeTypeMap; + } +} +exports.ConfluentResourceRequestAttributes = ConfluentResourceRequestAttributes; +/** + * @ignore + */ +ConfluentResourceRequestAttributes.attributeTypeMap = { + enableCustomMetrics: { + baseName: "enable_custom_metrics", + type: "boolean", + }, + resourceType: { + baseName: "resource_type", + type: "string", + required: true, + }, + tags: { + baseName: "tags", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ConfluentResourceRequestAttributes.js.map + +/***/ }), + +/***/ 88021: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ConfluentResourceRequestData = void 0; +/** + * JSON:API request for updating a Confluent resource. + */ +class ConfluentResourceRequestData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ConfluentResourceRequestData.attributeTypeMap; + } +} +exports.ConfluentResourceRequestData = ConfluentResourceRequestData; +/** + * @ignore + */ +ConfluentResourceRequestData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "ConfluentResourceRequestAttributes", + required: true, + }, + id: { + baseName: "id", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "ConfluentResourceType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ConfluentResourceRequestData.js.map + +/***/ }), + +/***/ 98897: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ConfluentResourceResponse = void 0; +/** + * Response schema when interacting with a Confluent resource. + */ +class ConfluentResourceResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ConfluentResourceResponse.attributeTypeMap; + } +} +exports.ConfluentResourceResponse = ConfluentResourceResponse; +/** + * @ignore + */ +ConfluentResourceResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "ConfluentResourceResponseData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ConfluentResourceResponse.js.map + +/***/ }), + +/***/ 80784: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ConfluentResourceResponseAttributes = void 0; +/** + * Model representation of a Confluent Cloud resource. + */ +class ConfluentResourceResponseAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ConfluentResourceResponseAttributes.attributeTypeMap; + } +} +exports.ConfluentResourceResponseAttributes = ConfluentResourceResponseAttributes; +/** + * @ignore + */ +ConfluentResourceResponseAttributes.attributeTypeMap = { + enableCustomMetrics: { + baseName: "enable_custom_metrics", + type: "boolean", + }, + id: { + baseName: "id", + type: "string", + }, + resourceType: { + baseName: "resource_type", + type: "string", + required: true, + }, + tags: { + baseName: "tags", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ConfluentResourceResponseAttributes.js.map + +/***/ }), + +/***/ 46913: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ConfluentResourceResponseData = void 0; +/** + * Confluent Cloud resource data. + */ +class ConfluentResourceResponseData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ConfluentResourceResponseData.attributeTypeMap; + } +} +exports.ConfluentResourceResponseData = ConfluentResourceResponseData; +/** + * @ignore + */ +ConfluentResourceResponseData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "ConfluentResourceResponseAttributes", + required: true, + }, + id: { + baseName: "id", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "ConfluentResourceType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ConfluentResourceResponseData.js.map + +/***/ }), + +/***/ 91622: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ConfluentResourcesResponse = void 0; +/** + * Response schema when interacting with a list of Confluent resources. + */ +class ConfluentResourcesResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ConfluentResourcesResponse.attributeTypeMap; + } +} +exports.ConfluentResourcesResponse = ConfluentResourcesResponse; +/** + * @ignore + */ +ConfluentResourcesResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ConfluentResourcesResponse.js.map + +/***/ }), + +/***/ 41467: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Container = void 0; +/** + * Container object. + */ +class Container { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return Container.attributeTypeMap; + } +} +exports.Container = Container; +/** + * @ignore + */ +Container.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "ContainerAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "ContainerType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=Container.js.map + +/***/ }), + +/***/ 61006: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ContainerAttributes = void 0; +/** + * Attributes for a container. + */ +class ContainerAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ContainerAttributes.attributeTypeMap; + } +} +exports.ContainerAttributes = ContainerAttributes; +/** + * @ignore + */ +ContainerAttributes.attributeTypeMap = { + containerId: { + baseName: "container_id", + type: "string", + }, + createdAt: { + baseName: "created_at", + type: "string", + }, + host: { + baseName: "host", + type: "string", + }, + imageDigest: { + baseName: "image_digest", + type: "string", + }, + imageName: { + baseName: "image_name", + type: "string", + }, + imageTags: { + baseName: "image_tags", + type: "Array", + }, + name: { + baseName: "name", + type: "string", + }, + startedAt: { + baseName: "started_at", + type: "string", + }, + state: { + baseName: "state", + type: "string", + }, + tags: { + baseName: "tags", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ContainerAttributes.js.map + +/***/ }), + +/***/ 65540: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ContainerGroup = void 0; +/** + * Container group object. + */ +class ContainerGroup { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ContainerGroup.attributeTypeMap; + } +} +exports.ContainerGroup = ContainerGroup; +/** + * @ignore + */ +ContainerGroup.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "ContainerGroupAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + relationships: { + baseName: "relationships", + type: "ContainerGroupRelationships", + }, + type: { + baseName: "type", + type: "ContainerGroupType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ContainerGroup.js.map + +/***/ }), + +/***/ 73829: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ContainerGroupAttributes = void 0; +/** + * Attributes for a container group. + */ +class ContainerGroupAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ContainerGroupAttributes.attributeTypeMap; + } +} +exports.ContainerGroupAttributes = ContainerGroupAttributes; +/** + * @ignore + */ +ContainerGroupAttributes.attributeTypeMap = { + count: { + baseName: "count", + type: "number", + format: "int64", + }, + tags: { + baseName: "tags", + type: "any", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ContainerGroupAttributes.js.map + +/***/ }), + +/***/ 44717: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ContainerGroupRelationships = void 0; +/** + * Relationships to containers inside a container group. + */ +class ContainerGroupRelationships { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ContainerGroupRelationships.attributeTypeMap; + } +} +exports.ContainerGroupRelationships = ContainerGroupRelationships; +/** + * @ignore + */ +ContainerGroupRelationships.attributeTypeMap = { + containers: { + baseName: "containers", + type: "ContainerGroupRelationshipsLink", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ContainerGroupRelationships.js.map + +/***/ }), + +/***/ 91621: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ContainerGroupRelationshipsLink = void 0; +/** + * Relationships to Containers inside a Container Group. + */ +class ContainerGroupRelationshipsLink { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ContainerGroupRelationshipsLink.attributeTypeMap; + } +} +exports.ContainerGroupRelationshipsLink = ContainerGroupRelationshipsLink; +/** + * @ignore + */ +ContainerGroupRelationshipsLink.attributeTypeMap = { + data: { + baseName: "data", + type: "Array", + }, + links: { + baseName: "links", + type: "ContainerGroupRelationshipsLinks", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ContainerGroupRelationshipsLink.js.map + +/***/ }), + +/***/ 70032: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ContainerGroupRelationshipsLinks = void 0; +/** + * Links attributes. + */ +class ContainerGroupRelationshipsLinks { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ContainerGroupRelationshipsLinks.attributeTypeMap; + } +} +exports.ContainerGroupRelationshipsLinks = ContainerGroupRelationshipsLinks; +/** + * @ignore + */ +ContainerGroupRelationshipsLinks.attributeTypeMap = { + related: { + baseName: "related", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ContainerGroupRelationshipsLinks.js.map + +/***/ }), + +/***/ 50506: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ContainerImage = void 0; +/** + * Container Image object. + */ +class ContainerImage { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ContainerImage.attributeTypeMap; + } +} +exports.ContainerImage = ContainerImage; +/** + * @ignore + */ +ContainerImage.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "ContainerImageAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "ContainerImageType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ContainerImage.js.map + +/***/ }), + +/***/ 66127: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ContainerImageAttributes = void 0; +/** + * Attributes for a Container Image. + */ +class ContainerImageAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ContainerImageAttributes.attributeTypeMap; + } +} +exports.ContainerImageAttributes = ContainerImageAttributes; +/** + * @ignore + */ +ContainerImageAttributes.attributeTypeMap = { + containerCount: { + baseName: "container_count", + type: "number", + format: "int64", + }, + imageFlavors: { + baseName: "image_flavors", + type: "Array", + }, + imageTags: { + baseName: "image_tags", + type: "Array", + }, + imagesBuiltAt: { + baseName: "images_built_at", + type: "Array", + }, + name: { + baseName: "name", + type: "string", + }, + osArchitectures: { + baseName: "os_architectures", + type: "Array", + }, + osNames: { + baseName: "os_names", + type: "Array", + }, + osVersions: { + baseName: "os_versions", + type: "Array", + }, + publishedAt: { + baseName: "published_at", + type: "string", + }, + registry: { + baseName: "registry", + type: "string", + }, + repoDigest: { + baseName: "repo_digest", + type: "string", + }, + repository: { + baseName: "repository", + type: "string", + }, + shortImage: { + baseName: "short_image", + type: "string", + }, + sizes: { + baseName: "sizes", + type: "Array", + format: "int64", + }, + sources: { + baseName: "sources", + type: "Array", + }, + tags: { + baseName: "tags", + type: "Array", + }, + vulnerabilityCount: { + baseName: "vulnerability_count", + type: "ContainerImageVulnerabilities", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ContainerImageAttributes.js.map + +/***/ }), + +/***/ 65638: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ContainerImageFlavor = void 0; +/** + * Container Image breakdown by supported platform. + */ +class ContainerImageFlavor { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ContainerImageFlavor.attributeTypeMap; + } +} +exports.ContainerImageFlavor = ContainerImageFlavor; +/** + * @ignore + */ +ContainerImageFlavor.attributeTypeMap = { + builtAt: { + baseName: "built_at", + type: "string", + }, + osArchitecture: { + baseName: "os_architecture", + type: "string", + }, + osName: { + baseName: "os_name", + type: "string", + }, + osVersion: { + baseName: "os_version", + type: "string", + }, + size: { + baseName: "size", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ContainerImageFlavor.js.map + +/***/ }), + +/***/ 40311: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ContainerImageGroup = void 0; +/** + * Container Image Group object. + */ +class ContainerImageGroup { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ContainerImageGroup.attributeTypeMap; + } +} +exports.ContainerImageGroup = ContainerImageGroup; +/** + * @ignore + */ +ContainerImageGroup.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "ContainerImageGroupAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + relationships: { + baseName: "relationships", + type: "ContainerImageGroupRelationships", + }, + type: { + baseName: "type", + type: "ContainerImageGroupType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ContainerImageGroup.js.map + +/***/ }), + +/***/ 37602: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ContainerImageGroupAttributes = void 0; +/** + * Attributes for a Container Image Group. + */ +class ContainerImageGroupAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ContainerImageGroupAttributes.attributeTypeMap; + } +} +exports.ContainerImageGroupAttributes = ContainerImageGroupAttributes; +/** + * @ignore + */ +ContainerImageGroupAttributes.attributeTypeMap = { + count: { + baseName: "count", + type: "number", + format: "int64", + }, + name: { + baseName: "name", + type: "string", + }, + tags: { + baseName: "tags", + type: "any", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ContainerImageGroupAttributes.js.map + +/***/ }), + +/***/ 25422: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ContainerImageGroupImagesRelationshipsLink = void 0; +/** + * Relationships to Container Images inside a Container Image Group. + */ +class ContainerImageGroupImagesRelationshipsLink { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ContainerImageGroupImagesRelationshipsLink.attributeTypeMap; + } +} +exports.ContainerImageGroupImagesRelationshipsLink = ContainerImageGroupImagesRelationshipsLink; +/** + * @ignore + */ +ContainerImageGroupImagesRelationshipsLink.attributeTypeMap = { + data: { + baseName: "data", + type: "Array", + }, + links: { + baseName: "links", + type: "ContainerImageGroupRelationshipsLinks", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ContainerImageGroupImagesRelationshipsLink.js.map + +/***/ }), + +/***/ 53388: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ContainerImageGroupRelationships = void 0; +/** + * Relationships inside a Container Image Group. + */ +class ContainerImageGroupRelationships { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ContainerImageGroupRelationships.attributeTypeMap; + } +} +exports.ContainerImageGroupRelationships = ContainerImageGroupRelationships; +/** + * @ignore + */ +ContainerImageGroupRelationships.attributeTypeMap = { + containerImages: { + baseName: "container_images", + type: "ContainerImageGroupImagesRelationshipsLink", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ContainerImageGroupRelationships.js.map + +/***/ }), + +/***/ 89319: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ContainerImageGroupRelationshipsLinks = void 0; +/** + * Links attributes. + */ +class ContainerImageGroupRelationshipsLinks { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ContainerImageGroupRelationshipsLinks.attributeTypeMap; + } +} +exports.ContainerImageGroupRelationshipsLinks = ContainerImageGroupRelationshipsLinks; +/** + * @ignore + */ +ContainerImageGroupRelationshipsLinks.attributeTypeMap = { + related: { + baseName: "related", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ContainerImageGroupRelationshipsLinks.js.map + +/***/ }), + +/***/ 24187: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ContainerImageMeta = void 0; +/** + * Response metadata object. + */ +class ContainerImageMeta { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ContainerImageMeta.attributeTypeMap; + } +} +exports.ContainerImageMeta = ContainerImageMeta; +/** + * @ignore + */ +ContainerImageMeta.attributeTypeMap = { + pagination: { + baseName: "pagination", + type: "ContainerImageMetaPage", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ContainerImageMeta.js.map + +/***/ }), + +/***/ 92460: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ContainerImageMetaPage = void 0; +/** + * Paging attributes. + */ +class ContainerImageMetaPage { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ContainerImageMetaPage.attributeTypeMap; + } +} +exports.ContainerImageMetaPage = ContainerImageMetaPage; +/** + * @ignore + */ +ContainerImageMetaPage.attributeTypeMap = { + cursor: { + baseName: "cursor", + type: "string", + }, + limit: { + baseName: "limit", + type: "number", + format: "int32", + }, + nextCursor: { + baseName: "next_cursor", + type: "string", + }, + prevCursor: { + baseName: "prev_cursor", + type: "string", + }, + total: { + baseName: "total", + type: "number", + format: "int64", + }, + type: { + baseName: "type", + type: "ContainerImageMetaPageType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ContainerImageMetaPage.js.map + +/***/ }), + +/***/ 19970: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ContainerImageVulnerabilities = void 0; +/** + * Vulnerability counts associated with the Container Image. + */ +class ContainerImageVulnerabilities { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ContainerImageVulnerabilities.attributeTypeMap; + } +} +exports.ContainerImageVulnerabilities = ContainerImageVulnerabilities; +/** + * @ignore + */ +ContainerImageVulnerabilities.attributeTypeMap = { + assetId: { + baseName: "asset_id", + type: "string", + }, + critical: { + baseName: "critical", + type: "number", + format: "int64", + }, + high: { + baseName: "high", + type: "number", + format: "int64", + }, + low: { + baseName: "low", + type: "number", + format: "int64", + }, + medium: { + baseName: "medium", + type: "number", + format: "int64", + }, + none: { + baseName: "none", + type: "number", + format: "int64", + }, + unknown: { + baseName: "unknown", + type: "number", + format: "int64", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ContainerImageVulnerabilities.js.map + +/***/ }), + +/***/ 26922: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ContainerImagesResponse = void 0; +/** + * List of Container Images. + */ +class ContainerImagesResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ContainerImagesResponse.attributeTypeMap; + } +} +exports.ContainerImagesResponse = ContainerImagesResponse; +/** + * @ignore + */ +ContainerImagesResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "Array", + }, + links: { + baseName: "links", + type: "ContainerImagesResponseLinks", + }, + meta: { + baseName: "meta", + type: "ContainerImageMeta", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ContainerImagesResponse.js.map + +/***/ }), + +/***/ 90669: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ContainerImagesResponseLinks = void 0; +/** + * Pagination links. + */ +class ContainerImagesResponseLinks { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ContainerImagesResponseLinks.attributeTypeMap; + } +} +exports.ContainerImagesResponseLinks = ContainerImagesResponseLinks; +/** + * @ignore + */ +ContainerImagesResponseLinks.attributeTypeMap = { + first: { + baseName: "first", + type: "string", + }, + last: { + baseName: "last", + type: "string", + }, + next: { + baseName: "next", + type: "string", + }, + prev: { + baseName: "prev", + type: "string", + }, + self: { + baseName: "self", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ContainerImagesResponseLinks.js.map + +/***/ }), + +/***/ 8370: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ContainerMeta = void 0; +/** + * Response metadata object. + */ +class ContainerMeta { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ContainerMeta.attributeTypeMap; + } +} +exports.ContainerMeta = ContainerMeta; +/** + * @ignore + */ +ContainerMeta.attributeTypeMap = { + pagination: { + baseName: "pagination", + type: "ContainerMetaPage", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ContainerMeta.js.map + +/***/ }), + +/***/ 23693: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ContainerMetaPage = void 0; +/** + * Paging attributes. + */ +class ContainerMetaPage { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ContainerMetaPage.attributeTypeMap; + } +} +exports.ContainerMetaPage = ContainerMetaPage; +/** + * @ignore + */ +ContainerMetaPage.attributeTypeMap = { + cursor: { + baseName: "cursor", + type: "string", + }, + limit: { + baseName: "limit", + type: "number", + format: "int32", + }, + nextCursor: { + baseName: "next_cursor", + type: "string", + }, + prevCursor: { + baseName: "prev_cursor", + type: "string", + }, + total: { + baseName: "total", + type: "number", + format: "int64", + }, + type: { + baseName: "type", + type: "ContainerMetaPageType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ContainerMetaPage.js.map + +/***/ }), + +/***/ 78625: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ContainersResponse = void 0; +/** + * List of containers. + */ +class ContainersResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ContainersResponse.attributeTypeMap; + } +} +exports.ContainersResponse = ContainersResponse; +/** + * @ignore + */ +ContainersResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "Array", + }, + links: { + baseName: "links", + type: "ContainersResponseLinks", + }, + meta: { + baseName: "meta", + type: "ContainerMeta", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ContainersResponse.js.map + +/***/ }), + +/***/ 28604: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ContainersResponseLinks = void 0; +/** + * Pagination links. + */ +class ContainersResponseLinks { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ContainersResponseLinks.attributeTypeMap; + } +} +exports.ContainersResponseLinks = ContainersResponseLinks; +/** + * @ignore + */ +ContainersResponseLinks.attributeTypeMap = { + first: { + baseName: "first", + type: "string", + }, + last: { + baseName: "last", + type: "string", + }, + next: { + baseName: "next", + type: "string", + }, + prev: { + baseName: "prev", + type: "string", + }, + self: { + baseName: "self", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ContainersResponseLinks.js.map + +/***/ }), + +/***/ 249: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ConvertJobResultsToSignalsAttributes = void 0; +/** + * Attributes for converting historical job results to signals. + */ +class ConvertJobResultsToSignalsAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ConvertJobResultsToSignalsAttributes.attributeTypeMap; + } +} +exports.ConvertJobResultsToSignalsAttributes = ConvertJobResultsToSignalsAttributes; +/** + * @ignore + */ +ConvertJobResultsToSignalsAttributes.attributeTypeMap = { + id: { + baseName: "id", + type: "string", + }, + jobResultIds: { + baseName: "jobResultIds", + type: "Array", + required: true, + }, + notifications: { + baseName: "notifications", + type: "Array", + required: true, + }, + signalMessage: { + baseName: "signalMessage", + type: "string", + required: true, + }, + signalSeverity: { + baseName: "signalSeverity", + type: "SecurityMonitoringRuleSeverity", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ConvertJobResultsToSignalsAttributes.js.map + +/***/ }), + +/***/ 7896: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ConvertJobResultsToSignalsData = void 0; +/** + * Data for converting historical job results to signals. + */ +class ConvertJobResultsToSignalsData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ConvertJobResultsToSignalsData.attributeTypeMap; + } +} +exports.ConvertJobResultsToSignalsData = ConvertJobResultsToSignalsData; +/** + * @ignore + */ +ConvertJobResultsToSignalsData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "ConvertJobResultsToSignalsAttributes", + }, + type: { + baseName: "type", + type: "ConvertJobResultsToSignalsDataType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ConvertJobResultsToSignalsData.js.map + +/***/ }), + +/***/ 53587: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ConvertJobResultsToSignalsRequest = void 0; +/** + * Request for converting historical job results to signals. + */ +class ConvertJobResultsToSignalsRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return ConvertJobResultsToSignalsRequest.attributeTypeMap; + } +} +exports.ConvertJobResultsToSignalsRequest = ConvertJobResultsToSignalsRequest; +/** + * @ignore + */ +ConvertJobResultsToSignalsRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "ConvertJobResultsToSignalsData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=ConvertJobResultsToSignalsRequest.js.map + +/***/ }), + +/***/ 98398: +/***/ ((__unused_webpack_module, exports) => { + + +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CostAttributionAggregatesBody = void 0; +/** + * The object containing the aggregates. + */ +class CostAttributionAggregatesBody { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CostAttributionAggregatesBody.attributeTypeMap; + } +} +exports.CostAttributionAggregatesBody = CostAttributionAggregatesBody; +/** + * @ignore + */ +CostAttributionAggregatesBody.attributeTypeMap = { + aggType: { + baseName: "agg_type", + type: "string", + }, + field: { + baseName: "field", + type: "string", + }, + value: { + baseName: "value", + type: "number", + format: "double", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CostAttributionAggregatesBody.js.map + +/***/ }), + +/***/ 70662: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CostByOrg = void 0; +/** + * Cost data. + */ +class CostByOrg { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CostByOrg.attributeTypeMap; + } +} +exports.CostByOrg = CostByOrg; +/** + * @ignore + */ +CostByOrg.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "CostByOrgAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "CostByOrgType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CostByOrg.js.map + +/***/ }), + +/***/ 89875: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CostByOrgAttributes = void 0; +/** + * Cost attributes data. + */ +class CostByOrgAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CostByOrgAttributes.attributeTypeMap; + } +} +exports.CostByOrgAttributes = CostByOrgAttributes; +/** + * @ignore + */ +CostByOrgAttributes.attributeTypeMap = { + accountName: { + baseName: "account_name", + type: "string", + }, + accountPublicId: { + baseName: "account_public_id", + type: "string", + }, + charges: { + baseName: "charges", + type: "Array", + }, + date: { + baseName: "date", + type: "Date", + format: "date-time", + }, + orgName: { + baseName: "org_name", + type: "string", + }, + publicId: { + baseName: "public_id", + type: "string", + }, + region: { + baseName: "region", + type: "string", + }, + totalCost: { + baseName: "total_cost", + type: "number", + format: "double", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CostByOrgAttributes.js.map + +/***/ }), + +/***/ 80441: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CostByOrgResponse = void 0; +/** + * Chargeback Summary response. + */ +class CostByOrgResponse { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CostByOrgResponse.attributeTypeMap; + } +} +exports.CostByOrgResponse = CostByOrgResponse; +/** + * @ignore + */ +CostByOrgResponse.attributeTypeMap = { + data: { + baseName: "data", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CostByOrgResponse.js.map + +/***/ }), + +/***/ 75410: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CreateAppRequest = void 0; +/** + * The definition of `CreateAppRequest` object. + */ +class CreateAppRequest { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CreateAppRequest.attributeTypeMap; + } +} +exports.CreateAppRequest = CreateAppRequest; +/** + * @ignore + */ +CreateAppRequest.attributeTypeMap = { + data: { + baseName: "data", + type: "CreateAppRequestData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CreateAppRequest.js.map + +/***/ }), + +/***/ 15730: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CreateAppRequestData = void 0; +/** + * The definition of `CreateAppRequestData` object. + */ +class CreateAppRequestData { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CreateAppRequestData.attributeTypeMap; + } +} +exports.CreateAppRequestData = CreateAppRequestData; +/** + * @ignore + */ +CreateAppRequestData.attributeTypeMap = { + attributes: { + baseName: "attributes", + type: "CreateAppRequestDataAttributes", + }, + type: { + baseName: "type", + type: "CreateAppRequestDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "any", + }, +}; +//# sourceMappingURL=CreateAppRequestData.js.map + +/***/ }), + +/***/ 44007: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CreateAppRequestDataAttributes = void 0; +/** + * The definition of `CreateAppRequestDataAttributes` object. + */ +class CreateAppRequestDataAttributes { + constructor() { } + /** + * @ignore + */ + static getAttributeTypeMap() { + return CreateAppRequestDataAttributes.attributeTypeMap; + } +} +exports.CreateAppRequestDataAttributes = CreateAppRequestDataAttributes; +/** + * @ignore + */ +CreateAppRequestDataAttributes.attributeTypeMap = { + components: { + baseName: "components", + type: "Array", + }, + description: { + baseName: "description", + type: "string", + }, + embeddedQueries: { + baseName: "embeddedQueries", + type: "Array", + }, + inputSchema: { + baseName: "inputSchema", + type: "InputSchema", + }, + name: { + baseName: "name", + type: "string", + }, + rootInstanceName: { + baseName: "rootInstanceName", + type: "string", + }, + scripts: { + baseName: "scripts", + type: "Array