@boxrouter/sdk 0.0.0-stage → 0.12.190
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/NOTICE +40 -0
- package/README.md +508 -2
- package/dist/addresses.d.ts +5 -0
- package/dist/addresses.js +10 -0
- package/dist/api-error.d.ts +62 -0
- package/dist/api-error.js +264 -0
- package/dist/boxrouter.d.ts +68 -0
- package/dist/boxrouter.js +291 -0
- package/dist/browser-session/index.d.ts +17 -0
- package/dist/browser-session/index.js +48 -0
- package/dist/browser-session/operations.gen.d.ts +272 -0
- package/dist/browser-session/operations.gen.js +58 -0
- package/dist/browser-session/responseContracts/api_keys.d.ts +2 -0
- package/dist/browser-session/responseContracts/api_keys.js +10 -0
- package/dist/browser-session/responseContracts/credits.d.ts +2 -0
- package/dist/browser-session/responseContracts/credits.js +8 -0
- package/dist/browser-session/responseContracts/github.d.ts +2 -0
- package/dist/browser-session/responseContracts/github.js +11 -0
- package/dist/browser-session/responseContracts/identity.d.ts +2 -0
- package/dist/browser-session/responseContracts/identity.js +30 -0
- package/dist/browser-session/responseContracts/organizations.d.ts +2 -0
- package/dist/browser-session/responseContracts/organizations.js +17 -0
- package/dist/browser-session/responseContracts/privacy.d.ts +2 -0
- package/dist/browser-session/responseContracts/privacy.js +7 -0
- package/dist/browser-session/responseContracts.gen.d.ts +3 -0
- package/dist/browser-session/responseContracts.gen.js +10 -0
- package/dist/browser-session/responseValidators/api_keys-diagnostics.cjs +1 -0
- package/dist/browser-session/responseValidators/api_keys-diagnostics.d.cts +4 -0
- package/dist/browser-session/responseValidators/api_keys.cjs +2 -0
- package/dist/browser-session/responseValidators/api_keys.d.cts +4 -0
- package/dist/browser-session/responseValidators/credits-diagnostics.cjs +1 -0
- package/dist/browser-session/responseValidators/credits-diagnostics.d.cts +3 -0
- package/dist/browser-session/responseValidators/credits.cjs +2 -0
- package/dist/browser-session/responseValidators/credits.d.cts +3 -0
- package/dist/browser-session/responseValidators/github-diagnostics.cjs +1 -0
- package/dist/browser-session/responseValidators/github-diagnostics.d.cts +3 -0
- package/dist/browser-session/responseValidators/github.cjs +2 -0
- package/dist/browser-session/responseValidators/github.d.cts +3 -0
- package/dist/browser-session/responseValidators/identity-diagnostics.cjs +1 -0
- package/dist/browser-session/responseValidators/identity-diagnostics.d.cts +23 -0
- package/dist/browser-session/responseValidators/identity.cjs +2 -0
- package/dist/browser-session/responseValidators/identity.d.cts +23 -0
- package/dist/browser-session/responseValidators/organizations-diagnostics.cjs +1 -0
- package/dist/browser-session/responseValidators/organizations-diagnostics.d.cts +15 -0
- package/dist/browser-session/responseValidators/organizations.cjs +2 -0
- package/dist/browser-session/responseValidators/organizations.d.cts +15 -0
- package/dist/browser-session/responseValidators/privacy-diagnostics.cjs +1 -0
- package/dist/browser-session/responseValidators/privacy-diagnostics.d.cts +2 -0
- package/dist/browser-session/responseValidators/privacy.cjs +2 -0
- package/dist/browser-session/responseValidators/privacy.d.cts +2 -0
- package/dist/client/client.gen.d.ts +2 -0
- package/dist/client/client.gen.js +168 -0
- package/dist/client/index.d.ts +10 -0
- package/dist/client/index.js +17 -0
- package/dist/client/types.gen.d.ts +120 -0
- package/dist/client/types.gen.js +3 -0
- package/dist/client/utils.gen.d.ts +37 -0
- package/dist/client/utils.gen.js +239 -0
- package/dist/client.gen.d.ts +12 -0
- package/dist/client.gen.js +6 -0
- package/dist/command-check.gen.d.ts +14 -0
- package/dist/command-check.gen.js +23 -0
- package/dist/command-input.gen.d.ts +6 -0
- package/dist/command-input.gen.js +45 -0
- package/dist/core/auth.gen.d.ts +25 -0
- package/dist/core/auth.gen.js +18 -0
- package/dist/core/binaryStream.d.ts +8 -0
- package/dist/core/binaryStream.js +76 -0
- package/dist/core/bodySerializer.gen.d.ts +25 -0
- package/dist/core/bodySerializer.gen.js +60 -0
- package/dist/core/commandValidators.cjs +1 -0
- package/dist/core/commandValidators.d.cts +14 -0
- package/dist/core/eventValidation.d.ts +17 -0
- package/dist/core/eventValidation.js +56 -0
- package/dist/core/eventValidators.cjs +1 -0
- package/dist/core/eventValidators.d.cts +2 -0
- package/dist/core/json.d.ts +3 -0
- package/dist/core/json.js +33 -0
- package/dist/core/params.gen.d.ts +43 -0
- package/dist/core/params.gen.js +112 -0
- package/dist/core/pathSerializer.gen.d.ts +33 -0
- package/dist/core/pathSerializer.gen.js +115 -0
- package/dist/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/core/queryKeySerializer.gen.js +98 -0
- package/dist/core/responseContracts/actions.d.ts +2 -0
- package/dist/core/responseContracts/actions.js +30 -0
- package/dist/core/responseContracts/agents.d.ts +2 -0
- package/dist/core/responseContracts/agents.js +7 -0
- package/dist/core/responseContracts/artifacts.d.ts +2 -0
- package/dist/core/responseContracts/artifacts.js +8 -0
- package/dist/core/responseContracts/commands.d.ts +2 -0
- package/dist/core/responseContracts/commands.js +6 -0
- package/dist/core/responseContracts/credits.d.ts +2 -0
- package/dist/core/responseContracts/credits.js +27 -0
- package/dist/core/responseContracts/files.d.ts +2 -0
- package/dist/core/responseContracts/files.js +15 -0
- package/dist/core/responseContracts/github.d.ts +2 -0
- package/dist/core/responseContracts/github.js +8 -0
- package/dist/core/responseContracts/images.d.ts +2 -0
- package/dist/core/responseContracts/images.js +8 -0
- package/dist/core/responseContracts/launchRuns.d.ts +2 -0
- package/dist/core/responseContracts/launchRuns.js +10 -0
- package/dist/core/responseContracts/launches.d.ts +2 -0
- package/dist/core/responseContracts/launches.js +10 -0
- package/dist/core/responseContracts/operations.d.ts +2 -0
- package/dist/core/responseContracts/operations.js +7 -0
- package/dist/core/responseContracts/previews.d.ts +2 -0
- package/dist/core/responseContracts/previews.js +8 -0
- package/dist/core/responseContracts/pricing.d.ts +2 -0
- package/dist/core/responseContracts/pricing.js +6 -0
- package/dist/core/responseContracts/processes.d.ts +2 -0
- package/dist/core/responseContracts/processes.js +11 -0
- package/dist/core/responseContracts/provider_accounts.d.ts +2 -0
- package/dist/core/responseContracts/provider_accounts.js +13 -0
- package/dist/core/responseContracts/providers.d.ts +2 -0
- package/dist/core/responseContracts/providers.js +6 -0
- package/dist/core/responseContracts/routing.d.ts +2 -0
- package/dist/core/responseContracts/routing.js +8 -0
- package/dist/core/responseContracts/sandboxes.d.ts +2 -0
- package/dist/core/responseContracts/sandboxes.js +15 -0
- package/dist/core/responseContracts/secrets.d.ts +2 -0
- package/dist/core/responseContracts/secrets.js +8 -0
- package/dist/core/responseContracts/spend_limits.d.ts +2 -0
- package/dist/core/responseContracts/spend_limits.js +8 -0
- package/dist/core/responseContracts/terminals.d.ts +2 -0
- package/dist/core/responseContracts/terminals.js +11 -0
- package/dist/core/responseContracts/usage.d.ts +2 -0
- package/dist/core/responseContracts/usage.js +7 -0
- package/dist/core/responseContracts/volumes.d.ts +2 -0
- package/dist/core/responseContracts/volumes.js +19 -0
- package/dist/core/responseContracts.gen.d.ts +3 -0
- package/dist/core/responseContracts.gen.js +27 -0
- package/dist/core/responseModes.d.ts +19 -0
- package/dist/core/responseModes.js +13 -0
- package/dist/core/responseValidation.d.ts +44 -0
- package/dist/core/responseValidation.js +174 -0
- package/dist/core/responseValidators/actions-diagnostics.cjs +4 -0
- package/dist/core/responseValidators/actions-diagnostics.d.cts +24 -0
- package/dist/core/responseValidators/actions.cjs +2 -0
- package/dist/core/responseValidators/actions.d.cts +24 -0
- package/dist/core/responseValidators/agents-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/agents-diagnostics.d.cts +2 -0
- package/dist/core/responseValidators/agents.cjs +2 -0
- package/dist/core/responseValidators/agents.d.cts +2 -0
- package/dist/core/responseValidators/artifacts-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/artifacts-diagnostics.d.cts +2 -0
- package/dist/core/responseValidators/artifacts.cjs +2 -0
- package/dist/core/responseValidators/artifacts.d.cts +2 -0
- package/dist/core/responseValidators/commands-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/commands-diagnostics.d.cts +1 -0
- package/dist/core/responseValidators/commands.cjs +2 -0
- package/dist/core/responseValidators/commands.d.cts +1 -0
- package/dist/core/responseValidators/compact.cjs +122 -0
- package/dist/core/responseValidators/credits-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/credits-diagnostics.d.cts +21 -0
- package/dist/core/responseValidators/credits.cjs +2 -0
- package/dist/core/responseValidators/credits.d.cts +21 -0
- package/dist/core/responseValidators/files-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/files-diagnostics.d.cts +5 -0
- package/dist/core/responseValidators/files.cjs +2 -0
- package/dist/core/responseValidators/files.d.cts +5 -0
- package/dist/core/responseValidators/github-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/github-diagnostics.d.cts +2 -0
- package/dist/core/responseValidators/github.cjs +2 -0
- package/dist/core/responseValidators/github.d.cts +2 -0
- package/dist/core/responseValidators/images-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/images-diagnostics.d.cts +3 -0
- package/dist/core/responseValidators/images.cjs +2 -0
- package/dist/core/responseValidators/images.d.cts +3 -0
- package/dist/core/responseValidators/launchRuns-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/launchRuns-diagnostics.d.cts +5 -0
- package/dist/core/responseValidators/launchRuns.cjs +2 -0
- package/dist/core/responseValidators/launchRuns.d.cts +5 -0
- package/dist/core/responseValidators/launches-diagnostics.cjs +10 -0
- package/dist/core/responseValidators/launches-diagnostics.d.cts +5 -0
- package/dist/core/responseValidators/launches.cjs +2 -0
- package/dist/core/responseValidators/launches.d.cts +5 -0
- package/dist/core/responseValidators/operations-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/operations-diagnostics.d.cts +2 -0
- package/dist/core/responseValidators/operations.cjs +2 -0
- package/dist/core/responseValidators/operations.d.cts +2 -0
- package/dist/core/responseValidators/previews-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/previews-diagnostics.d.cts +3 -0
- package/dist/core/responseValidators/previews.cjs +2 -0
- package/dist/core/responseValidators/previews.d.cts +3 -0
- package/dist/core/responseValidators/pricing-diagnostics.cjs +7 -0
- package/dist/core/responseValidators/pricing-diagnostics.d.cts +1 -0
- package/dist/core/responseValidators/pricing.cjs +2 -0
- package/dist/core/responseValidators/pricing.d.cts +1 -0
- package/dist/core/responseValidators/processes-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/processes-diagnostics.d.cts +2 -0
- package/dist/core/responseValidators/processes.cjs +2 -0
- package/dist/core/responseValidators/processes.d.cts +2 -0
- package/dist/core/responseValidators/provider_accounts-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/provider_accounts-diagnostics.d.cts +8 -0
- package/dist/core/responseValidators/provider_accounts.cjs +2 -0
- package/dist/core/responseValidators/provider_accounts.d.cts +8 -0
- package/dist/core/responseValidators/providers-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/providers-diagnostics.d.cts +1 -0
- package/dist/core/responseValidators/providers.cjs +2 -0
- package/dist/core/responseValidators/providers.d.cts +1 -0
- package/dist/core/responseValidators/routing-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/routing-diagnostics.d.cts +3 -0
- package/dist/core/responseValidators/routing.cjs +2 -0
- package/dist/core/responseValidators/routing.d.cts +3 -0
- package/dist/core/responseValidators/sandboxes-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/sandboxes-diagnostics.d.cts +10 -0
- package/dist/core/responseValidators/sandboxes.cjs +2 -0
- package/dist/core/responseValidators/sandboxes.d.cts +10 -0
- package/dist/core/responseValidators/secrets-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/secrets-diagnostics.d.cts +1 -0
- package/dist/core/responseValidators/secrets.cjs +2 -0
- package/dist/core/responseValidators/secrets.d.cts +1 -0
- package/dist/core/responseValidators/spend_limits-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/spend_limits-diagnostics.d.cts +3 -0
- package/dist/core/responseValidators/spend_limits.cjs +2 -0
- package/dist/core/responseValidators/spend_limits.d.cts +3 -0
- package/dist/core/responseValidators/terminals-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/terminals-diagnostics.d.cts +2 -0
- package/dist/core/responseValidators/terminals.cjs +2 -0
- package/dist/core/responseValidators/terminals.d.cts +2 -0
- package/dist/core/responseValidators/usage-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/usage-diagnostics.d.cts +1 -0
- package/dist/core/responseValidators/usage.cjs +2 -0
- package/dist/core/responseValidators/usage.d.cts +1 -0
- package/dist/core/responseValidators/volumes-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/volumes-diagnostics.d.cts +10 -0
- package/dist/core/responseValidators/volumes.cjs +2 -0
- package/dist/core/responseValidators/volumes.d.cts +10 -0
- package/dist/core/serverSentEvents.gen.d.ts +30 -0
- package/dist/core/serverSentEvents.gen.js +313 -0
- package/dist/core/streamErrors.d.ts +32 -0
- package/dist/core/streamErrors.js +51 -0
- package/dist/core/types.gen.d.ts +83 -0
- package/dist/core/types.gen.js +3 -0
- package/dist/core/utils.gen.d.ts +19 -0
- package/dist/core/utils.gen.js +93 -0
- package/dist/creation.gen.d.ts +21 -0
- package/dist/creation.gen.js +35 -0
- package/dist/data-origin.d.ts +25 -0
- package/dist/data-origin.js +57 -0
- package/dist/error-codes.gen.d.ts +2 -0
- package/dist/error-codes.gen.js +2 -0
- package/dist/idempotency.gen.d.ts +1 -0
- package/dist/idempotency.gen.js +60 -0
- package/dist/images.d.ts +74 -0
- package/dist/images.js +88 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +80 -0
- package/dist/launch-input.gen.d.ts +9 -0
- package/dist/launch-input.gen.js +83 -0
- package/dist/launch.d.ts +28 -0
- package/dist/launch.js +222 -0
- package/dist/namespace-actions.d.mts +307 -0
- package/dist/namespace-actions.mjs +595 -0
- package/dist/namespace-agents.d.mts +33 -0
- package/dist/namespace-agents.mjs +40 -0
- package/dist/namespace-artifacts.d.mts +46 -0
- package/dist/namespace-artifacts.mjs +69 -0
- package/dist/namespace-base.d.mts +7 -0
- package/dist/namespace-base.mjs +7 -0
- package/dist/namespace-commands.d.mts +57 -0
- package/dist/namespace-commands.mjs +57 -0
- package/dist/namespace-credits.d.mts +213 -0
- package/dist/namespace-credits.mjs +476 -0
- package/dist/namespace-files.d.mts +203 -0
- package/dist/namespace-files.mjs +334 -0
- package/dist/namespace-github.d.mts +50 -0
- package/dist/namespace-github.mjs +68 -0
- package/dist/namespace-images.d.mts +52 -0
- package/dist/namespace-images.mjs +78 -0
- package/dist/namespace-launch_runs.d.mts +89 -0
- package/dist/namespace-launch_runs.mjs +133 -0
- package/dist/namespace-launches.d.mts +89 -0
- package/dist/namespace-launches.mjs +133 -0
- package/dist/namespace-operations.d.mts +45 -0
- package/dist/namespace-operations.mjs +52 -0
- package/dist/namespace-previews.d.mts +79 -0
- package/dist/namespace-previews.mjs +101 -0
- package/dist/namespace-pricing.d.mts +31 -0
- package/dist/namespace-pricing.mjs +22 -0
- package/dist/namespace-processes.d.mts +125 -0
- package/dist/namespace-processes.mjs +184 -0
- package/dist/namespace-provider_accounts.d.mts +156 -0
- package/dist/namespace-provider_accounts.mjs +241 -0
- package/dist/namespace-providers.d.mts +28 -0
- package/dist/namespace-providers.mjs +24 -0
- package/dist/namespace-routing.d.mts +64 -0
- package/dist/namespace-routing.mjs +86 -0
- package/dist/namespace-sandboxes.d.mts +287 -0
- package/dist/namespace-sandboxes.mjs +402 -0
- package/dist/namespace-secrets.d.mts +46 -0
- package/dist/namespace-secrets.mjs +68 -0
- package/dist/namespace-spend_limits.d.mts +48 -0
- package/dist/namespace-spend_limits.mjs +70 -0
- package/dist/namespace-terminals.d.mts +112 -0
- package/dist/namespace-terminals.mjs +177 -0
- package/dist/namespace-usage.d.mts +46 -0
- package/dist/namespace-usage.mjs +53 -0
- package/dist/namespace-volumes.d.mts +110 -0
- package/dist/namespace-volumes.mjs +269 -0
- package/dist/operations.d.ts +14 -0
- package/dist/operations.js +31 -0
- package/dist/retry.d.ts +8 -0
- package/dist/retry.js +63 -0
- package/dist/routing-choices.gen.d.ts +132 -0
- package/dist/routing-choices.gen.js +136 -0
- package/dist/routing.d.ts +23 -0
- package/dist/routing.js +38 -0
- package/dist/sandbox-handle.gen.d.ts +8 -0
- package/dist/sandbox-handle.gen.js +14 -0
- package/dist/sandboxes.d.ts +213 -0
- package/dist/sandboxes.js +507 -0
- package/dist/sdk.gen.d.ts +2029 -0
- package/dist/sdk.gen.js +3862 -0
- package/dist/server-timing.d.ts +19 -0
- package/dist/server-timing.gen.d.ts +265 -0
- package/dist/server-timing.gen.js +254 -0
- package/dist/server-timing.js +421 -0
- package/dist/spend-limits.d.ts +17 -0
- package/dist/spend-limits.js +26 -0
- package/dist/telemetry.d.ts +51 -0
- package/dist/telemetry.gen.d.ts +1 -0
- package/dist/telemetry.gen.js +5 -0
- package/dist/telemetry.js +438 -0
- package/dist/terminal.d.ts +61 -0
- package/dist/terminal.js +266 -0
- package/dist/transfer.d.ts +75 -0
- package/dist/transfer.js +389 -0
- package/dist/types.gen.d.ts +15016 -0
- package/dist/types.gen.js +3 -0
- package/dist/user-agent.d.ts +2 -0
- package/dist/user-agent.js +18 -0
- package/dist/version.gen.d.ts +1 -0
- package/dist/version.gen.js +5 -0
- package/dist/volumes.d.ts +33 -0
- package/dist/volumes.js +221 -0
- package/dist/waits.d.ts +31 -0
- package/dist/waits.js +42 -0
- package/dist/workflow-policy.gen.d.ts +41 -0
- package/dist/workflow-policy.gen.js +45 -0
- package/package.json +135 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.validate0 = validate62;const schema73 = {"type":"object","required":["available","runs","next_cursor","total_copies","live_copies"],"description":"One newest-first page of run summaries. The totals cover every run in the authenticated workspace, not only this page. When `available` is false this deployment does not run copies: the page is empty, the totals are zero, and the other launch-run operations answer 409 capability_unavailable.","properties":{"available":{"type":"boolean","description":"False when this deployment does not run launch-run copies; true otherwise."},"runs":{"type":"array","maxItems":50,"items":{"$ref":"#/components/schemas/LaunchRunSummary"}},"next_cursor":{"type":["string","null"],"minLength":1,"maxLength":1024,"description":"Opaque cursor for the next page; null on the last page."},"total_copies":{"minimum":0,"description":"Copies requested across all of the workspace's runs.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"live_copies":{"minimum":0,"description":"Copies across all of the workspace's runs whose sandboxes have not been confirmed absent.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}}}};const schema74 = {"type":"object","required":["id","agent_name","copies","desired_state","created_at","live_copies","providers"],"description":"Lightweight run row for listLaunchRuns; copy items and command data are not included.","properties":{"id":{"type":"string","minLength":1},"agent_name":{"type":["string","null"],"minLength":1,"description":"Manifest name of the resolved catalog agent or inline manifest stored with the run; null when the stored run has none. No other launch request or manifest data is returned."},"copies":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"desired_state":{"type":"string","x-boxrouter-open-enum":true},"created_at":{"type":"string","format":"date-time"},"live_copies":{"minimum":0,"description":"Copies of this run whose sandboxes have not been confirmed absent, including stopping copies.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"providers":{"type":"array","uniqueItems":true,"items":{"type":"string","minLength":1},"description":"Sorted distinct providers of the workspace-owned sandboxes attached to this run's copies; empty until a sandbox is attached."}}};const func1 = require("ajv/dist/runtime/ucs2length").default;const formats0 = require("ajv-formats/dist/formats").fullFormats["date-time"];function validate63(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate63.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((((data.id === undefined) && (missing0 = "id")) || ((data.agent_name === undefined) && (missing0 = "agent_name"))) || ((data.copies === undefined) && (missing0 = "copies"))) || ((data.desired_state === undefined) && (missing0 = "desired_state"))) || ((data.created_at === undefined) && (missing0 = "created_at"))) || ((data.live_copies === undefined) && (missing0 = "live_copies"))) || ((data.providers === undefined) && (missing0 = "providers"))){validate63.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.id !== undefined){let data0 = data.id;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) < 1){validate63.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate63.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.agent_name !== undefined){let data1 = data.agent_name;const _errs3 = errors;if((typeof data1 !== "string") && (data1 !== null)){validate63.errors = [{instancePath:instancePath+"/agent_name",schemaPath:"#/properties/agent_name/type",keyword:"type",params:{type: schema74.properties.agent_name.type},message:"must be string,null"}];return false;}if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) < 1){validate63.errors = [{instancePath:instancePath+"/agent_name",schemaPath:"#/properties/agent_name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.copies !== undefined){let data2 = data.copies;const _errs5 = errors;const _errs6 = errors;const _errs7 = errors;let valid2 = false;const _errs8 = errors;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err0 = {instancePath:instancePath+"/copies",schemaPath:"#/properties/copies/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs8 === errors;valid2 = valid2 || _valid0;const _errs10 = errors;if(typeof data2 !== "bigint"){const err1 = {instancePath:instancePath+"/copies",schemaPath:"#/properties/copies/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs10 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/copies",schemaPath:"#/properties/copies/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate63.errors = vErrors;return false;}else {errors = _errs7;if(vErrors !== null){if(_errs7){vErrors.length = _errs7;}else {vErrors = null;}}}var valid1 = _errs6 === errors;if(valid1){if(typeof data2 === "bigint"){if(data2 < 1){validate63.errors = [{instancePath:instancePath+"/copies",schemaPath:"#/properties/copies/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs5){if((typeof data2 == "number") && (isFinite(data2))){if(data2 < 1 || isNaN(data2)){validate63.errors = [{instancePath:instancePath+"/copies",schemaPath:"#/properties/copies/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.desired_state !== undefined){const _errs11 = errors;if(typeof data.desired_state !== "string"){validate63.errors = [{instancePath:instancePath+"/desired_state",schemaPath:"#/properties/desired_state/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.created_at !== undefined){let data4 = data.created_at;const _errs13 = errors;if(errors === _errs13){if(errors === _errs13){if(typeof data4 === "string"){if(!(formats0.validate(data4))){validate63.errors = [{instancePath:instancePath+"/created_at",schemaPath:"#/properties/created_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate63.errors = [{instancePath:instancePath+"/created_at",schemaPath:"#/properties/created_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.live_copies !== undefined){let data5 = data.live_copies;const _errs15 = errors;const _errs16 = errors;const _errs17 = errors;let valid4 = false;const _errs18 = errors;if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){const err3 = {instancePath:instancePath+"/live_copies",schemaPath:"#/properties/live_copies/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs18 === errors;valid4 = valid4 || _valid1;const _errs20 = errors;if(typeof data5 !== "bigint"){const err4 = {instancePath:instancePath+"/live_copies",schemaPath:"#/properties/live_copies/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs20 === errors;valid4 = valid4 || _valid1;if(!valid4){const err5 = {instancePath:instancePath+"/live_copies",schemaPath:"#/properties/live_copies/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate63.errors = vErrors;return false;}else {errors = _errs17;if(vErrors !== null){if(_errs17){vErrors.length = _errs17;}else {vErrors = null;}}}var valid3 = _errs16 === errors;if(valid3){if(typeof data5 === "bigint"){if(data5 < 0){validate63.errors = [{instancePath:instancePath+"/live_copies",schemaPath:"#/properties/live_copies/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs15){if((typeof data5 == "number") && (isFinite(data5))){if(data5 < 0 || isNaN(data5)){validate63.errors = [{instancePath:instancePath+"/live_copies",schemaPath:"#/properties/live_copies/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.providers !== undefined){let data6 = data.providers;const _errs21 = errors;if(errors === _errs21){if(Array.isArray(data6)){var valid5 = true;const len0 = data6.length;for(let i0=0; i0<len0; i0++){let data7 = data6[i0];const _errs23 = errors;if(errors === _errs23){if(typeof data7 === "string"){if(func1(data7) < 1){validate63.errors = [{instancePath:instancePath+"/providers/" + i0,schemaPath:"#/properties/providers/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate63.errors = [{instancePath:instancePath+"/providers/" + i0,schemaPath:"#/properties/providers/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs23 === errors;if(!valid5){break;}}if(valid5){let i1 = data6.length;let j0;if(i1 > 1){const indices0 = {};for(;i1--;){let item0 = data6[i1];if(typeof item0 !== "string"){continue;}if(typeof indices0[item0] == "number"){j0 = indices0[item0];validate63.errors = [{instancePath:instancePath+"/providers",schemaPath:"#/properties/providers/uniqueItems",keyword:"uniqueItems",params:{i: i1, j: j0},message:"must NOT have duplicate items (items ## "+j0+" and "+i1+" are identical)"}];return false;break;}indices0[item0] = i1;}}}}else {validate63.errors = [{instancePath:instancePath+"/providers",schemaPath:"#/properties/providers/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs21 === errors;}else {var valid0 = true;}}}}}}}}}else {validate63.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate63.errors = vErrors;return errors === 0;}validate63.evaluated = {"props":{"id":true,"agent_name":true,"copies":true,"desired_state":true,"created_at":true,"live_copies":true,"providers":true},"dynamicProps":false,"dynamicItems":false};function validate62(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate62.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((data.available === undefined) && (missing0 = "available")) || ((data.runs === undefined) && (missing0 = "runs"))) || ((data.next_cursor === undefined) && (missing0 = "next_cursor"))) || ((data.total_copies === undefined) && (missing0 = "total_copies"))) || ((data.live_copies === undefined) && (missing0 = "live_copies"))){validate62.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.available !== undefined){const _errs1 = errors;if(typeof data.available !== "boolean"){validate62.errors = [{instancePath:instancePath+"/available",schemaPath:"#/properties/available/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.runs !== undefined){let data1 = data.runs;const _errs3 = errors;if(errors === _errs3){if(Array.isArray(data1)){if(data1.length > 50){validate62.errors = [{instancePath:instancePath+"/runs",schemaPath:"#/properties/runs/maxItems",keyword:"maxItems",params:{limit: 50},message:"must NOT have more than 50 items"}];return false;}else {var valid1 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){const _errs5 = errors;if(!(validate63(data1[i0], {instancePath:instancePath+"/runs/" + i0,parentData:data1,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate63.errors : vErrors.concat(validate63.errors);errors = vErrors.length;}var valid1 = _errs5 === errors;if(!valid1){break;}}}}else {validate62.errors = [{instancePath:instancePath+"/runs",schemaPath:"#/properties/runs/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.next_cursor !== undefined){let data3 = data.next_cursor;const _errs6 = errors;if((typeof data3 !== "string") && (data3 !== null)){validate62.errors = [{instancePath:instancePath+"/next_cursor",schemaPath:"#/properties/next_cursor/type",keyword:"type",params:{type: schema73.properties.next_cursor.type},message:"must be string,null"}];return false;}if(errors === _errs6){if(typeof data3 === "string"){if(func1(data3) > 1024){validate62.errors = [{instancePath:instancePath+"/next_cursor",schemaPath:"#/properties/next_cursor/maxLength",keyword:"maxLength",params:{limit: 1024},message:"must NOT have more than 1024 characters"}];return false;}else {if(func1(data3) < 1){validate62.errors = [{instancePath:instancePath+"/next_cursor",schemaPath:"#/properties/next_cursor/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}}var valid0 = _errs6 === errors;}else {var valid0 = true;}if(valid0){if(data.total_copies !== undefined){let data4 = data.total_copies;const _errs8 = errors;const _errs9 = errors;const _errs10 = errors;let valid3 = false;const _errs11 = errors;if(!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))){const err0 = {instancePath:instancePath+"/total_copies",schemaPath:"#/properties/total_copies/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs11 === errors;valid3 = valid3 || _valid0;const _errs13 = errors;if(typeof data4 !== "bigint"){const err1 = {instancePath:instancePath+"/total_copies",schemaPath:"#/properties/total_copies/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs13 === errors;valid3 = valid3 || _valid0;if(!valid3){const err2 = {instancePath:instancePath+"/total_copies",schemaPath:"#/properties/total_copies/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate62.errors = vErrors;return false;}else {errors = _errs10;if(vErrors !== null){if(_errs10){vErrors.length = _errs10;}else {vErrors = null;}}}var valid2 = _errs9 === errors;if(valid2){if(typeof data4 === "bigint"){if(data4 < 0){validate62.errors = [{instancePath:instancePath+"/total_copies",schemaPath:"#/properties/total_copies/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs8){if((typeof data4 == "number") && (isFinite(data4))){if(data4 < 0 || isNaN(data4)){validate62.errors = [{instancePath:instancePath+"/total_copies",schemaPath:"#/properties/total_copies/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs8 === errors;}else {var valid0 = true;}if(valid0){if(data.live_copies !== undefined){let data5 = data.live_copies;const _errs14 = errors;const _errs15 = errors;const _errs16 = errors;let valid5 = false;const _errs17 = errors;if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){const err3 = {instancePath:instancePath+"/live_copies",schemaPath:"#/properties/live_copies/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs17 === errors;valid5 = valid5 || _valid1;const _errs19 = errors;if(typeof data5 !== "bigint"){const err4 = {instancePath:instancePath+"/live_copies",schemaPath:"#/properties/live_copies/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs19 === errors;valid5 = valid5 || _valid1;if(!valid5){const err5 = {instancePath:instancePath+"/live_copies",schemaPath:"#/properties/live_copies/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate62.errors = vErrors;return false;}else {errors = _errs16;if(vErrors !== null){if(_errs16){vErrors.length = _errs16;}else {vErrors = null;}}}var valid4 = _errs15 === errors;if(valid4){if(typeof data5 === "bigint"){if(data5 < 0){validate62.errors = [{instancePath:instancePath+"/live_copies",schemaPath:"#/properties/live_copies/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs14){if((typeof data5 == "number") && (isFinite(data5))){if(data5 < 0 || isNaN(data5)){validate62.errors = [{instancePath:instancePath+"/live_copies",schemaPath:"#/properties/live_copies/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs14 === errors;}else {var valid0 = true;}}}}}}}else {validate62.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate62.errors = vErrors;return errors === 0;}validate62.evaluated = {"props":{"available":true,"runs":true,"next_cursor":true,"total_copies":true,"live_copies":true},"dynamicProps":false,"dynamicItems":false};exports.validate1 = validate65;const schema75 = {"type":"object","required":["id","agent_name","copies","desired_state","created_at","items"],"description":"Plain metadata-only run response. It contains neither command observations nor output fields; GET is a provider-free read unless include=command is explicitly selected.","properties":{"id":{"type":"string","minLength":1},"agent_name":{"type":["string","null"],"minLength":1,"description":"Manifest name of the resolved catalog agent or inline manifest stored with the run; null when the stored run has none. No other launch request or manifest data is returned."},"copies":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"desired_state":{"type":"string","x-boxrouter-open-enum":true},"created_at":{"type":"string","format":"date-time"},"items":{"type":"array","items":{"$ref":"#/components/schemas/LaunchRunItem"}}}};const schema76 = {"type":"object","required":["index","status","sandbox_id","provider","error","exit_code","finished_at"],"description":"One ordered copy's public lifecycle metadata; output contents are never included.","properties":{"index":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"status":{"type":"string","enum":["queued","preparing","started","start_failed","stopping","stopped","finished","unknown"]},"sandbox_id":{"type":["string","null"]},"provider":{"type":["string","null"],"minLength":1,"description":"Provider of the workspace-owned sandbox attached to this copy; null until a sandbox is attached."},"error":{"anyOf":[{"$ref":"#/components/schemas/LaunchRunCopyError"},{"type":"null"}]},"exit_code":{"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}]},"finished_at":{"type":["string","null"],"format":"date-time"}}};const schema77 = {"type":"object","required":["code","message","fix"],"properties":{"code":{"type":["string","null"]},"message":{"type":["string","null"]},"fix":{"type":["string","null"]}}};function validate66(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate66.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((((data.index === undefined) && (missing0 = "index")) || ((data.status === undefined) && (missing0 = "status"))) || ((data.sandbox_id === undefined) && (missing0 = "sandbox_id"))) || ((data.provider === undefined) && (missing0 = "provider"))) || ((data.error === undefined) && (missing0 = "error"))) || ((data.exit_code === undefined) && (missing0 = "exit_code"))) || ((data.finished_at === undefined) && (missing0 = "finished_at"))){validate66.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.index !== undefined){let data0 = data.index;const _errs1 = errors;const _errs2 = errors;const _errs3 = errors;let valid2 = false;const _errs4 = errors;if(!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))){const err0 = {instancePath:instancePath+"/index",schemaPath:"#/properties/index/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs4 === errors;valid2 = valid2 || _valid0;const _errs6 = errors;if(typeof data0 !== "bigint"){const err1 = {instancePath:instancePath+"/index",schemaPath:"#/properties/index/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs6 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/index",schemaPath:"#/properties/index/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate66.errors = vErrors;return false;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}var valid1 = _errs2 === errors;if(valid1){if(typeof data0 === "bigint"){if(data0 < 0){validate66.errors = [{instancePath:instancePath+"/index",schemaPath:"#/properties/index/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs1){if((typeof data0 == "number") && (isFinite(data0))){if(data0 < 0 || isNaN(data0)){validate66.errors = [{instancePath:instancePath+"/index",schemaPath:"#/properties/index/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.status !== undefined){let data1 = data.status;const _errs7 = errors;if(typeof data1 !== "string"){validate66.errors = [{instancePath:instancePath+"/status",schemaPath:"#/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((((data1 === "queued") || (data1 === "preparing")) || (data1 === "started")) || (data1 === "start_failed")) || (data1 === "stopping")) || (data1 === "stopped")) || (data1 === "finished")) || (data1 === "unknown"))){validate66.errors = [{instancePath:instancePath+"/status",schemaPath:"#/properties/status/enum",keyword:"enum",params:{allowedValues: schema76.properties.status.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.sandbox_id !== undefined){let data2 = data.sandbox_id;const _errs9 = errors;if((typeof data2 !== "string") && (data2 !== null)){validate66.errors = [{instancePath:instancePath+"/sandbox_id",schemaPath:"#/properties/sandbox_id/type",keyword:"type",params:{type: schema76.properties.sandbox_id.type},message:"must be string,null"}];return false;}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.provider !== undefined){let data3 = data.provider;const _errs11 = errors;if((typeof data3 !== "string") && (data3 !== null)){validate66.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/type",keyword:"type",params:{type: schema76.properties.provider.type},message:"must be string,null"}];return false;}if(errors === _errs11){if(typeof data3 === "string"){if(func1(data3) < 1){validate66.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.error !== undefined){let data4 = data.error;const _errs13 = errors;const _errs14 = errors;let valid3 = false;const _errs15 = errors;const _errs16 = errors;if(errors === _errs16){if(data4 && typeof data4 == "object" && !Array.isArray(data4)){let missing1;if((((data4.code === undefined) && (missing1 = "code")) || ((data4.message === undefined) && (missing1 = "message"))) || ((data4.fix === undefined) && (missing1 = "fix"))){const err3 = {instancePath:instancePath+"/error",schemaPath:"#/components/schemas/LaunchRunCopyError/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {if(data4.code !== undefined){let data5 = data4.code;const _errs18 = errors;if((typeof data5 !== "string") && (data5 !== null)){const err4 = {instancePath:instancePath+"/error/code",schemaPath:"#/components/schemas/LaunchRunCopyError/properties/code/type",keyword:"type",params:{type: schema77.properties.code.type},message:"must be string,null"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var valid5 = _errs18 === errors;}else {var valid5 = true;}if(valid5){if(data4.message !== undefined){let data6 = data4.message;const _errs20 = errors;if((typeof data6 !== "string") && (data6 !== null)){const err5 = {instancePath:instancePath+"/error/message",schemaPath:"#/components/schemas/LaunchRunCopyError/properties/message/type",keyword:"type",params:{type: schema77.properties.message.type},message:"must be string,null"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid5 = _errs20 === errors;}else {var valid5 = true;}if(valid5){if(data4.fix !== undefined){let data7 = data4.fix;const _errs22 = errors;if((typeof data7 !== "string") && (data7 !== null)){const err6 = {instancePath:instancePath+"/error/fix",schemaPath:"#/components/schemas/LaunchRunCopyError/properties/fix/type",keyword:"type",params:{type: schema77.properties.fix.type},message:"must be string,null"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var valid5 = _errs22 === errors;}else {var valid5 = true;}}}}}else {const err7 = {instancePath:instancePath+"/error",schemaPath:"#/components/schemas/LaunchRunCopyError/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}var _valid1 = _errs15 === errors;valid3 = valid3 || _valid1;if(_valid1){var props0 = {};props0.code = true;props0.message = true;props0.fix = true;}const _errs24 = errors;if(data4 !== null){const err8 = {instancePath:instancePath+"/error",schemaPath:"#/properties/error/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var _valid1 = _errs24 === errors;valid3 = valid3 || _valid1;if(!valid3){const err9 = {instancePath:instancePath+"/error",schemaPath:"#/properties/error/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;validate66.errors = vErrors;return false;}else {errors = _errs14;if(vErrors !== null){if(_errs14){vErrors.length = _errs14;}else {vErrors = null;}}}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.exit_code !== undefined){let data8 = data.exit_code;const _errs26 = errors;const _errs28 = errors;let valid7 = false;const _errs29 = errors;if((!(((typeof data8 == "number") && (!(data8 % 1) && !isNaN(data8))) && (isFinite(data8)))) && (data8 !== null)){const err10 = {instancePath:instancePath+"/exit_code",schemaPath:"#/properties/exit_code/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema76.properties.exit_code.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var _valid2 = _errs29 === errors;valid7 = valid7 || _valid2;const _errs31 = errors;if(typeof data8 !== "bigint"){const err11 = {instancePath:instancePath+"/exit_code",schemaPath:"#/properties/exit_code/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var _valid2 = _errs31 === errors;valid7 = valid7 || _valid2;if(!valid7){const err12 = {instancePath:instancePath+"/exit_code",schemaPath:"#/properties/exit_code/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;validate66.errors = vErrors;return false;}else {errors = _errs28;if(vErrors !== null){if(_errs28){vErrors.length = _errs28;}else {vErrors = null;}}}var valid0 = _errs26 === errors;}else {var valid0 = true;}if(valid0){if(data.finished_at !== undefined){let data9 = data.finished_at;const _errs32 = errors;if((typeof data9 !== "string") && (data9 !== null)){validate66.errors = [{instancePath:instancePath+"/finished_at",schemaPath:"#/properties/finished_at/type",keyword:"type",params:{type: schema76.properties.finished_at.type},message:"must be string,null"}];return false;}if(errors === _errs32){if(errors === _errs32){if(typeof data9 === "string"){if(!(formats0.validate(data9))){validate66.errors = [{instancePath:instancePath+"/finished_at",schemaPath:"#/properties/finished_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs32 === errors;}else {var valid0 = true;}}}}}}}}}else {validate66.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate66.errors = vErrors;return errors === 0;}validate66.evaluated = {"props":{"index":true,"status":true,"sandbox_id":true,"provider":true,"error":true,"exit_code":true,"finished_at":true},"dynamicProps":false,"dynamicItems":false};function validate65(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate65.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((((data.id === undefined) && (missing0 = "id")) || ((data.agent_name === undefined) && (missing0 = "agent_name"))) || ((data.copies === undefined) && (missing0 = "copies"))) || ((data.desired_state === undefined) && (missing0 = "desired_state"))) || ((data.created_at === undefined) && (missing0 = "created_at"))) || ((data.items === undefined) && (missing0 = "items"))){validate65.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.id !== undefined){let data0 = data.id;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) < 1){validate65.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate65.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.agent_name !== undefined){let data1 = data.agent_name;const _errs3 = errors;if((typeof data1 !== "string") && (data1 !== null)){validate65.errors = [{instancePath:instancePath+"/agent_name",schemaPath:"#/properties/agent_name/type",keyword:"type",params:{type: schema75.properties.agent_name.type},message:"must be string,null"}];return false;}if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) < 1){validate65.errors = [{instancePath:instancePath+"/agent_name",schemaPath:"#/properties/agent_name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.copies !== undefined){let data2 = data.copies;const _errs5 = errors;const _errs6 = errors;const _errs7 = errors;let valid2 = false;const _errs8 = errors;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err0 = {instancePath:instancePath+"/copies",schemaPath:"#/properties/copies/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs8 === errors;valid2 = valid2 || _valid0;const _errs10 = errors;if(typeof data2 !== "bigint"){const err1 = {instancePath:instancePath+"/copies",schemaPath:"#/properties/copies/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs10 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/copies",schemaPath:"#/properties/copies/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate65.errors = vErrors;return false;}else {errors = _errs7;if(vErrors !== null){if(_errs7){vErrors.length = _errs7;}else {vErrors = null;}}}var valid1 = _errs6 === errors;if(valid1){if(typeof data2 === "bigint"){if(data2 < 1){validate65.errors = [{instancePath:instancePath+"/copies",schemaPath:"#/properties/copies/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs5){if((typeof data2 == "number") && (isFinite(data2))){if(data2 < 1 || isNaN(data2)){validate65.errors = [{instancePath:instancePath+"/copies",schemaPath:"#/properties/copies/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.desired_state !== undefined){const _errs11 = errors;if(typeof data.desired_state !== "string"){validate65.errors = [{instancePath:instancePath+"/desired_state",schemaPath:"#/properties/desired_state/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.created_at !== undefined){let data4 = data.created_at;const _errs13 = errors;if(errors === _errs13){if(errors === _errs13){if(typeof data4 === "string"){if(!(formats0.validate(data4))){validate65.errors = [{instancePath:instancePath+"/created_at",schemaPath:"#/properties/created_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate65.errors = [{instancePath:instancePath+"/created_at",schemaPath:"#/properties/created_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.items !== undefined){let data5 = data.items;const _errs15 = errors;if(errors === _errs15){if(Array.isArray(data5)){var valid3 = true;const len0 = data5.length;for(let i0=0; i0<len0; i0++){const _errs17 = errors;if(!(validate66(data5[i0], {instancePath:instancePath+"/items/" + i0,parentData:data5,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate66.errors : vErrors.concat(validate66.errors);errors = vErrors.length;}var valid3 = _errs17 === errors;if(!valid3){break;}}}else {validate65.errors = [{instancePath:instancePath+"/items",schemaPath:"#/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs15 === errors;}else {var valid0 = true;}}}}}}}}else {validate65.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate65.errors = vErrors;return errors === 0;}validate65.evaluated = {"props":{"id":true,"agent_name":true,"copies":true,"desired_state":true,"created_at":true,"items":true},"dynamicProps":false,"dynamicItems":false};exports.validate2 = validate68;const schema78 = {"anyOf":[{"type":"object","required":["id","agent_name","copies","desired_state","created_at","items"],"description":"Plain metadata-only run response. It contains neither command observations nor output fields; GET is a provider-free read unless include=command is explicitly selected.","properties":{"id":{"type":"string","minLength":1},"agent_name":{"type":["string","null"],"minLength":1,"description":"Manifest name of the resolved catalog agent or inline manifest stored with the run; null when the stored run has none. No other launch request or manifest data is returned."},"copies":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"desired_state":{"type":"string","x-boxrouter-open-enum":true},"created_at":{"type":"string","format":"date-time"},"items":{"type":"array","items":{"$ref":"#/components/schemas/LaunchRunItem"}}},"additionalProperties":false},{"type":"object","required":["id","agent_name","copies","desired_state","created_at","items"],"description":"Run response selected by GET include=command. The command member contains only bounded state and exit code; command text and collected output are never returned.","properties":{"id":{"type":"string","minLength":1},"agent_name":{"type":["string","null"],"minLength":1,"description":"Manifest name of the resolved catalog agent or inline manifest stored with the run; null when the stored run has none. No other launch request or manifest data is returned."},"copies":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"desired_state":{"type":"string","x-boxrouter-open-enum":true},"created_at":{"type":"string","format":"date-time"},"items":{"type":"array","items":{"anyOf":[{"type":"object","required":["index","status","sandbox_id","provider","error","exit_code","finished_at"],"description":"One ordered copy's public lifecycle metadata; output contents are never included.","properties":{"index":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"status":{"type":"string","enum":["queued","preparing","started","start_failed","stopping","stopped","finished","unknown"]},"sandbox_id":{"type":["string","null"]},"provider":{"type":["string","null"],"minLength":1,"description":"Provider of the workspace-owned sandbox attached to this copy; null until a sandbox is attached."},"error":{"anyOf":[{"$ref":"#/components/schemas/LaunchRunCopyError"},{"type":"null"}]},"exit_code":{"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}]},"finished_at":{"type":["string","null"],"format":"date-time"}},"additionalProperties":false},{"type":"object","required":["index","status","sandbox_id","provider","error","exit_code","finished_at"],"description":"Copy metadata plus an opt-in bounded command observation.","properties":{"index":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"status":{"type":"string","enum":["queued","preparing","started","start_failed","stopping","stopped","finished","unknown"]},"sandbox_id":{"type":["string","null"]},"provider":{"type":["string","null"],"minLength":1,"description":"Provider of the workspace-owned sandbox attached to this copy; null until a sandbox is attached."},"error":{"anyOf":[{"$ref":"#/components/schemas/LaunchRunCopyError"},{"type":"null"}]},"exit_code":{"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}]},"finished_at":{"type":["string","null"],"format":"date-time"},"command":{"$ref":"#/components/schemas/LaunchRunCommandObservation"}},"additionalProperties":false}]}}},"additionalProperties":false}]};const schema81 = {"type":"object","required":["status","exit_code"],"properties":{"status":{"type":"string","x-boxrouter-open-enum":true,"description":"Bounded command observation only. The response never includes command text, output, provider handles, or credential values. Clients preserve an unrecognized observation state for forward compatibility."},"exit_code":{"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}]}}};function validate68(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate68.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((((data.id === undefined) && (missing0 = "id")) || ((data.agent_name === undefined) && (missing0 = "agent_name"))) || ((data.copies === undefined) && (missing0 = "copies"))) || ((data.desired_state === undefined) && (missing0 = "desired_state"))) || ((data.created_at === undefined) && (missing0 = "created_at"))) || ((data.items === undefined) && (missing0 = "items"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {const _errs3 = errors;for(const key0 in data){if(!((((((key0 === "id") || (key0 === "agent_name")) || (key0 === "copies")) || (key0 === "desired_state")) || (key0 === "created_at")) || (key0 === "items"))){const err1 = {instancePath,schemaPath:"#/anyOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;break;}}if(_errs3 === errors){if(data.id !== undefined){let data0 = data.id;const _errs4 = errors;if(errors === _errs4){if(typeof data0 === "string"){if(func1(data0) < 1){const err2 = {instancePath:instancePath+"/id",schemaPath:"#/anyOf/0/properties/id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}else {const err3 = {instancePath:instancePath+"/id",schemaPath:"#/anyOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.agent_name !== undefined){let data1 = data.agent_name;const _errs6 = errors;if((typeof data1 !== "string") && (data1 !== null)){const err4 = {instancePath:instancePath+"/agent_name",schemaPath:"#/anyOf/0/properties/agent_name/type",keyword:"type",params:{type: schema78.anyOf[0].properties.agent_name.type},message:"must be string,null"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(errors === _errs6){if(typeof data1 === "string"){if(func1(data1) < 1){const err5 = {instancePath:instancePath+"/agent_name",schemaPath:"#/anyOf/0/properties/agent_name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data.copies !== undefined){let data2 = data.copies;const _errs8 = errors;const _errs9 = errors;const _errs10 = errors;let valid3 = false;const _errs11 = errors;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err6 = {instancePath:instancePath+"/copies",schemaPath:"#/anyOf/0/properties/copies/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid1 = _errs11 === errors;valid3 = valid3 || _valid1;const _errs13 = errors;if(typeof data2 !== "bigint"){const err7 = {instancePath:instancePath+"/copies",schemaPath:"#/anyOf/0/properties/copies/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid1 = _errs13 === errors;valid3 = valid3 || _valid1;if(!valid3){const err8 = {instancePath:instancePath+"/copies",schemaPath:"#/anyOf/0/properties/copies/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs10;if(vErrors !== null){if(_errs10){vErrors.length = _errs10;}else {vErrors = null;}}}var valid2 = _errs9 === errors;if(valid2){if(typeof data2 === "bigint"){if(data2 < 1){const err9 = {instancePath:instancePath+"/copies",schemaPath:"#/anyOf/0/properties/copies/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}if(errors === _errs8){if((typeof data2 == "number") && (isFinite(data2))){if(data2 < 1 || isNaN(data2)){const err10 = {instancePath:instancePath+"/copies",schemaPath:"#/anyOf/0/properties/copies/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}var valid1 = _errs8 === errors;}else {var valid1 = true;}if(valid1){if(data.desired_state !== undefined){const _errs14 = errors;if(typeof data.desired_state !== "string"){const err11 = {instancePath:instancePath+"/desired_state",schemaPath:"#/anyOf/0/properties/desired_state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid1 = _errs14 === errors;}else {var valid1 = true;}if(valid1){if(data.created_at !== undefined){let data4 = data.created_at;const _errs16 = errors;if(errors === _errs16){if(errors === _errs16){if(typeof data4 === "string"){if(!(formats0.validate(data4))){const err12 = {instancePath:instancePath+"/created_at",schemaPath:"#/anyOf/0/properties/created_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/created_at",schemaPath:"#/anyOf/0/properties/created_at/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}var valid1 = _errs16 === errors;}else {var valid1 = true;}if(valid1){if(data.items !== undefined){let data5 = data.items;const _errs18 = errors;if(errors === _errs18){if(Array.isArray(data5)){var valid4 = true;const len0 = data5.length;for(let i0=0; i0<len0; i0++){const _errs20 = errors;if(!(validate66(data5[i0], {instancePath:instancePath+"/items/" + i0,parentData:data5,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate66.errors : vErrors.concat(validate66.errors);errors = vErrors.length;}var valid4 = _errs20 === errors;if(!valid4){break;}}}else {const err14 = {instancePath:instancePath+"/items",schemaPath:"#/anyOf/0/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}var valid1 = _errs18 === errors;}else {var valid1 = true;}}}}}}}}}else {const err15 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(_valid0){var props0 = true;}const _errs21 = errors;if(errors === _errs21){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((((((data.id === undefined) && (missing1 = "id")) || ((data.agent_name === undefined) && (missing1 = "agent_name"))) || ((data.copies === undefined) && (missing1 = "copies"))) || ((data.desired_state === undefined) && (missing1 = "desired_state"))) || ((data.created_at === undefined) && (missing1 = "created_at"))) || ((data.items === undefined) && (missing1 = "items"))){const err16 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {const _errs23 = errors;for(const key1 in data){if(!((((((key1 === "id") || (key1 === "agent_name")) || (key1 === "copies")) || (key1 === "desired_state")) || (key1 === "created_at")) || (key1 === "items"))){const err17 = {instancePath,schemaPath:"#/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;break;}}if(_errs23 === errors){if(data.id !== undefined){let data7 = data.id;const _errs24 = errors;if(errors === _errs24){if(typeof data7 === "string"){if(func1(data7) < 1){const err18 = {instancePath:instancePath+"/id",schemaPath:"#/anyOf/1/properties/id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}else {const err19 = {instancePath:instancePath+"/id",schemaPath:"#/anyOf/1/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}var valid5 = _errs24 === errors;}else {var valid5 = true;}if(valid5){if(data.agent_name !== undefined){let data8 = data.agent_name;const _errs26 = errors;if((typeof data8 !== "string") && (data8 !== null)){const err20 = {instancePath:instancePath+"/agent_name",schemaPath:"#/anyOf/1/properties/agent_name/type",keyword:"type",params:{type: schema78.anyOf[1].properties.agent_name.type},message:"must be string,null"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(errors === _errs26){if(typeof data8 === "string"){if(func1(data8) < 1){const err21 = {instancePath:instancePath+"/agent_name",schemaPath:"#/anyOf/1/properties/agent_name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}var valid5 = _errs26 === errors;}else {var valid5 = true;}if(valid5){if(data.copies !== undefined){let data9 = data.copies;const _errs28 = errors;const _errs29 = errors;const _errs30 = errors;let valid7 = false;const _errs31 = errors;if(!(((typeof data9 == "number") && (!(data9 % 1) && !isNaN(data9))) && (isFinite(data9)))){const err22 = {instancePath:instancePath+"/copies",schemaPath:"#/anyOf/1/properties/copies/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var _valid2 = _errs31 === errors;valid7 = valid7 || _valid2;const _errs33 = errors;if(typeof data9 !== "bigint"){const err23 = {instancePath:instancePath+"/copies",schemaPath:"#/anyOf/1/properties/copies/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var _valid2 = _errs33 === errors;valid7 = valid7 || _valid2;if(!valid7){const err24 = {instancePath:instancePath+"/copies",schemaPath:"#/anyOf/1/properties/copies/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}else {errors = _errs30;if(vErrors !== null){if(_errs30){vErrors.length = _errs30;}else {vErrors = null;}}}var valid6 = _errs29 === errors;if(valid6){if(typeof data9 === "bigint"){if(data9 < 1){const err25 = {instancePath:instancePath+"/copies",schemaPath:"#/anyOf/1/properties/copies/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}}if(errors === _errs28){if((typeof data9 == "number") && (isFinite(data9))){if(data9 < 1 || isNaN(data9)){const err26 = {instancePath:instancePath+"/copies",schemaPath:"#/anyOf/1/properties/copies/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}var valid5 = _errs28 === errors;}else {var valid5 = true;}if(valid5){if(data.desired_state !== undefined){const _errs34 = errors;if(typeof data.desired_state !== "string"){const err27 = {instancePath:instancePath+"/desired_state",schemaPath:"#/anyOf/1/properties/desired_state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid5 = _errs34 === errors;}else {var valid5 = true;}if(valid5){if(data.created_at !== undefined){let data11 = data.created_at;const _errs36 = errors;if(errors === _errs36){if(errors === _errs36){if(typeof data11 === "string"){if(!(formats0.validate(data11))){const err28 = {instancePath:instancePath+"/created_at",schemaPath:"#/anyOf/1/properties/created_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}else {const err29 = {instancePath:instancePath+"/created_at",schemaPath:"#/anyOf/1/properties/created_at/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}var valid5 = _errs36 === errors;}else {var valid5 = true;}if(valid5){if(data.items !== undefined){let data12 = data.items;const _errs38 = errors;if(errors === _errs38){if(Array.isArray(data12)){var valid8 = true;const len1 = data12.length;for(let i1=0; i1<len1; i1++){let data13 = data12[i1];const _errs40 = errors;const _errs41 = errors;let valid9 = false;const _errs42 = errors;if(errors === _errs42){if(data13 && typeof data13 == "object" && !Array.isArray(data13)){let missing2;if((((((((data13.index === undefined) && (missing2 = "index")) || ((data13.status === undefined) && (missing2 = "status"))) || ((data13.sandbox_id === undefined) && (missing2 = "sandbox_id"))) || ((data13.provider === undefined) && (missing2 = "provider"))) || ((data13.error === undefined) && (missing2 = "error"))) || ((data13.exit_code === undefined) && (missing2 = "exit_code"))) || ((data13.finished_at === undefined) && (missing2 = "finished_at"))){const err30 = {instancePath:instancePath+"/items/" + i1,schemaPath:"#/anyOf/1/properties/items/items/anyOf/0/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}else {const _errs44 = errors;for(const key2 in data13){if(!(((((((key2 === "index") || (key2 === "status")) || (key2 === "sandbox_id")) || (key2 === "provider")) || (key2 === "error")) || (key2 === "exit_code")) || (key2 === "finished_at"))){const err31 = {instancePath:instancePath+"/items/" + i1,schemaPath:"#/anyOf/1/properties/items/items/anyOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;break;}}if(_errs44 === errors){if(data13.index !== undefined){let data14 = data13.index;const _errs45 = errors;const _errs46 = errors;const _errs47 = errors;let valid12 = false;const _errs48 = errors;if(!(((typeof data14 == "number") && (!(data14 % 1) && !isNaN(data14))) && (isFinite(data14)))){const err32 = {instancePath:instancePath+"/items/" + i1+"/index",schemaPath:"#/anyOf/1/properties/items/items/anyOf/0/properties/index/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}var _valid4 = _errs48 === errors;valid12 = valid12 || _valid4;const _errs50 = errors;if(typeof data14 !== "bigint"){const err33 = {instancePath:instancePath+"/items/" + i1+"/index",schemaPath:"#/anyOf/1/properties/items/items/anyOf/0/properties/index/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var _valid4 = _errs50 === errors;valid12 = valid12 || _valid4;if(!valid12){const err34 = {instancePath:instancePath+"/items/" + i1+"/index",schemaPath:"#/anyOf/1/properties/items/items/anyOf/0/properties/index/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {errors = _errs47;if(vErrors !== null){if(_errs47){vErrors.length = _errs47;}else {vErrors = null;}}}var valid11 = _errs46 === errors;if(valid11){if(typeof data14 === "bigint"){if(data14 < 0){const err35 = {instancePath:instancePath+"/items/" + i1+"/index",schemaPath:"#/anyOf/1/properties/items/items/anyOf/0/properties/index/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}}if(errors === _errs45){if((typeof data14 == "number") && (isFinite(data14))){if(data14 < 0 || isNaN(data14)){const err36 = {instancePath:instancePath+"/items/" + i1+"/index",schemaPath:"#/anyOf/1/properties/items/items/anyOf/0/properties/index/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}var valid10 = _errs45 === errors;}else {var valid10 = true;}if(valid10){if(data13.status !== undefined){let data15 = data13.status;const _errs51 = errors;if(typeof data15 !== "string"){const err37 = {instancePath:instancePath+"/items/" + i1+"/status",schemaPath:"#/anyOf/1/properties/items/items/anyOf/0/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(!((((((((data15 === "queued") || (data15 === "preparing")) || (data15 === "started")) || (data15 === "start_failed")) || (data15 === "stopping")) || (data15 === "stopped")) || (data15 === "finished")) || (data15 === "unknown"))){const err38 = {instancePath:instancePath+"/items/" + i1+"/status",schemaPath:"#/anyOf/1/properties/items/items/anyOf/0/properties/status/enum",keyword:"enum",params:{allowedValues: schema78.anyOf[1].properties.items.items.anyOf[0].properties.status.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var valid10 = _errs51 === errors;}else {var valid10 = true;}if(valid10){if(data13.sandbox_id !== undefined){let data16 = data13.sandbox_id;const _errs53 = errors;if((typeof data16 !== "string") && (data16 !== null)){const err39 = {instancePath:instancePath+"/items/" + i1+"/sandbox_id",schemaPath:"#/anyOf/1/properties/items/items/anyOf/0/properties/sandbox_id/type",keyword:"type",params:{type: schema78.anyOf[1].properties.items.items.anyOf[0].properties.sandbox_id.type},message:"must be string,null"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}var valid10 = _errs53 === errors;}else {var valid10 = true;}if(valid10){if(data13.provider !== undefined){let data17 = data13.provider;const _errs55 = errors;if((typeof data17 !== "string") && (data17 !== null)){const err40 = {instancePath:instancePath+"/items/" + i1+"/provider",schemaPath:"#/anyOf/1/properties/items/items/anyOf/0/properties/provider/type",keyword:"type",params:{type: schema78.anyOf[1].properties.items.items.anyOf[0].properties.provider.type},message:"must be string,null"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(errors === _errs55){if(typeof data17 === "string"){if(func1(data17) < 1){const err41 = {instancePath:instancePath+"/items/" + i1+"/provider",schemaPath:"#/anyOf/1/properties/items/items/anyOf/0/properties/provider/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}var valid10 = _errs55 === errors;}else {var valid10 = true;}if(valid10){if(data13.error !== undefined){let data18 = data13.error;const _errs57 = errors;const _errs58 = errors;let valid13 = false;const _errs59 = errors;const _errs60 = errors;if(errors === _errs60){if(data18 && typeof data18 == "object" && !Array.isArray(data18)){let missing3;if((((data18.code === undefined) && (missing3 = "code")) || ((data18.message === undefined) && (missing3 = "message"))) || ((data18.fix === undefined) && (missing3 = "fix"))){const err42 = {instancePath:instancePath+"/items/" + i1+"/error",schemaPath:"#/components/schemas/LaunchRunCopyError/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {if(data18.code !== undefined){let data19 = data18.code;const _errs62 = errors;if((typeof data19 !== "string") && (data19 !== null)){const err43 = {instancePath:instancePath+"/items/" + i1+"/error/code",schemaPath:"#/components/schemas/LaunchRunCopyError/properties/code/type",keyword:"type",params:{type: schema77.properties.code.type},message:"must be string,null"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}var valid15 = _errs62 === errors;}else {var valid15 = true;}if(valid15){if(data18.message !== undefined){let data20 = data18.message;const _errs64 = errors;if((typeof data20 !== "string") && (data20 !== null)){const err44 = {instancePath:instancePath+"/items/" + i1+"/error/message",schemaPath:"#/components/schemas/LaunchRunCopyError/properties/message/type",keyword:"type",params:{type: schema77.properties.message.type},message:"must be string,null"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var valid15 = _errs64 === errors;}else {var valid15 = true;}if(valid15){if(data18.fix !== undefined){let data21 = data18.fix;const _errs66 = errors;if((typeof data21 !== "string") && (data21 !== null)){const err45 = {instancePath:instancePath+"/items/" + i1+"/error/fix",schemaPath:"#/components/schemas/LaunchRunCopyError/properties/fix/type",keyword:"type",params:{type: schema77.properties.fix.type},message:"must be string,null"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid15 = _errs66 === errors;}else {var valid15 = true;}}}}}else {const err46 = {instancePath:instancePath+"/items/" + i1+"/error",schemaPath:"#/components/schemas/LaunchRunCopyError/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}var _valid5 = _errs59 === errors;valid13 = valid13 || _valid5;if(_valid5){var props1 = {};props1.code = true;props1.message = true;props1.fix = true;}const _errs68 = errors;if(data18 !== null){const err47 = {instancePath:instancePath+"/items/" + i1+"/error",schemaPath:"#/anyOf/1/properties/items/items/anyOf/0/properties/error/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var _valid5 = _errs68 === errors;valid13 = valid13 || _valid5;if(!valid13){const err48 = {instancePath:instancePath+"/items/" + i1+"/error",schemaPath:"#/anyOf/1/properties/items/items/anyOf/0/properties/error/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}else {errors = _errs58;if(vErrors !== null){if(_errs58){vErrors.length = _errs58;}else {vErrors = null;}}}var valid10 = _errs57 === errors;}else {var valid10 = true;}if(valid10){if(data13.exit_code !== undefined){let data22 = data13.exit_code;const _errs70 = errors;const _errs72 = errors;let valid17 = false;const _errs73 = errors;if((!(((typeof data22 == "number") && (!(data22 % 1) && !isNaN(data22))) && (isFinite(data22)))) && (data22 !== null)){const err49 = {instancePath:instancePath+"/items/" + i1+"/exit_code",schemaPath:"#/anyOf/1/properties/items/items/anyOf/0/properties/exit_code/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema78.anyOf[1].properties.items.items.anyOf[0].properties.exit_code.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var _valid6 = _errs73 === errors;valid17 = valid17 || _valid6;const _errs75 = errors;if(typeof data22 !== "bigint"){const err50 = {instancePath:instancePath+"/items/" + i1+"/exit_code",schemaPath:"#/anyOf/1/properties/items/items/anyOf/0/properties/exit_code/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}var _valid6 = _errs75 === errors;valid17 = valid17 || _valid6;if(!valid17){const err51 = {instancePath:instancePath+"/items/" + i1+"/exit_code",schemaPath:"#/anyOf/1/properties/items/items/anyOf/0/properties/exit_code/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}else {errors = _errs72;if(vErrors !== null){if(_errs72){vErrors.length = _errs72;}else {vErrors = null;}}}var valid10 = _errs70 === errors;}else {var valid10 = true;}if(valid10){if(data13.finished_at !== undefined){let data23 = data13.finished_at;const _errs76 = errors;if((typeof data23 !== "string") && (data23 !== null)){const err52 = {instancePath:instancePath+"/items/" + i1+"/finished_at",schemaPath:"#/anyOf/1/properties/items/items/anyOf/0/properties/finished_at/type",keyword:"type",params:{type: schema78.anyOf[1].properties.items.items.anyOf[0].properties.finished_at.type},message:"must be string,null"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}if(errors === _errs76){if(errors === _errs76){if(typeof data23 === "string"){if(!(formats0.validate(data23))){const err53 = {instancePath:instancePath+"/items/" + i1+"/finished_at",schemaPath:"#/anyOf/1/properties/items/items/anyOf/0/properties/finished_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}}}var valid10 = _errs76 === errors;}else {var valid10 = true;}}}}}}}}}}else {const err54 = {instancePath:instancePath+"/items/" + i1,schemaPath:"#/anyOf/1/properties/items/items/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}var _valid3 = _errs42 === errors;valid9 = valid9 || _valid3;if(_valid3){var props2 = true;}const _errs78 = errors;if(errors === _errs78){if(data13 && typeof data13 == "object" && !Array.isArray(data13)){let missing4;if((((((((data13.index === undefined) && (missing4 = "index")) || ((data13.status === undefined) && (missing4 = "status"))) || ((data13.sandbox_id === undefined) && (missing4 = "sandbox_id"))) || ((data13.provider === undefined) && (missing4 = "provider"))) || ((data13.error === undefined) && (missing4 = "error"))) || ((data13.exit_code === undefined) && (missing4 = "exit_code"))) || ((data13.finished_at === undefined) && (missing4 = "finished_at"))){const err55 = {instancePath:instancePath+"/items/" + i1,schemaPath:"#/anyOf/1/properties/items/items/anyOf/1/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}else {const _errs80 = errors;for(const key3 in data13){if(!((((((((key3 === "index") || (key3 === "status")) || (key3 === "sandbox_id")) || (key3 === "provider")) || (key3 === "error")) || (key3 === "exit_code")) || (key3 === "finished_at")) || (key3 === "command"))){const err56 = {instancePath:instancePath+"/items/" + i1,schemaPath:"#/anyOf/1/properties/items/items/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;break;}}if(_errs80 === errors){if(data13.index !== undefined){let data24 = data13.index;const _errs81 = errors;const _errs82 = errors;const _errs83 = errors;let valid20 = false;const _errs84 = errors;if(!(((typeof data24 == "number") && (!(data24 % 1) && !isNaN(data24))) && (isFinite(data24)))){const err57 = {instancePath:instancePath+"/items/" + i1+"/index",schemaPath:"#/anyOf/1/properties/items/items/anyOf/1/properties/index/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}var _valid7 = _errs84 === errors;valid20 = valid20 || _valid7;const _errs86 = errors;if(typeof data24 !== "bigint"){const err58 = {instancePath:instancePath+"/items/" + i1+"/index",schemaPath:"#/anyOf/1/properties/items/items/anyOf/1/properties/index/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}var _valid7 = _errs86 === errors;valid20 = valid20 || _valid7;if(!valid20){const err59 = {instancePath:instancePath+"/items/" + i1+"/index",schemaPath:"#/anyOf/1/properties/items/items/anyOf/1/properties/index/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}else {errors = _errs83;if(vErrors !== null){if(_errs83){vErrors.length = _errs83;}else {vErrors = null;}}}var valid19 = _errs82 === errors;if(valid19){if(typeof data24 === "bigint"){if(data24 < 0){const err60 = {instancePath:instancePath+"/items/" + i1+"/index",schemaPath:"#/anyOf/1/properties/items/items/anyOf/1/properties/index/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}}if(errors === _errs81){if((typeof data24 == "number") && (isFinite(data24))){if(data24 < 0 || isNaN(data24)){const err61 = {instancePath:instancePath+"/items/" + i1+"/index",schemaPath:"#/anyOf/1/properties/items/items/anyOf/1/properties/index/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}}var valid18 = _errs81 === errors;}else {var valid18 = true;}if(valid18){if(data13.status !== undefined){let data25 = data13.status;const _errs87 = errors;if(typeof data25 !== "string"){const err62 = {instancePath:instancePath+"/items/" + i1+"/status",schemaPath:"#/anyOf/1/properties/items/items/anyOf/1/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}if(!((((((((data25 === "queued") || (data25 === "preparing")) || (data25 === "started")) || (data25 === "start_failed")) || (data25 === "stopping")) || (data25 === "stopped")) || (data25 === "finished")) || (data25 === "unknown"))){const err63 = {instancePath:instancePath+"/items/" + i1+"/status",schemaPath:"#/anyOf/1/properties/items/items/anyOf/1/properties/status/enum",keyword:"enum",params:{allowedValues: schema78.anyOf[1].properties.items.items.anyOf[1].properties.status.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}var valid18 = _errs87 === errors;}else {var valid18 = true;}if(valid18){if(data13.sandbox_id !== undefined){let data26 = data13.sandbox_id;const _errs89 = errors;if((typeof data26 !== "string") && (data26 !== null)){const err64 = {instancePath:instancePath+"/items/" + i1+"/sandbox_id",schemaPath:"#/anyOf/1/properties/items/items/anyOf/1/properties/sandbox_id/type",keyword:"type",params:{type: schema78.anyOf[1].properties.items.items.anyOf[1].properties.sandbox_id.type},message:"must be string,null"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}var valid18 = _errs89 === errors;}else {var valid18 = true;}if(valid18){if(data13.provider !== undefined){let data27 = data13.provider;const _errs91 = errors;if((typeof data27 !== "string") && (data27 !== null)){const err65 = {instancePath:instancePath+"/items/" + i1+"/provider",schemaPath:"#/anyOf/1/properties/items/items/anyOf/1/properties/provider/type",keyword:"type",params:{type: schema78.anyOf[1].properties.items.items.anyOf[1].properties.provider.type},message:"must be string,null"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(errors === _errs91){if(typeof data27 === "string"){if(func1(data27) < 1){const err66 = {instancePath:instancePath+"/items/" + i1+"/provider",schemaPath:"#/anyOf/1/properties/items/items/anyOf/1/properties/provider/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}}var valid18 = _errs91 === errors;}else {var valid18 = true;}if(valid18){if(data13.error !== undefined){let data28 = data13.error;const _errs93 = errors;const _errs94 = errors;let valid21 = false;const _errs95 = errors;const _errs96 = errors;if(errors === _errs96){if(data28 && typeof data28 == "object" && !Array.isArray(data28)){let missing5;if((((data28.code === undefined) && (missing5 = "code")) || ((data28.message === undefined) && (missing5 = "message"))) || ((data28.fix === undefined) && (missing5 = "fix"))){const err67 = {instancePath:instancePath+"/items/" + i1+"/error",schemaPath:"#/components/schemas/LaunchRunCopyError/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}else {if(data28.code !== undefined){let data29 = data28.code;const _errs98 = errors;if((typeof data29 !== "string") && (data29 !== null)){const err68 = {instancePath:instancePath+"/items/" + i1+"/error/code",schemaPath:"#/components/schemas/LaunchRunCopyError/properties/code/type",keyword:"type",params:{type: schema77.properties.code.type},message:"must be string,null"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}var valid23 = _errs98 === errors;}else {var valid23 = true;}if(valid23){if(data28.message !== undefined){let data30 = data28.message;const _errs100 = errors;if((typeof data30 !== "string") && (data30 !== null)){const err69 = {instancePath:instancePath+"/items/" + i1+"/error/message",schemaPath:"#/components/schemas/LaunchRunCopyError/properties/message/type",keyword:"type",params:{type: schema77.properties.message.type},message:"must be string,null"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}var valid23 = _errs100 === errors;}else {var valid23 = true;}if(valid23){if(data28.fix !== undefined){let data31 = data28.fix;const _errs102 = errors;if((typeof data31 !== "string") && (data31 !== null)){const err70 = {instancePath:instancePath+"/items/" + i1+"/error/fix",schemaPath:"#/components/schemas/LaunchRunCopyError/properties/fix/type",keyword:"type",params:{type: schema77.properties.fix.type},message:"must be string,null"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}var valid23 = _errs102 === errors;}else {var valid23 = true;}}}}}else {const err71 = {instancePath:instancePath+"/items/" + i1+"/error",schemaPath:"#/components/schemas/LaunchRunCopyError/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}var _valid8 = _errs95 === errors;valid21 = valid21 || _valid8;if(_valid8){var props3 = {};props3.code = true;props3.message = true;props3.fix = true;}const _errs104 = errors;if(data28 !== null){const err72 = {instancePath:instancePath+"/items/" + i1+"/error",schemaPath:"#/anyOf/1/properties/items/items/anyOf/1/properties/error/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}var _valid8 = _errs104 === errors;valid21 = valid21 || _valid8;if(!valid21){const err73 = {instancePath:instancePath+"/items/" + i1+"/error",schemaPath:"#/anyOf/1/properties/items/items/anyOf/1/properties/error/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}else {errors = _errs94;if(vErrors !== null){if(_errs94){vErrors.length = _errs94;}else {vErrors = null;}}}var valid18 = _errs93 === errors;}else {var valid18 = true;}if(valid18){if(data13.exit_code !== undefined){let data32 = data13.exit_code;const _errs106 = errors;const _errs108 = errors;let valid25 = false;const _errs109 = errors;if((!(((typeof data32 == "number") && (!(data32 % 1) && !isNaN(data32))) && (isFinite(data32)))) && (data32 !== null)){const err74 = {instancePath:instancePath+"/items/" + i1+"/exit_code",schemaPath:"#/anyOf/1/properties/items/items/anyOf/1/properties/exit_code/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema78.anyOf[1].properties.items.items.anyOf[1].properties.exit_code.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}var _valid9 = _errs109 === errors;valid25 = valid25 || _valid9;const _errs111 = errors;if(typeof data32 !== "bigint"){const err75 = {instancePath:instancePath+"/items/" + i1+"/exit_code",schemaPath:"#/anyOf/1/properties/items/items/anyOf/1/properties/exit_code/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}var _valid9 = _errs111 === errors;valid25 = valid25 || _valid9;if(!valid25){const err76 = {instancePath:instancePath+"/items/" + i1+"/exit_code",schemaPath:"#/anyOf/1/properties/items/items/anyOf/1/properties/exit_code/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}else {errors = _errs108;if(vErrors !== null){if(_errs108){vErrors.length = _errs108;}else {vErrors = null;}}}var valid18 = _errs106 === errors;}else {var valid18 = true;}if(valid18){if(data13.finished_at !== undefined){let data33 = data13.finished_at;const _errs112 = errors;if((typeof data33 !== "string") && (data33 !== null)){const err77 = {instancePath:instancePath+"/items/" + i1+"/finished_at",schemaPath:"#/anyOf/1/properties/items/items/anyOf/1/properties/finished_at/type",keyword:"type",params:{type: schema78.anyOf[1].properties.items.items.anyOf[1].properties.finished_at.type},message:"must be string,null"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}if(errors === _errs112){if(errors === _errs112){if(typeof data33 === "string"){if(!(formats0.validate(data33))){const err78 = {instancePath:instancePath+"/items/" + i1+"/finished_at",schemaPath:"#/anyOf/1/properties/items/items/anyOf/1/properties/finished_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}}}var valid18 = _errs112 === errors;}else {var valid18 = true;}if(valid18){if(data13.command !== undefined){let data34 = data13.command;const _errs114 = errors;const _errs115 = errors;if(errors === _errs115){if(data34 && typeof data34 == "object" && !Array.isArray(data34)){let missing6;if(((data34.status === undefined) && (missing6 = "status")) || ((data34.exit_code === undefined) && (missing6 = "exit_code"))){const err79 = {instancePath:instancePath+"/items/" + i1+"/command",schemaPath:"#/components/schemas/LaunchRunCommandObservation/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}else {if(data34.status !== undefined){const _errs117 = errors;if(typeof data34.status !== "string"){const err80 = {instancePath:instancePath+"/items/" + i1+"/command/status",schemaPath:"#/components/schemas/LaunchRunCommandObservation/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}var valid27 = _errs117 === errors;}else {var valid27 = true;}if(valid27){if(data34.exit_code !== undefined){let data36 = data34.exit_code;const _errs119 = errors;const _errs121 = errors;let valid29 = false;const _errs122 = errors;if((!(((typeof data36 == "number") && (!(data36 % 1) && !isNaN(data36))) && (isFinite(data36)))) && (data36 !== null)){const err81 = {instancePath:instancePath+"/items/" + i1+"/command/exit_code",schemaPath:"#/components/schemas/LaunchRunCommandObservation/properties/exit_code/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema81.properties.exit_code.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}var _valid10 = _errs122 === errors;valid29 = valid29 || _valid10;const _errs124 = errors;if(typeof data36 !== "bigint"){const err82 = {instancePath:instancePath+"/items/" + i1+"/command/exit_code",schemaPath:"#/components/schemas/LaunchRunCommandObservation/properties/exit_code/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}var _valid10 = _errs124 === errors;valid29 = valid29 || _valid10;if(!valid29){const err83 = {instancePath:instancePath+"/items/" + i1+"/command/exit_code",schemaPath:"#/components/schemas/LaunchRunCommandObservation/properties/exit_code/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}else {errors = _errs121;if(vErrors !== null){if(_errs121){vErrors.length = _errs121;}else {vErrors = null;}}}var valid27 = _errs119 === errors;}else {var valid27 = true;}}}}else {const err84 = {instancePath:instancePath+"/items/" + i1+"/command",schemaPath:"#/components/schemas/LaunchRunCommandObservation/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}var valid18 = _errs114 === errors;}else {var valid18 = true;}}}}}}}}}}}else {const err85 = {instancePath:instancePath+"/items/" + i1,schemaPath:"#/anyOf/1/properties/items/items/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}var _valid3 = _errs78 === errors;valid9 = valid9 || _valid3;if(_valid3){if(props2 !== true){props2 = true;}}if(!valid9){const err86 = {instancePath:instancePath+"/items/" + i1,schemaPath:"#/anyOf/1/properties/items/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}else {errors = _errs41;if(vErrors !== null){if(_errs41){vErrors.length = _errs41;}else {vErrors = null;}}}var valid8 = _errs40 === errors;if(!valid8){break;}}}else {const err87 = {instancePath:instancePath+"/items",schemaPath:"#/anyOf/1/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}var valid5 = _errs38 === errors;}else {var valid5 = true;}}}}}}}}}else {const err88 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}var _valid0 = _errs21 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = true;}}if(!valid0){const err89 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;validate68.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate68.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate68.evaluated = {"dynamicProps":true,"dynamicItems":false};exports.validate3 = validate70;const schema82 = {"type":"object","required":["id","desired_state","stopped_at"],"properties":{"id":{"type":"string","minLength":1},"desired_state":{"type":"string","const":"stopped"},"stopped_at":{"type":"string","format":"date-time"}}};function validate70(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate70.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.id === undefined) && (missing0 = "id")) || ((data.desired_state === undefined) && (missing0 = "desired_state"))) || ((data.stopped_at === undefined) && (missing0 = "stopped_at"))){validate70.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.id !== undefined){let data0 = data.id;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) < 1){validate70.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate70.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.desired_state !== undefined){let data1 = data.desired_state;const _errs3 = errors;if(typeof data1 !== "string"){validate70.errors = [{instancePath:instancePath+"/desired_state",schemaPath:"#/properties/desired_state/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("stopped" !== data1){validate70.errors = [{instancePath:instancePath+"/desired_state",schemaPath:"#/properties/desired_state/const",keyword:"const",params:{allowedValue: "stopped"},message:"must be equal to constant"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.stopped_at !== undefined){let data2 = data.stopped_at;const _errs5 = errors;if(errors === _errs5){if(errors === _errs5){if(typeof data2 === "string"){if(!(formats0.validate(data2))){validate70.errors = [{instancePath:instancePath+"/stopped_at",schemaPath:"#/properties/stopped_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate70.errors = [{instancePath:instancePath+"/stopped_at",schemaPath:"#/properties/stopped_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}else {validate70.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate70.errors = vErrors;return errors === 0;}validate70.evaluated = {"props":{"id":true,"desired_state":true,"stopped_at":true},"dynamicProps":false,"dynamicItems":false};exports.validate4 = validate71;const schema83 = {"type":"object","required":["run_id","copy_index","status"],"description":"Acknowledges a durable cleanup request for one copy. `stopping` is not confirmation that the sandbox is gone; read getLaunchRun for the copy's current status.","properties":{"run_id":{"type":"string","minLength":1},"copy_index":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"status":{"type":"string","const":"stopping"}}};function validate71(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate71.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((data.run_id === undefined) && (missing0 = "run_id")) || ((data.copy_index === undefined) && (missing0 = "copy_index"))) || ((data.status === undefined) && (missing0 = "status"))){validate71.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.run_id !== undefined){let data0 = data.run_id;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) < 1){validate71.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate71.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.copy_index !== undefined){let data1 = data.copy_index;const _errs3 = errors;const _errs4 = errors;const _errs5 = errors;let valid2 = false;const _errs6 = errors;if(!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))){const err0 = {instancePath:instancePath+"/copy_index",schemaPath:"#/properties/copy_index/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs6 === errors;valid2 = valid2 || _valid0;const _errs8 = errors;if(typeof data1 !== "bigint"){const err1 = {instancePath:instancePath+"/copy_index",schemaPath:"#/properties/copy_index/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs8 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/copy_index",schemaPath:"#/properties/copy_index/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate71.errors = vErrors;return false;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}var valid1 = _errs4 === errors;if(valid1){if(typeof data1 === "bigint"){if(data1 < 0){validate71.errors = [{instancePath:instancePath+"/copy_index",schemaPath:"#/properties/copy_index/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs3){if((typeof data1 == "number") && (isFinite(data1))){if(data1 < 0 || isNaN(data1)){validate71.errors = [{instancePath:instancePath+"/copy_index",schemaPath:"#/properties/copy_index/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.status !== undefined){let data2 = data.status;const _errs9 = errors;if(typeof data2 !== "string"){validate71.errors = [{instancePath:instancePath+"/status",schemaPath:"#/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("stopping" !== data2){validate71.errors = [{instancePath:instancePath+"/status",schemaPath:"#/properties/status/const",keyword:"const",params:{allowedValue: "stopping"},message:"must be equal to constant"}];return false;}var valid0 = _errs9 === errors;}else {var valid0 = true;}}}}}else {validate71.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate71.errors = vErrors;return errors === 0;}validate71.evaluated = {"props":{"run_id":true,"copy_index":true,"status":true},"dynamicProps":false,"dynamicItems":false};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const validate0: (value: unknown) => boolean;
|
|
2
|
+
export declare const validate1: (value: unknown) => boolean;
|
|
3
|
+
export declare const validate2: (value: unknown) => boolean;
|
|
4
|
+
export declare const validate3: (value: unknown) => boolean;
|
|
5
|
+
export declare const validate4: (value: unknown) => boolean;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
module.exports = require("./compact.cjs")({"roots":{"validate0":{"$":0},"validate1":{"$":2},"validate2":{"anyOf":[{"type":"object","required":["id","agent_name","copies","desired_state","created_at","items"],"properties":{"id":{"type":"string","minLength":1},"agent_name":{"type":["string","null"],"minLength":1},"copies":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"desired_state":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"items":{"type":"array","items":{"$":3}}},"additionalProperties":false},{"type":"object","required":["id","agent_name","copies","desired_state","created_at","items"],"properties":{"id":{"type":"string","minLength":1},"agent_name":{"type":["string","null"],"minLength":1},"copies":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"desired_state":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"items":{"type":"array","items":{"anyOf":[{"type":"object","required":["index","status","sandbox_id","provider","error","exit_code","finished_at"],"properties":{"index":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"status":{"type":"string","enum":["queued","preparing","started","start_failed","stopping","stopped","finished","unknown"]},"sandbox_id":{"type":["string","null"]},"provider":{"type":["string","null"],"minLength":1},"error":{"anyOf":[{"$":4},{"type":"null"}]},"exit_code":{"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}]},"finished_at":{"type":["string","null"],"format":"date-time"}},"additionalProperties":false},{"type":"object","required":["index","status","sandbox_id","provider","error","exit_code","finished_at"],"properties":{"index":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"status":{"type":"string","enum":["queued","preparing","started","start_failed","stopping","stopped","finished","unknown"]},"sandbox_id":{"type":["string","null"]},"provider":{"type":["string","null"],"minLength":1},"error":{"anyOf":[{"$":4},{"type":"null"}]},"exit_code":{"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}]},"finished_at":{"type":["string","null"],"format":"date-time"},"command":{"$":5}},"additionalProperties":false}]}}},"additionalProperties":false}]},"validate3":{"$":6},"validate4":{"$":7}},"definitions":[{"type":"object","required":["available","runs","next_cursor","total_copies","live_copies"],"properties":{"available":{"type":"boolean"},"runs":{"type":"array","maxItems":50,"items":{"$":1}},"next_cursor":{"type":["string","null"],"minLength":1,"maxLength":1024},"total_copies":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"live_copies":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}}}},{"type":"object","required":["id","agent_name","copies","desired_state","created_at","live_copies","providers"],"properties":{"id":{"type":"string","minLength":1},"agent_name":{"type":["string","null"],"minLength":1},"copies":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"desired_state":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"live_copies":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"providers":{"type":"array","uniqueItems":true,"items":{"type":"string","minLength":1}}}},{"type":"object","required":["id","agent_name","copies","desired_state","created_at","items"],"properties":{"id":{"type":"string","minLength":1},"agent_name":{"type":["string","null"],"minLength":1},"copies":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"desired_state":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"items":{"type":"array","items":{"$":3}}}},{"type":"object","required":["index","status","sandbox_id","provider","error","exit_code","finished_at"],"properties":{"index":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"status":{"type":"string","enum":["queued","preparing","started","start_failed","stopping","stopped","finished","unknown"]},"sandbox_id":{"type":["string","null"]},"provider":{"type":["string","null"],"minLength":1},"error":{"anyOf":[{"$":4},{"type":"null"}]},"exit_code":{"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}]},"finished_at":{"type":["string","null"],"format":"date-time"}}},{"type":"object","required":["code","message","fix"],"properties":{"code":{"type":["string","null"]},"message":{"type":["string","null"]},"fix":{"type":["string","null"]}}},{"type":"object","required":["status","exit_code"],"properties":{"status":{"type":"string"},"exit_code":{"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}]}}},{"type":"object","required":["id","desired_state","stopped_at"],"properties":{"id":{"type":"string","minLength":1},"desired_state":{"type":"string","const":"stopped"},"stopped_at":{"type":"string","format":"date-time"}}},{"type":"object","required":["run_id","copy_index","status"],"properties":{"run_id":{"type":"string","minLength":1},"copy_index":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"status":{"type":"string","const":"stopping"}}}]});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const validate0: (value: unknown) => boolean;
|
|
2
|
+
export declare const validate1: (value: unknown) => boolean;
|
|
3
|
+
export declare const validate2: (value: unknown) => boolean;
|
|
4
|
+
export declare const validate3: (value: unknown) => boolean;
|
|
5
|
+
export declare const validate4: (value: unknown) => boolean;
|