@boxrouter/sdk 0.0.1-alpha.0 → 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/NOTICE +29 -5
- package/README.md +497 -24
- 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 +1 -1
- package/dist/client/client.gen.js +46 -94
- package/dist/client/index.d.ts +10 -10
- package/dist/client/index.js +16 -5
- package/dist/client/types.gen.d.ts +6 -6
- package/dist/client/types.gen.js +2 -1
- package/dist/client/utils.gen.d.ts +2 -2
- package/dist/client/utils.gen.js +31 -20
- package/dist/client.gen.d.ts +2 -2
- package/dist/client.gen.js +5 -2
- 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.js +5 -1
- package/dist/core/binaryStream.d.ts +8 -0
- package/dist/core/binaryStream.js +76 -0
- package/dist/core/bodySerializer.gen.d.ts +1 -1
- package/dist/core/bodySerializer.gen.js +8 -5
- 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.js +4 -1
- package/dist/core/pathSerializer.gen.js +20 -11
- package/dist/core/queryKeySerializer.gen.js +12 -6
- 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 +21 -62
- package/dist/core/serverSentEvents.gen.js +297 -116
- package/dist/core/streamErrors.d.ts +32 -0
- package/dist/core/streamErrors.js +51 -0
- package/dist/core/types.gen.d.ts +2 -2
- package/dist/core/types.gen.js +2 -1
- package/dist/core/utils.gen.d.ts +1 -1
- package/dist/core/utils.gen.js +16 -10
- 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 -2
- package/dist/index.js +79 -1
- 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 +2016 -12
- package/dist/sdk.gen.js +3862 -16
- 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 +14936 -110
- package/dist/types.gen.js +2 -1
- 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 +124 -14
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
module.exports = require("./compact.cjs")({"roots":{"validate0":{"$":0}},"definitions":[{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$":1}}}},{"type":"object","required":["provider","class","account_id","supply","adapter_version","gates","resources","attested","lifetime"],"properties":{"provider":{"type":"string"},"class":{"type":["string","null"]},"account_id":{"type":["string","null"]},"supply":{"type":"string"},"adapter_version":{"type":"string"},"gates":{"type":"object","additionalProperties":{"$":2}},"resources":{"type":"object","additionalProperties":true},"attested":{"type":"object","additionalProperties":true},"lifetime":{"$":3},"ranking":{"$":4},"request_overrides":{"type":"object","required":["image"],"properties":{"image":{"$":5}}}}},{"type":"object","required":["variant","basis","granted","also","settings","unavailable"],"properties":{"variant":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"basis":{"type":"string","enum":["implemented","proven"]},"granted":{"type":"object","additionalProperties":true},"also":{"type":"object","additionalProperties":true},"settings":{"type":"object","additionalProperties":true},"unavailable":{"type":["string","null"]}}},{"type":"object","required":["seconds","remaining_seconds","ends_at","kept_until","at_end","max_seconds","extendable"],"properties":{"seconds":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"remaining_seconds":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"ends_at":{"type":["string","null"],"format":"date-time"},"kept_until":{"type":["string","null"],"format":"date-time"},"at_end":{"type":"string","enum":["destroy","pause"]},"max_seconds":{"anyOf":[{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},{"type":"string","enum":["unlimited","unknown"]},{"type":"object","required":["at_least"],"properties":{"at_least":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}}}}]},"extendable":{"type":"boolean"}}},{"type":"object","required":["position","reason","explanation","price"],"properties":{"position":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"reason":{"type":"string"},"explanation":{"type":"string"},"price":{"type":"object","required":["usd_per_hour","kind","basis"],"properties":{"usd_per_hour":{"type":["string","null"],"pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},"kind":{"type":"string"},"basis":{"type":"string"}}}}},{"anyOf":[{"type":"string","const":"provider_default"},{"type":"string","minLength":1,"not":{"const":"provider_default"}},{"type":"object","required":["dockerfile"],"properties":{"dockerfile":{"type":"string","minLength":1},"context_artifact_id":{"type":"string","minLength":1}}},{"$":6},{"type":"object","required":["private_oci"],"properties":{"private_oci":{"type":"string","minLength":1}}}]},{"type":"object","required":["provider_artifact"],"properties":{"provider_artifact":{"type":"string","minLength":1}}}]});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const validate0: (value: unknown) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.validate0 = validate209;const schema206 = {"type":"object","required":["mode","provider_order","excluded_providers","allow_fallbacks","prevent_overrides","provider_funding","section_etags"],"properties":{"mode":{"$ref":"#/components/schemas/mode"},"provider_order":{"$ref":"#/components/schemas/provider_order"},"excluded_providers":{"$ref":"#/components/schemas/excluded_providers"},"allow_fallbacks":{"$ref":"#/components/schemas/allow_fallbacks"},"prevent_overrides":{"$ref":"#/components/schemas/prevent_overrides"},"provider_funding":{"type":"object","propertyNames":{"$ref":"#/components/schemas/ProviderSlug"},"additionalProperties":{"$ref":"#/components/schemas/ProviderFunding"}},"section_etags":{"type":"object","required":["routing","provider_funding"],"properties":{"routing":{"type":"string","minLength":1},"provider_funding":{"type":"object","propertyNames":{"$ref":"#/components/schemas/ProviderSlug"},"additionalProperties":{"type":"string","minLength":1}}},"description":"Opaque independent Routing and provider validators, never a document-wide ETag."}}};const schema207 = {"type":"string","enum":["automatic","cheapest","fastest","custom"],"x-boxrouter-choices":{"automatic":{"label":"Auto","line":"A random draw weighted toward lower hourly price."},"cheapest":{"label":"Cheapest","line":"Lowest hourly price first.","measure":"price","better":"lower"},"fastest":{"label":"Fastest","line":"Shortest run time measured on reference workloads first.","measure":"time","better":"lower"},"custom":{"label":"Custom","line":"Your exact provider order, top to bottom."}}};const schema212 = {"type":"boolean","description":"After a definite pre-create refusal, try only later frozen routes in the same Prioritized, Credits or Fallback group; never retry unknown outcomes or created jobs."};const schema213 = {"type":"boolean","default":false,"description":"Reject requests containing preferences.order, preferences.sort or preferences.allow_fallbacks even when identical to the default; hard request restrictions still narrow."};const schema209 = {"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-z][a-z0-9-]*$"};const schema208 = {"type":"array","uniqueItems":true,"description":"Stored in every mode; newly supported providers append in deployment order and start enabled.","items":{"$ref":"#/components/schemas/ProviderSlug"}};const func1 = require("ajv/dist/runtime/ucs2length").default;const func0 = require("ajv/dist/runtime/equal").default;const pattern42 = new RegExp("^[a-z][a-z0-9-]*$", "u");function validate210(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate210.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(Array.isArray(data)){var valid0 = true;const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs1 = errors;const _errs2 = errors;if(errors === _errs2){if(typeof data0 === "string"){if(func1(data0) > 64){validate210.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/components/schemas/ProviderSlug/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data0) < 1){validate210.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/components/schemas/ProviderSlug/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern42.test(data0)){validate210.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/components/schemas/ProviderSlug/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*$"+"\""}];return false;}}}}else {validate210.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/components/schemas/ProviderSlug/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;if(!valid0){break;}}if(valid0){let i1 = data.length;let j0;if(i1 > 1){outer0:for(;i1--;){for(j0 = i1; j0--;){if(func0(data[i1], data[j0])){validate210.errors = [{instancePath,schemaPath:"#/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 {validate210.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}validate210.errors = vErrors;return errors === 0;}validate210.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};const schema210 = {"type":"array","uniqueItems":true,"description":"Hard deny-list; connecting a key does not clear its provider's exclusion.","items":{"$ref":"#/components/schemas/ProviderSlug"}};function validate212(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate212.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(Array.isArray(data)){var valid0 = true;const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs1 = errors;const _errs2 = errors;if(errors === _errs2){if(typeof data0 === "string"){if(func1(data0) > 64){validate212.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/components/schemas/ProviderSlug/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data0) < 1){validate212.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/components/schemas/ProviderSlug/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern42.test(data0)){validate212.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/components/schemas/ProviderSlug/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*$"+"\""}];return false;}}}}else {validate212.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/components/schemas/ProviderSlug/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;if(!valid0){break;}}if(valid0){let i1 = data.length;let j0;if(i1 > 1){outer0:for(;i1--;){for(j0 = i1; j0--;){if(func0(data[i1], data[j0])){validate212.errors = [{instancePath,schemaPath:"#/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 {validate212.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}validate212.errors = vErrors;return errors === 0;}validate212.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};const schema215 = {"type":"object","required":["funding_order"],"description":"Account IDs must belong to this workspace and provider, and must be unique.\nKeys above Credits are Prioritized; keys below it are Fallback. An unavailable\nmanaged provider keeps the managed row, its position and stored credits value\nwithout becoming routable. Never-offered providers have no managed row or credits.\nA later managed offer appends an off row after keys. A new key inserts last in\nPrioritized even in Custom; deleting a key removes that row. Account mutations\nupdate only this provider section and its ETag atomically with the account.\n","properties":{"funding_order":{"type":"array","items":{"$ref":"#/components/schemas/FundingEntry"}},"credits":{"type":"boolean","description":"False preserves the managed row and position but makes it unusable."}},"allOf":[{"if":{"required":["credits"]},"then":{"properties":{"funding_order":{"contains":{"$ref":"#/components/schemas/ManagedFunding"},"minContains":1,"maxContains":1}}}},{"if":{"properties":{"funding_order":{"contains":{"$ref":"#/components/schemas/ManagedFunding"}}},"required":["funding_order"]},"then":{"required":["credits"]}},{"not":{"properties":{"funding_order":{"contains":{"$ref":"#/components/schemas/ManagedFunding"},"minContains":2}}}}]};const schema216 = {"type":"object","required":["supply"],"properties":{"supply":{"type":"string","const":"managed"}}};const schema219 = {"anyOf":[{"$ref":"#/components/schemas/FundingAccount"},{"$ref":"#/components/schemas/ManagedFunding"}]};const schema220 = {"type":"object","required":["account_id"],"properties":{"account_id":{"type":"string","minLength":1,"maxLength":128}}};function validate215(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate215.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;const _errs1 = errors;const _errs2 = errors;if(errors === _errs2){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.account_id === undefined) && (missing0 = "account_id")){const err0 = {instancePath,schemaPath:"#/components/schemas/FundingAccount/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.account_id !== undefined){let data0 = data.account_id;const _errs4 = errors;if(errors === _errs4){if(typeof data0 === "string"){if(func1(data0) > 128){const err1 = {instancePath:instancePath+"/account_id",schemaPath:"#/components/schemas/FundingAccount/properties/account_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {if(func1(data0) < 1){const err2 = {instancePath:instancePath+"/account_id",schemaPath:"#/components/schemas/FundingAccount/properties/account_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}else {const err3 = {instancePath:instancePath+"/account_id",schemaPath:"#/components/schemas/FundingAccount/properties/account_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}}}}else {const err4 = {instancePath,schemaPath:"#/components/schemas/FundingAccount/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(_valid0){var props0 = {};props0.account_id = true;}const _errs6 = errors;const _errs7 = errors;if(errors === _errs7){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((data.supply === undefined) && (missing1 = "supply")){const err5 = {instancePath,schemaPath:"#/components/schemas/ManagedFunding/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {if(data.supply !== undefined){let data1 = data.supply;if(typeof data1 !== "string"){const err6 = {instancePath:instancePath+"/supply",schemaPath:"#/components/schemas/ManagedFunding/properties/supply/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("managed" !== data1){const err7 = {instancePath:instancePath+"/supply",schemaPath:"#/components/schemas/ManagedFunding/properties/supply/const",keyword:"const",params:{allowedValue: "managed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}}else {const err8 = {instancePath,schemaPath:"#/components/schemas/ManagedFunding/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid0 = _errs6 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = props0 || {};props0.supply = true;}}if(!valid0){const err9 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;validate215.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate215.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate215.evaluated = {"dynamicProps":true,"dynamicItems":false};function validate214(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate214.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.credits === undefined) && (missing0 = "credits")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs4 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.funding_order !== undefined){let data0 = data.funding_order;if(Array.isArray(data0)){const _errs6 = errors;const len0 = data0.length;let valid3 = false;let count0 = 0;for(let i0=0; i0<len0; i0++){let data1 = data0[i0];const _errs7 = errors;const _errs8 = errors;if(errors === _errs8){if(data1 && typeof data1 == "object" && !Array.isArray(data1)){let missing1;if((data1.supply === undefined) && (missing1 = "supply")){const err1 = {instancePath:instancePath+"/funding_order/" + i0,schemaPath:"#/components/schemas/ManagedFunding/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {if(data1.supply !== undefined){let data2 = data1.supply;if(typeof data2 !== "string"){const err2 = {instancePath:instancePath+"/funding_order/" + i0+"/supply",schemaPath:"#/components/schemas/ManagedFunding/properties/supply/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("managed" !== data2){const err3 = {instancePath:instancePath+"/funding_order/" + i0+"/supply",schemaPath:"#/components/schemas/ManagedFunding/properties/supply/const",keyword:"const",params:{allowedValue: "managed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}}}else {const err4 = {instancePath:instancePath+"/funding_order/" + i0,schemaPath:"#/components/schemas/ManagedFunding/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}var _valid1 = _errs7 === errors;if(_valid1){count0++;if(count0 > 1){valid3 = false;break;}valid3 = true;}}if(!valid3){validate214.errors = [{instancePath:instancePath+"/funding_order",schemaPath:"#/allOf/0/then/properties/funding_order/contains",keyword:"contains",params:{minContains: 1, maxContains: 1},message:"must contain at least 1 and no more than 1 valid item(s)"}];return false;}else {errors = _errs6;if(vErrors !== null){if(_errs6){vErrors.length = _errs6;}else {vErrors = null;}}}}}}var _valid0 = _errs4 === errors;valid1 = _valid0;if(valid1){var props0 = {};props0.funding_order = true;}}if(!valid1){const err5 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate214.errors = vErrors;return false;}var valid0 = _errs1 === errors;if(valid0){const _errs12 = errors;const _errs13 = errors;let valid6 = true;const _errs14 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((data.funding_order === undefined) && (missing2 = "funding_order")){const err6 = {};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data.funding_order !== undefined){let data3 = data.funding_order;if(Array.isArray(data3)){const _errs16 = errors;const len1 = data3.length;for(let i1=0; i1<len1; i1++){let data4 = data3[i1];const _errs17 = errors;const _errs18 = errors;if(errors === _errs18){if(data4 && typeof data4 == "object" && !Array.isArray(data4)){let missing3;if((data4.supply === undefined) && (missing3 = "supply")){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data4.supply !== undefined){let data5 = data4.supply;if(typeof data5 !== "string"){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if("managed" !== data5){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}}else {const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}var valid8 = _errs17 === errors;if(valid8){break;}}if(!valid8){const err11 = {};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}else {errors = _errs16;if(vErrors !== null){if(_errs16){vErrors.length = _errs16;}else {vErrors = null;}}}}}}}var _valid2 = _errs14 === errors;errors = _errs13;if(vErrors !== null){if(_errs13){vErrors.length = _errs13;}else {vErrors = null;}}if(_valid2){const _errs22 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if((data.credits === undefined) && (missing4 = "credits")){validate214.errors = [{instancePath,schemaPath:"#/allOf/1/then/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"}];return false;}}var _valid2 = _errs22 === errors;valid6 = _valid2;}if(!valid6){const err12 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;validate214.errors = vErrors;return false;}var valid0 = _errs12 === errors;if(valid0){if(props0 !== true){props0 = props0 || {};props0.funding_order = true;}const _errs23 = errors;const _errs24 = errors;const _errs25 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.funding_order !== undefined){let data6 = data.funding_order;if(Array.isArray(data6)){const _errs27 = errors;const len2 = data6.length;let valid13 = false;let count1 = 0;for(let i2=0; i2<len2; i2++){let data7 = data6[i2];const _errs28 = errors;const _errs29 = errors;if(errors === _errs29){if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing5;if((data7.supply === undefined) && (missing5 = "supply")){const err13 = {};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}else {if(data7.supply !== undefined){let data8 = data7.supply;if(typeof data8 !== "string"){const err14 = {};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if("managed" !== data8){const err15 = {};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}}else {const err16 = {};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}var _valid3 = _errs28 === errors;if(_valid3){count1++;if(count1 >= 2){valid13 = true;break;}}}if(!valid13){const err17 = {};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}else {errors = _errs27;if(vErrors !== null){if(_errs27){vErrors.length = _errs27;}else {vErrors = null;}}}}}}var valid11 = _errs25 === errors;if(valid11){validate214.errors = [{instancePath,schemaPath:"#/allOf/2/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs24;if(vErrors !== null){if(_errs24){vErrors.length = _errs24;}else {vErrors = null;}}}var valid0 = _errs23 === errors;}}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing6;if((data.funding_order === undefined) && (missing6 = "funding_order")){validate214.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing6},message:"must have required property '"+missing6+"'"}];return false;}else {if(props0 !== true){props0 = props0 || {};props0.funding_order = true;props0.credits = true;}if(data.funding_order !== undefined){let data9 = data.funding_order;const _errs33 = errors;if(errors === _errs33){if(Array.isArray(data9)){var valid17 = true;const len3 = data9.length;for(let i3=0; i3<len3; i3++){const _errs35 = errors;if(!(validate215(data9[i3], {instancePath:instancePath+"/funding_order/" + i3,parentData:data9,parentDataProperty:i3,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate215.errors : vErrors.concat(validate215.errors);errors = vErrors.length;}var valid17 = _errs35 === errors;if(!valid17){break;}}}else {validate214.errors = [{instancePath:instancePath+"/funding_order",schemaPath:"#/properties/funding_order/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid16 = _errs33 === errors;}else {var valid16 = true;}if(valid16){if(data.credits !== undefined){const _errs36 = errors;if(typeof data.credits !== "boolean"){validate214.errors = [{instancePath:instancePath+"/credits",schemaPath:"#/properties/credits/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid16 = _errs36 === errors;}else {var valid16 = true;}}}}else {validate214.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate214.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate214.evaluated = {"dynamicProps":true,"dynamicItems":false};function validate209(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate209.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.mode === undefined) && (missing0 = "mode")) || ((data.provider_order === undefined) && (missing0 = "provider_order"))) || ((data.excluded_providers === undefined) && (missing0 = "excluded_providers"))) || ((data.allow_fallbacks === undefined) && (missing0 = "allow_fallbacks"))) || ((data.prevent_overrides === undefined) && (missing0 = "prevent_overrides"))) || ((data.provider_funding === undefined) && (missing0 = "provider_funding"))) || ((data.section_etags === undefined) && (missing0 = "section_etags"))){validate209.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.mode !== undefined){let data0 = data.mode;const _errs1 = errors;if(typeof data0 !== "string"){validate209.errors = [{instancePath:instancePath+"/mode",schemaPath:"#/components/schemas/mode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data0 === "automatic") || (data0 === "cheapest")) || (data0 === "fastest")) || (data0 === "custom"))){validate209.errors = [{instancePath:instancePath+"/mode",schemaPath:"#/components/schemas/mode/enum",keyword:"enum",params:{allowedValues: schema207.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.provider_order !== undefined){const _errs4 = errors;if(!(validate210(data.provider_order, {instancePath:instancePath+"/provider_order",parentData:data,parentDataProperty:"provider_order",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate210.errors : vErrors.concat(validate210.errors);errors = vErrors.length;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.excluded_providers !== undefined){const _errs5 = errors;if(!(validate212(data.excluded_providers, {instancePath:instancePath+"/excluded_providers",parentData:data,parentDataProperty:"excluded_providers",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate212.errors : vErrors.concat(validate212.errors);errors = vErrors.length;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.allow_fallbacks !== undefined){const _errs6 = errors;if(typeof data.allow_fallbacks !== "boolean"){validate209.errors = [{instancePath:instancePath+"/allow_fallbacks",schemaPath:"#/components/schemas/allow_fallbacks/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs6 === errors;}else {var valid0 = true;}if(valid0){if(data.prevent_overrides !== undefined){const _errs9 = errors;if(typeof data.prevent_overrides !== "boolean"){validate209.errors = [{instancePath:instancePath+"/prevent_overrides",schemaPath:"#/components/schemas/prevent_overrides/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.provider_funding !== undefined){let data5 = data.provider_funding;const _errs12 = errors;if(errors === _errs12){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){for(const key0 in data5){const _errs14 = errors;const _errs15 = errors;if(errors === _errs15){if(typeof key0 === "string"){if(func1(key0) > 64){const err0 = {instancePath:instancePath+"/provider_funding",schemaPath:"#/components/schemas/ProviderSlug/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters",propertyName:key0};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(func1(key0) < 1){const err1 = {instancePath:instancePath+"/provider_funding",schemaPath:"#/components/schemas/ProviderSlug/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",propertyName:key0};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {if(!pattern42.test(key0)){const err2 = {instancePath:instancePath+"/provider_funding",schemaPath:"#/components/schemas/ProviderSlug/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*$"+"\"",propertyName:key0};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}}else {const err3 = {instancePath:instancePath+"/provider_funding",schemaPath:"#/components/schemas/ProviderSlug/type",keyword:"type",params:{type: "string"},message:"must be string",propertyName:key0};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}var valid4 = _errs14 === errors;if(!valid4){const err4 = {instancePath:instancePath+"/provider_funding",schemaPath:"#/properties/provider_funding/propertyNames",keyword:"propertyNames",params:{propertyName: key0},message:"property name must be valid"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;validate209.errors = vErrors;return false;break;}}if(valid4){for(const key1 in data5){const _errs18 = errors;if(!(validate214(data5[key1], {instancePath:instancePath+"/provider_funding/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data5,parentDataProperty:key1,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate214.errors : vErrors.concat(validate214.errors);errors = vErrors.length;}var valid6 = _errs18 === errors;if(!valid6){break;}}}}else {validate209.errors = [{instancePath:instancePath+"/provider_funding",schemaPath:"#/properties/provider_funding/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs12 === errors;}else {var valid0 = true;}if(valid0){if(data.section_etags !== undefined){let data7 = data.section_etags;const _errs19 = errors;if(errors === _errs19){if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing1;if(((data7.routing === undefined) && (missing1 = "routing")) || ((data7.provider_funding === undefined) && (missing1 = "provider_funding"))){validate209.errors = [{instancePath:instancePath+"/section_etags",schemaPath:"#/properties/section_etags/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data7.routing !== undefined){let data8 = data7.routing;const _errs21 = errors;if(errors === _errs21){if(typeof data8 === "string"){if(func1(data8) < 1){validate209.errors = [{instancePath:instancePath+"/section_etags/routing",schemaPath:"#/properties/section_etags/properties/routing/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate209.errors = [{instancePath:instancePath+"/section_etags/routing",schemaPath:"#/properties/section_etags/properties/routing/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid7 = _errs21 === errors;}else {var valid7 = true;}if(valid7){if(data7.provider_funding !== undefined){let data9 = data7.provider_funding;const _errs23 = errors;if(errors === _errs23){if(data9 && typeof data9 == "object" && !Array.isArray(data9)){for(const key2 in data9){const _errs25 = errors;const _errs26 = errors;if(errors === _errs26){if(typeof key2 === "string"){if(func1(key2) > 64){const err5 = {instancePath:instancePath+"/section_etags/provider_funding",schemaPath:"#/components/schemas/ProviderSlug/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters",propertyName:key2};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {if(func1(key2) < 1){const err6 = {instancePath:instancePath+"/section_etags/provider_funding",schemaPath:"#/components/schemas/ProviderSlug/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",propertyName:key2};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(!pattern42.test(key2)){const err7 = {instancePath:instancePath+"/section_etags/provider_funding",schemaPath:"#/components/schemas/ProviderSlug/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*$"+"\"",propertyName:key2};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}}else {const err8 = {instancePath:instancePath+"/section_etags/provider_funding",schemaPath:"#/components/schemas/ProviderSlug/type",keyword:"type",params:{type: "string"},message:"must be string",propertyName:key2};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var valid8 = _errs25 === errors;if(!valid8){const err9 = {instancePath:instancePath+"/section_etags/provider_funding",schemaPath:"#/properties/section_etags/properties/provider_funding/propertyNames",keyword:"propertyNames",params:{propertyName: key2},message:"property name must be valid"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;validate209.errors = vErrors;return false;break;}}if(valid8){for(const key3 in data9){let data10 = data9[key3];const _errs29 = errors;if(errors === _errs29){if(typeof data10 === "string"){if(func1(data10) < 1){validate209.errors = [{instancePath:instancePath+"/section_etags/provider_funding/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/section_etags/properties/provider_funding/additionalProperties/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate209.errors = [{instancePath:instancePath+"/section_etags/provider_funding/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/section_etags/properties/provider_funding/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid10 = _errs29 === errors;if(!valid10){break;}}}}else {validate209.errors = [{instancePath:instancePath+"/section_etags/provider_funding",schemaPath:"#/properties/section_etags/properties/provider_funding/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid7 = _errs23 === errors;}else {var valid7 = true;}}}}else {validate209.errors = [{instancePath:instancePath+"/section_etags",schemaPath:"#/properties/section_etags/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs19 === errors;}else {var valid0 = true;}}}}}}}}}else {validate209.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate209.errors = vErrors;return errors === 0;}validate209.evaluated = {"props":{"mode":true,"provider_order":true,"excluded_providers":true,"allow_fallbacks":true,"prevent_overrides":true,"provider_funding":true,"section_etags":true},"dynamicProps":false,"dynamicItems":false};exports.validate1 = validate218;function validate218(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate218.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.mode === undefined) && (missing0 = "mode")) || ((data.provider_order === undefined) && (missing0 = "provider_order"))) || ((data.excluded_providers === undefined) && (missing0 = "excluded_providers"))) || ((data.allow_fallbacks === undefined) && (missing0 = "allow_fallbacks"))) || ((data.prevent_overrides === undefined) && (missing0 = "prevent_overrides"))) || ((data.provider_funding === undefined) && (missing0 = "provider_funding"))) || ((data.section_etags === undefined) && (missing0 = "section_etags"))){validate218.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.mode !== undefined){let data0 = data.mode;const _errs1 = errors;if(typeof data0 !== "string"){validate218.errors = [{instancePath:instancePath+"/mode",schemaPath:"#/components/schemas/mode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data0 === "automatic") || (data0 === "cheapest")) || (data0 === "fastest")) || (data0 === "custom"))){validate218.errors = [{instancePath:instancePath+"/mode",schemaPath:"#/components/schemas/mode/enum",keyword:"enum",params:{allowedValues: schema207.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.provider_order !== undefined){const _errs4 = errors;if(!(validate210(data.provider_order, {instancePath:instancePath+"/provider_order",parentData:data,parentDataProperty:"provider_order",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate210.errors : vErrors.concat(validate210.errors);errors = vErrors.length;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.excluded_providers !== undefined){const _errs5 = errors;if(!(validate212(data.excluded_providers, {instancePath:instancePath+"/excluded_providers",parentData:data,parentDataProperty:"excluded_providers",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate212.errors : vErrors.concat(validate212.errors);errors = vErrors.length;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.allow_fallbacks !== undefined){const _errs6 = errors;if(typeof data.allow_fallbacks !== "boolean"){validate218.errors = [{instancePath:instancePath+"/allow_fallbacks",schemaPath:"#/components/schemas/allow_fallbacks/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs6 === errors;}else {var valid0 = true;}if(valid0){if(data.prevent_overrides !== undefined){const _errs9 = errors;if(typeof data.prevent_overrides !== "boolean"){validate218.errors = [{instancePath:instancePath+"/prevent_overrides",schemaPath:"#/components/schemas/prevent_overrides/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.provider_funding !== undefined){let data5 = data.provider_funding;const _errs12 = errors;if(errors === _errs12){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){for(const key0 in data5){const _errs14 = errors;const _errs15 = errors;if(errors === _errs15){if(typeof key0 === "string"){if(func1(key0) > 64){const err0 = {instancePath:instancePath+"/provider_funding",schemaPath:"#/components/schemas/ProviderSlug/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters",propertyName:key0};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(func1(key0) < 1){const err1 = {instancePath:instancePath+"/provider_funding",schemaPath:"#/components/schemas/ProviderSlug/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",propertyName:key0};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {if(!pattern42.test(key0)){const err2 = {instancePath:instancePath+"/provider_funding",schemaPath:"#/components/schemas/ProviderSlug/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*$"+"\"",propertyName:key0};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}}else {const err3 = {instancePath:instancePath+"/provider_funding",schemaPath:"#/components/schemas/ProviderSlug/type",keyword:"type",params:{type: "string"},message:"must be string",propertyName:key0};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}var valid4 = _errs14 === errors;if(!valid4){const err4 = {instancePath:instancePath+"/provider_funding",schemaPath:"#/properties/provider_funding/propertyNames",keyword:"propertyNames",params:{propertyName: key0},message:"property name must be valid"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;validate218.errors = vErrors;return false;break;}}if(valid4){for(const key1 in data5){const _errs18 = errors;if(!(validate214(data5[key1], {instancePath:instancePath+"/provider_funding/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data5,parentDataProperty:key1,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate214.errors : vErrors.concat(validate214.errors);errors = vErrors.length;}var valid6 = _errs18 === errors;if(!valid6){break;}}}}else {validate218.errors = [{instancePath:instancePath+"/provider_funding",schemaPath:"#/properties/provider_funding/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs12 === errors;}else {var valid0 = true;}if(valid0){if(data.section_etags !== undefined){let data7 = data.section_etags;const _errs19 = errors;if(errors === _errs19){if(data7 && typeof data7 == "object" && !Array.isArray(data7)){let missing1;if(((data7.routing === undefined) && (missing1 = "routing")) || ((data7.provider_funding === undefined) && (missing1 = "provider_funding"))){validate218.errors = [{instancePath:instancePath+"/section_etags",schemaPath:"#/properties/section_etags/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data7.routing !== undefined){let data8 = data7.routing;const _errs21 = errors;if(errors === _errs21){if(typeof data8 === "string"){if(func1(data8) < 1){validate218.errors = [{instancePath:instancePath+"/section_etags/routing",schemaPath:"#/properties/section_etags/properties/routing/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate218.errors = [{instancePath:instancePath+"/section_etags/routing",schemaPath:"#/properties/section_etags/properties/routing/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid7 = _errs21 === errors;}else {var valid7 = true;}if(valid7){if(data7.provider_funding !== undefined){let data9 = data7.provider_funding;const _errs23 = errors;if(errors === _errs23){if(data9 && typeof data9 == "object" && !Array.isArray(data9)){for(const key2 in data9){const _errs25 = errors;const _errs26 = errors;if(errors === _errs26){if(typeof key2 === "string"){if(func1(key2) > 64){const err5 = {instancePath:instancePath+"/section_etags/provider_funding",schemaPath:"#/components/schemas/ProviderSlug/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters",propertyName:key2};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {if(func1(key2) < 1){const err6 = {instancePath:instancePath+"/section_etags/provider_funding",schemaPath:"#/components/schemas/ProviderSlug/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters",propertyName:key2};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(!pattern42.test(key2)){const err7 = {instancePath:instancePath+"/section_etags/provider_funding",schemaPath:"#/components/schemas/ProviderSlug/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*$"+"\"",propertyName:key2};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}}else {const err8 = {instancePath:instancePath+"/section_etags/provider_funding",schemaPath:"#/components/schemas/ProviderSlug/type",keyword:"type",params:{type: "string"},message:"must be string",propertyName:key2};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var valid8 = _errs25 === errors;if(!valid8){const err9 = {instancePath:instancePath+"/section_etags/provider_funding",schemaPath:"#/properties/section_etags/properties/provider_funding/propertyNames",keyword:"propertyNames",params:{propertyName: key2},message:"property name must be valid"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;validate218.errors = vErrors;return false;break;}}if(valid8){for(const key3 in data9){let data10 = data9[key3];const _errs29 = errors;if(errors === _errs29){if(typeof data10 === "string"){if(func1(data10) < 1){validate218.errors = [{instancePath:instancePath+"/section_etags/provider_funding/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/section_etags/properties/provider_funding/additionalProperties/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate218.errors = [{instancePath:instancePath+"/section_etags/provider_funding/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/section_etags/properties/provider_funding/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid10 = _errs29 === errors;if(!valid10){break;}}}}else {validate218.errors = [{instancePath:instancePath+"/section_etags/provider_funding",schemaPath:"#/properties/section_etags/properties/provider_funding/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid7 = _errs23 === errors;}else {var valid7 = true;}}}}else {validate218.errors = [{instancePath:instancePath+"/section_etags",schemaPath:"#/properties/section_etags/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs19 === errors;}else {var valid0 = true;}}}}}}}}}else {validate218.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate218.errors = vErrors;return errors === 0;}validate218.evaluated = {"props":{"mode":true,"provider_order":true,"excluded_providers":true,"allow_fallbacks":true,"prevent_overrides":true,"provider_funding":true,"section_etags":true},"dynamicProps":false,"dynamicItems":false};exports.validate2 = validate222;const schema229 = {"type":"object","required":["learning","can_start","skipped","worst_case_usd","credits_cover_cpu"],"properties":{"learning":{"type":"string","x-boxrouter-open-enum":true},"can_start":{"type":"boolean"},"skipped":{"type":"array","items":{"$ref":"#/components/schemas/RoutingSkipped"}},"worst_case_usd":{"type":"array","items":{"$ref":"#/components/schemas/RoutingSizeQuote"},"description":"Per-Actions-size quoted holds; empty if no managed quote is available."},"credits_cover_cpu":{"minimum":0,"description":"Largest quoted Actions CPU floor covered by balance; null when unavailable.","allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}}}};const schema232 = {"type":"object","required":["size","worst_case_usd"],"properties":{"size":{"type":"string","minLength":1,"description":"Published Actions runner size label."},"worst_case_usd":{"type":"string","pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"Full fixed-lifetime hold (run plus pickup) in USD, not a workspace cap."}}};const schema230 = {"type":"object","required":["provider","reason"],"anyOf":[{"required":["account_id"]},{"required":["supply"]}],"properties":{"provider":{"$ref":"#/components/schemas/ProviderSlug"},"account_id":{"type":"string","minLength":1,"maxLength":128},"supply":{"type":"string","const":"managed"},"reason":{"type":"string","x-boxrouter-open-enum":true},"action":{"type":"string","x-boxrouter-open-enum":true,"description":"Permitted recovery action, omitted when none is available."}}};function validate223(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate223.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs1 = errors;let valid0 = false;const _errs2 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.account_id === undefined) && (missing0 = "account_id")){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}var _valid0 = _errs2 === errors;valid0 = valid0 || _valid0;const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((data.supply === undefined) && (missing1 = "supply")){const err1 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}var _valid0 = _errs3 === errors;valid0 = valid0 || _valid0;if(!valid0){const err2 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate223.errors = vErrors;return false;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((data.provider === undefined) && (missing2 = "provider")) || ((data.reason === undefined) && (missing2 = "reason"))){validate223.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(data.provider !== undefined){let data0 = data.provider;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data0 === "string"){if(func1(data0) > 64){validate223.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/components/schemas/ProviderSlug/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data0) < 1){validate223.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/components/schemas/ProviderSlug/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern42.test(data0)){validate223.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/components/schemas/ProviderSlug/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*$"+"\""}];return false;}}}}else {validate223.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/components/schemas/ProviderSlug/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.account_id !== undefined){let data1 = data.account_id;const _errs7 = errors;if(errors === _errs7){if(typeof data1 === "string"){if(func1(data1) > 128){validate223.errors = [{instancePath:instancePath+"/account_id",schemaPath:"#/properties/account_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data1) < 1){validate223.errors = [{instancePath:instancePath+"/account_id",schemaPath:"#/properties/account_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate223.errors = [{instancePath:instancePath+"/account_id",schemaPath:"#/properties/account_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.supply !== undefined){let data2 = data.supply;const _errs9 = errors;if(typeof data2 !== "string"){validate223.errors = [{instancePath:instancePath+"/supply",schemaPath:"#/properties/supply/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("managed" !== data2){validate223.errors = [{instancePath:instancePath+"/supply",schemaPath:"#/properties/supply/const",keyword:"const",params:{allowedValue: "managed"},message:"must be equal to constant"}];return false;}var valid1 = _errs9 === errors;}else {var valid1 = true;}if(valid1){if(data.reason !== undefined){const _errs11 = errors;if(typeof data.reason !== "string"){validate223.errors = [{instancePath:instancePath+"/reason",schemaPath:"#/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs11 === errors;}else {var valid1 = true;}if(valid1){if(data.action !== undefined){const _errs13 = errors;if(typeof data.action !== "string"){validate223.errors = [{instancePath:instancePath+"/action",schemaPath:"#/properties/action/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs13 === errors;}else {var valid1 = true;}}}}}}}else {validate223.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate223.errors = vErrors;return errors === 0;}validate223.evaluated = {"props":{"provider":true,"account_id":true,"supply":true,"reason":true,"action":true},"dynamicProps":false,"dynamicItems":false};const pattern50 = new RegExp("^(0|[1-9][0-9]*)(\\.[0-9]+)?$", "u");function validate222(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate222.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.learning === undefined) && (missing0 = "learning")) || ((data.can_start === undefined) && (missing0 = "can_start"))) || ((data.skipped === undefined) && (missing0 = "skipped"))) || ((data.worst_case_usd === undefined) && (missing0 = "worst_case_usd"))) || ((data.credits_cover_cpu === undefined) && (missing0 = "credits_cover_cpu"))){validate222.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.learning !== undefined){const _errs1 = errors;if(typeof data.learning !== "string"){validate222.errors = [{instancePath:instancePath+"/learning",schemaPath:"#/properties/learning/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.can_start !== undefined){const _errs3 = errors;if(typeof data.can_start !== "boolean"){validate222.errors = [{instancePath:instancePath+"/can_start",schemaPath:"#/properties/can_start/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.skipped !== undefined){let data2 = data.skipped;const _errs5 = errors;if(errors === _errs5){if(Array.isArray(data2)){var valid1 = true;const len0 = data2.length;for(let i0=0; i0<len0; i0++){const _errs7 = errors;if(!(validate223(data2[i0], {instancePath:instancePath+"/skipped/" + i0,parentData:data2,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate223.errors : vErrors.concat(validate223.errors);errors = vErrors.length;}var valid1 = _errs7 === errors;if(!valid1){break;}}}else {validate222.errors = [{instancePath:instancePath+"/skipped",schemaPath:"#/properties/skipped/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.worst_case_usd !== undefined){let data4 = data.worst_case_usd;const _errs8 = errors;if(errors === _errs8){if(Array.isArray(data4)){var valid2 = true;const len1 = data4.length;for(let i1=0; i1<len1; i1++){let data5 = data4[i1];const _errs10 = errors;const _errs11 = errors;if(errors === _errs11){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){let missing1;if(((data5.size === undefined) && (missing1 = "size")) || ((data5.worst_case_usd === undefined) && (missing1 = "worst_case_usd"))){validate222.errors = [{instancePath:instancePath+"/worst_case_usd/" + i1,schemaPath:"#/components/schemas/RoutingSizeQuote/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data5.size !== undefined){let data6 = data5.size;const _errs13 = errors;if(errors === _errs13){if(typeof data6 === "string"){if(func1(data6) < 1){validate222.errors = [{instancePath:instancePath+"/worst_case_usd/" + i1+"/size",schemaPath:"#/components/schemas/RoutingSizeQuote/properties/size/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate222.errors = [{instancePath:instancePath+"/worst_case_usd/" + i1+"/size",schemaPath:"#/components/schemas/RoutingSizeQuote/properties/size/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs13 === errors;}else {var valid4 = true;}if(valid4){if(data5.worst_case_usd !== undefined){let data7 = data5.worst_case_usd;const _errs15 = errors;if(errors === _errs15){if(typeof data7 === "string"){if(!pattern50.test(data7)){validate222.errors = [{instancePath:instancePath+"/worst_case_usd/" + i1+"/worst_case_usd",schemaPath:"#/components/schemas/RoutingSizeQuote/properties/worst_case_usd/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""}];return false;}}else {validate222.errors = [{instancePath:instancePath+"/worst_case_usd/" + i1+"/worst_case_usd",schemaPath:"#/components/schemas/RoutingSizeQuote/properties/worst_case_usd/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs15 === errors;}else {var valid4 = true;}}}}else {validate222.errors = [{instancePath:instancePath+"/worst_case_usd/" + i1,schemaPath:"#/components/schemas/RoutingSizeQuote/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid2 = _errs10 === errors;if(!valid2){break;}}}else {validate222.errors = [{instancePath:instancePath+"/worst_case_usd",schemaPath:"#/properties/worst_case_usd/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs8 === errors;}else {var valid0 = true;}if(valid0){if(data.credits_cover_cpu !== undefined){let data8 = data.credits_cover_cpu;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)))) && (data8 !== null)){const err0 = {instancePath:instancePath+"/credits_cover_cpu",schemaPath:"#/properties/credits_cover_cpu/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema229.properties.credits_cover_cpu.allOf[0].anyOf[0].type},message:"must be integer,null"};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+"/credits_cover_cpu",schemaPath:"#/properties/credits_cover_cpu/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+"/credits_cover_cpu",schemaPath:"#/properties/credits_cover_cpu/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate222.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 < 0){validate222.errors = [{instancePath:instancePath+"/credits_cover_cpu",schemaPath:"#/properties/credits_cover_cpu/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 < 0 || isNaN(data8)){validate222.errors = [{instancePath:instancePath+"/credits_cover_cpu",schemaPath:"#/properties/credits_cover_cpu/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs17 === errors;}else {var valid0 = true;}}}}}}}else {validate222.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate222.errors = vErrors;return errors === 0;}validate222.evaluated = {"props":{"learning":true,"can_start":true,"skipped":true,"worst_case_usd":true,"credits_cover_cpu":true},"dynamicProps":false,"dynamicItems":false};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
module.exports = require("./compact.cjs")({"roots":{"validate0":{"$":0},"validate1":{"$":0},"validate2":{"$":11}},"definitions":[{"type":"object","required":["mode","provider_order","excluded_providers","allow_fallbacks","prevent_overrides","provider_funding","section_etags"],"properties":{"mode":{"$":1},"provider_order":{"$":2},"excluded_providers":{"$":4},"allow_fallbacks":{"$":5},"prevent_overrides":{"$":6},"provider_funding":{"type":"object","propertyNames":{"$":3},"additionalProperties":{"$":7}},"section_etags":{"type":"object","required":["routing","provider_funding"],"properties":{"routing":{"type":"string","minLength":1},"provider_funding":{"type":"object","propertyNames":{"$":3},"additionalProperties":{"type":"string","minLength":1}}}}}},{"type":"string","enum":["automatic","cheapest","fastest","custom"]},{"type":"array","uniqueItems":true,"items":{"$":3}},{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-z][a-z0-9-]*$"},{"type":"array","uniqueItems":true,"items":{"$":3}},{"type":"boolean"},{"type":"boolean"},{"type":"object","required":["funding_order"],"properties":{"funding_order":{"type":"array","items":{"$":8}},"credits":{"type":"boolean"}},"allOf":[{"if":{"required":["credits"]},"then":{"properties":{"funding_order":{"contains":{"$":10},"minContains":1,"maxContains":1}}}},{"if":{"properties":{"funding_order":{"contains":{"$":10}}},"required":["funding_order"]},"then":{"required":["credits"]}},{"not":{"properties":{"funding_order":{"contains":{"$":10},"minContains":2}}}}]},{"anyOf":[{"$":9},{"$":10}]},{"type":"object","required":["account_id"],"properties":{"account_id":{"type":"string","minLength":1,"maxLength":128}}},{"type":"object","required":["supply"],"properties":{"supply":{"type":"string","const":"managed"}}},{"type":"object","required":["learning","can_start","skipped","worst_case_usd","credits_cover_cpu"],"properties":{"learning":{"type":"string"},"can_start":{"type":"boolean"},"skipped":{"type":"array","items":{"$":12}},"worst_case_usd":{"type":"array","items":{"$":13}},"credits_cover_cpu":{"minimum":0,"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}}}},{"type":"object","required":["provider","reason"],"anyOf":[{"required":["account_id"]},{"required":["supply"]}],"properties":{"provider":{"$":3},"account_id":{"type":"string","minLength":1,"maxLength":128},"supply":{"type":"string","const":"managed"},"reason":{"type":"string"},"action":{"type":"string"}}},{"type":"object","required":["size","worst_case_usd"],"properties":{"size":{"type":"string","minLength":1},"worst_case_usd":{"type":"string","pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"}}}]});
|