@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,10 @@
|
|
|
1
|
+
"use strict";exports.validate0 = validate36;const schema59 = {"type":"object","required":["id","agent","repo","sha","status","current_phase","phases","result","error","failure_status","created_at","updated_at"],"description":"Durable, workspace-owned launch work. Poll while queued or running. A succeeded\noperation contains its final Launch in result; a failed operation contains the\noriginal structured error, with the HTTP status recorded in failure_status.\nSecret values are never stored or returned.\n","allOf":[{"if":{"properties":{"status":{"const":"succeeded"}},"required":["status"]},"then":{"properties":{"result":{"$ref":"#/components/schemas/Launch"},"error":{"type":"null"},"failure_status":{"type":"null"}}}},{"if":{"properties":{"status":{"const":"failed"}},"required":["status"]},"then":{"properties":{"result":{"type":"null"},"error":{"$ref":"#/components/schemas/LaunchOperationError"},"failure_status":{"minimum":400,"maximum":599,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":400,"maximum":599}}}}}],"properties":{"id":{"type":"string","minLength":1},"agent":{"type":"string","minLength":1},"repo":{"type":["string","null"],"minLength":1,"description":"Canonical resolved code repository, or null when the launch has no code checkout."},"sha":{"type":["string","null"],"pattern":"^[0-9a-f]{40}$","description":"Immutable commit selected for the code checkout, or null when no code is requested."},"status":{"type":"string","enum":["queued","running","succeeded","failed"]},"current_phase":{"type":["string","null"],"enum":["preparing_image","create","code","setup","files","background","previews",null]},"phases":{"type":"array","items":{"$ref":"#/components/schemas/LaunchOperationPhase"}},"result":{"anyOf":[{"$ref":"#/components/schemas/Launch"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/LaunchOperationError"},{"type":"null"}]},"failure_status":{"minimum":400,"maximum":599,"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":400,"maximum":599}},"sandbox_id":{"type":"string","minLength":1},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}};const schema60 = {"type":"object","required":["id","sandbox_id","agent","phases","previews","expires_at","effective_lifetime_seconds","reused"],"description":"Result of one launch. id and sandbox_id are the same BoxRouter-owned sandbox ID.\nThe stored result of a launch. A matching idempotent retry returns this result unchanged.\n","properties":{"interactive":{"type":"boolean","description":"Whether the resolved manifest uses a terminal, after source manifests and overrides. False means launch preparation started the unattended command. Older servers may omit this field."},"id":{"type":"string","minLength":1},"sandbox_id":{"type":"string","minLength":1},"agent":{"type":"string","minLength":1,"description":"Name of the resolved catalog or inline manifest."},"phases":{"type":"array","items":{"$ref":"#/components/schemas/LaunchPhase"}},"previews":{"type":"array","items":{"$ref":"#/components/schemas/LaunchPreview"}},"expires_at":{"type":"string","format":"date-time"},"effective_lifetime_seconds":{"minimum":1,"description":"Sandbox lifetime selected for this successful launch, in seconds. If no lifetime was supplied, the 3600-second default can be lowered to the longest cap among otherwise matching accounts.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"reused":{"type":"boolean","description":"Value recorded with the original launch result; it does not indicate whether the current create request is a replay."},"credential_delivery":{"$ref":"#/components/schemas/CredentialDelivery","description":"Safe per-destination delivery mode and hosts; values and credential IDs are never returned. Omitted when the request has no typed selections or saved secret references."},"run":{"$ref":"#/components/schemas/LaunchRun","description":"The run metadata supplied with this launch, echoed unchanged when present."}}};const schema62 = {"type":"object","required":["port","url"],"properties":{"port":{"minimum":1,"maximum":65535,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1,"maximum":65535}},"url":{"type":"string","format":"uri"}}};const func1 = require("ajv/dist/runtime/ucs2length").default;const schema61 = {"type":"object","required":["name","status","seconds"],"properties":{"name":{"type":"string","enum":["source","preparing_image","create","code","setup","files","background","previews"]},"status":{"type":"string","enum":["completed"]},"seconds":{"minimum":0,"allOf":[{"anyOf":[{"type":"number"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"command":{"type":"string","description":"The command run in this phase, when the phase executes a command. For the\nsource phase, this is the resolved manifest command the client should open\nin the interactive terminal.\n"},"repo":{"type":"string","minLength":1,"description":"Source repository resolved for a source phase."},"sha":{"type":"string","pattern":"^[0-9a-f]{40}$","description":"Immutable source commit resolved for a source phase."},"exit_code":{"description":"Command exit status, when the phase executes a command.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}]}}};const pattern25 = new RegExp("^[0-9a-f]{40}$", "u");function validate38(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate38.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.name === undefined) && (missing0 = "name")) || ((data.status === undefined) && (missing0 = "status"))) || ((data.seconds === undefined) && (missing0 = "seconds"))){validate38.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.name !== undefined){let data0 = data.name;const _errs1 = errors;if(typeof data0 !== "string"){validate38.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((((data0 === "source") || (data0 === "preparing_image")) || (data0 === "create")) || (data0 === "code")) || (data0 === "setup")) || (data0 === "files")) || (data0 === "background")) || (data0 === "previews"))){validate38.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/enum",keyword:"enum",params:{allowedValues: schema61.properties.name.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.status !== undefined){let data1 = data.status;const _errs3 = errors;if(typeof data1 !== "string"){validate38.errors = [{instancePath:instancePath+"/status",schemaPath:"#/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(data1 === "completed")){validate38.errors = [{instancePath:instancePath+"/status",schemaPath:"#/properties/status/enum",keyword:"enum",params:{allowedValues: schema61.properties.status.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.seconds !== undefined){let data2 = data.seconds;const _errs5 = errors;const _errs6 = errors;const _errs7 = errors;let valid2 = false;const _errs8 = errors;if(!((typeof data2 == "number") && (isFinite(data2)))){const err0 = {instancePath:instancePath+"/seconds",schemaPath:"#/properties/seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};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+"/seconds",schemaPath:"#/properties/seconds/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+"/seconds",schemaPath:"#/properties/seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate38.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 < 0){validate38.errors = [{instancePath:instancePath+"/seconds",schemaPath:"#/properties/seconds/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 < 0 || isNaN(data2)){validate38.errors = [{instancePath:instancePath+"/seconds",schemaPath:"#/properties/seconds/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.command !== undefined){const _errs11 = errors;if(typeof data.command !== "string"){validate38.errors = [{instancePath:instancePath+"/command",schemaPath:"#/properties/command/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.repo !== undefined){let data4 = data.repo;const _errs13 = errors;if(errors === _errs13){if(typeof data4 === "string"){if(func1(data4) < 1){validate38.errors = [{instancePath:instancePath+"/repo",schemaPath:"#/properties/repo/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate38.errors = [{instancePath:instancePath+"/repo",schemaPath:"#/properties/repo/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.sha !== undefined){let data5 = data.sha;const _errs15 = errors;if(errors === _errs15){if(typeof data5 === "string"){if(!pattern25.test(data5)){validate38.errors = [{instancePath:instancePath+"/sha",schemaPath:"#/properties/sha/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{40}$"},message:"must match pattern \""+"^[0-9a-f]{40}$"+"\""}];return false;}}else {validate38.errors = [{instancePath:instancePath+"/sha",schemaPath:"#/properties/sha/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.exit_code !== undefined){let data6 = data.exit_code;const _errs17 = errors;const _errs19 = errors;let valid4 = false;const _errs20 = errors;if(!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))){const err3 = {instancePath:instancePath+"/exit_code",schemaPath:"#/properties/exit_code/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 = _errs20 === errors;valid4 = valid4 || _valid1;const _errs22 = errors;if(typeof data6 !== "bigint"){const err4 = {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 = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs22 === errors;valid4 = valid4 || _valid1;if(!valid4){const err5 = {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 = [err5];}else {vErrors.push(err5);}errors++;validate38.errors = vErrors;return false;}else {errors = _errs19;if(vErrors !== null){if(_errs19){vErrors.length = _errs19;}else {vErrors = null;}}}var valid0 = _errs17 === errors;}else {var valid0 = true;}}}}}}}}}else {validate38.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate38.errors = vErrors;return errors === 0;}validate38.evaluated = {"props":{"name":true,"status":true,"seconds":true,"command":true,"repo":true,"sha":true,"exit_code":true},"dynamicProps":false,"dynamicItems":false};const schema63 = {"type":"object","minProperties":1,"propertyNames":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"additionalProperties":{"$ref":"#/components/schemas/CredentialDeliveryEntry"}};const pattern6 = new RegExp("^[A-Za-z_][A-Za-z0-9_]*$", "u");const schema64 = {"type":"object","required":["mode","hosts"],"properties":{"mode":{"type":"string","enum":["provider_protected","environment"]},"hosts":{"type":"array","uniqueItems":true,"items":{"$ref":"#/components/schemas/SandboxProviderSpecHostname"}}},"allOf":[{"if":{"properties":{"mode":{"const":"provider_protected"}},"required":["mode"]},"then":{"properties":{"hosts":{"minItems":1}}}},{"if":{"properties":{"mode":{"const":"environment"}},"required":["mode"]},"then":{"properties":{"hosts":{"maxItems":0}}}}]};const schema65 = {"type":"string","anyOf":[{"pattern":"^(?=.{1,253}(?![\\s\\S]))(?![0-9.]+(?![\\s\\S]))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?![\\s\\S])"},{"pattern":"^(?=.{3,255}(?![\\s\\S]))\\*\\.(?![0-9.]+(?![\\s\\S]))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?![\\s\\S])"}]};const pattern27 = new RegExp("^(?=.{1,253}(?![\\s\\S]))(?![0-9.]+(?![\\s\\S]))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?![\\s\\S])", "u");const pattern28 = new RegExp("^(?=.{3,255}(?![\\s\\S]))\\*\\.(?![0-9.]+(?![\\s\\S]))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?![\\s\\S])", "u");const func0 = require("ajv/dist/runtime/equal").default;function validate41(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate41.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs1 = errors;const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.mode === undefined) && (missing0 = "mode")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.mode !== undefined){if("provider_protected" !== data.mode){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs5 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.hosts !== undefined){let data1 = data.hosts;if(Array.isArray(data1)){if(data1.length < 1){validate41.errors = [{instancePath:instancePath+"/hosts",schemaPath:"#/allOf/0/then/properties/hosts/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}}}}var _valid0 = _errs5 === errors;valid1 = _valid0;if(valid1){var props0 = {};props0.hosts = true;props0.mode = true;}}if(!valid1){const err2 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate41.errors = vErrors;return false;}var valid0 = _errs1 === errors;if(valid0){const _errs7 = errors;const _errs8 = errors;let valid4 = true;const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((data.mode === undefined) && (missing1 = "mode")){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {if(data.mode !== undefined){if("environment" !== data.mode){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}}var _valid1 = _errs9 === errors;errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}if(_valid1){const _errs11 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.hosts !== undefined){let data3 = data.hosts;if(Array.isArray(data3)){if(data3.length > 0){validate41.errors = [{instancePath:instancePath+"/hosts",schemaPath:"#/allOf/1/then/properties/hosts/maxItems",keyword:"maxItems",params:{limit: 0},message:"must NOT have more than 0 items"}];return false;}}}}var _valid1 = _errs11 === errors;valid4 = _valid1;if(valid4){var props1 = {};props1.hosts = true;props1.mode = true;}}if(!valid4){const err5 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate41.errors = vErrors;return false;}var valid0 = _errs7 === errors;if(valid0){if(props0 !== true && props1 !== undefined){if(props1 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props1);}}}}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((data.mode === undefined) && (missing2 = "mode")) || ((data.hosts === undefined) && (missing2 = "hosts"))){validate41.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(props0 !== true){props0 = props0 || {};props0.mode = true;props0.hosts = true;}if(data.mode !== undefined){let data4 = data.mode;const _errs13 = errors;if(typeof data4 !== "string"){validate41.errors = [{instancePath:instancePath+"/mode",schemaPath:"#/properties/mode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data4 === "provider_protected") || (data4 === "environment"))){validate41.errors = [{instancePath:instancePath+"/mode",schemaPath:"#/properties/mode/enum",keyword:"enum",params:{allowedValues: schema64.properties.mode.enum},message:"must be equal to one of the allowed values"}];return false;}var valid7 = _errs13 === errors;}else {var valid7 = true;}if(valid7){if(data.hosts !== undefined){let data5 = data.hosts;const _errs15 = errors;if(errors === _errs15){if(Array.isArray(data5)){var valid8 = true;const len0 = data5.length;for(let i0=0; i0<len0; i0++){let data6 = data5[i0];const _errs17 = errors;if(typeof data6 !== "string"){validate41.errors = [{instancePath:instancePath+"/hosts/" + i0,schemaPath:"#/components/schemas/SandboxProviderSpecHostname/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}const _errs20 = errors;let valid10 = false;const _errs21 = errors;if(typeof data6 === "string"){if(!pattern27.test(data6)){const err6 = {instancePath:instancePath+"/hosts/" + i0,schemaPath:"#/components/schemas/SandboxProviderSpecHostname/anyOf/0/pattern",keyword:"pattern",params:{pattern: "^(?=.{1,253}(?![\\s\\S]))(?![0-9.]+(?![\\s\\S]))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?![\\s\\S])"},message:"must match pattern \""+"^(?=.{1,253}(?![\\s\\S]))(?![0-9.]+(?![\\s\\S]))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?![\\s\\S])"+"\""};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}var _valid2 = _errs21 === errors;valid10 = valid10 || _valid2;const _errs22 = errors;if(typeof data6 === "string"){if(!pattern28.test(data6)){const err7 = {instancePath:instancePath+"/hosts/" + i0,schemaPath:"#/components/schemas/SandboxProviderSpecHostname/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^(?=.{3,255}(?![\\s\\S]))\\*\\.(?![0-9.]+(?![\\s\\S]))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?![\\s\\S])"},message:"must match pattern \""+"^(?=.{3,255}(?![\\s\\S]))\\*\\.(?![0-9.]+(?![\\s\\S]))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?![\\s\\S])"+"\""};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}var _valid2 = _errs22 === errors;valid10 = valid10 || _valid2;if(!valid10){const err8 = {instancePath:instancePath+"/hosts/" + i0,schemaPath:"#/components/schemas/SandboxProviderSpecHostname/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate41.errors = vErrors;return false;}else {errors = _errs20;if(vErrors !== null){if(_errs20){vErrors.length = _errs20;}else {vErrors = null;}}}var valid8 = _errs17 === errors;if(!valid8){break;}}if(valid8){let i1 = data5.length;let j0;if(i1 > 1){outer0:for(;i1--;){for(j0 = i1; j0--;){if(func0(data5[i1], data5[j0])){validate41.errors = [{instancePath:instancePath+"/hosts",schemaPath:"#/properties/hosts/uniqueItems",keyword:"uniqueItems",params:{i: i1, j: j0},message:"must NOT have duplicate items (items ## "+j0+" and "+i1+" are identical)"}];return false;break outer0;}}}}}}else {validate41.errors = [{instancePath:instancePath+"/hosts",schemaPath:"#/properties/hosts/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid7 = _errs15 === errors;}else {var valid7 = true;}}}}else {validate41.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate41.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate41.evaluated = {"dynamicProps":true,"dynamicItems":false};function validate40(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate40.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){if(Object.keys(data).length < 1){validate40.errors = [{instancePath,schemaPath:"#/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"}];return false;}else {for(const key0 in data){const _errs1 = errors;if(typeof key0 === "string"){if(!pattern6.test(key0)){const err0 = {instancePath,schemaPath:"#/propertyNames/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z_][A-Za-z0-9_]*$"},message:"must match pattern \""+"^[A-Za-z_][A-Za-z0-9_]*$"+"\"",propertyName:key0};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}var valid0 = _errs1 === errors;if(!valid0){const err1 = {instancePath,schemaPath:"#/propertyNames",keyword:"propertyNames",params:{propertyName: key0},message:"property name must be valid"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;validate40.errors = vErrors;return false;break;}}if(valid0){for(const key1 in data){const _errs3 = errors;if(!(validate41(data[key1], {instancePath:instancePath+"/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data,parentDataProperty:key1,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate41.errors : vErrors.concat(validate41.errors);errors = vErrors.length;}var valid1 = _errs3 === errors;if(!valid1){break;}}}}}else {validate40.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate40.errors = vErrors;return errors === 0;}validate40.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const schema66 = {"type":"object","required":["id","index","count"],"description":"Client supplied identity and position for one independently managed launch.","properties":{"id":{"type":"string","minLength":22,"maxLength":128,"description":"Random group identifier chosen by the client with at least 128 bits of entropy."},"index":{"minimum":0,"description":"Zero-based position of this launch; must be less than count.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"count":{"minimum":1,"description":"Number of launches the client intends to submit; completeness is not checked.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}}}};function validate44(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate44.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.index === undefined) && (missing0 = "index"))) || ((data.count === undefined) && (missing0 = "count"))){validate44.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) > 128){validate44.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data0) < 22){validate44.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/minLength",keyword:"minLength",params:{limit: 22},message:"must NOT have fewer than 22 characters"}];return false;}}}else {validate44.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.index !== undefined){let data1 = data.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+"/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 = _errs6 === errors;valid2 = valid2 || _valid0;const _errs8 = errors;if(typeof data1 !== "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 = _errs8 === 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++;validate44.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){validate44.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 === _errs3){if((typeof data1 == "number") && (isFinite(data1))){if(data1 < 0 || isNaN(data1)){validate44.errors = [{instancePath:instancePath+"/index",schemaPath:"#/properties/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.count !== undefined){let data2 = data.count;const _errs9 = errors;const _errs10 = errors;const _errs11 = errors;let valid4 = false;const _errs12 = errors;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err3 = {instancePath:instancePath+"/count",schemaPath:"#/properties/count/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 = _errs12 === errors;valid4 = valid4 || _valid1;const _errs14 = errors;if(typeof data2 !== "bigint"){const err4 = {instancePath:instancePath+"/count",schemaPath:"#/properties/count/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 = _errs14 === errors;valid4 = valid4 || _valid1;if(!valid4){const err5 = {instancePath:instancePath+"/count",schemaPath:"#/properties/count/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate44.errors = vErrors;return false;}else {errors = _errs11;if(vErrors !== null){if(_errs11){vErrors.length = _errs11;}else {vErrors = null;}}}var valid3 = _errs10 === errors;if(valid3){if(typeof data2 === "bigint"){if(data2 < 1){validate44.errors = [{instancePath:instancePath+"/count",schemaPath:"#/properties/count/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs9){if((typeof data2 == "number") && (isFinite(data2))){if(data2 < 1 || isNaN(data2)){validate44.errors = [{instancePath:instancePath+"/count",schemaPath:"#/properties/count/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs9 === errors;}else {var valid0 = true;}}}}}else {validate44.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate44.errors = vErrors;return errors === 0;}validate44.evaluated = {"props":{"id":true,"index":true,"count":true},"dynamicProps":false,"dynamicItems":false};const formats0 = require("ajv-formats/dist/formats").fullFormats["date-time"];function validate37(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate37.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.sandbox_id === undefined) && (missing0 = "sandbox_id"))) || ((data.agent === undefined) && (missing0 = "agent"))) || ((data.phases === undefined) && (missing0 = "phases"))) || ((data.previews === undefined) && (missing0 = "previews"))) || ((data.expires_at === undefined) && (missing0 = "expires_at"))) || ((data.effective_lifetime_seconds === undefined) && (missing0 = "effective_lifetime_seconds"))) || ((data.reused === undefined) && (missing0 = "reused"))){validate37.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.interactive !== undefined){const _errs1 = errors;if(typeof data.interactive !== "boolean"){validate37.errors = [{instancePath:instancePath+"/interactive",schemaPath:"#/properties/interactive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.id !== undefined){let data1 = data.id;const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) < 1){validate37.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate37.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.sandbox_id !== undefined){let data2 = data.sandbox_id;const _errs5 = errors;if(errors === _errs5){if(typeof data2 === "string"){if(func1(data2) < 1){validate37.errors = [{instancePath:instancePath+"/sandbox_id",schemaPath:"#/properties/sandbox_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate37.errors = [{instancePath:instancePath+"/sandbox_id",schemaPath:"#/properties/sandbox_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.agent !== undefined){let data3 = data.agent;const _errs7 = errors;if(errors === _errs7){if(typeof data3 === "string"){if(func1(data3) < 1){validate37.errors = [{instancePath:instancePath+"/agent",schemaPath:"#/properties/agent/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate37.errors = [{instancePath:instancePath+"/agent",schemaPath:"#/properties/agent/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.phases !== undefined){let data4 = data.phases;const _errs9 = errors;if(errors === _errs9){if(Array.isArray(data4)){var valid1 = true;const len0 = data4.length;for(let i0=0; i0<len0; i0++){const _errs11 = errors;if(!(validate38(data4[i0], {instancePath:instancePath+"/phases/" + i0,parentData:data4,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate38.errors : vErrors.concat(validate38.errors);errors = vErrors.length;}var valid1 = _errs11 === errors;if(!valid1){break;}}}else {validate37.errors = [{instancePath:instancePath+"/phases",schemaPath:"#/properties/phases/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.previews !== undefined){let data6 = data.previews;const _errs12 = errors;if(errors === _errs12){if(Array.isArray(data6)){var valid2 = true;const len1 = data6.length;for(let i1=0; i1<len1; i1++){let data7 = data6[i1];const _errs14 = errors;const _errs15 = errors;if(errors === _errs15){if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing1;if(((data7.port === undefined) && (missing1 = "port")) || ((data7.url === undefined) && (missing1 = "url"))){validate37.errors = [{instancePath:instancePath+"/previews/" + i1,schemaPath:"#/components/schemas/LaunchPreview/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data7.port !== undefined){let data8 = data7.port;const _errs17 = errors;const _errs18 = errors;const _errs19 = errors;let valid6 = false;const _errs20 = errors;if(!(((typeof data8 == "number") && (!(data8 % 1) && !isNaN(data8))) && (isFinite(data8)))){const err0 = {instancePath:instancePath+"/previews/" + i1+"/port",schemaPath:"#/components/schemas/LaunchPreview/properties/port/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 = _errs20 === errors;valid6 = valid6 || _valid0;const _errs22 = errors;if(typeof data8 !== "bigint"){const err1 = {instancePath:instancePath+"/previews/" + i1+"/port",schemaPath:"#/components/schemas/LaunchPreview/properties/port/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 = _errs22 === errors;valid6 = valid6 || _valid0;if(!valid6){const err2 = {instancePath:instancePath+"/previews/" + i1+"/port",schemaPath:"#/components/schemas/LaunchPreview/properties/port/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate37.errors = vErrors;return false;}else {errors = _errs19;if(vErrors !== null){if(_errs19){vErrors.length = _errs19;}else {vErrors = null;}}}var valid5 = _errs18 === errors;if(valid5){if(typeof data8 === "bigint"){if(data8 < 1){validate37.errors = [{instancePath:instancePath+"/previews/" + i1+"/port",schemaPath:"#/components/schemas/LaunchPreview/properties/port/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}else {if(data8 > 65535){validate37.errors = [{instancePath:instancePath+"/previews/" + i1+"/port",schemaPath:"#/components/schemas/LaunchPreview/properties/port/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}}if(errors === _errs17){if((typeof data8 == "number") && (isFinite(data8))){if(data8 > 65535 || isNaN(data8)){validate37.errors = [{instancePath:instancePath+"/previews/" + i1+"/port",schemaPath:"#/components/schemas/LaunchPreview/properties/port/maximum",keyword:"maximum",params:{comparison: "<=", limit: 65535},message:"must be <= 65535"}];return false;}else {if(data8 < 1 || isNaN(data8)){validate37.errors = [{instancePath:instancePath+"/previews/" + i1+"/port",schemaPath:"#/components/schemas/LaunchPreview/properties/port/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}}var valid4 = _errs17 === errors;}else {var valid4 = true;}if(valid4){if(data7.url !== undefined){const _errs23 = errors;if(errors === _errs23){if(errors === _errs23){if(!(typeof data7.url === "string")){validate37.errors = [{instancePath:instancePath+"/previews/" + i1+"/url",schemaPath:"#/components/schemas/LaunchPreview/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid4 = _errs23 === errors;}else {var valid4 = true;}}}}else {validate37.errors = [{instancePath:instancePath+"/previews/" + i1,schemaPath:"#/components/schemas/LaunchPreview/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid2 = _errs14 === errors;if(!valid2){break;}}}else {validate37.errors = [{instancePath:instancePath+"/previews",schemaPath:"#/properties/previews/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs12 === errors;}else {var valid0 = true;}if(valid0){if(data.expires_at !== undefined){let data10 = data.expires_at;const _errs25 = errors;if(errors === _errs25){if(errors === _errs25){if(typeof data10 === "string"){if(!(formats0.validate(data10))){validate37.errors = [{instancePath:instancePath+"/expires_at",schemaPath:"#/properties/expires_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate37.errors = [{instancePath:instancePath+"/expires_at",schemaPath:"#/properties/expires_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs25 === errors;}else {var valid0 = true;}if(valid0){if(data.effective_lifetime_seconds !== undefined){let data11 = data.effective_lifetime_seconds;const _errs27 = errors;const _errs28 = errors;const _errs29 = errors;let valid8 = false;const _errs30 = errors;if(!(((typeof data11 == "number") && (!(data11 % 1) && !isNaN(data11))) && (isFinite(data11)))){const err3 = {instancePath:instancePath+"/effective_lifetime_seconds",schemaPath:"#/properties/effective_lifetime_seconds/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 = _errs30 === errors;valid8 = valid8 || _valid1;const _errs32 = errors;if(typeof data11 !== "bigint"){const err4 = {instancePath:instancePath+"/effective_lifetime_seconds",schemaPath:"#/properties/effective_lifetime_seconds/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 = _errs32 === errors;valid8 = valid8 || _valid1;if(!valid8){const err5 = {instancePath:instancePath+"/effective_lifetime_seconds",schemaPath:"#/properties/effective_lifetime_seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate37.errors = vErrors;return false;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}var valid7 = _errs28 === errors;if(valid7){if(typeof data11 === "bigint"){if(data11 < 1){validate37.errors = [{instancePath:instancePath+"/effective_lifetime_seconds",schemaPath:"#/properties/effective_lifetime_seconds/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs27){if((typeof data11 == "number") && (isFinite(data11))){if(data11 < 1 || isNaN(data11)){validate37.errors = [{instancePath:instancePath+"/effective_lifetime_seconds",schemaPath:"#/properties/effective_lifetime_seconds/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs27 === errors;}else {var valid0 = true;}if(valid0){if(data.reused !== undefined){const _errs33 = errors;if(typeof data.reused !== "boolean"){validate37.errors = [{instancePath:instancePath+"/reused",schemaPath:"#/properties/reused/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs33 === errors;}else {var valid0 = true;}if(valid0){if(data.credential_delivery !== undefined){const _errs35 = errors;if(!(validate40(data.credential_delivery, {instancePath:instancePath+"/credential_delivery",parentData:data,parentDataProperty:"credential_delivery",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate40.errors : vErrors.concat(validate40.errors);errors = vErrors.length;}var valid0 = _errs35 === errors;}else {var valid0 = true;}if(valid0){if(data.run !== undefined){const _errs36 = errors;if(!(validate44(data.run, {instancePath:instancePath+"/run",parentData:data,parentDataProperty:"run",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate44.errors : vErrors.concat(validate44.errors);errors = vErrors.length;}var valid0 = _errs36 === errors;}else {var valid0 = true;}}}}}}}}}}}}}else {validate37.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate37.errors = vErrors;return errors === 0;}validate37.evaluated = {"props":{"interactive":true,"id":true,"sandbox_id":true,"agent":true,"phases":true,"previews":true,"expires_at":true,"effective_lifetime_seconds":true,"reused":true,"credential_delivery":true,"run":true},"dynamicProps":false,"dynamicItems":false};const schema67 = {"type":"object","required":["error"],"description":"Structured error retained by asynchronous execution. It has no request_id when the\nfailure occurs after the launch request has returned 202; clients can correlate the\nfailure by the operation id instead.\n","properties":{"error":{"type":"object","required":["code","message","outcome"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","description":"Present only when the failure originated in the initial HTTP request."},"fix":{"type":"string"},"details":{"type":"object","description":"Structured error context; shape depends on code.","properties":{"phase":{"type":"string","enum":["code","setup","files","background","previews"]},"command":{"type":"string","description":"Present with exit_code and stderr_tail when a command failed."},"exit_code":{"description":"Present with command and stderr_tail when a command failed.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}]},"stderr_tail":{"type":"string","description":"At most the final 4 KiB of stderr when a command failed; resolved secret values are redacted."}},"allOf":[{"if":{"properties":{"code":{"const":"launch_failed"}},"required":["code"]},"then":{"required":["phase"]}}],"dependentRequired":{"command":["exit_code","stderr_tail"],"exit_code":["command","stderr_tail"],"stderr_tail":["command","exit_code"]}},"outcome":{"type":"string","enum":["not_started","completed","partial","unknown"]}}}}};function validate47(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate47.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.error === undefined) && (missing0 = "error")){validate47.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.error !== undefined){let data0 = data.error;const _errs1 = errors;if(errors === _errs1){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((((data0.code === undefined) && (missing1 = "code")) || ((data0.message === undefined) && (missing1 = "message"))) || ((data0.outcome === undefined) && (missing1 = "outcome"))){validate47.errors = [{instancePath:instancePath+"/error",schemaPath:"#/properties/error/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.code !== undefined){const _errs3 = errors;if(typeof data0.code !== "string"){validate47.errors = [{instancePath:instancePath+"/error/code",schemaPath:"#/properties/error/properties/code/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data0.message !== undefined){const _errs5 = errors;if(typeof data0.message !== "string"){validate47.errors = [{instancePath:instancePath+"/error/message",schemaPath:"#/properties/error/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data0.request_id !== undefined){const _errs7 = errors;if(typeof data0.request_id !== "string"){validate47.errors = [{instancePath:instancePath+"/error/request_id",schemaPath:"#/properties/error/properties/request_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data0.fix !== undefined){const _errs9 = errors;if(typeof data0.fix !== "string"){validate47.errors = [{instancePath:instancePath+"/error/fix",schemaPath:"#/properties/error/properties/fix/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs9 === errors;}else {var valid1 = true;}if(valid1){if(data0.details !== undefined){let data5 = data0.details;const _errs11 = errors;const _errs14 = errors;let valid3 = true;const _errs15 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){let missing2;if((data5.code === undefined) && (missing2 = "code")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data5.code !== undefined){if("launch_failed" !== data5.code){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs15 === errors;errors = _errs14;if(vErrors !== null){if(_errs14){vErrors.length = _errs14;}else {vErrors = null;}}if(_valid0){const _errs17 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){let missing3;if((data5.phase === undefined) && (missing3 = "phase")){validate47.errors = [{instancePath:instancePath+"/error/details",schemaPath:"#/properties/error/properties/details/allOf/0/then/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"}];return false;}}var _valid0 = _errs17 === errors;valid3 = _valid0;}if(!valid3){const err2 = {instancePath:instancePath+"/error/details",schemaPath:"#/properties/error/properties/details/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate47.errors = vErrors;return false;}if(errors === _errs11){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.phase !== undefined){let data7 = data5.phase;const _errs18 = errors;if(typeof data7 !== "string"){validate47.errors = [{instancePath:instancePath+"/error/details/phase",schemaPath:"#/properties/error/properties/details/properties/phase/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((data7 === "code") || (data7 === "setup")) || (data7 === "files")) || (data7 === "background")) || (data7 === "previews"))){validate47.errors = [{instancePath:instancePath+"/error/details/phase",schemaPath:"#/properties/error/properties/details/properties/phase/enum",keyword:"enum",params:{allowedValues: schema67.properties.error.properties.details.properties.phase.enum},message:"must be equal to one of the allowed values"}];return false;}var valid5 = _errs18 === errors;}else {var valid5 = true;}if(valid5){if(data5.command !== undefined){const _errs20 = errors;if(typeof data5.command !== "string"){validate47.errors = [{instancePath:instancePath+"/error/details/command",schemaPath:"#/properties/error/properties/details/properties/command/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs20 === errors;}else {var valid5 = true;}if(valid5){if(data5.exit_code !== undefined){let data9 = data5.exit_code;const _errs22 = errors;const _errs24 = errors;let valid7 = false;const _errs25 = errors;if(!(((typeof data9 == "number") && (!(data9 % 1) && !isNaN(data9))) && (isFinite(data9)))){const err3 = {instancePath:instancePath+"/error/details/exit_code",schemaPath:"#/properties/error/properties/details/properties/exit_code/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 = _errs25 === errors;valid7 = valid7 || _valid1;const _errs27 = errors;if(typeof data9 !== "bigint"){const err4 = {instancePath:instancePath+"/error/details/exit_code",schemaPath:"#/properties/error/properties/details/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 = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs27 === errors;valid7 = valid7 || _valid1;if(!valid7){const err5 = {instancePath:instancePath+"/error/details/exit_code",schemaPath:"#/properties/error/properties/details/properties/exit_code/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate47.errors = vErrors;return false;}else {errors = _errs24;if(vErrors !== null){if(_errs24){vErrors.length = _errs24;}else {vErrors = null;}}}var valid5 = _errs22 === errors;}else {var valid5 = true;}if(valid5){if(data5.stderr_tail !== undefined){const _errs28 = errors;if(typeof data5.stderr_tail !== "string"){validate47.errors = [{instancePath:instancePath+"/error/details/stderr_tail",schemaPath:"#/properties/error/properties/details/properties/stderr_tail/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs28 === errors;}else {var valid5 = true;}if(valid5){let missing4;if(data5.command !== undefined && (((data5.exit_code === undefined) && (missing4 = "exit_code")) || ((data5.stderr_tail === undefined) && (missing4 = "stderr_tail")))){validate47.errors = [{instancePath:instancePath+"/error/details",schemaPath:"#/properties/error/properties/details/dependentRequired",keyword:"dependentRequired",params:{property: "command",
|
|
2
|
+
missingProperty: missing4,
|
|
3
|
+
depsCount: 2,
|
|
4
|
+
deps: "exit_code, stderr_tail"},message:"must have properties exit_code, stderr_tail when property command is present"}];return false;}else {if(data5.exit_code !== undefined && (((data5.command === undefined) && (missing4 = "command")) || ((data5.stderr_tail === undefined) && (missing4 = "stderr_tail")))){validate47.errors = [{instancePath:instancePath+"/error/details",schemaPath:"#/properties/error/properties/details/dependentRequired",keyword:"dependentRequired",params:{property: "exit_code",
|
|
5
|
+
missingProperty: missing4,
|
|
6
|
+
depsCount: 2,
|
|
7
|
+
deps: "command, stderr_tail"},message:"must have properties command, stderr_tail when property exit_code is present"}];return false;}else {if(data5.stderr_tail !== undefined && (((data5.command === undefined) && (missing4 = "command")) || ((data5.exit_code === undefined) && (missing4 = "exit_code")))){validate47.errors = [{instancePath:instancePath+"/error/details",schemaPath:"#/properties/error/properties/details/dependentRequired",keyword:"dependentRequired",params:{property: "stderr_tail",
|
|
8
|
+
missingProperty: missing4,
|
|
9
|
+
depsCount: 2,
|
|
10
|
+
deps: "command, exit_code"},message:"must have properties command, exit_code when property stderr_tail is present"}];return false;}}}}}}}}else {validate47.errors = [{instancePath:instancePath+"/error/details",schemaPath:"#/properties/error/properties/details/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs11 === errors;}else {var valid1 = true;}if(valid1){if(data0.outcome !== undefined){let data11 = data0.outcome;const _errs30 = errors;if(typeof data11 !== "string"){validate47.errors = [{instancePath:instancePath+"/error/outcome",schemaPath:"#/properties/error/properties/outcome/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data11 === "not_started") || (data11 === "completed")) || (data11 === "partial")) || (data11 === "unknown"))){validate47.errors = [{instancePath:instancePath+"/error/outcome",schemaPath:"#/properties/error/properties/outcome/enum",keyword:"enum",params:{allowedValues: schema67.properties.error.properties.outcome.enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs30 === errors;}else {var valid1 = true;}}}}}}}}else {validate47.errors = [{instancePath:instancePath+"/error",schemaPath:"#/properties/error/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}}else {validate47.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate47.errors = vErrors;return errors === 0;}validate47.evaluated = {"props":{"error":true},"dynamicProps":false,"dynamicItems":false};const schema68 = {"type":"object","required":["name","status","seconds"],"properties":{"name":{"type":"string","enum":["preparing_image","create","code","setup","files","background","previews"]},"status":{"type":"string","enum":["running","completed","failed"]},"seconds":{"minimum":0,"description":"Elapsed phase time in seconds; null while the phase is running.","allOf":[{"anyOf":[{"type":["number","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"command":{"type":"string","description":"The command run in this phase, when the phase executes a command."},"exit_code":{"description":"Command exit status, when the phase executes a command.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}]}}};function validate49(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate49.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.name === undefined) && (missing0 = "name")) || ((data.status === undefined) && (missing0 = "status"))) || ((data.seconds === undefined) && (missing0 = "seconds"))){validate49.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.name !== undefined){let data0 = data.name;const _errs1 = errors;if(typeof data0 !== "string"){validate49.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((((data0 === "preparing_image") || (data0 === "create")) || (data0 === "code")) || (data0 === "setup")) || (data0 === "files")) || (data0 === "background")) || (data0 === "previews"))){validate49.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/enum",keyword:"enum",params:{allowedValues: schema68.properties.name.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.status !== undefined){let data1 = data.status;const _errs3 = errors;if(typeof data1 !== "string"){validate49.errors = [{instancePath:instancePath+"/status",schemaPath:"#/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data1 === "running") || (data1 === "completed")) || (data1 === "failed"))){validate49.errors = [{instancePath:instancePath+"/status",schemaPath:"#/properties/status/enum",keyword:"enum",params:{allowedValues: schema68.properties.status.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.seconds !== undefined){let data2 = data.seconds;const _errs5 = errors;const _errs6 = errors;const _errs7 = errors;let valid2 = false;const _errs8 = errors;if((!((typeof data2 == "number") && (isFinite(data2)))) && (data2 !== null)){const err0 = {instancePath:instancePath+"/seconds",schemaPath:"#/properties/seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema68.properties.seconds.allOf[0].anyOf[0].type},message:"must be number,null"};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+"/seconds",schemaPath:"#/properties/seconds/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+"/seconds",schemaPath:"#/properties/seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate49.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 < 0){validate49.errors = [{instancePath:instancePath+"/seconds",schemaPath:"#/properties/seconds/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 < 0 || isNaN(data2)){validate49.errors = [{instancePath:instancePath+"/seconds",schemaPath:"#/properties/seconds/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.command !== undefined){const _errs11 = errors;if(typeof data.command !== "string"){validate49.errors = [{instancePath:instancePath+"/command",schemaPath:"#/properties/command/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.exit_code !== undefined){let data4 = data.exit_code;const _errs13 = errors;const _errs15 = errors;let valid4 = false;const _errs16 = errors;if(!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))){const err3 = {instancePath:instancePath+"/exit_code",schemaPath:"#/properties/exit_code/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 = _errs16 === errors;valid4 = valid4 || _valid1;const _errs18 = errors;if(typeof data4 !== "bigint"){const err4 = {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 = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs18 === errors;valid4 = valid4 || _valid1;if(!valid4){const err5 = {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 = [err5];}else {vErrors.push(err5);}errors++;validate49.errors = vErrors;return false;}else {errors = _errs15;if(vErrors !== null){if(_errs15){vErrors.length = _errs15;}else {vErrors = null;}}}var valid0 = _errs13 === errors;}else {var valid0 = true;}}}}}}}else {validate49.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate49.errors = vErrors;return errors === 0;}validate49.evaluated = {"props":{"name":true,"status":true,"seconds":true,"command":true,"exit_code":true},"dynamicProps":false,"dynamicItems":false};function validate36(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate36.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs1 = errors;const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.status === undefined) && (missing0 = "status")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.status !== undefined){if("succeeded" !== data.status){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs5 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.result !== undefined){const _errs6 = errors;if(!(validate37(data.result, {instancePath:instancePath+"/result",parentData:data,parentDataProperty:"result",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate37.errors : vErrors.concat(validate37.errors);errors = vErrors.length;}var valid3 = _errs6 === errors;}else {var valid3 = true;}if(valid3){if(data.error !== undefined){const _errs7 = errors;if(data.error !== null){validate36.errors = [{instancePath:instancePath+"/error",schemaPath:"#/allOf/0/then/properties/error/type",keyword:"type",params:{type: "null"},message:"must be null"}];return false;}var valid3 = _errs7 === errors;}else {var valid3 = true;}if(valid3){if(data.failure_status !== undefined){const _errs9 = errors;if(data.failure_status !== null){validate36.errors = [{instancePath:instancePath+"/failure_status",schemaPath:"#/allOf/0/then/properties/failure_status/type",keyword:"type",params:{type: "null"},message:"must be null"}];return false;}var valid3 = _errs9 === errors;}else {var valid3 = true;}}}}var _valid0 = _errs5 === errors;valid1 = _valid0;if(valid1){var props0 = {};props0.result = true;props0.error = true;props0.failure_status = true;props0.status = true;}}if(!valid1){const err2 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate36.errors = vErrors;return false;}var valid0 = _errs1 === errors;if(valid0){const _errs11 = errors;const _errs12 = errors;let valid4 = true;const _errs13 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((data.status === undefined) && (missing1 = "status")){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {if(data.status !== undefined){if("failed" !== data.status){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}}var _valid1 = _errs13 === errors;errors = _errs12;if(vErrors !== null){if(_errs12){vErrors.length = _errs12;}else {vErrors = null;}}if(_valid1){const _errs15 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.result !== undefined){const _errs16 = errors;if(data.result !== null){validate36.errors = [{instancePath:instancePath+"/result",schemaPath:"#/allOf/1/then/properties/result/type",keyword:"type",params:{type: "null"},message:"must be null"}];return false;}var valid6 = _errs16 === errors;}else {var valid6 = true;}if(valid6){if(data.error !== undefined){const _errs18 = errors;if(!(validate47(data.error, {instancePath:instancePath+"/error",parentData:data,parentDataProperty:"error",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate47.errors : vErrors.concat(validate47.errors);errors = vErrors.length;}var valid6 = _errs18 === errors;}else {var valid6 = true;}if(valid6){if(data.failure_status !== undefined){let data7 = data.failure_status;const _errs19 = errors;const _errs20 = errors;const _errs21 = errors;let valid8 = false;const _errs22 = errors;if(!(((typeof data7 == "number") && (!(data7 % 1) && !isNaN(data7))) && (isFinite(data7)))){const err5 = {instancePath:instancePath+"/failure_status",schemaPath:"#/allOf/1/then/properties/failure_status/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var _valid2 = _errs22 === errors;valid8 = valid8 || _valid2;const _errs24 = errors;if(typeof data7 !== "bigint"){const err6 = {instancePath:instancePath+"/failure_status",schemaPath:"#/allOf/1/then/properties/failure_status/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid2 = _errs24 === errors;valid8 = valid8 || _valid2;if(!valid8){const err7 = {instancePath:instancePath+"/failure_status",schemaPath:"#/allOf/1/then/properties/failure_status/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;validate36.errors = vErrors;return false;}else {errors = _errs21;if(vErrors !== null){if(_errs21){vErrors.length = _errs21;}else {vErrors = null;}}}var valid7 = _errs20 === errors;if(valid7){if(typeof data7 === "bigint"){if(data7 < 400){validate36.errors = [{instancePath:instancePath+"/failure_status",schemaPath:"#/allOf/1/then/properties/failure_status/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}else {if(data7 > 599){validate36.errors = [{instancePath:instancePath+"/failure_status",schemaPath:"#/allOf/1/then/properties/failure_status/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}}if(errors === _errs19){if((typeof data7 == "number") && (isFinite(data7))){if(data7 > 599 || isNaN(data7)){validate36.errors = [{instancePath:instancePath+"/failure_status",schemaPath:"#/allOf/1/then/properties/failure_status/maximum",keyword:"maximum",params:{comparison: "<=", limit: 599},message:"must be <= 599"}];return false;}else {if(data7 < 400 || isNaN(data7)){validate36.errors = [{instancePath:instancePath+"/failure_status",schemaPath:"#/allOf/1/then/properties/failure_status/minimum",keyword:"minimum",params:{comparison: ">=", limit: 400},message:"must be >= 400"}];return false;}}}}var valid6 = _errs19 === errors;}else {var valid6 = true;}}}}var _valid1 = _errs15 === errors;valid4 = _valid1;if(valid4){var props1 = {};props1.result = true;props1.error = true;props1.failure_status = true;props1.status = true;}}if(!valid4){const err8 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate36.errors = vErrors;return false;}var valid0 = _errs11 === errors;if(valid0){if(props0 !== true && props1 !== undefined){if(props1 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props1);}}}}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((((((((((((data.id === undefined) && (missing2 = "id")) || ((data.agent === undefined) && (missing2 = "agent"))) || ((data.repo === undefined) && (missing2 = "repo"))) || ((data.sha === undefined) && (missing2 = "sha"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.current_phase === undefined) && (missing2 = "current_phase"))) || ((data.phases === undefined) && (missing2 = "phases"))) || ((data.result === undefined) && (missing2 = "result"))) || ((data.error === undefined) && (missing2 = "error"))) || ((data.failure_status === undefined) && (missing2 = "failure_status"))) || ((data.created_at === undefined) && (missing2 = "created_at"))) || ((data.updated_at === undefined) && (missing2 = "updated_at"))){validate36.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(props0 !== true){props0 = props0 || {};props0.id = true;props0.agent = true;props0.repo = true;props0.sha = true;props0.status = true;props0.current_phase = true;props0.phases = true;props0.result = true;props0.error = true;props0.failure_status = true;props0.sandbox_id = true;props0.created_at = true;props0.updated_at = true;}if(data.id !== undefined){let data8 = data.id;const _errs25 = errors;if(errors === _errs25){if(typeof data8 === "string"){if(func1(data8) < 1){validate36.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate36.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid9 = _errs25 === errors;}else {var valid9 = true;}if(valid9){if(data.agent !== undefined){let data9 = data.agent;const _errs27 = errors;if(errors === _errs27){if(typeof data9 === "string"){if(func1(data9) < 1){validate36.errors = [{instancePath:instancePath+"/agent",schemaPath:"#/properties/agent/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate36.errors = [{instancePath:instancePath+"/agent",schemaPath:"#/properties/agent/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid9 = _errs27 === errors;}else {var valid9 = true;}if(valid9){if(data.repo !== undefined){let data10 = data.repo;const _errs29 = errors;if((typeof data10 !== "string") && (data10 !== null)){validate36.errors = [{instancePath:instancePath+"/repo",schemaPath:"#/properties/repo/type",keyword:"type",params:{type: schema59.properties.repo.type},message:"must be string,null"}];return false;}if(errors === _errs29){if(typeof data10 === "string"){if(func1(data10) < 1){validate36.errors = [{instancePath:instancePath+"/repo",schemaPath:"#/properties/repo/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid9 = _errs29 === errors;}else {var valid9 = true;}if(valid9){if(data.sha !== undefined){let data11 = data.sha;const _errs31 = errors;if((typeof data11 !== "string") && (data11 !== null)){validate36.errors = [{instancePath:instancePath+"/sha",schemaPath:"#/properties/sha/type",keyword:"type",params:{type: schema59.properties.sha.type},message:"must be string,null"}];return false;}if(errors === _errs31){if(typeof data11 === "string"){if(!pattern25.test(data11)){validate36.errors = [{instancePath:instancePath+"/sha",schemaPath:"#/properties/sha/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{40}$"},message:"must match pattern \""+"^[0-9a-f]{40}$"+"\""}];return false;}}}var valid9 = _errs31 === errors;}else {var valid9 = true;}if(valid9){if(data.status !== undefined){let data12 = data.status;const _errs33 = errors;if(typeof data12 !== "string"){validate36.errors = [{instancePath:instancePath+"/status",schemaPath:"#/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data12 === "queued") || (data12 === "running")) || (data12 === "succeeded")) || (data12 === "failed"))){validate36.errors = [{instancePath:instancePath+"/status",schemaPath:"#/properties/status/enum",keyword:"enum",params:{allowedValues: schema59.properties.status.enum},message:"must be equal to one of the allowed values"}];return false;}var valid9 = _errs33 === errors;}else {var valid9 = true;}if(valid9){if(data.current_phase !== undefined){let data13 = data.current_phase;const _errs35 = errors;if((typeof data13 !== "string") && (data13 !== null)){validate36.errors = [{instancePath:instancePath+"/current_phase",schemaPath:"#/properties/current_phase/type",keyword:"type",params:{type: schema59.properties.current_phase.type},message:"must be string,null"}];return false;}if(!((((((((data13 === "preparing_image") || (data13 === "create")) || (data13 === "code")) || (data13 === "setup")) || (data13 === "files")) || (data13 === "background")) || (data13 === "previews")) || (data13 === null))){validate36.errors = [{instancePath:instancePath+"/current_phase",schemaPath:"#/properties/current_phase/enum",keyword:"enum",params:{allowedValues: schema59.properties.current_phase.enum},message:"must be equal to one of the allowed values"}];return false;}var valid9 = _errs35 === errors;}else {var valid9 = true;}if(valid9){if(data.phases !== undefined){let data14 = data.phases;const _errs37 = errors;if(errors === _errs37){if(Array.isArray(data14)){var valid10 = true;const len0 = data14.length;for(let i0=0; i0<len0; i0++){const _errs39 = errors;if(!(validate49(data14[i0], {instancePath:instancePath+"/phases/" + i0,parentData:data14,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate49.errors : vErrors.concat(validate49.errors);errors = vErrors.length;}var valid10 = _errs39 === errors;if(!valid10){break;}}}else {validate36.errors = [{instancePath:instancePath+"/phases",schemaPath:"#/properties/phases/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid9 = _errs37 === errors;}else {var valid9 = true;}if(valid9){if(data.result !== undefined){let data16 = data.result;const _errs40 = errors;const _errs41 = errors;let valid11 = false;const _errs42 = errors;if(!(validate37(data16, {instancePath:instancePath+"/result",parentData:data,parentDataProperty:"result",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate37.errors : vErrors.concat(validate37.errors);errors = vErrors.length;}var _valid3 = _errs42 === errors;valid11 = valid11 || _valid3;if(_valid3){var props2 = {};props2.interactive = true;props2.id = true;props2.sandbox_id = true;props2.agent = true;props2.phases = true;props2.previews = true;props2.expires_at = true;props2.effective_lifetime_seconds = true;props2.reused = true;props2.credential_delivery = true;props2.run = true;}const _errs43 = errors;if(data16 !== null){const err9 = {instancePath:instancePath+"/result",schemaPath:"#/properties/result/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var _valid3 = _errs43 === errors;valid11 = valid11 || _valid3;if(!valid11){const err10 = {instancePath:instancePath+"/result",schemaPath:"#/properties/result/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;validate36.errors = vErrors;return false;}else {errors = _errs41;if(vErrors !== null){if(_errs41){vErrors.length = _errs41;}else {vErrors = null;}}}var valid9 = _errs40 === errors;}else {var valid9 = true;}if(valid9){if(data.error !== undefined){let data17 = data.error;const _errs45 = errors;const _errs46 = errors;let valid12 = false;const _errs47 = errors;if(!(validate47(data17, {instancePath:instancePath+"/error",parentData:data,parentDataProperty:"error",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate47.errors : vErrors.concat(validate47.errors);errors = vErrors.length;}var _valid4 = _errs47 === errors;valid12 = valid12 || _valid4;if(_valid4){var props3 = {};props3.error = true;}const _errs48 = errors;if(data17 !== null){const err11 = {instancePath:instancePath+"/error",schemaPath:"#/properties/error/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var _valid4 = _errs48 === errors;valid12 = valid12 || _valid4;if(!valid12){const err12 = {instancePath:instancePath+"/error",schemaPath:"#/properties/error/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;validate36.errors = vErrors;return false;}else {errors = _errs46;if(vErrors !== null){if(_errs46){vErrors.length = _errs46;}else {vErrors = null;}}}var valid9 = _errs45 === errors;}else {var valid9 = true;}if(valid9){if(data.failure_status !== undefined){let data18 = data.failure_status;const _errs50 = errors;const _errs51 = errors;const _errs52 = errors;let valid14 = false;const _errs53 = errors;if((!(((typeof data18 == "number") && (!(data18 % 1) && !isNaN(data18))) && (isFinite(data18)))) && (data18 !== null)){const err13 = {instancePath:instancePath+"/failure_status",schemaPath:"#/properties/failure_status/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema59.properties.failure_status.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid5 = _errs53 === errors;valid14 = valid14 || _valid5;const _errs55 = errors;if(typeof data18 !== "bigint"){const err14 = {instancePath:instancePath+"/failure_status",schemaPath:"#/properties/failure_status/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid5 = _errs55 === errors;valid14 = valid14 || _valid5;if(!valid14){const err15 = {instancePath:instancePath+"/failure_status",schemaPath:"#/properties/failure_status/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;validate36.errors = vErrors;return false;}else {errors = _errs52;if(vErrors !== null){if(_errs52){vErrors.length = _errs52;}else {vErrors = null;}}}var valid13 = _errs51 === errors;if(valid13){if(typeof data18 === "bigint"){if(data18 < 400){validate36.errors = [{instancePath:instancePath+"/failure_status",schemaPath:"#/properties/failure_status/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}else {if(data18 > 599){validate36.errors = [{instancePath:instancePath+"/failure_status",schemaPath:"#/properties/failure_status/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}}if(errors === _errs50){if((typeof data18 == "number") && (isFinite(data18))){if(data18 > 599 || isNaN(data18)){validate36.errors = [{instancePath:instancePath+"/failure_status",schemaPath:"#/properties/failure_status/maximum",keyword:"maximum",params:{comparison: "<=", limit: 599},message:"must be <= 599"}];return false;}else {if(data18 < 400 || isNaN(data18)){validate36.errors = [{instancePath:instancePath+"/failure_status",schemaPath:"#/properties/failure_status/minimum",keyword:"minimum",params:{comparison: ">=", limit: 400},message:"must be >= 400"}];return false;}}}}var valid9 = _errs50 === errors;}else {var valid9 = true;}if(valid9){if(data.sandbox_id !== undefined){let data19 = data.sandbox_id;const _errs56 = errors;if(errors === _errs56){if(typeof data19 === "string"){if(func1(data19) < 1){validate36.errors = [{instancePath:instancePath+"/sandbox_id",schemaPath:"#/properties/sandbox_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate36.errors = [{instancePath:instancePath+"/sandbox_id",schemaPath:"#/properties/sandbox_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid9 = _errs56 === errors;}else {var valid9 = true;}if(valid9){if(data.created_at !== undefined){let data20 = data.created_at;const _errs58 = errors;if(errors === _errs58){if(errors === _errs58){if(typeof data20 === "string"){if(!(formats0.validate(data20))){validate36.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 {validate36.errors = [{instancePath:instancePath+"/created_at",schemaPath:"#/properties/created_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid9 = _errs58 === errors;}else {var valid9 = true;}if(valid9){if(data.updated_at !== undefined){let data21 = data.updated_at;const _errs60 = errors;if(errors === _errs60){if(errors === _errs60){if(typeof data21 === "string"){if(!(formats0.validate(data21))){validate36.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/properties/updated_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate36.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/properties/updated_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid9 = _errs60 === errors;}else {var valid9 = true;}}}}}}}}}}}}}}}else {validate36.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate36.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate36.evaluated = {"dynamicProps":true,"dynamicItems":false};exports.validate1 = validate53;function validate53(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate53.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs1 = errors;const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.status === undefined) && (missing0 = "status")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.status !== undefined){if("succeeded" !== data.status){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs5 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.result !== undefined){const _errs6 = errors;if(!(validate37(data.result, {instancePath:instancePath+"/result",parentData:data,parentDataProperty:"result",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate37.errors : vErrors.concat(validate37.errors);errors = vErrors.length;}var valid3 = _errs6 === errors;}else {var valid3 = true;}if(valid3){if(data.error !== undefined){const _errs7 = errors;if(data.error !== null){validate53.errors = [{instancePath:instancePath+"/error",schemaPath:"#/allOf/0/then/properties/error/type",keyword:"type",params:{type: "null"},message:"must be null"}];return false;}var valid3 = _errs7 === errors;}else {var valid3 = true;}if(valid3){if(data.failure_status !== undefined){const _errs9 = errors;if(data.failure_status !== null){validate53.errors = [{instancePath:instancePath+"/failure_status",schemaPath:"#/allOf/0/then/properties/failure_status/type",keyword:"type",params:{type: "null"},message:"must be null"}];return false;}var valid3 = _errs9 === errors;}else {var valid3 = true;}}}}var _valid0 = _errs5 === errors;valid1 = _valid0;if(valid1){var props0 = {};props0.result = true;props0.error = true;props0.failure_status = true;props0.status = true;}}if(!valid1){const err2 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate53.errors = vErrors;return false;}var valid0 = _errs1 === errors;if(valid0){const _errs11 = errors;const _errs12 = errors;let valid4 = true;const _errs13 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((data.status === undefined) && (missing1 = "status")){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {if(data.status !== undefined){if("failed" !== data.status){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}}var _valid1 = _errs13 === errors;errors = _errs12;if(vErrors !== null){if(_errs12){vErrors.length = _errs12;}else {vErrors = null;}}if(_valid1){const _errs15 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.result !== undefined){const _errs16 = errors;if(data.result !== null){validate53.errors = [{instancePath:instancePath+"/result",schemaPath:"#/allOf/1/then/properties/result/type",keyword:"type",params:{type: "null"},message:"must be null"}];return false;}var valid6 = _errs16 === errors;}else {var valid6 = true;}if(valid6){if(data.error !== undefined){const _errs18 = errors;if(!(validate47(data.error, {instancePath:instancePath+"/error",parentData:data,parentDataProperty:"error",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate47.errors : vErrors.concat(validate47.errors);errors = vErrors.length;}var valid6 = _errs18 === errors;}else {var valid6 = true;}if(valid6){if(data.failure_status !== undefined){let data7 = data.failure_status;const _errs19 = errors;const _errs20 = errors;const _errs21 = errors;let valid8 = false;const _errs22 = errors;if(!(((typeof data7 == "number") && (!(data7 % 1) && !isNaN(data7))) && (isFinite(data7)))){const err5 = {instancePath:instancePath+"/failure_status",schemaPath:"#/allOf/1/then/properties/failure_status/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var _valid2 = _errs22 === errors;valid8 = valid8 || _valid2;const _errs24 = errors;if(typeof data7 !== "bigint"){const err6 = {instancePath:instancePath+"/failure_status",schemaPath:"#/allOf/1/then/properties/failure_status/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid2 = _errs24 === errors;valid8 = valid8 || _valid2;if(!valid8){const err7 = {instancePath:instancePath+"/failure_status",schemaPath:"#/allOf/1/then/properties/failure_status/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;validate53.errors = vErrors;return false;}else {errors = _errs21;if(vErrors !== null){if(_errs21){vErrors.length = _errs21;}else {vErrors = null;}}}var valid7 = _errs20 === errors;if(valid7){if(typeof data7 === "bigint"){if(data7 < 400){validate53.errors = [{instancePath:instancePath+"/failure_status",schemaPath:"#/allOf/1/then/properties/failure_status/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}else {if(data7 > 599){validate53.errors = [{instancePath:instancePath+"/failure_status",schemaPath:"#/allOf/1/then/properties/failure_status/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}}if(errors === _errs19){if((typeof data7 == "number") && (isFinite(data7))){if(data7 > 599 || isNaN(data7)){validate53.errors = [{instancePath:instancePath+"/failure_status",schemaPath:"#/allOf/1/then/properties/failure_status/maximum",keyword:"maximum",params:{comparison: "<=", limit: 599},message:"must be <= 599"}];return false;}else {if(data7 < 400 || isNaN(data7)){validate53.errors = [{instancePath:instancePath+"/failure_status",schemaPath:"#/allOf/1/then/properties/failure_status/minimum",keyword:"minimum",params:{comparison: ">=", limit: 400},message:"must be >= 400"}];return false;}}}}var valid6 = _errs19 === errors;}else {var valid6 = true;}}}}var _valid1 = _errs15 === errors;valid4 = _valid1;if(valid4){var props1 = {};props1.result = true;props1.error = true;props1.failure_status = true;props1.status = true;}}if(!valid4){const err8 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate53.errors = vErrors;return false;}var valid0 = _errs11 === errors;if(valid0){if(props0 !== true && props1 !== undefined){if(props1 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props1);}}}}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((((((((((((data.id === undefined) && (missing2 = "id")) || ((data.agent === undefined) && (missing2 = "agent"))) || ((data.repo === undefined) && (missing2 = "repo"))) || ((data.sha === undefined) && (missing2 = "sha"))) || ((data.status === undefined) && (missing2 = "status"))) || ((data.current_phase === undefined) && (missing2 = "current_phase"))) || ((data.phases === undefined) && (missing2 = "phases"))) || ((data.result === undefined) && (missing2 = "result"))) || ((data.error === undefined) && (missing2 = "error"))) || ((data.failure_status === undefined) && (missing2 = "failure_status"))) || ((data.created_at === undefined) && (missing2 = "created_at"))) || ((data.updated_at === undefined) && (missing2 = "updated_at"))){validate53.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(props0 !== true){props0 = props0 || {};props0.id = true;props0.agent = true;props0.repo = true;props0.sha = true;props0.status = true;props0.current_phase = true;props0.phases = true;props0.result = true;props0.error = true;props0.failure_status = true;props0.sandbox_id = true;props0.created_at = true;props0.updated_at = true;}if(data.id !== undefined){let data8 = data.id;const _errs25 = errors;if(errors === _errs25){if(typeof data8 === "string"){if(func1(data8) < 1){validate53.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate53.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid9 = _errs25 === errors;}else {var valid9 = true;}if(valid9){if(data.agent !== undefined){let data9 = data.agent;const _errs27 = errors;if(errors === _errs27){if(typeof data9 === "string"){if(func1(data9) < 1){validate53.errors = [{instancePath:instancePath+"/agent",schemaPath:"#/properties/agent/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate53.errors = [{instancePath:instancePath+"/agent",schemaPath:"#/properties/agent/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid9 = _errs27 === errors;}else {var valid9 = true;}if(valid9){if(data.repo !== undefined){let data10 = data.repo;const _errs29 = errors;if((typeof data10 !== "string") && (data10 !== null)){validate53.errors = [{instancePath:instancePath+"/repo",schemaPath:"#/properties/repo/type",keyword:"type",params:{type: schema59.properties.repo.type},message:"must be string,null"}];return false;}if(errors === _errs29){if(typeof data10 === "string"){if(func1(data10) < 1){validate53.errors = [{instancePath:instancePath+"/repo",schemaPath:"#/properties/repo/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}var valid9 = _errs29 === errors;}else {var valid9 = true;}if(valid9){if(data.sha !== undefined){let data11 = data.sha;const _errs31 = errors;if((typeof data11 !== "string") && (data11 !== null)){validate53.errors = [{instancePath:instancePath+"/sha",schemaPath:"#/properties/sha/type",keyword:"type",params:{type: schema59.properties.sha.type},message:"must be string,null"}];return false;}if(errors === _errs31){if(typeof data11 === "string"){if(!pattern25.test(data11)){validate53.errors = [{instancePath:instancePath+"/sha",schemaPath:"#/properties/sha/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{40}$"},message:"must match pattern \""+"^[0-9a-f]{40}$"+"\""}];return false;}}}var valid9 = _errs31 === errors;}else {var valid9 = true;}if(valid9){if(data.status !== undefined){let data12 = data.status;const _errs33 = errors;if(typeof data12 !== "string"){validate53.errors = [{instancePath:instancePath+"/status",schemaPath:"#/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data12 === "queued") || (data12 === "running")) || (data12 === "succeeded")) || (data12 === "failed"))){validate53.errors = [{instancePath:instancePath+"/status",schemaPath:"#/properties/status/enum",keyword:"enum",params:{allowedValues: schema59.properties.status.enum},message:"must be equal to one of the allowed values"}];return false;}var valid9 = _errs33 === errors;}else {var valid9 = true;}if(valid9){if(data.current_phase !== undefined){let data13 = data.current_phase;const _errs35 = errors;if((typeof data13 !== "string") && (data13 !== null)){validate53.errors = [{instancePath:instancePath+"/current_phase",schemaPath:"#/properties/current_phase/type",keyword:"type",params:{type: schema59.properties.current_phase.type},message:"must be string,null"}];return false;}if(!((((((((data13 === "preparing_image") || (data13 === "create")) || (data13 === "code")) || (data13 === "setup")) || (data13 === "files")) || (data13 === "background")) || (data13 === "previews")) || (data13 === null))){validate53.errors = [{instancePath:instancePath+"/current_phase",schemaPath:"#/properties/current_phase/enum",keyword:"enum",params:{allowedValues: schema59.properties.current_phase.enum},message:"must be equal to one of the allowed values"}];return false;}var valid9 = _errs35 === errors;}else {var valid9 = true;}if(valid9){if(data.phases !== undefined){let data14 = data.phases;const _errs37 = errors;if(errors === _errs37){if(Array.isArray(data14)){var valid10 = true;const len0 = data14.length;for(let i0=0; i0<len0; i0++){const _errs39 = errors;if(!(validate49(data14[i0], {instancePath:instancePath+"/phases/" + i0,parentData:data14,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate49.errors : vErrors.concat(validate49.errors);errors = vErrors.length;}var valid10 = _errs39 === errors;if(!valid10){break;}}}else {validate53.errors = [{instancePath:instancePath+"/phases",schemaPath:"#/properties/phases/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid9 = _errs37 === errors;}else {var valid9 = true;}if(valid9){if(data.result !== undefined){let data16 = data.result;const _errs40 = errors;const _errs41 = errors;let valid11 = false;const _errs42 = errors;if(!(validate37(data16, {instancePath:instancePath+"/result",parentData:data,parentDataProperty:"result",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate37.errors : vErrors.concat(validate37.errors);errors = vErrors.length;}var _valid3 = _errs42 === errors;valid11 = valid11 || _valid3;if(_valid3){var props2 = {};props2.interactive = true;props2.id = true;props2.sandbox_id = true;props2.agent = true;props2.phases = true;props2.previews = true;props2.expires_at = true;props2.effective_lifetime_seconds = true;props2.reused = true;props2.credential_delivery = true;props2.run = true;}const _errs43 = errors;if(data16 !== null){const err9 = {instancePath:instancePath+"/result",schemaPath:"#/properties/result/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var _valid3 = _errs43 === errors;valid11 = valid11 || _valid3;if(!valid11){const err10 = {instancePath:instancePath+"/result",schemaPath:"#/properties/result/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;validate53.errors = vErrors;return false;}else {errors = _errs41;if(vErrors !== null){if(_errs41){vErrors.length = _errs41;}else {vErrors = null;}}}var valid9 = _errs40 === errors;}else {var valid9 = true;}if(valid9){if(data.error !== undefined){let data17 = data.error;const _errs45 = errors;const _errs46 = errors;let valid12 = false;const _errs47 = errors;if(!(validate47(data17, {instancePath:instancePath+"/error",parentData:data,parentDataProperty:"error",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate47.errors : vErrors.concat(validate47.errors);errors = vErrors.length;}var _valid4 = _errs47 === errors;valid12 = valid12 || _valid4;if(_valid4){var props3 = {};props3.error = true;}const _errs48 = errors;if(data17 !== null){const err11 = {instancePath:instancePath+"/error",schemaPath:"#/properties/error/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var _valid4 = _errs48 === errors;valid12 = valid12 || _valid4;if(!valid12){const err12 = {instancePath:instancePath+"/error",schemaPath:"#/properties/error/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;validate53.errors = vErrors;return false;}else {errors = _errs46;if(vErrors !== null){if(_errs46){vErrors.length = _errs46;}else {vErrors = null;}}}var valid9 = _errs45 === errors;}else {var valid9 = true;}if(valid9){if(data.failure_status !== undefined){let data18 = data.failure_status;const _errs50 = errors;const _errs51 = errors;const _errs52 = errors;let valid14 = false;const _errs53 = errors;if((!(((typeof data18 == "number") && (!(data18 % 1) && !isNaN(data18))) && (isFinite(data18)))) && (data18 !== null)){const err13 = {instancePath:instancePath+"/failure_status",schemaPath:"#/properties/failure_status/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema59.properties.failure_status.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid5 = _errs53 === errors;valid14 = valid14 || _valid5;const _errs55 = errors;if(typeof data18 !== "bigint"){const err14 = {instancePath:instancePath+"/failure_status",schemaPath:"#/properties/failure_status/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid5 = _errs55 === errors;valid14 = valid14 || _valid5;if(!valid14){const err15 = {instancePath:instancePath+"/failure_status",schemaPath:"#/properties/failure_status/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;validate53.errors = vErrors;return false;}else {errors = _errs52;if(vErrors !== null){if(_errs52){vErrors.length = _errs52;}else {vErrors = null;}}}var valid13 = _errs51 === errors;if(valid13){if(typeof data18 === "bigint"){if(data18 < 400){validate53.errors = [{instancePath:instancePath+"/failure_status",schemaPath:"#/properties/failure_status/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}else {if(data18 > 599){validate53.errors = [{instancePath:instancePath+"/failure_status",schemaPath:"#/properties/failure_status/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}}if(errors === _errs50){if((typeof data18 == "number") && (isFinite(data18))){if(data18 > 599 || isNaN(data18)){validate53.errors = [{instancePath:instancePath+"/failure_status",schemaPath:"#/properties/failure_status/maximum",keyword:"maximum",params:{comparison: "<=", limit: 599},message:"must be <= 599"}];return false;}else {if(data18 < 400 || isNaN(data18)){validate53.errors = [{instancePath:instancePath+"/failure_status",schemaPath:"#/properties/failure_status/minimum",keyword:"minimum",params:{comparison: ">=", limit: 400},message:"must be >= 400"}];return false;}}}}var valid9 = _errs50 === errors;}else {var valid9 = true;}if(valid9){if(data.sandbox_id !== undefined){let data19 = data.sandbox_id;const _errs56 = errors;if(errors === _errs56){if(typeof data19 === "string"){if(func1(data19) < 1){validate53.errors = [{instancePath:instancePath+"/sandbox_id",schemaPath:"#/properties/sandbox_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate53.errors = [{instancePath:instancePath+"/sandbox_id",schemaPath:"#/properties/sandbox_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid9 = _errs56 === errors;}else {var valid9 = true;}if(valid9){if(data.created_at !== undefined){let data20 = data.created_at;const _errs58 = errors;if(errors === _errs58){if(errors === _errs58){if(typeof data20 === "string"){if(!(formats0.validate(data20))){validate53.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 {validate53.errors = [{instancePath:instancePath+"/created_at",schemaPath:"#/properties/created_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid9 = _errs58 === errors;}else {var valid9 = true;}if(valid9){if(data.updated_at !== undefined){let data21 = data.updated_at;const _errs60 = errors;if(errors === _errs60){if(errors === _errs60){if(typeof data21 === "string"){if(!(formats0.validate(data21))){validate53.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/properties/updated_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate53.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/properties/updated_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid9 = _errs60 === errors;}else {var valid9 = true;}}}}}}}}}}}}}}}else {validate53.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate53.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate53.evaluated = {"dynamicProps":true,"dynamicItems":false};exports.validate2 = validate59;const schema70 = {"type":"object","required":["launch_id","source","placement","secrets","added_secrets"],"description":"What one launch asked for, recorded when it was created. Choices and names only: secret\nvalues are never recorded.\n","properties":{"launch_id":{"type":"string","minLength":1},"source":{"description":"The catalog agent, or the caller's own repository or image.","anyOf":[{"type":"object","required":["kind","agent"],"properties":{"kind":{"const":"agent"},"agent":{"type":"string","minLength":1}}},{"type":"object","required":["kind","name","repository","ref","checkout"],"properties":{"kind":{"const":"repository"},"name":{"type":"string","minLength":1},"repository":{"type":"string","minLength":1},"ref":{"type":"string","minLength":1},"path":{"type":"string","minLength":1,"description":"Manifest path inside the repository, when the launch read one."},"checkout":{"type":"boolean","description":"True when the repository was checked out and the command run in it, rather than read for a manifest."},"command":{"type":"string","minLength":1}}},{"type":"object","required":["kind","name","image"],"properties":{"kind":{"const":"image"},"name":{"type":"string","minLength":1},"image":{"type":"string","minLength":1},"command":{"type":"string","minLength":1}}},{"type":"object","required":["kind","name"],"description":"An inline manifest that names neither a repository nor an image (for example a Dockerfile build).","properties":{"kind":{"const":"manifest"},"name":{"type":"string","minLength":1}}}]},"placement":{"type":"object","required":["mode","providers"],"properties":{"mode":{"type":"string","enum":["picks","chosen"],"description":"picks when BoxRouter chose the provider; chosen when the caller named one or more."},"providers":{"type":"array","items":{"type":"string","minLength":1},"description":"The providers the caller allowed; empty when BoxRouter picked."}}},"secrets":{"type":"array","items":{"type":"string","minLength":1},"description":"Names of every secret the launch used, declared by the agent or added by the caller."},"added_secrets":{"type":"array","items":{"type":"string","minLength":1},"description":"Names the caller added to the agent's own (`--secret` on the command line)."}}};function validate59(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate59.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.launch_id === undefined) && (missing0 = "launch_id")) || ((data.source === undefined) && (missing0 = "source"))) || ((data.placement === undefined) && (missing0 = "placement"))) || ((data.secrets === undefined) && (missing0 = "secrets"))) || ((data.added_secrets === undefined) && (missing0 = "added_secrets"))){validate59.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.launch_id !== undefined){let data0 = data.launch_id;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) < 1){validate59.errors = [{instancePath:instancePath+"/launch_id",schemaPath:"#/properties/launch_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate59.errors = [{instancePath:instancePath+"/launch_id",schemaPath:"#/properties/launch_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.source !== undefined){let data1 = data.source;const _errs3 = errors;const _errs4 = errors;let valid1 = false;const _errs5 = errors;if(errors === _errs5){if(data1 && typeof data1 == "object" && !Array.isArray(data1)){let missing1;if(((data1.kind === undefined) && (missing1 = "kind")) || ((data1.agent === undefined) && (missing1 = "agent"))){const err0 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/anyOf/0/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data1.kind !== undefined){const _errs7 = errors;if("agent" !== data1.kind){const err1 = {instancePath:instancePath+"/source/kind",schemaPath:"#/properties/source/anyOf/0/properties/kind/const",keyword:"const",params:{allowedValue: "agent"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid2 = _errs7 === errors;}else {var valid2 = true;}if(valid2){if(data1.agent !== undefined){let data3 = data1.agent;const _errs8 = errors;if(errors === _errs8){if(typeof data3 === "string"){if(func1(data3) < 1){const err2 = {instancePath:instancePath+"/source/agent",schemaPath:"#/properties/source/anyOf/0/properties/agent/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+"/source/agent",schemaPath:"#/properties/source/anyOf/0/properties/agent/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}var valid2 = _errs8 === errors;}else {var valid2 = true;}}}}else {const err4 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}var _valid0 = _errs5 === errors;valid1 = valid1 || _valid0;if(_valid0){var props0 = {};props0.kind = true;props0.agent = true;}const _errs10 = errors;if(errors === _errs10){if(data1 && typeof data1 == "object" && !Array.isArray(data1)){let missing2;if((((((data1.kind === undefined) && (missing2 = "kind")) || ((data1.name === undefined) && (missing2 = "name"))) || ((data1.repository === undefined) && (missing2 = "repository"))) || ((data1.ref === undefined) && (missing2 = "ref"))) || ((data1.checkout === undefined) && (missing2 = "checkout"))){const err5 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/anyOf/1/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {if(data1.kind !== undefined){const _errs12 = errors;if("repository" !== data1.kind){const err6 = {instancePath:instancePath+"/source/kind",schemaPath:"#/properties/source/anyOf/1/properties/kind/const",keyword:"const",params:{allowedValue: "repository"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var valid3 = _errs12 === errors;}else {var valid3 = true;}if(valid3){if(data1.name !== undefined){let data5 = data1.name;const _errs13 = errors;if(errors === _errs13){if(typeof data5 === "string"){if(func1(data5) < 1){const err7 = {instancePath:instancePath+"/source/name",schemaPath:"#/properties/source/anyOf/1/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/source/name",schemaPath:"#/properties/source/anyOf/1/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var valid3 = _errs13 === errors;}else {var valid3 = true;}if(valid3){if(data1.repository !== undefined){let data6 = data1.repository;const _errs15 = errors;if(errors === _errs15){if(typeof data6 === "string"){if(func1(data6) < 1){const err9 = {instancePath:instancePath+"/source/repository",schemaPath:"#/properties/source/anyOf/1/properties/repository/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {instancePath:instancePath+"/source/repository",schemaPath:"#/properties/source/anyOf/1/properties/repository/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}var valid3 = _errs15 === errors;}else {var valid3 = true;}if(valid3){if(data1.ref !== undefined){let data7 = data1.ref;const _errs17 = errors;if(errors === _errs17){if(typeof data7 === "string"){if(func1(data7) < 1){const err11 = {instancePath:instancePath+"/source/ref",schemaPath:"#/properties/source/anyOf/1/properties/ref/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/source/ref",schemaPath:"#/properties/source/anyOf/1/properties/ref/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}var valid3 = _errs17 === errors;}else {var valid3 = true;}if(valid3){if(data1.path !== undefined){let data8 = data1.path;const _errs19 = errors;if(errors === _errs19){if(typeof data8 === "string"){if(func1(data8) < 1){const err13 = {instancePath:instancePath+"/source/path",schemaPath:"#/properties/source/anyOf/1/properties/path/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {instancePath:instancePath+"/source/path",schemaPath:"#/properties/source/anyOf/1/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}var valid3 = _errs19 === errors;}else {var valid3 = true;}if(valid3){if(data1.checkout !== undefined){const _errs21 = errors;if(typeof data1.checkout !== "boolean"){const err15 = {instancePath:instancePath+"/source/checkout",schemaPath:"#/properties/source/anyOf/1/properties/checkout/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var valid3 = _errs21 === errors;}else {var valid3 = true;}if(valid3){if(data1.command !== undefined){let data10 = data1.command;const _errs23 = errors;if(errors === _errs23){if(typeof data10 === "string"){if(func1(data10) < 1){const err16 = {instancePath:instancePath+"/source/command",schemaPath:"#/properties/source/anyOf/1/properties/command/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}else {const err17 = {instancePath:instancePath+"/source/command",schemaPath:"#/properties/source/anyOf/1/properties/command/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}var valid3 = _errs23 === errors;}else {var valid3 = true;}}}}}}}}}else {const err18 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}var _valid0 = _errs10 === errors;valid1 = valid1 || _valid0;if(_valid0){if(props0 !== true){props0 = props0 || {};props0.kind = true;props0.name = true;props0.repository = true;props0.ref = true;props0.path = true;props0.checkout = true;props0.command = true;}}const _errs25 = errors;if(errors === _errs25){if(data1 && typeof data1 == "object" && !Array.isArray(data1)){let missing3;if((((data1.kind === undefined) && (missing3 = "kind")) || ((data1.name === undefined) && (missing3 = "name"))) || ((data1.image === undefined) && (missing3 = "image"))){const err19 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/anyOf/2/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}else {if(data1.kind !== undefined){const _errs27 = errors;if("image" !== data1.kind){const err20 = {instancePath:instancePath+"/source/kind",schemaPath:"#/properties/source/anyOf/2/properties/kind/const",keyword:"const",params:{allowedValue: "image"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var valid4 = _errs27 === errors;}else {var valid4 = true;}if(valid4){if(data1.name !== undefined){let data12 = data1.name;const _errs28 = errors;if(errors === _errs28){if(typeof data12 === "string"){if(func1(data12) < 1){const err21 = {instancePath:instancePath+"/source/name",schemaPath:"#/properties/source/anyOf/2/properties/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++;}}else {const err22 = {instancePath:instancePath+"/source/name",schemaPath:"#/properties/source/anyOf/2/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}var valid4 = _errs28 === errors;}else {var valid4 = true;}if(valid4){if(data1.image !== undefined){let data13 = data1.image;const _errs30 = errors;if(errors === _errs30){if(typeof data13 === "string"){if(func1(data13) < 1){const err23 = {instancePath:instancePath+"/source/image",schemaPath:"#/properties/source/anyOf/2/properties/image/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}else {const err24 = {instancePath:instancePath+"/source/image",schemaPath:"#/properties/source/anyOf/2/properties/image/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}var valid4 = _errs30 === errors;}else {var valid4 = true;}if(valid4){if(data1.command !== undefined){let data14 = data1.command;const _errs32 = errors;if(errors === _errs32){if(typeof data14 === "string"){if(func1(data14) < 1){const err25 = {instancePath:instancePath+"/source/command",schemaPath:"#/properties/source/anyOf/2/properties/command/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}else {const err26 = {instancePath:instancePath+"/source/command",schemaPath:"#/properties/source/anyOf/2/properties/command/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}var valid4 = _errs32 === errors;}else {var valid4 = true;}}}}}}else {const err27 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}var _valid0 = _errs25 === errors;valid1 = valid1 || _valid0;if(_valid0){if(props0 !== true){props0 = props0 || {};props0.kind = true;props0.name = true;props0.image = true;props0.command = true;}}const _errs34 = errors;if(errors === _errs34){if(data1 && typeof data1 == "object" && !Array.isArray(data1)){let missing4;if(((data1.kind === undefined) && (missing4 = "kind")) || ((data1.name === undefined) && (missing4 = "name"))){const err28 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/anyOf/3/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}else {if(data1.kind !== undefined){const _errs36 = errors;if("manifest" !== data1.kind){const err29 = {instancePath:instancePath+"/source/kind",schemaPath:"#/properties/source/anyOf/3/properties/kind/const",keyword:"const",params:{allowedValue: "manifest"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var valid5 = _errs36 === errors;}else {var valid5 = true;}if(valid5){if(data1.name !== undefined){let data16 = data1.name;const _errs37 = errors;if(errors === _errs37){if(typeof data16 === "string"){if(func1(data16) < 1){const err30 = {instancePath:instancePath+"/source/name",schemaPath:"#/properties/source/anyOf/3/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}else {const err31 = {instancePath:instancePath+"/source/name",schemaPath:"#/properties/source/anyOf/3/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}var valid5 = _errs37 === errors;}else {var valid5 = true;}}}}else {const err32 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/anyOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}var _valid0 = _errs34 === errors;valid1 = valid1 || _valid0;if(_valid0){if(props0 !== true){props0 = props0 || {};props0.kind = true;props0.name = true;}}if(!valid1){const err33 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;validate59.errors = vErrors;return false;}else {errors = _errs4;if(vErrors !== null){if(_errs4){vErrors.length = _errs4;}else {vErrors = null;}}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.placement !== undefined){let data17 = data.placement;const _errs39 = errors;if(errors === _errs39){if(data17 && typeof data17 == "object" && !Array.isArray(data17)){let missing5;if(((data17.mode === undefined) && (missing5 = "mode")) || ((data17.providers === undefined) && (missing5 = "providers"))){validate59.errors = [{instancePath:instancePath+"/placement",schemaPath:"#/properties/placement/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"}];return false;}else {if(data17.mode !== undefined){let data18 = data17.mode;const _errs41 = errors;if(typeof data18 !== "string"){validate59.errors = [{instancePath:instancePath+"/placement/mode",schemaPath:"#/properties/placement/properties/mode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data18 === "picks") || (data18 === "chosen"))){validate59.errors = [{instancePath:instancePath+"/placement/mode",schemaPath:"#/properties/placement/properties/mode/enum",keyword:"enum",params:{allowedValues: schema70.properties.placement.properties.mode.enum},message:"must be equal to one of the allowed values"}];return false;}var valid6 = _errs41 === errors;}else {var valid6 = true;}if(valid6){if(data17.providers !== undefined){let data19 = data17.providers;const _errs43 = errors;if(errors === _errs43){if(Array.isArray(data19)){var valid7 = true;const len0 = data19.length;for(let i0=0; i0<len0; i0++){let data20 = data19[i0];const _errs45 = errors;if(errors === _errs45){if(typeof data20 === "string"){if(func1(data20) < 1){validate59.errors = [{instancePath:instancePath+"/placement/providers/" + i0,schemaPath:"#/properties/placement/properties/providers/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate59.errors = [{instancePath:instancePath+"/placement/providers/" + i0,schemaPath:"#/properties/placement/properties/providers/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid7 = _errs45 === errors;if(!valid7){break;}}}else {validate59.errors = [{instancePath:instancePath+"/placement/providers",schemaPath:"#/properties/placement/properties/providers/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid6 = _errs43 === errors;}else {var valid6 = true;}}}}else {validate59.errors = [{instancePath:instancePath+"/placement",schemaPath:"#/properties/placement/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs39 === errors;}else {var valid0 = true;}if(valid0){if(data.secrets !== undefined){let data21 = data.secrets;const _errs47 = errors;if(errors === _errs47){if(Array.isArray(data21)){var valid8 = true;const len1 = data21.length;for(let i1=0; i1<len1; i1++){let data22 = data21[i1];const _errs49 = errors;if(errors === _errs49){if(typeof data22 === "string"){if(func1(data22) < 1){validate59.errors = [{instancePath:instancePath+"/secrets/" + i1,schemaPath:"#/properties/secrets/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate59.errors = [{instancePath:instancePath+"/secrets/" + i1,schemaPath:"#/properties/secrets/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid8 = _errs49 === errors;if(!valid8){break;}}}else {validate59.errors = [{instancePath:instancePath+"/secrets",schemaPath:"#/properties/secrets/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs47 === errors;}else {var valid0 = true;}if(valid0){if(data.added_secrets !== undefined){let data23 = data.added_secrets;const _errs51 = errors;if(errors === _errs51){if(Array.isArray(data23)){var valid9 = true;const len2 = data23.length;for(let i2=0; i2<len2; i2++){let data24 = data23[i2];const _errs53 = errors;if(errors === _errs53){if(typeof data24 === "string"){if(func1(data24) < 1){validate59.errors = [{instancePath:instancePath+"/added_secrets/" + i2,schemaPath:"#/properties/added_secrets/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate59.errors = [{instancePath:instancePath+"/added_secrets/" + i2,schemaPath:"#/properties/added_secrets/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid9 = _errs53 === errors;if(!valid9){break;}}}else {validate59.errors = [{instancePath:instancePath+"/added_secrets",schemaPath:"#/properties/added_secrets/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs51 === errors;}else {var valid0 = true;}}}}}}}else {validate59.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate59.errors = vErrors;return errors === 0;}validate59.evaluated = {"props":{"launch_id":true,"source":true,"placement":true,"secrets":true,"added_secrets":true},"dynamicProps":false,"dynamicItems":false};exports.validate3 = validate60;const schema71 = {"type":"object","required":["launch_id","sandbox_id","command_started_at","timeout_seconds","state","exit_code"],"description":"The bounded state of a launch's unattended command. This handle excludes command text,\nenvironment variables, private process identity and all output. `unknown` is returned\nwhen the command outcome cannot be confirmed.\n","properties":{"launch_id":{"type":"string","minLength":1},"sandbox_id":{"type":"string","minLength":1},"command_started_at":{"type":"string","format":"date-time"},"timeout_seconds":{"minimum":1,"description":"Fixed command runtime bound set when the command started.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"state":{"type":"string","x-boxrouter-open-enum":true,"description":"Known observations. Clients must preserve unrecognized values for forward compatibility."},"exit_code":{"description":"Confirmed exit status for exited or timed_out commands; null while running or when the outcome is unknown.","allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}]}}};function validate60(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate60.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.launch_id === undefined) && (missing0 = "launch_id")) || ((data.sandbox_id === undefined) && (missing0 = "sandbox_id"))) || ((data.command_started_at === undefined) && (missing0 = "command_started_at"))) || ((data.timeout_seconds === undefined) && (missing0 = "timeout_seconds"))) || ((data.state === undefined) && (missing0 = "state"))) || ((data.exit_code === undefined) && (missing0 = "exit_code"))){validate60.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.launch_id !== undefined){let data0 = data.launch_id;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) < 1){validate60.errors = [{instancePath:instancePath+"/launch_id",schemaPath:"#/properties/launch_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate60.errors = [{instancePath:instancePath+"/launch_id",schemaPath:"#/properties/launch_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.sandbox_id !== undefined){let data1 = data.sandbox_id;const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) < 1){validate60.errors = [{instancePath:instancePath+"/sandbox_id",schemaPath:"#/properties/sandbox_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate60.errors = [{instancePath:instancePath+"/sandbox_id",schemaPath:"#/properties/sandbox_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.command_started_at !== undefined){let data2 = data.command_started_at;const _errs5 = errors;if(errors === _errs5){if(errors === _errs5){if(typeof data2 === "string"){if(!(formats0.validate(data2))){validate60.errors = [{instancePath:instancePath+"/command_started_at",schemaPath:"#/properties/command_started_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate60.errors = [{instancePath:instancePath+"/command_started_at",schemaPath:"#/properties/command_started_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.timeout_seconds !== undefined){let data3 = data.timeout_seconds;const _errs7 = errors;const _errs8 = errors;const _errs9 = errors;let valid2 = false;const _errs10 = errors;if(!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))){const err0 = {instancePath:instancePath+"/timeout_seconds",schemaPath:"#/properties/timeout_seconds/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 = _errs10 === errors;valid2 = valid2 || _valid0;const _errs12 = errors;if(typeof data3 !== "bigint"){const err1 = {instancePath:instancePath+"/timeout_seconds",schemaPath:"#/properties/timeout_seconds/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 = _errs12 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/timeout_seconds",schemaPath:"#/properties/timeout_seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate60.errors = vErrors;return false;}else {errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}}var valid1 = _errs8 === errors;if(valid1){if(typeof data3 === "bigint"){if(data3 < 1){validate60.errors = [{instancePath:instancePath+"/timeout_seconds",schemaPath:"#/properties/timeout_seconds/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs7){if((typeof data3 == "number") && (isFinite(data3))){if(data3 < 1 || isNaN(data3)){validate60.errors = [{instancePath:instancePath+"/timeout_seconds",schemaPath:"#/properties/timeout_seconds/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.state !== undefined){const _errs13 = errors;if(typeof data.state !== "string"){validate60.errors = [{instancePath:instancePath+"/state",schemaPath:"#/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.exit_code !== undefined){let data5 = data.exit_code;const _errs15 = errors;const _errs17 = errors;let valid4 = false;const _errs18 = errors;if((!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))) && (data5 !== null)){const err3 = {instancePath:instancePath+"/exit_code",schemaPath:"#/properties/exit_code/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema71.properties.exit_code.allOf[0].anyOf[0].type},message:"must be integer,null"};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+"/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 = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs20 === errors;valid4 = valid4 || _valid1;if(!valid4){const err5 = {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 = [err5];}else {vErrors.push(err5);}errors++;validate60.errors = vErrors;return false;}else {errors = _errs17;if(vErrors !== null){if(_errs17){vErrors.length = _errs17;}else {vErrors = null;}}}var valid0 = _errs15 === errors;}else {var valid0 = true;}}}}}}}}else {validate60.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate60.errors = vErrors;return errors === 0;}validate60.evaluated = {"props":{"launch_id":true,"sandbox_id":true,"command_started_at":true,"timeout_seconds":true,"state":true,"exit_code":true},"dynamicProps":false,"dynamicItems":false};exports.validate4 = validate61;const schema72 = {"type":"object","required":["repo","readable","visibility","sha","files","recipe"],"description":"Whether the workspace can read one repository, and what a launch would do with it.","properties":{"repo":{"type":"string","description":"Repository as owner/name."},"readable":{"type":"boolean"},"visibility":{"type":["string","null"],"enum":["public","private",null],"description":"public, or private when read through the workspace's GitHub connection; null when unreadable."},"sha":{"type":["string","null"],"description":"Commit the checked ref points at; null when unreadable."},"files":{"type":["array","null"],"items":{"type":"string"},"description":"Top-level entries at sha, directories ending in a slash; null when unreadable or the listing failed."},"recipe":{"type":["object","null"],"required":["kind","hint"],"properties":{"kind":{"type":"string","enum":["manifest","dockerfile","node","python","plain"]},"hint":{"type":"string","description":"One sentence saying which setup applies."},"command":{"type":"string","description":"Start command when one is known."}}},"code":{"type":"string","description":"Machine-readable refusal code; present only when readable is false."},"message":{"type":"string","description":"Why the repository cannot be read; present only when readable is false."},"fix":{"type":"string","description":"What to do about it; present only when readable is false."}}};function validate61(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate61.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.repo === undefined) && (missing0 = "repo")) || ((data.readable === undefined) && (missing0 = "readable"))) || ((data.visibility === undefined) && (missing0 = "visibility"))) || ((data.sha === undefined) && (missing0 = "sha"))) || ((data.files === undefined) && (missing0 = "files"))) || ((data.recipe === undefined) && (missing0 = "recipe"))){validate61.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.repo !== undefined){const _errs1 = errors;if(typeof data.repo !== "string"){validate61.errors = [{instancePath:instancePath+"/repo",schemaPath:"#/properties/repo/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.readable !== undefined){const _errs3 = errors;if(typeof data.readable !== "boolean"){validate61.errors = [{instancePath:instancePath+"/readable",schemaPath:"#/properties/readable/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.visibility !== undefined){let data2 = data.visibility;const _errs5 = errors;if((typeof data2 !== "string") && (data2 !== null)){validate61.errors = [{instancePath:instancePath+"/visibility",schemaPath:"#/properties/visibility/type",keyword:"type",params:{type: schema72.properties.visibility.type},message:"must be string,null"}];return false;}if(!(((data2 === "public") || (data2 === "private")) || (data2 === null))){validate61.errors = [{instancePath:instancePath+"/visibility",schemaPath:"#/properties/visibility/enum",keyword:"enum",params:{allowedValues: schema72.properties.visibility.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.sha !== undefined){let data3 = data.sha;const _errs7 = errors;if((typeof data3 !== "string") && (data3 !== null)){validate61.errors = [{instancePath:instancePath+"/sha",schemaPath:"#/properties/sha/type",keyword:"type",params:{type: schema72.properties.sha.type},message:"must be string,null"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.files !== undefined){let data4 = data.files;const _errs9 = errors;if((!(Array.isArray(data4))) && (data4 !== null)){validate61.errors = [{instancePath:instancePath+"/files",schemaPath:"#/properties/files/type",keyword:"type",params:{type: schema72.properties.files.type},message:"must be array,null"}];return false;}if(errors === _errs9){if(Array.isArray(data4)){var valid1 = true;const len0 = data4.length;for(let i0=0; i0<len0; i0++){const _errs11 = errors;if(typeof data4[i0] !== "string"){validate61.errors = [{instancePath:instancePath+"/files/" + i0,schemaPath:"#/properties/files/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs11 === errors;if(!valid1){break;}}}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.recipe !== undefined){let data6 = data.recipe;const _errs13 = errors;if((!(data6 && typeof data6 == "object" && !Array.isArray(data6))) && (data6 !== null)){validate61.errors = [{instancePath:instancePath+"/recipe",schemaPath:"#/properties/recipe/type",keyword:"type",params:{type: schema72.properties.recipe.type},message:"must be object,null"}];return false;}if(errors === _errs13){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){let missing1;if(((data6.kind === undefined) && (missing1 = "kind")) || ((data6.hint === undefined) && (missing1 = "hint"))){validate61.errors = [{instancePath:instancePath+"/recipe",schemaPath:"#/properties/recipe/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data6.kind !== undefined){let data7 = data6.kind;const _errs15 = errors;if(typeof data7 !== "string"){validate61.errors = [{instancePath:instancePath+"/recipe/kind",schemaPath:"#/properties/recipe/properties/kind/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((data7 === "manifest") || (data7 === "dockerfile")) || (data7 === "node")) || (data7 === "python")) || (data7 === "plain"))){validate61.errors = [{instancePath:instancePath+"/recipe/kind",schemaPath:"#/properties/recipe/properties/kind/enum",keyword:"enum",params:{allowedValues: schema72.properties.recipe.properties.kind.enum},message:"must be equal to one of the allowed values"}];return false;}var valid2 = _errs15 === errors;}else {var valid2 = true;}if(valid2){if(data6.hint !== undefined){const _errs17 = errors;if(typeof data6.hint !== "string"){validate61.errors = [{instancePath:instancePath+"/recipe/hint",schemaPath:"#/properties/recipe/properties/hint/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs17 === errors;}else {var valid2 = true;}if(valid2){if(data6.command !== undefined){const _errs19 = errors;if(typeof data6.command !== "string"){validate61.errors = [{instancePath:instancePath+"/recipe/command",schemaPath:"#/properties/recipe/properties/command/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs19 === errors;}else {var valid2 = true;}}}}}}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.code !== undefined){const _errs21 = errors;if(typeof data.code !== "string"){validate61.errors = [{instancePath:instancePath+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs21 === errors;}else {var valid0 = true;}if(valid0){if(data.message !== undefined){const _errs23 = errors;if(typeof data.message !== "string"){validate61.errors = [{instancePath:instancePath+"/message",schemaPath:"#/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs23 === errors;}else {var valid0 = true;}if(valid0){if(data.fix !== undefined){const _errs25 = errors;if(typeof data.fix !== "string"){validate61.errors = [{instancePath:instancePath+"/fix",schemaPath:"#/properties/fix/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs25 === errors;}else {var valid0 = true;}}}}}}}}}}}else {validate61.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate61.errors = vErrors;return errors === 0;}validate61.evaluated = {"props":{"repo":true,"readable":true,"visibility":true,"sha":true,"files":true,"recipe":true,"code":true,"message":true,"fix":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":{"$":0},"validate2":{"$":10},"validate3":{"$":11},"validate4":{"$":12}},"definitions":[{"type":"object","required":["id","agent","repo","sha","status","current_phase","phases","result","error","failure_status","created_at","updated_at"],"allOf":[{"if":{"properties":{"status":{"const":"succeeded"}},"required":["status"]},"then":{"properties":{"result":{"$":1},"error":{"type":"null"},"failure_status":{"type":"null"}}}},{"if":{"properties":{"status":{"const":"failed"}},"required":["status"]},"then":{"properties":{"result":{"type":"null"},"error":{"$":8},"failure_status":{"minimum":400,"maximum":599,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":400,"maximum":599}}}}}],"properties":{"id":{"type":"string","minLength":1},"agent":{"type":"string","minLength":1},"repo":{"type":["string","null"],"minLength":1},"sha":{"type":["string","null"],"pattern":"^[0-9a-f]{40}$"},"status":{"type":"string","enum":["queued","running","succeeded","failed"]},"current_phase":{"type":["string","null"],"enum":["preparing_image","create","code","setup","files","background","previews",null]},"phases":{"type":"array","items":{"$":9}},"result":{"anyOf":[{"$":1},{"type":"null"}]},"error":{"anyOf":[{"$":8},{"type":"null"}]},"failure_status":{"minimum":400,"maximum":599,"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":400,"maximum":599}},"sandbox_id":{"type":"string","minLength":1},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},{"type":"object","required":["id","sandbox_id","agent","phases","previews","expires_at","effective_lifetime_seconds","reused"],"properties":{"interactive":{"type":"boolean"},"id":{"type":"string","minLength":1},"sandbox_id":{"type":"string","minLength":1},"agent":{"type":"string","minLength":1},"phases":{"type":"array","items":{"$":2}},"previews":{"type":"array","items":{"$":3}},"expires_at":{"type":"string","format":"date-time"},"effective_lifetime_seconds":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"reused":{"type":"boolean"},"credential_delivery":{"$":4},"run":{"$":7}}},{"type":"object","required":["name","status","seconds"],"properties":{"name":{"type":"string","enum":["source","preparing_image","create","code","setup","files","background","previews"]},"status":{"type":"string","enum":["completed"]},"seconds":{"minimum":0,"allOf":[{"anyOf":[{"type":"number"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"command":{"type":"string"},"repo":{"type":"string","minLength":1},"sha":{"type":"string","pattern":"^[0-9a-f]{40}$"},"exit_code":{"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}]}}},{"type":"object","required":["port","url"],"properties":{"port":{"minimum":1,"maximum":65535,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1,"maximum":65535}},"url":{"type":"string","format":"uri"}}},{"type":"object","minProperties":1,"propertyNames":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"additionalProperties":{"$":5}},{"type":"object","required":["mode","hosts"],"properties":{"mode":{"type":"string","enum":["provider_protected","environment"]},"hosts":{"type":"array","uniqueItems":true,"items":{"$":6}}},"allOf":[{"if":{"properties":{"mode":{"const":"provider_protected"}},"required":["mode"]},"then":{"properties":{"hosts":{"minItems":1}}}},{"if":{"properties":{"mode":{"const":"environment"}},"required":["mode"]},"then":{"properties":{"hosts":{"maxItems":0}}}}]},{"type":"string","anyOf":[{"pattern":"^(?=.{1,253}(?![\\s\\S]))(?![0-9.]+(?![\\s\\S]))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?![\\s\\S])"},{"pattern":"^(?=.{3,255}(?![\\s\\S]))\\*\\.(?![0-9.]+(?![\\s\\S]))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?![\\s\\S])"}]},{"type":"object","required":["id","index","count"],"properties":{"id":{"type":"string","minLength":22,"maxLength":128},"index":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"count":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}}}},{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","outcome"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"},"fix":{"type":"string"},"details":{"type":"object","properties":{"phase":{"type":"string","enum":["code","setup","files","background","previews"]},"command":{"type":"string"},"exit_code":{"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}]},"stderr_tail":{"type":"string"}},"allOf":[{"if":{"properties":{"code":{"const":"launch_failed"}},"required":["code"]},"then":{"required":["phase"]}}],"dependentRequired":{"command":["exit_code","stderr_tail"],"exit_code":["command","stderr_tail"],"stderr_tail":["command","exit_code"]}},"outcome":{"type":"string","enum":["not_started","completed","partial","unknown"]}}}}},{"type":"object","required":["name","status","seconds"],"properties":{"name":{"type":"string","enum":["preparing_image","create","code","setup","files","background","previews"]},"status":{"type":"string","enum":["running","completed","failed"]},"seconds":{"minimum":0,"allOf":[{"anyOf":[{"type":["number","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"command":{"type":"string"},"exit_code":{"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}]}}},{"type":"object","required":["launch_id","source","placement","secrets","added_secrets"],"properties":{"launch_id":{"type":"string","minLength":1},"source":{"anyOf":[{"type":"object","required":["kind","agent"],"properties":{"kind":{"const":"agent"},"agent":{"type":"string","minLength":1}}},{"type":"object","required":["kind","name","repository","ref","checkout"],"properties":{"kind":{"const":"repository"},"name":{"type":"string","minLength":1},"repository":{"type":"string","minLength":1},"ref":{"type":"string","minLength":1},"path":{"type":"string","minLength":1},"checkout":{"type":"boolean"},"command":{"type":"string","minLength":1}}},{"type":"object","required":["kind","name","image"],"properties":{"kind":{"const":"image"},"name":{"type":"string","minLength":1},"image":{"type":"string","minLength":1},"command":{"type":"string","minLength":1}}},{"type":"object","required":["kind","name"],"properties":{"kind":{"const":"manifest"},"name":{"type":"string","minLength":1}}}]},"placement":{"type":"object","required":["mode","providers"],"properties":{"mode":{"type":"string","enum":["picks","chosen"]},"providers":{"type":"array","items":{"type":"string","minLength":1}}}},"secrets":{"type":"array","items":{"type":"string","minLength":1}},"added_secrets":{"type":"array","items":{"type":"string","minLength":1}}}},{"type":"object","required":["launch_id","sandbox_id","command_started_at","timeout_seconds","state","exit_code"],"properties":{"launch_id":{"type":"string","minLength":1},"sandbox_id":{"type":"string","minLength":1},"command_started_at":{"type":"string","format":"date-time"},"timeout_seconds":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"state":{"type":"string"},"exit_code":{"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}]}}},{"type":"object","required":["repo","readable","visibility","sha","files","recipe"],"properties":{"repo":{"type":"string"},"readable":{"type":"boolean"},"visibility":{"type":["string","null"],"enum":["public","private",null]},"sha":{"type":["string","null"]},"files":{"type":["array","null"],"items":{"type":"string"}},"recipe":{"type":["object","null"],"required":["kind","hint"],"properties":{"kind":{"type":"string","enum":["manifest","dockerfile","node","python","plain"]},"hint":{"type":"string"},"command":{"type":"string"}}},"code":{"type":"string"},"message":{"type":"string"},"fix":{"type":"string"}}}]});
|
|
@@ -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;
|