@boxrouter/sdk 0.0.0-stage → 0.12.190
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/NOTICE +40 -0
- package/README.md +508 -2
- package/dist/addresses.d.ts +5 -0
- package/dist/addresses.js +10 -0
- package/dist/api-error.d.ts +62 -0
- package/dist/api-error.js +264 -0
- package/dist/boxrouter.d.ts +68 -0
- package/dist/boxrouter.js +291 -0
- package/dist/browser-session/index.d.ts +17 -0
- package/dist/browser-session/index.js +48 -0
- package/dist/browser-session/operations.gen.d.ts +272 -0
- package/dist/browser-session/operations.gen.js +58 -0
- package/dist/browser-session/responseContracts/api_keys.d.ts +2 -0
- package/dist/browser-session/responseContracts/api_keys.js +10 -0
- package/dist/browser-session/responseContracts/credits.d.ts +2 -0
- package/dist/browser-session/responseContracts/credits.js +8 -0
- package/dist/browser-session/responseContracts/github.d.ts +2 -0
- package/dist/browser-session/responseContracts/github.js +11 -0
- package/dist/browser-session/responseContracts/identity.d.ts +2 -0
- package/dist/browser-session/responseContracts/identity.js +30 -0
- package/dist/browser-session/responseContracts/organizations.d.ts +2 -0
- package/dist/browser-session/responseContracts/organizations.js +17 -0
- package/dist/browser-session/responseContracts/privacy.d.ts +2 -0
- package/dist/browser-session/responseContracts/privacy.js +7 -0
- package/dist/browser-session/responseContracts.gen.d.ts +3 -0
- package/dist/browser-session/responseContracts.gen.js +10 -0
- package/dist/browser-session/responseValidators/api_keys-diagnostics.cjs +1 -0
- package/dist/browser-session/responseValidators/api_keys-diagnostics.d.cts +4 -0
- package/dist/browser-session/responseValidators/api_keys.cjs +2 -0
- package/dist/browser-session/responseValidators/api_keys.d.cts +4 -0
- package/dist/browser-session/responseValidators/credits-diagnostics.cjs +1 -0
- package/dist/browser-session/responseValidators/credits-diagnostics.d.cts +3 -0
- package/dist/browser-session/responseValidators/credits.cjs +2 -0
- package/dist/browser-session/responseValidators/credits.d.cts +3 -0
- package/dist/browser-session/responseValidators/github-diagnostics.cjs +1 -0
- package/dist/browser-session/responseValidators/github-diagnostics.d.cts +3 -0
- package/dist/browser-session/responseValidators/github.cjs +2 -0
- package/dist/browser-session/responseValidators/github.d.cts +3 -0
- package/dist/browser-session/responseValidators/identity-diagnostics.cjs +1 -0
- package/dist/browser-session/responseValidators/identity-diagnostics.d.cts +23 -0
- package/dist/browser-session/responseValidators/identity.cjs +2 -0
- package/dist/browser-session/responseValidators/identity.d.cts +23 -0
- package/dist/browser-session/responseValidators/organizations-diagnostics.cjs +1 -0
- package/dist/browser-session/responseValidators/organizations-diagnostics.d.cts +15 -0
- package/dist/browser-session/responseValidators/organizations.cjs +2 -0
- package/dist/browser-session/responseValidators/organizations.d.cts +15 -0
- package/dist/browser-session/responseValidators/privacy-diagnostics.cjs +1 -0
- package/dist/browser-session/responseValidators/privacy-diagnostics.d.cts +2 -0
- package/dist/browser-session/responseValidators/privacy.cjs +2 -0
- package/dist/browser-session/responseValidators/privacy.d.cts +2 -0
- package/dist/client/client.gen.d.ts +2 -0
- package/dist/client/client.gen.js +168 -0
- package/dist/client/index.d.ts +10 -0
- package/dist/client/index.js +17 -0
- package/dist/client/types.gen.d.ts +120 -0
- package/dist/client/types.gen.js +3 -0
- package/dist/client/utils.gen.d.ts +37 -0
- package/dist/client/utils.gen.js +239 -0
- package/dist/client.gen.d.ts +12 -0
- package/dist/client.gen.js +6 -0
- package/dist/command-check.gen.d.ts +14 -0
- package/dist/command-check.gen.js +23 -0
- package/dist/command-input.gen.d.ts +6 -0
- package/dist/command-input.gen.js +45 -0
- package/dist/core/auth.gen.d.ts +25 -0
- package/dist/core/auth.gen.js +18 -0
- package/dist/core/binaryStream.d.ts +8 -0
- package/dist/core/binaryStream.js +76 -0
- package/dist/core/bodySerializer.gen.d.ts +25 -0
- package/dist/core/bodySerializer.gen.js +60 -0
- package/dist/core/commandValidators.cjs +1 -0
- package/dist/core/commandValidators.d.cts +14 -0
- package/dist/core/eventValidation.d.ts +17 -0
- package/dist/core/eventValidation.js +56 -0
- package/dist/core/eventValidators.cjs +1 -0
- package/dist/core/eventValidators.d.cts +2 -0
- package/dist/core/json.d.ts +3 -0
- package/dist/core/json.js +33 -0
- package/dist/core/params.gen.d.ts +43 -0
- package/dist/core/params.gen.js +112 -0
- package/dist/core/pathSerializer.gen.d.ts +33 -0
- package/dist/core/pathSerializer.gen.js +115 -0
- package/dist/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/core/queryKeySerializer.gen.js +98 -0
- package/dist/core/responseContracts/actions.d.ts +2 -0
- package/dist/core/responseContracts/actions.js +30 -0
- package/dist/core/responseContracts/agents.d.ts +2 -0
- package/dist/core/responseContracts/agents.js +7 -0
- package/dist/core/responseContracts/artifacts.d.ts +2 -0
- package/dist/core/responseContracts/artifacts.js +8 -0
- package/dist/core/responseContracts/commands.d.ts +2 -0
- package/dist/core/responseContracts/commands.js +6 -0
- package/dist/core/responseContracts/credits.d.ts +2 -0
- package/dist/core/responseContracts/credits.js +27 -0
- package/dist/core/responseContracts/files.d.ts +2 -0
- package/dist/core/responseContracts/files.js +15 -0
- package/dist/core/responseContracts/github.d.ts +2 -0
- package/dist/core/responseContracts/github.js +8 -0
- package/dist/core/responseContracts/images.d.ts +2 -0
- package/dist/core/responseContracts/images.js +8 -0
- package/dist/core/responseContracts/launchRuns.d.ts +2 -0
- package/dist/core/responseContracts/launchRuns.js +10 -0
- package/dist/core/responseContracts/launches.d.ts +2 -0
- package/dist/core/responseContracts/launches.js +10 -0
- package/dist/core/responseContracts/operations.d.ts +2 -0
- package/dist/core/responseContracts/operations.js +7 -0
- package/dist/core/responseContracts/previews.d.ts +2 -0
- package/dist/core/responseContracts/previews.js +8 -0
- package/dist/core/responseContracts/pricing.d.ts +2 -0
- package/dist/core/responseContracts/pricing.js +6 -0
- package/dist/core/responseContracts/processes.d.ts +2 -0
- package/dist/core/responseContracts/processes.js +11 -0
- package/dist/core/responseContracts/provider_accounts.d.ts +2 -0
- package/dist/core/responseContracts/provider_accounts.js +13 -0
- package/dist/core/responseContracts/providers.d.ts +2 -0
- package/dist/core/responseContracts/providers.js +6 -0
- package/dist/core/responseContracts/routing.d.ts +2 -0
- package/dist/core/responseContracts/routing.js +8 -0
- package/dist/core/responseContracts/sandboxes.d.ts +2 -0
- package/dist/core/responseContracts/sandboxes.js +15 -0
- package/dist/core/responseContracts/secrets.d.ts +2 -0
- package/dist/core/responseContracts/secrets.js +8 -0
- package/dist/core/responseContracts/spend_limits.d.ts +2 -0
- package/dist/core/responseContracts/spend_limits.js +8 -0
- package/dist/core/responseContracts/terminals.d.ts +2 -0
- package/dist/core/responseContracts/terminals.js +11 -0
- package/dist/core/responseContracts/usage.d.ts +2 -0
- package/dist/core/responseContracts/usage.js +7 -0
- package/dist/core/responseContracts/volumes.d.ts +2 -0
- package/dist/core/responseContracts/volumes.js +19 -0
- package/dist/core/responseContracts.gen.d.ts +3 -0
- package/dist/core/responseContracts.gen.js +27 -0
- package/dist/core/responseModes.d.ts +19 -0
- package/dist/core/responseModes.js +13 -0
- package/dist/core/responseValidation.d.ts +44 -0
- package/dist/core/responseValidation.js +174 -0
- package/dist/core/responseValidators/actions-diagnostics.cjs +4 -0
- package/dist/core/responseValidators/actions-diagnostics.d.cts +24 -0
- package/dist/core/responseValidators/actions.cjs +2 -0
- package/dist/core/responseValidators/actions.d.cts +24 -0
- package/dist/core/responseValidators/agents-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/agents-diagnostics.d.cts +2 -0
- package/dist/core/responseValidators/agents.cjs +2 -0
- package/dist/core/responseValidators/agents.d.cts +2 -0
- package/dist/core/responseValidators/artifacts-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/artifacts-diagnostics.d.cts +2 -0
- package/dist/core/responseValidators/artifacts.cjs +2 -0
- package/dist/core/responseValidators/artifacts.d.cts +2 -0
- package/dist/core/responseValidators/commands-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/commands-diagnostics.d.cts +1 -0
- package/dist/core/responseValidators/commands.cjs +2 -0
- package/dist/core/responseValidators/commands.d.cts +1 -0
- package/dist/core/responseValidators/compact.cjs +122 -0
- package/dist/core/responseValidators/credits-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/credits-diagnostics.d.cts +21 -0
- package/dist/core/responseValidators/credits.cjs +2 -0
- package/dist/core/responseValidators/credits.d.cts +21 -0
- package/dist/core/responseValidators/files-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/files-diagnostics.d.cts +5 -0
- package/dist/core/responseValidators/files.cjs +2 -0
- package/dist/core/responseValidators/files.d.cts +5 -0
- package/dist/core/responseValidators/github-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/github-diagnostics.d.cts +2 -0
- package/dist/core/responseValidators/github.cjs +2 -0
- package/dist/core/responseValidators/github.d.cts +2 -0
- package/dist/core/responseValidators/images-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/images-diagnostics.d.cts +3 -0
- package/dist/core/responseValidators/images.cjs +2 -0
- package/dist/core/responseValidators/images.d.cts +3 -0
- package/dist/core/responseValidators/launchRuns-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/launchRuns-diagnostics.d.cts +5 -0
- package/dist/core/responseValidators/launchRuns.cjs +2 -0
- package/dist/core/responseValidators/launchRuns.d.cts +5 -0
- package/dist/core/responseValidators/launches-diagnostics.cjs +10 -0
- package/dist/core/responseValidators/launches-diagnostics.d.cts +5 -0
- package/dist/core/responseValidators/launches.cjs +2 -0
- package/dist/core/responseValidators/launches.d.cts +5 -0
- package/dist/core/responseValidators/operations-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/operations-diagnostics.d.cts +2 -0
- package/dist/core/responseValidators/operations.cjs +2 -0
- package/dist/core/responseValidators/operations.d.cts +2 -0
- package/dist/core/responseValidators/previews-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/previews-diagnostics.d.cts +3 -0
- package/dist/core/responseValidators/previews.cjs +2 -0
- package/dist/core/responseValidators/previews.d.cts +3 -0
- package/dist/core/responseValidators/pricing-diagnostics.cjs +7 -0
- package/dist/core/responseValidators/pricing-diagnostics.d.cts +1 -0
- package/dist/core/responseValidators/pricing.cjs +2 -0
- package/dist/core/responseValidators/pricing.d.cts +1 -0
- package/dist/core/responseValidators/processes-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/processes-diagnostics.d.cts +2 -0
- package/dist/core/responseValidators/processes.cjs +2 -0
- package/dist/core/responseValidators/processes.d.cts +2 -0
- package/dist/core/responseValidators/provider_accounts-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/provider_accounts-diagnostics.d.cts +8 -0
- package/dist/core/responseValidators/provider_accounts.cjs +2 -0
- package/dist/core/responseValidators/provider_accounts.d.cts +8 -0
- package/dist/core/responseValidators/providers-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/providers-diagnostics.d.cts +1 -0
- package/dist/core/responseValidators/providers.cjs +2 -0
- package/dist/core/responseValidators/providers.d.cts +1 -0
- package/dist/core/responseValidators/routing-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/routing-diagnostics.d.cts +3 -0
- package/dist/core/responseValidators/routing.cjs +2 -0
- package/dist/core/responseValidators/routing.d.cts +3 -0
- package/dist/core/responseValidators/sandboxes-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/sandboxes-diagnostics.d.cts +10 -0
- package/dist/core/responseValidators/sandboxes.cjs +2 -0
- package/dist/core/responseValidators/sandboxes.d.cts +10 -0
- package/dist/core/responseValidators/secrets-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/secrets-diagnostics.d.cts +1 -0
- package/dist/core/responseValidators/secrets.cjs +2 -0
- package/dist/core/responseValidators/secrets.d.cts +1 -0
- package/dist/core/responseValidators/spend_limits-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/spend_limits-diagnostics.d.cts +3 -0
- package/dist/core/responseValidators/spend_limits.cjs +2 -0
- package/dist/core/responseValidators/spend_limits.d.cts +3 -0
- package/dist/core/responseValidators/terminals-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/terminals-diagnostics.d.cts +2 -0
- package/dist/core/responseValidators/terminals.cjs +2 -0
- package/dist/core/responseValidators/terminals.d.cts +2 -0
- package/dist/core/responseValidators/usage-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/usage-diagnostics.d.cts +1 -0
- package/dist/core/responseValidators/usage.cjs +2 -0
- package/dist/core/responseValidators/usage.d.cts +1 -0
- package/dist/core/responseValidators/volumes-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/volumes-diagnostics.d.cts +10 -0
- package/dist/core/responseValidators/volumes.cjs +2 -0
- package/dist/core/responseValidators/volumes.d.cts +10 -0
- package/dist/core/serverSentEvents.gen.d.ts +30 -0
- package/dist/core/serverSentEvents.gen.js +313 -0
- package/dist/core/streamErrors.d.ts +32 -0
- package/dist/core/streamErrors.js +51 -0
- package/dist/core/types.gen.d.ts +83 -0
- package/dist/core/types.gen.js +3 -0
- package/dist/core/utils.gen.d.ts +19 -0
- package/dist/core/utils.gen.js +93 -0
- package/dist/creation.gen.d.ts +21 -0
- package/dist/creation.gen.js +35 -0
- package/dist/data-origin.d.ts +25 -0
- package/dist/data-origin.js +57 -0
- package/dist/error-codes.gen.d.ts +2 -0
- package/dist/error-codes.gen.js +2 -0
- package/dist/idempotency.gen.d.ts +1 -0
- package/dist/idempotency.gen.js +60 -0
- package/dist/images.d.ts +74 -0
- package/dist/images.js +88 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +80 -0
- package/dist/launch-input.gen.d.ts +9 -0
- package/dist/launch-input.gen.js +83 -0
- package/dist/launch.d.ts +28 -0
- package/dist/launch.js +222 -0
- package/dist/namespace-actions.d.mts +307 -0
- package/dist/namespace-actions.mjs +595 -0
- package/dist/namespace-agents.d.mts +33 -0
- package/dist/namespace-agents.mjs +40 -0
- package/dist/namespace-artifacts.d.mts +46 -0
- package/dist/namespace-artifacts.mjs +69 -0
- package/dist/namespace-base.d.mts +7 -0
- package/dist/namespace-base.mjs +7 -0
- package/dist/namespace-commands.d.mts +57 -0
- package/dist/namespace-commands.mjs +57 -0
- package/dist/namespace-credits.d.mts +213 -0
- package/dist/namespace-credits.mjs +476 -0
- package/dist/namespace-files.d.mts +203 -0
- package/dist/namespace-files.mjs +334 -0
- package/dist/namespace-github.d.mts +50 -0
- package/dist/namespace-github.mjs +68 -0
- package/dist/namespace-images.d.mts +52 -0
- package/dist/namespace-images.mjs +78 -0
- package/dist/namespace-launch_runs.d.mts +89 -0
- package/dist/namespace-launch_runs.mjs +133 -0
- package/dist/namespace-launches.d.mts +89 -0
- package/dist/namespace-launches.mjs +133 -0
- package/dist/namespace-operations.d.mts +45 -0
- package/dist/namespace-operations.mjs +52 -0
- package/dist/namespace-previews.d.mts +79 -0
- package/dist/namespace-previews.mjs +101 -0
- package/dist/namespace-pricing.d.mts +31 -0
- package/dist/namespace-pricing.mjs +22 -0
- package/dist/namespace-processes.d.mts +125 -0
- package/dist/namespace-processes.mjs +184 -0
- package/dist/namespace-provider_accounts.d.mts +156 -0
- package/dist/namespace-provider_accounts.mjs +241 -0
- package/dist/namespace-providers.d.mts +28 -0
- package/dist/namespace-providers.mjs +24 -0
- package/dist/namespace-routing.d.mts +64 -0
- package/dist/namespace-routing.mjs +86 -0
- package/dist/namespace-sandboxes.d.mts +287 -0
- package/dist/namespace-sandboxes.mjs +402 -0
- package/dist/namespace-secrets.d.mts +46 -0
- package/dist/namespace-secrets.mjs +68 -0
- package/dist/namespace-spend_limits.d.mts +48 -0
- package/dist/namespace-spend_limits.mjs +70 -0
- package/dist/namespace-terminals.d.mts +112 -0
- package/dist/namespace-terminals.mjs +177 -0
- package/dist/namespace-usage.d.mts +46 -0
- package/dist/namespace-usage.mjs +53 -0
- package/dist/namespace-volumes.d.mts +110 -0
- package/dist/namespace-volumes.mjs +269 -0
- package/dist/operations.d.ts +14 -0
- package/dist/operations.js +31 -0
- package/dist/retry.d.ts +8 -0
- package/dist/retry.js +63 -0
- package/dist/routing-choices.gen.d.ts +132 -0
- package/dist/routing-choices.gen.js +136 -0
- package/dist/routing.d.ts +23 -0
- package/dist/routing.js +38 -0
- package/dist/sandbox-handle.gen.d.ts +8 -0
- package/dist/sandbox-handle.gen.js +14 -0
- package/dist/sandboxes.d.ts +213 -0
- package/dist/sandboxes.js +507 -0
- package/dist/sdk.gen.d.ts +2029 -0
- package/dist/sdk.gen.js +3862 -0
- package/dist/server-timing.d.ts +19 -0
- package/dist/server-timing.gen.d.ts +265 -0
- package/dist/server-timing.gen.js +254 -0
- package/dist/server-timing.js +421 -0
- package/dist/spend-limits.d.ts +17 -0
- package/dist/spend-limits.js +26 -0
- package/dist/telemetry.d.ts +51 -0
- package/dist/telemetry.gen.d.ts +1 -0
- package/dist/telemetry.gen.js +5 -0
- package/dist/telemetry.js +438 -0
- package/dist/terminal.d.ts +61 -0
- package/dist/terminal.js +266 -0
- package/dist/transfer.d.ts +75 -0
- package/dist/transfer.js +389 -0
- package/dist/types.gen.d.ts +15016 -0
- package/dist/types.gen.js +3 -0
- package/dist/user-agent.d.ts +2 -0
- package/dist/user-agent.js +18 -0
- package/dist/version.gen.d.ts +1 -0
- package/dist/version.gen.js +5 -0
- package/dist/volumes.d.ts +33 -0
- package/dist/volumes.js +221 -0
- package/dist/waits.d.ts +31 -0
- package/dist/waits.js +42 -0
- package/dist/workflow-policy.gen.d.ts +41 -0
- package/dist/workflow-policy.gen.js +45 -0
- package/package.json +135 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.validate0 = validate491;const schema684 = {"type":"object","required":["id","name","provider","status","credential_version","settings"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"provider":{"type":"string"},"status":{"type":"string","description":"Known states are pending, enabled, invalid_credentials, credentials_rejected and unavailable.\nPending is a legacy state for an account saved before provider approval. Enabled means\nhosted BYOK is approved and the provider did not reject the credentials when they were saved.\ninvalid_credentials and unavailable remain readable for older records. credentials_rejected\nmeans a later provider call rejected the saved access; credential_failure gives a safe cause\nand the action needed to restore it.\n"},"settings":{"description":"Non-secret credential fields saved with the credentials, named as in credential_fields. Legacy accounts may return an empty object. Secrets are never returned; credential_hints may return the last four characters and credential_prefixes only a declared public prefix.","type":"object","additionalProperties":{"type":"string"}},"credential_version":{"minimum":1,"description":"Monotonic version. Contains no key material or key fingerprint; credential_hints and credential_prefixes may return only the last four characters and a declared public prefix, respectively.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"credential_hints":{"type":"object","description":"Last four characters of saved secret credential fields that contain at least 12 characters. No other key material is returned.","additionalProperties":{"type":"string","pattern":"^.{4}$"}},"credential_prefixes":{"type":"object","description":"Declared public prefixes for saved secret credential fields, returned only when the saved value starts with the declared prefix and at least eight characters remain hidden before the last four. No other key material is returned.","additionalProperties":{"type":"string","pattern":"^[a-z0-9]{2,8}[_-]$"}},"credential_failure":{"anyOf":[{"$ref":"#/components/schemas/ProviderCredentialFailure"},{"type":"null"}],"description":"Present when a later provider call rejected the saved credentials or access."},"standard_image":{"$ref":"#/components/schemas/ProviderStandardImage"},"disconnect":{"anyOf":[{"$ref":"#/components/schemas/ProviderAccountDisconnect"},{"type":"null"}],"description":"A removal accepted with `wait=false` that is still running or was refused; null otherwise."},"warnings":{"type":"array","description":"Notices about this connect. Present only on the response that created the account, and\nonly when there is something to say.\n","items":{"$ref":"#/components/schemas/ProviderAccountWarning"}}}};const schema689 = {"type":"object","required":["code","message"],"properties":{"code":{"type":"string","x-boxrouter-open-enum":true,"description":"duplicate_credential: another account of this workspace has the same provider, settings\nand last four characters of every secret. New values may appear.\n"},"message":{"type":"string","description":"What was noticed and what to do about it."},"account_id":{"type":"string","description":"The other account the notice is about."}}};const pattern342 = new RegExp("^.{4}$", "u");const pattern343 = new RegExp("^[a-z0-9]{2,8}[_-]$", "u");const schema685 = {"type":"object","required":["state","status","cause","remedy","detected_at"],"properties":{"state":{"type":"string","const":"credentials_rejected"},"status":{"enum":[401,403],"description":"Provider HTTP status returned by the rejected call.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}]},"cause":{"type":"string","x-boxrouter-open-enum":true,"description":"Safe normalized cause; provider response bodies and credential values are excluded."},"remedy":{"type":"string","minLength":1,"description":"The action needed to restore access, based on the provider and HTTP status."},"detected_at":{"type":"string","format":"date-time"}}};const func1 = require("ajv/dist/runtime/ucs2length").default;const formats0 = require("ajv-formats/dist/formats").fullFormats["date-time"];function validate492(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate492.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.state === undefined) && (missing0 = "state")) || ((data.status === undefined) && (missing0 = "status"))) || ((data.cause === undefined) && (missing0 = "cause"))) || ((data.remedy === undefined) && (missing0 = "remedy"))) || ((data.detected_at === undefined) && (missing0 = "detected_at"))){validate492.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.state !== undefined){let data0 = data.state;const _errs1 = errors;if(typeof data0 !== "string"){validate492.errors = [{instancePath:instancePath+"/state",schemaPath:"#/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("credentials_rejected" !== data0){validate492.errors = [{instancePath:instancePath+"/state",schemaPath:"#/properties/state/const",keyword:"const",params:{allowedValue: "credentials_rejected"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.status !== undefined){let data1 = data.status;const _errs3 = errors;if(!((data1 === 401) || (data1 === 403))){validate492.errors = [{instancePath:instancePath+"/status",schemaPath:"#/properties/status/enum",keyword:"enum",params:{allowedValues: schema685.properties.status.enum},message:"must be equal to one of the allowed values"}];return false;}else {const _errs5 = errors;let valid2 = false;const _errs6 = errors;if(!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))){const err0 = {instancePath:instancePath+"/status",schemaPath:"#/properties/status/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+"/status",schemaPath:"#/properties/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 = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs8 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/status",schemaPath:"#/properties/status/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate492.errors = vErrors;return false;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.cause !== undefined){const _errs9 = errors;if(typeof data.cause !== "string"){validate492.errors = [{instancePath:instancePath+"/cause",schemaPath:"#/properties/cause/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.remedy !== undefined){let data3 = data.remedy;const _errs11 = errors;if(errors === _errs11){if(typeof data3 === "string"){if(func1(data3) < 1){validate492.errors = [{instancePath:instancePath+"/remedy",schemaPath:"#/properties/remedy/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate492.errors = [{instancePath:instancePath+"/remedy",schemaPath:"#/properties/remedy/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.detected_at !== undefined){let data4 = data.detected_at;const _errs13 = errors;if(errors === _errs13){if(errors === _errs13){if(typeof data4 === "string"){if(!(formats0.validate(data4))){validate492.errors = [{instancePath:instancePath+"/detected_at",schemaPath:"#/properties/detected_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate492.errors = [{instancePath:instancePath+"/detected_at",schemaPath:"#/properties/detected_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs13 === errors;}else {var valid0 = true;}}}}}}}else {validate492.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate492.errors = vErrors;return errors === 0;}validate492.evaluated = {"props":{"state":true,"status":true,"cause":true,"remedy":true,"detected_at":true},"dynamicProps":false,"dynamicItems":false};const schema686 = {"type":"object","required":["state","region","image_version","image_digest","reason","fix","checked_at"],"anyOf":[{"properties":{"state":{"const":"ready"},"reason":{"type":"null"},"fix":{"type":"null"}},"required":["state","reason","fix"]},{"properties":{"state":{"const":"preparing"},"reason":{"type":"null"},"fix":{"type":"null"}},"required":["state","reason","fix"]},{"properties":{"state":{"const":"failed"},"reason":{"type":"string","minLength":1},"fix":{"type":"string","minLength":1}},"required":["state","reason","fix"]},{"properties":{"state":{"const":"unavailable"},"fix":{"type":"string","minLength":1}},"required":["state"]}],"properties":{"state":{"type":"string","enum":["ready","preparing","failed","unavailable"]},"region":{"type":"string"},"image_version":{"type":"string"},"image_digest":{"type":"string"},"reason":{"type":["string","null"],"description":"Provider's reason when setup failed, or the reason this account cannot use the standard image."},"fix":{"type":["string","null"],"description":"The one action needed to establish readiness or recover from a failed setup."},"checked_at":{"type":["string","null"],"format":"date-time"}}};function validate494(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate494.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.state === undefined) && (missing0 = "state")) || ((data.reason === undefined) && (missing0 = "reason"))) || ((data.fix === undefined) && (missing0 = "fix"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.state !== undefined){const _errs3 = errors;if("ready" !== data.state){const err1 = {instancePath:instancePath+"/state",schemaPath:"#/anyOf/0/properties/state/const",keyword:"const",params:{allowedValue: "ready"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.reason !== undefined){const _errs4 = errors;if(data.reason !== null){const err2 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/0/properties/reason/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.fix !== undefined){const _errs6 = errors;if(data.fix !== null){const err3 = {instancePath:instancePath+"/fix",schemaPath:"#/anyOf/0/properties/fix/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs6 === errors;}else {var valid1 = true;}}}}}var _valid0 = _errs2 === errors;valid0 = valid0 || _valid0;if(_valid0){var props0 = {};props0.state = true;props0.reason = true;props0.fix = true;}const _errs8 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((data.state === undefined) && (missing1 = "state")) || ((data.reason === undefined) && (missing1 = "reason"))) || ((data.fix === undefined) && (missing1 = "fix"))){const err4 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}else {if(data.state !== undefined){const _errs9 = errors;if("preparing" !== data.state){const err5 = {instancePath:instancePath+"/state",schemaPath:"#/anyOf/1/properties/state/const",keyword:"const",params:{allowedValue: "preparing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid2 = _errs9 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){const _errs10 = errors;if(data.reason !== null){const err6 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var valid2 = _errs10 === errors;}else {var valid2 = true;}if(valid2){if(data.fix !== undefined){const _errs12 = errors;if(data.fix !== null){const err7 = {instancePath:instancePath+"/fix",schemaPath:"#/anyOf/1/properties/fix/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid2 = _errs12 === errors;}else {var valid2 = true;}}}}}var _valid0 = _errs8 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = props0 || {};props0.state = true;props0.reason = true;props0.fix = true;}}const _errs14 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((((data.state === undefined) && (missing2 = "state")) || ((data.reason === undefined) && (missing2 = "reason"))) || ((data.fix === undefined) && (missing2 = "fix"))){const err8 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data.state !== undefined){const _errs15 = errors;if("failed" !== data.state){const err9 = {instancePath:instancePath+"/state",schemaPath:"#/anyOf/2/properties/state/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var valid3 = _errs15 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data7 = data.reason;const _errs16 = errors;if(errors === _errs16){if(typeof data7 === "string"){if(func1(data7) < 1){const err10 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}else {const err11 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}var valid3 = _errs16 === errors;}else {var valid3 = true;}if(valid3){if(data.fix !== undefined){let data8 = data.fix;const _errs18 = errors;if(errors === _errs18){if(typeof data8 === "string"){if(func1(data8) < 1){const err12 = {instancePath:instancePath+"/fix",schemaPath:"#/anyOf/2/properties/fix/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/fix",schemaPath:"#/anyOf/2/properties/fix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}var valid3 = _errs18 === errors;}else {var valid3 = true;}}}}}var _valid0 = _errs14 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = props0 || {};props0.state = true;props0.reason = true;props0.fix = true;}}const _errs20 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((data.state === undefined) && (missing3 = "state")){const err14 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}else {if(data.state !== undefined){const _errs21 = errors;if("unavailable" !== data.state){const err15 = {instancePath:instancePath+"/state",schemaPath:"#/anyOf/3/properties/state/const",keyword:"const",params:{allowedValue: "unavailable"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var valid4 = _errs21 === errors;}else {var valid4 = true;}if(valid4){if(data.fix !== undefined){let data10 = data.fix;const _errs22 = errors;if(errors === _errs22){if(typeof data10 === "string"){if(func1(data10) < 1){const err16 = {instancePath:instancePath+"/fix",schemaPath:"#/anyOf/3/properties/fix/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+"/fix",schemaPath:"#/anyOf/3/properties/fix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}var valid4 = _errs22 === errors;}else {var valid4 = true;}}}}var _valid0 = _errs20 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = props0 || {};props0.state = true;props0.fix = true;}}if(!valid0){const err18 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;validate494.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 missing4;if((((((((data.state === undefined) && (missing4 = "state")) || ((data.region === undefined) && (missing4 = "region"))) || ((data.image_version === undefined) && (missing4 = "image_version"))) || ((data.image_digest === undefined) && (missing4 = "image_digest"))) || ((data.reason === undefined) && (missing4 = "reason"))) || ((data.fix === undefined) && (missing4 = "fix"))) || ((data.checked_at === undefined) && (missing4 = "checked_at"))){validate494.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"}];return false;}else {if(props0 !== true){props0 = props0 || {};props0.state = true;props0.region = true;props0.image_version = true;props0.image_digest = true;props0.reason = true;props0.fix = true;props0.checked_at = true;}if(data.state !== undefined){let data11 = data.state;const _errs24 = errors;if(typeof data11 !== "string"){validate494.errors = [{instancePath:instancePath+"/state",schemaPath:"#/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data11 === "ready") || (data11 === "preparing")) || (data11 === "failed")) || (data11 === "unavailable"))){validate494.errors = [{instancePath:instancePath+"/state",schemaPath:"#/properties/state/enum",keyword:"enum",params:{allowedValues: schema686.properties.state.enum},message:"must be equal to one of the allowed values"}];return false;}var valid5 = _errs24 === errors;}else {var valid5 = true;}if(valid5){if(data.region !== undefined){const _errs26 = errors;if(typeof data.region !== "string"){validate494.errors = [{instancePath:instancePath+"/region",schemaPath:"#/properties/region/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs26 === errors;}else {var valid5 = true;}if(valid5){if(data.image_version !== undefined){const _errs28 = errors;if(typeof data.image_version !== "string"){validate494.errors = [{instancePath:instancePath+"/image_version",schemaPath:"#/properties/image_version/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs28 === errors;}else {var valid5 = true;}if(valid5){if(data.image_digest !== undefined){const _errs30 = errors;if(typeof data.image_digest !== "string"){validate494.errors = [{instancePath:instancePath+"/image_digest",schemaPath:"#/properties/image_digest/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs30 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data15 = data.reason;const _errs32 = errors;if((typeof data15 !== "string") && (data15 !== null)){validate494.errors = [{instancePath:instancePath+"/reason",schemaPath:"#/properties/reason/type",keyword:"type",params:{type: schema686.properties.reason.type},message:"must be string,null"}];return false;}var valid5 = _errs32 === errors;}else {var valid5 = true;}if(valid5){if(data.fix !== undefined){let data16 = data.fix;const _errs34 = errors;if((typeof data16 !== "string") && (data16 !== null)){validate494.errors = [{instancePath:instancePath+"/fix",schemaPath:"#/properties/fix/type",keyword:"type",params:{type: schema686.properties.fix.type},message:"must be string,null"}];return false;}var valid5 = _errs34 === errors;}else {var valid5 = true;}if(valid5){if(data.checked_at !== undefined){let data17 = data.checked_at;const _errs36 = errors;if((typeof data17 !== "string") && (data17 !== null)){validate494.errors = [{instancePath:instancePath+"/checked_at",schemaPath:"#/properties/checked_at/type",keyword:"type",params:{type: schema686.properties.checked_at.type},message:"must be string,null"}];return false;}if(errors === _errs36){if(errors === _errs36){if(typeof data17 === "string"){if(!(formats0.validate(data17))){validate494.errors = [{instancePath:instancePath+"/checked_at",schemaPath:"#/properties/checked_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid5 = _errs36 === errors;}else {var valid5 = true;}}}}}}}}}else {validate494.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate494.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate494.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema687 = {"type":"object","required":["state","started_at","finished_at","error"],"description":"Progress of a removal accepted with `wait=false`. A finished removal leaves no account\n(404), so there is no completed state. A removal still disconnecting ten minutes after\nit started was stopped with its server and reads as failed; remove the account again.\n","properties":{"state":{"type":"string","x-boxrouter-open-enum":true},"started_at":{"type":"string","format":"date-time"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"error":{"description":"Present when state is failed. The same code, message and fix the synchronous request returns as its refusal.","anyOf":[{"$ref":"#/components/schemas/ProviderAccountDisconnectError"},{"type":"null"}]}}};const schema688 = {"type":"object","required":["code","message","fix","request_id","details"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"fix":{"type":["string","null"]},"request_id":{"type":["string","null"],"description":"The removal request's ID."},"details":{"type":"object","description":"Code-specific context, such as `sandbox_ids` naming the live sandboxes in the way."}}};function validate496(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate496.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.state === undefined) && (missing0 = "state")) || ((data.started_at === undefined) && (missing0 = "started_at"))) || ((data.finished_at === undefined) && (missing0 = "finished_at"))) || ((data.error === undefined) && (missing0 = "error"))){validate496.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.state !== undefined){const _errs1 = errors;if(typeof data.state !== "string"){validate496.errors = [{instancePath:instancePath+"/state",schemaPath:"#/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.started_at !== undefined){let data1 = data.started_at;const _errs3 = errors;if(errors === _errs3){if(errors === _errs3){if(typeof data1 === "string"){if(!(formats0.validate(data1))){validate496.errors = [{instancePath:instancePath+"/started_at",schemaPath:"#/properties/started_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate496.errors = [{instancePath:instancePath+"/started_at",schemaPath:"#/properties/started_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.finished_at !== undefined){let data2 = data.finished_at;const _errs5 = errors;const _errs6 = errors;let valid1 = false;const _errs7 = errors;if(errors === _errs7){if(errors === _errs7){if(typeof data2 === "string"){if(!(formats0.validate(data2))){const err0 = {instancePath:instancePath+"/finished_at",schemaPath:"#/properties/finished_at/anyOf/0/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}else {const err1 = {instancePath:instancePath+"/finished_at",schemaPath:"#/properties/finished_at/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}var _valid0 = _errs7 === errors;valid1 = valid1 || _valid0;const _errs9 = errors;if(data2 !== null){const err2 = {instancePath:instancePath+"/finished_at",schemaPath:"#/properties/finished_at/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var _valid0 = _errs9 === errors;valid1 = valid1 || _valid0;if(!valid1){const err3 = {instancePath:instancePath+"/finished_at",schemaPath:"#/properties/finished_at/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;validate496.errors = vErrors;return false;}else {errors = _errs6;if(vErrors !== null){if(_errs6){vErrors.length = _errs6;}else {vErrors = null;}}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.error !== undefined){let data3 = data.error;const _errs11 = errors;const _errs12 = errors;let valid2 = false;const _errs13 = errors;const _errs14 = errors;if(errors === _errs14){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((((((data3.code === undefined) && (missing1 = "code")) || ((data3.message === undefined) && (missing1 = "message"))) || ((data3.fix === undefined) && (missing1 = "fix"))) || ((data3.request_id === undefined) && (missing1 = "request_id"))) || ((data3.details === undefined) && (missing1 = "details"))){const err4 = {instancePath:instancePath+"/error",schemaPath:"#/components/schemas/ProviderAccountDisconnectError/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}else {if(data3.code !== undefined){const _errs16 = errors;if(typeof data3.code !== "string"){const err5 = {instancePath:instancePath+"/error/code",schemaPath:"#/components/schemas/ProviderAccountDisconnectError/properties/code/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid4 = _errs16 === errors;}else {var valid4 = true;}if(valid4){if(data3.message !== undefined){const _errs18 = errors;if(typeof data3.message !== "string"){const err6 = {instancePath:instancePath+"/error/message",schemaPath:"#/components/schemas/ProviderAccountDisconnectError/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var valid4 = _errs18 === errors;}else {var valid4 = true;}if(valid4){if(data3.fix !== undefined){let data6 = data3.fix;const _errs20 = errors;if((typeof data6 !== "string") && (data6 !== null)){const err7 = {instancePath:instancePath+"/error/fix",schemaPath:"#/components/schemas/ProviderAccountDisconnectError/properties/fix/type",keyword:"type",params:{type: schema688.properties.fix.type},message:"must be string,null"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid4 = _errs20 === errors;}else {var valid4 = true;}if(valid4){if(data3.request_id !== undefined){let data7 = data3.request_id;const _errs22 = errors;if((typeof data7 !== "string") && (data7 !== null)){const err8 = {instancePath:instancePath+"/error/request_id",schemaPath:"#/components/schemas/ProviderAccountDisconnectError/properties/request_id/type",keyword:"type",params:{type: schema688.properties.request_id.type},message:"must be string,null"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid4 = _errs22 === errors;}else {var valid4 = true;}if(valid4){if(data3.details !== undefined){let data8 = data3.details;const _errs24 = errors;if(!(data8 && typeof data8 == "object" && !Array.isArray(data8))){const err9 = {instancePath:instancePath+"/error/details",schemaPath:"#/components/schemas/ProviderAccountDisconnectError/properties/details/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var valid4 = _errs24 === errors;}else {var valid4 = true;}}}}}}}else {const err10 = {instancePath:instancePath+"/error",schemaPath:"#/components/schemas/ProviderAccountDisconnectError/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}var _valid1 = _errs13 === errors;valid2 = valid2 || _valid1;if(_valid1){var props0 = {};props0.code = true;props0.message = true;props0.fix = true;props0.request_id = true;props0.details = true;}const _errs26 = errors;if(data3 !== 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 _valid1 = _errs26 === errors;valid2 = valid2 || _valid1;if(!valid2){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++;validate496.errors = vErrors;return false;}else {errors = _errs12;if(vErrors !== null){if(_errs12){vErrors.length = _errs12;}else {vErrors = null;}}}var valid0 = _errs11 === errors;}else {var valid0 = true;}}}}}}else {validate496.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate496.errors = vErrors;return errors === 0;}validate496.evaluated = {"props":{"state":true,"started_at":true,"finished_at":true,"error":true},"dynamicProps":false,"dynamicItems":false};function validate491(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate491.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.name === undefined) && (missing0 = "name"))) || ((data.provider === undefined) && (missing0 = "provider"))) || ((data.status === undefined) && (missing0 = "status"))) || ((data.credential_version === undefined) && (missing0 = "credential_version"))) || ((data.settings === undefined) && (missing0 = "settings"))){validate491.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.id !== undefined){const _errs1 = errors;if(typeof data.id !== "string"){validate491.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.name !== undefined){const _errs3 = errors;if(typeof data.name !== "string"){validate491.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.provider !== undefined){const _errs5 = errors;if(typeof data.provider !== "string"){validate491.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.status !== undefined){const _errs7 = errors;if(typeof data.status !== "string"){validate491.errors = [{instancePath:instancePath+"/status",schemaPath:"#/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.settings !== undefined){let data4 = data.settings;const _errs9 = errors;if(errors === _errs9){if(data4 && typeof data4 == "object" && !Array.isArray(data4)){for(const key0 in data4){const _errs12 = errors;if(typeof data4[key0] !== "string"){validate491.errors = [{instancePath:instancePath+"/settings/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/settings/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs12 === errors;if(!valid1){break;}}}else {validate491.errors = [{instancePath:instancePath+"/settings",schemaPath:"#/properties/settings/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.credential_version !== undefined){let data6 = data.credential_version;const _errs14 = errors;const _errs15 = errors;const _errs16 = errors;let valid3 = false;const _errs17 = errors;if(!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))){const err0 = {instancePath:instancePath+"/credential_version",schemaPath:"#/properties/credential_version/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 = _errs17 === errors;valid3 = valid3 || _valid0;const _errs19 = errors;if(typeof data6 !== "bigint"){const err1 = {instancePath:instancePath+"/credential_version",schemaPath:"#/properties/credential_version/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 = _errs19 === errors;valid3 = valid3 || _valid0;if(!valid3){const err2 = {instancePath:instancePath+"/credential_version",schemaPath:"#/properties/credential_version/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate491.errors = vErrors;return false;}else {errors = _errs16;if(vErrors !== null){if(_errs16){vErrors.length = _errs16;}else {vErrors = null;}}}var valid2 = _errs15 === errors;if(valid2){if(typeof data6 === "bigint"){if(data6 < 1){validate491.errors = [{instancePath:instancePath+"/credential_version",schemaPath:"#/properties/credential_version/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs14){if((typeof data6 == "number") && (isFinite(data6))){if(data6 < 1 || isNaN(data6)){validate491.errors = [{instancePath:instancePath+"/credential_version",schemaPath:"#/properties/credential_version/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs14 === errors;}else {var valid0 = true;}if(valid0){if(data.credential_hints !== undefined){let data7 = data.credential_hints;const _errs20 = errors;if(errors === _errs20){if(data7 && typeof data7 == "object" && !Array.isArray(data7)){for(const key1 in data7){let data8 = data7[key1];const _errs23 = errors;if(errors === _errs23){if(typeof data8 === "string"){if(!pattern342.test(data8)){validate491.errors = [{instancePath:instancePath+"/credential_hints/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/credential_hints/additionalProperties/pattern",keyword:"pattern",params:{pattern: "^.{4}$"},message:"must match pattern \""+"^.{4}$"+"\""}];return false;}}else {validate491.errors = [{instancePath:instancePath+"/credential_hints/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/credential_hints/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs23 === errors;if(!valid4){break;}}}else {validate491.errors = [{instancePath:instancePath+"/credential_hints",schemaPath:"#/properties/credential_hints/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs20 === errors;}else {var valid0 = true;}if(valid0){if(data.credential_prefixes !== undefined){let data9 = data.credential_prefixes;const _errs25 = errors;if(errors === _errs25){if(data9 && typeof data9 == "object" && !Array.isArray(data9)){for(const key2 in data9){let data10 = data9[key2];const _errs28 = errors;if(errors === _errs28){if(typeof data10 === "string"){if(!pattern343.test(data10)){validate491.errors = [{instancePath:instancePath+"/credential_prefixes/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/credential_prefixes/additionalProperties/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]{2,8}[_-]$"},message:"must match pattern \""+"^[a-z0-9]{2,8}[_-]$"+"\""}];return false;}}else {validate491.errors = [{instancePath:instancePath+"/credential_prefixes/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/credential_prefixes/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs28 === errors;if(!valid5){break;}}}else {validate491.errors = [{instancePath:instancePath+"/credential_prefixes",schemaPath:"#/properties/credential_prefixes/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs25 === errors;}else {var valid0 = true;}if(valid0){if(data.credential_failure !== undefined){let data11 = data.credential_failure;const _errs30 = errors;const _errs31 = errors;let valid6 = false;const _errs32 = errors;if(!(validate492(data11, {instancePath:instancePath+"/credential_failure",parentData:data,parentDataProperty:"credential_failure",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate492.errors : vErrors.concat(validate492.errors);errors = vErrors.length;}var _valid1 = _errs32 === errors;valid6 = valid6 || _valid1;if(_valid1){var props0 = {};props0.state = true;props0.status = true;props0.cause = true;props0.remedy = true;props0.detected_at = true;}const _errs33 = errors;if(data11 !== null){const err3 = {instancePath:instancePath+"/credential_failure",schemaPath:"#/properties/credential_failure/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs33 === errors;valid6 = valid6 || _valid1;if(!valid6){const err4 = {instancePath:instancePath+"/credential_failure",schemaPath:"#/properties/credential_failure/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;validate491.errors = vErrors;return false;}else {errors = _errs31;if(vErrors !== null){if(_errs31){vErrors.length = _errs31;}else {vErrors = null;}}}var valid0 = _errs30 === errors;}else {var valid0 = true;}if(valid0){if(data.standard_image !== undefined){const _errs35 = errors;if(!(validate494(data.standard_image, {instancePath:instancePath+"/standard_image",parentData:data,parentDataProperty:"standard_image",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate494.errors : vErrors.concat(validate494.errors);errors = vErrors.length;}var valid0 = _errs35 === errors;}else {var valid0 = true;}if(valid0){if(data.disconnect !== undefined){let data13 = data.disconnect;const _errs36 = errors;const _errs37 = errors;let valid7 = false;const _errs38 = errors;if(!(validate496(data13, {instancePath:instancePath+"/disconnect",parentData:data,parentDataProperty:"disconnect",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate496.errors : vErrors.concat(validate496.errors);errors = vErrors.length;}var _valid2 = _errs38 === errors;valid7 = valid7 || _valid2;if(_valid2){var props2 = {};props2.state = true;props2.started_at = true;props2.finished_at = true;props2.error = true;}const _errs39 = errors;if(data13 !== null){const err5 = {instancePath:instancePath+"/disconnect",schemaPath:"#/properties/disconnect/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var _valid2 = _errs39 === errors;valid7 = valid7 || _valid2;if(!valid7){const err6 = {instancePath:instancePath+"/disconnect",schemaPath:"#/properties/disconnect/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;validate491.errors = vErrors;return false;}else {errors = _errs37;if(vErrors !== null){if(_errs37){vErrors.length = _errs37;}else {vErrors = null;}}}var valid0 = _errs36 === errors;}else {var valid0 = true;}if(valid0){if(data.warnings !== undefined){let data14 = data.warnings;const _errs41 = errors;if(errors === _errs41){if(Array.isArray(data14)){var valid8 = true;const len0 = data14.length;for(let i0=0; i0<len0; i0++){let data15 = data14[i0];const _errs43 = errors;const _errs44 = errors;if(errors === _errs44){if(data15 && typeof data15 == "object" && !Array.isArray(data15)){let missing1;if(((data15.code === undefined) && (missing1 = "code")) || ((data15.message === undefined) && (missing1 = "message"))){validate491.errors = [{instancePath:instancePath+"/warnings/" + i0,schemaPath:"#/components/schemas/ProviderAccountWarning/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data15.code !== undefined){const _errs46 = errors;if(typeof data15.code !== "string"){validate491.errors = [{instancePath:instancePath+"/warnings/" + i0+"/code",schemaPath:"#/components/schemas/ProviderAccountWarning/properties/code/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid10 = _errs46 === errors;}else {var valid10 = true;}if(valid10){if(data15.message !== undefined){const _errs48 = errors;if(typeof data15.message !== "string"){validate491.errors = [{instancePath:instancePath+"/warnings/" + i0+"/message",schemaPath:"#/components/schemas/ProviderAccountWarning/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid10 = _errs48 === errors;}else {var valid10 = true;}if(valid10){if(data15.account_id !== undefined){const _errs50 = errors;if(typeof data15.account_id !== "string"){validate491.errors = [{instancePath:instancePath+"/warnings/" + i0+"/account_id",schemaPath:"#/components/schemas/ProviderAccountWarning/properties/account_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid10 = _errs50 === errors;}else {var valid10 = true;}}}}}else {validate491.errors = [{instancePath:instancePath+"/warnings/" + i0,schemaPath:"#/components/schemas/ProviderAccountWarning/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid8 = _errs43 === errors;if(!valid8){break;}}}else {validate491.errors = [{instancePath:instancePath+"/warnings",schemaPath:"#/properties/warnings/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs41 === errors;}else {var valid0 = true;}}}}}}}}}}}}}}else {validate491.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate491.errors = vErrors;return errors === 0;}validate491.evaluated = {"props":{"id":true,"name":true,"provider":true,"status":true,"settings":true,"credential_version":true,"credential_hints":true,"credential_prefixes":true,"credential_failure":true,"standard_image":true,"disconnect":true,"warnings":true},"dynamicProps":false,"dynamicItems":false};exports.validate1 = validate498;const schema690 = {"type":"object","required":["data","next_cursor","available_providers","credential_fields"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ProviderAccount"}},"next_cursor":{"type":["string","null"]},"available_providers":{"description":"Providers this deployment currently enables for saving, testing and using accounts. Independent of this page's account rows.","type":"array","uniqueItems":true,"items":{"type":"string"}},"provider_metadata":{"description":"Public, static presentation metadata keyed by provider ID. This does not indicate whether the provider is approved; use available_providers for that.","type":"object","additionalProperties":{"type":"object","required":["display_name"],"properties":{"display_name":{"type":"string"},"credential_help_url":{"type":"string"}}}},"credential_fields":{"description":"The credential fields each available provider's connect, replace and test requests take, in the order the provider declares them.","type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/CredentialField"}}}}};const schema693 = {"type":"object","required":["name","secret","required"],"properties":{"name":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"label":{"type":"string","description":"Public display label for this credential field."},"placeholder":{"type":"string","description":"Static input hint; never a credential value or default."},"secret":{"type":"boolean","description":"A secret is write-only; a saved one shows only in credential_hints and credential_prefixes."},"required":{"type":"boolean"}}};function validate499(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate499.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.name === undefined) && (missing0 = "name"))) || ((data.provider === undefined) && (missing0 = "provider"))) || ((data.status === undefined) && (missing0 = "status"))) || ((data.credential_version === undefined) && (missing0 = "credential_version"))) || ((data.settings === undefined) && (missing0 = "settings"))){validate499.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.id !== undefined){const _errs1 = errors;if(typeof data.id !== "string"){validate499.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.name !== undefined){const _errs3 = errors;if(typeof data.name !== "string"){validate499.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.provider !== undefined){const _errs5 = errors;if(typeof data.provider !== "string"){validate499.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.status !== undefined){const _errs7 = errors;if(typeof data.status !== "string"){validate499.errors = [{instancePath:instancePath+"/status",schemaPath:"#/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.settings !== undefined){let data4 = data.settings;const _errs9 = errors;if(errors === _errs9){if(data4 && typeof data4 == "object" && !Array.isArray(data4)){for(const key0 in data4){const _errs12 = errors;if(typeof data4[key0] !== "string"){validate499.errors = [{instancePath:instancePath+"/settings/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/settings/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs12 === errors;if(!valid1){break;}}}else {validate499.errors = [{instancePath:instancePath+"/settings",schemaPath:"#/properties/settings/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.credential_version !== undefined){let data6 = data.credential_version;const _errs14 = errors;const _errs15 = errors;const _errs16 = errors;let valid3 = false;const _errs17 = errors;if(!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))){const err0 = {instancePath:instancePath+"/credential_version",schemaPath:"#/properties/credential_version/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 = _errs17 === errors;valid3 = valid3 || _valid0;const _errs19 = errors;if(typeof data6 !== "bigint"){const err1 = {instancePath:instancePath+"/credential_version",schemaPath:"#/properties/credential_version/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 = _errs19 === errors;valid3 = valid3 || _valid0;if(!valid3){const err2 = {instancePath:instancePath+"/credential_version",schemaPath:"#/properties/credential_version/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate499.errors = vErrors;return false;}else {errors = _errs16;if(vErrors !== null){if(_errs16){vErrors.length = _errs16;}else {vErrors = null;}}}var valid2 = _errs15 === errors;if(valid2){if(typeof data6 === "bigint"){if(data6 < 1){validate499.errors = [{instancePath:instancePath+"/credential_version",schemaPath:"#/properties/credential_version/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs14){if((typeof data6 == "number") && (isFinite(data6))){if(data6 < 1 || isNaN(data6)){validate499.errors = [{instancePath:instancePath+"/credential_version",schemaPath:"#/properties/credential_version/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs14 === errors;}else {var valid0 = true;}if(valid0){if(data.credential_hints !== undefined){let data7 = data.credential_hints;const _errs20 = errors;if(errors === _errs20){if(data7 && typeof data7 == "object" && !Array.isArray(data7)){for(const key1 in data7){let data8 = data7[key1];const _errs23 = errors;if(errors === _errs23){if(typeof data8 === "string"){if(!pattern342.test(data8)){validate499.errors = [{instancePath:instancePath+"/credential_hints/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/credential_hints/additionalProperties/pattern",keyword:"pattern",params:{pattern: "^.{4}$"},message:"must match pattern \""+"^.{4}$"+"\""}];return false;}}else {validate499.errors = [{instancePath:instancePath+"/credential_hints/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/credential_hints/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs23 === errors;if(!valid4){break;}}}else {validate499.errors = [{instancePath:instancePath+"/credential_hints",schemaPath:"#/properties/credential_hints/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs20 === errors;}else {var valid0 = true;}if(valid0){if(data.credential_prefixes !== undefined){let data9 = data.credential_prefixes;const _errs25 = errors;if(errors === _errs25){if(data9 && typeof data9 == "object" && !Array.isArray(data9)){for(const key2 in data9){let data10 = data9[key2];const _errs28 = errors;if(errors === _errs28){if(typeof data10 === "string"){if(!pattern343.test(data10)){validate499.errors = [{instancePath:instancePath+"/credential_prefixes/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/credential_prefixes/additionalProperties/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]{2,8}[_-]$"},message:"must match pattern \""+"^[a-z0-9]{2,8}[_-]$"+"\""}];return false;}}else {validate499.errors = [{instancePath:instancePath+"/credential_prefixes/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/credential_prefixes/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs28 === errors;if(!valid5){break;}}}else {validate499.errors = [{instancePath:instancePath+"/credential_prefixes",schemaPath:"#/properties/credential_prefixes/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs25 === errors;}else {var valid0 = true;}if(valid0){if(data.credential_failure !== undefined){let data11 = data.credential_failure;const _errs30 = errors;const _errs31 = errors;let valid6 = false;const _errs32 = errors;if(!(validate492(data11, {instancePath:instancePath+"/credential_failure",parentData:data,parentDataProperty:"credential_failure",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate492.errors : vErrors.concat(validate492.errors);errors = vErrors.length;}var _valid1 = _errs32 === errors;valid6 = valid6 || _valid1;if(_valid1){var props0 = {};props0.state = true;props0.status = true;props0.cause = true;props0.remedy = true;props0.detected_at = true;}const _errs33 = errors;if(data11 !== null){const err3 = {instancePath:instancePath+"/credential_failure",schemaPath:"#/properties/credential_failure/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs33 === errors;valid6 = valid6 || _valid1;if(!valid6){const err4 = {instancePath:instancePath+"/credential_failure",schemaPath:"#/properties/credential_failure/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;validate499.errors = vErrors;return false;}else {errors = _errs31;if(vErrors !== null){if(_errs31){vErrors.length = _errs31;}else {vErrors = null;}}}var valid0 = _errs30 === errors;}else {var valid0 = true;}if(valid0){if(data.standard_image !== undefined){const _errs35 = errors;if(!(validate494(data.standard_image, {instancePath:instancePath+"/standard_image",parentData:data,parentDataProperty:"standard_image",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate494.errors : vErrors.concat(validate494.errors);errors = vErrors.length;}var valid0 = _errs35 === errors;}else {var valid0 = true;}if(valid0){if(data.disconnect !== undefined){let data13 = data.disconnect;const _errs36 = errors;const _errs37 = errors;let valid7 = false;const _errs38 = errors;if(!(validate496(data13, {instancePath:instancePath+"/disconnect",parentData:data,parentDataProperty:"disconnect",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate496.errors : vErrors.concat(validate496.errors);errors = vErrors.length;}var _valid2 = _errs38 === errors;valid7 = valid7 || _valid2;if(_valid2){var props2 = {};props2.state = true;props2.started_at = true;props2.finished_at = true;props2.error = true;}const _errs39 = errors;if(data13 !== null){const err5 = {instancePath:instancePath+"/disconnect",schemaPath:"#/properties/disconnect/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var _valid2 = _errs39 === errors;valid7 = valid7 || _valid2;if(!valid7){const err6 = {instancePath:instancePath+"/disconnect",schemaPath:"#/properties/disconnect/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;validate499.errors = vErrors;return false;}else {errors = _errs37;if(vErrors !== null){if(_errs37){vErrors.length = _errs37;}else {vErrors = null;}}}var valid0 = _errs36 === errors;}else {var valid0 = true;}if(valid0){if(data.warnings !== undefined){let data14 = data.warnings;const _errs41 = errors;if(errors === _errs41){if(Array.isArray(data14)){var valid8 = true;const len0 = data14.length;for(let i0=0; i0<len0; i0++){let data15 = data14[i0];const _errs43 = errors;const _errs44 = errors;if(errors === _errs44){if(data15 && typeof data15 == "object" && !Array.isArray(data15)){let missing1;if(((data15.code === undefined) && (missing1 = "code")) || ((data15.message === undefined) && (missing1 = "message"))){validate499.errors = [{instancePath:instancePath+"/warnings/" + i0,schemaPath:"#/components/schemas/ProviderAccountWarning/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data15.code !== undefined){const _errs46 = errors;if(typeof data15.code !== "string"){validate499.errors = [{instancePath:instancePath+"/warnings/" + i0+"/code",schemaPath:"#/components/schemas/ProviderAccountWarning/properties/code/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid10 = _errs46 === errors;}else {var valid10 = true;}if(valid10){if(data15.message !== undefined){const _errs48 = errors;if(typeof data15.message !== "string"){validate499.errors = [{instancePath:instancePath+"/warnings/" + i0+"/message",schemaPath:"#/components/schemas/ProviderAccountWarning/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid10 = _errs48 === errors;}else {var valid10 = true;}if(valid10){if(data15.account_id !== undefined){const _errs50 = errors;if(typeof data15.account_id !== "string"){validate499.errors = [{instancePath:instancePath+"/warnings/" + i0+"/account_id",schemaPath:"#/components/schemas/ProviderAccountWarning/properties/account_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid10 = _errs50 === errors;}else {var valid10 = true;}}}}}else {validate499.errors = [{instancePath:instancePath+"/warnings/" + i0,schemaPath:"#/components/schemas/ProviderAccountWarning/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid8 = _errs43 === errors;if(!valid8){break;}}}else {validate499.errors = [{instancePath:instancePath+"/warnings",schemaPath:"#/properties/warnings/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs41 === errors;}else {var valid0 = true;}}}}}}}}}}}}}}else {validate499.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate499.errors = vErrors;return errors === 0;}validate499.evaluated = {"props":{"id":true,"name":true,"provider":true,"status":true,"settings":true,"credential_version":true,"credential_hints":true,"credential_prefixes":true,"credential_failure":true,"standard_image":true,"disconnect":true,"warnings":true},"dynamicProps":false,"dynamicItems":false};const pattern70 = new RegExp("^[a-z][a-z0-9_]{0,63}$", "u");function validate498(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate498.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.data === undefined) && (missing0 = "data")) || ((data.next_cursor === undefined) && (missing0 = "next_cursor"))) || ((data.available_providers === undefined) && (missing0 = "available_providers"))) || ((data.credential_fields === undefined) && (missing0 = "credential_fields"))){validate498.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.data !== undefined){let data0 = data.data;const _errs1 = errors;if(errors === _errs1){if(Array.isArray(data0)){var valid1 = true;const len0 = data0.length;for(let i0=0; i0<len0; i0++){const _errs3 = errors;if(!(validate499(data0[i0], {instancePath:instancePath+"/data/" + i0,parentData:data0,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate499.errors : vErrors.concat(validate499.errors);errors = vErrors.length;}var valid1 = _errs3 === errors;if(!valid1){break;}}}else {validate498.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.next_cursor !== undefined){let data2 = data.next_cursor;const _errs4 = errors;if((typeof data2 !== "string") && (data2 !== null)){validate498.errors = [{instancePath:instancePath+"/next_cursor",schemaPath:"#/properties/next_cursor/type",keyword:"type",params:{type: schema690.properties.next_cursor.type},message:"must be string,null"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.available_providers !== undefined){let data3 = data.available_providers;const _errs6 = errors;if(errors === _errs6){if(Array.isArray(data3)){var valid2 = true;const len1 = data3.length;for(let i1=0; i1<len1; i1++){const _errs8 = errors;if(typeof data3[i1] !== "string"){validate498.errors = [{instancePath:instancePath+"/available_providers/" + i1,schemaPath:"#/properties/available_providers/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs8 === errors;if(!valid2){break;}}if(valid2){let i2 = data3.length;let j0;if(i2 > 1){const indices0 = {};for(;i2--;){let item0 = data3[i2];if(typeof item0 !== "string"){continue;}if(typeof indices0[item0] == "number"){j0 = indices0[item0];validate498.errors = [{instancePath:instancePath+"/available_providers",schemaPath:"#/properties/available_providers/uniqueItems",keyword:"uniqueItems",params:{i: i2, j: j0},message:"must NOT have duplicate items (items ## "+j0+" and "+i2+" are identical)"}];return false;break;}indices0[item0] = i2;}}}}else {validate498.errors = [{instancePath:instancePath+"/available_providers",schemaPath:"#/properties/available_providers/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs6 === errors;}else {var valid0 = true;}if(valid0){if(data.provider_metadata !== undefined){let data5 = data.provider_metadata;const _errs10 = errors;if(errors === _errs10){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){for(const key0 in data5){let data6 = data5[key0];const _errs13 = errors;if(errors === _errs13){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){let missing1;if((data6.display_name === undefined) && (missing1 = "display_name")){validate498.errors = [{instancePath:instancePath+"/provider_metadata/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/provider_metadata/additionalProperties/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data6.display_name !== undefined){const _errs15 = errors;if(typeof data6.display_name !== "string"){validate498.errors = [{instancePath:instancePath+"/provider_metadata/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/display_name",schemaPath:"#/properties/provider_metadata/additionalProperties/properties/display_name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs15 === errors;}else {var valid5 = true;}if(valid5){if(data6.credential_help_url !== undefined){const _errs17 = errors;if(typeof data6.credential_help_url !== "string"){validate498.errors = [{instancePath:instancePath+"/provider_metadata/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/credential_help_url",schemaPath:"#/properties/provider_metadata/additionalProperties/properties/credential_help_url/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs17 === errors;}else {var valid5 = true;}}}}else {validate498.errors = [{instancePath:instancePath+"/provider_metadata/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/provider_metadata/additionalProperties/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid4 = _errs13 === errors;if(!valid4){break;}}}else {validate498.errors = [{instancePath:instancePath+"/provider_metadata",schemaPath:"#/properties/provider_metadata/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs10 === errors;}else {var valid0 = true;}if(valid0){if(data.credential_fields !== undefined){let data9 = data.credential_fields;const _errs19 = errors;if(errors === _errs19){if(data9 && typeof data9 == "object" && !Array.isArray(data9)){for(const key1 in data9){let data10 = data9[key1];const _errs22 = errors;if(errors === _errs22){if(Array.isArray(data10)){var valid7 = true;const len2 = data10.length;for(let i3=0; i3<len2; i3++){let data11 = data10[i3];const _errs24 = errors;const _errs25 = errors;if(errors === _errs25){if(data11 && typeof data11 == "object" && !Array.isArray(data11)){let missing2;if((((data11.name === undefined) && (missing2 = "name")) || ((data11.secret === undefined) && (missing2 = "secret"))) || ((data11.required === undefined) && (missing2 = "required"))){validate498.errors = [{instancePath:instancePath+"/credential_fields/" + key1.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i3,schemaPath:"#/components/schemas/CredentialField/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(data11.name !== undefined){let data12 = data11.name;const _errs27 = errors;if(errors === _errs27){if(typeof data12 === "string"){if(!pattern70.test(data12)){validate498.errors = [{instancePath:instancePath+"/credential_fields/" + key1.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i3+"/name",schemaPath:"#/components/schemas/CredentialField/properties/name/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9_]{0,63}$"},message:"must match pattern \""+"^[a-z][a-z0-9_]{0,63}$"+"\""}];return false;}}else {validate498.errors = [{instancePath:instancePath+"/credential_fields/" + key1.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i3+"/name",schemaPath:"#/components/schemas/CredentialField/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid9 = _errs27 === errors;}else {var valid9 = true;}if(valid9){if(data11.label !== undefined){const _errs29 = errors;if(typeof data11.label !== "string"){validate498.errors = [{instancePath:instancePath+"/credential_fields/" + key1.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i3+"/label",schemaPath:"#/components/schemas/CredentialField/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid9 = _errs29 === errors;}else {var valid9 = true;}if(valid9){if(data11.placeholder !== undefined){const _errs31 = errors;if(typeof data11.placeholder !== "string"){validate498.errors = [{instancePath:instancePath+"/credential_fields/" + key1.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i3+"/placeholder",schemaPath:"#/components/schemas/CredentialField/properties/placeholder/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid9 = _errs31 === errors;}else {var valid9 = true;}if(valid9){if(data11.secret !== undefined){const _errs33 = errors;if(typeof data11.secret !== "boolean"){validate498.errors = [{instancePath:instancePath+"/credential_fields/" + key1.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i3+"/secret",schemaPath:"#/components/schemas/CredentialField/properties/secret/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid9 = _errs33 === errors;}else {var valid9 = true;}if(valid9){if(data11.required !== undefined){const _errs35 = errors;if(typeof data11.required !== "boolean"){validate498.errors = [{instancePath:instancePath+"/credential_fields/" + key1.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i3+"/required",schemaPath:"#/components/schemas/CredentialField/properties/required/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid9 = _errs35 === errors;}else {var valid9 = true;}}}}}}}else {validate498.errors = [{instancePath:instancePath+"/credential_fields/" + key1.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i3,schemaPath:"#/components/schemas/CredentialField/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid7 = _errs24 === errors;if(!valid7){break;}}}else {validate498.errors = [{instancePath:instancePath+"/credential_fields/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/credential_fields/additionalProperties/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid6 = _errs22 === errors;if(!valid6){break;}}}else {validate498.errors = [{instancePath:instancePath+"/credential_fields",schemaPath:"#/properties/credential_fields/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs19 === errors;}else {var valid0 = true;}}}}}}}else {validate498.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate498.errors = vErrors;return errors === 0;}validate498.evaluated = {"props":{"data":true,"next_cursor":true,"available_providers":true,"provider_metadata":true,"credential_fields":true},"dynamicProps":false,"dynamicItems":false};exports.validate2 = validate504;const schema694 = {"type":"object","required":["ok","native_status","native_body"],"properties":{"ok":{"type":"boolean"},"native_status":{"description":"Provider's native HTTP status; null when the protocol has no HTTP status.","allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}]},"native_body":{"type":"string","maxLength":4096,"description":"Provider's response body, truncated to 4096 characters. Exact credential secret values are removed before the body is returned; partial or transformed values can remain. Review the response before sharing it. The literal `[redacted]` marker is used when all credential secret fields are at least 12 characters; legacy saved secrets shorter than 12 characters are removed without the marker."}}};function validate504(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate504.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.ok === undefined) && (missing0 = "ok")) || ((data.native_status === undefined) && (missing0 = "native_status"))) || ((data.native_body === undefined) && (missing0 = "native_body"))){validate504.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.ok !== undefined){const _errs1 = errors;if(typeof data.ok !== "boolean"){validate504.errors = [{instancePath:instancePath+"/ok",schemaPath:"#/properties/ok/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.native_status !== undefined){let data1 = data.native_status;const _errs3 = errors;const _errs5 = errors;let valid2 = false;const _errs6 = errors;if((!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))) && (data1 !== null)){const err0 = {instancePath:instancePath+"/native_status",schemaPath:"#/properties/native_status/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema694.properties.native_status.allOf[0].anyOf[0].type},message:"must be integer,null"};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+"/native_status",schemaPath:"#/properties/native_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 = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs8 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/native_status",schemaPath:"#/properties/native_status/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate504.errors = vErrors;return false;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.native_body !== undefined){let data2 = data.native_body;const _errs9 = errors;if(errors === _errs9){if(typeof data2 === "string"){if(func1(data2) > 4096){validate504.errors = [{instancePath:instancePath+"/native_body",schemaPath:"#/properties/native_body/maxLength",keyword:"maxLength",params:{limit: 4096},message:"must NOT have more than 4096 characters"}];return false;}}else {validate504.errors = [{instancePath:instancePath+"/native_body",schemaPath:"#/properties/native_body/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs9 === errors;}else {var valid0 = true;}}}}}else {validate504.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate504.errors = vErrors;return errors === 0;}validate504.evaluated = {"props":{"ok":true,"native_status":true,"native_body":true},"dynamicProps":false,"dynamicItems":false};exports.validate3 = validate505;function validate505(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate505.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.name === undefined) && (missing0 = "name"))) || ((data.provider === undefined) && (missing0 = "provider"))) || ((data.status === undefined) && (missing0 = "status"))) || ((data.credential_version === undefined) && (missing0 = "credential_version"))) || ((data.settings === undefined) && (missing0 = "settings"))){validate505.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.id !== undefined){const _errs1 = errors;if(typeof data.id !== "string"){validate505.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.name !== undefined){const _errs3 = errors;if(typeof data.name !== "string"){validate505.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.provider !== undefined){const _errs5 = errors;if(typeof data.provider !== "string"){validate505.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.status !== undefined){const _errs7 = errors;if(typeof data.status !== "string"){validate505.errors = [{instancePath:instancePath+"/status",schemaPath:"#/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.settings !== undefined){let data4 = data.settings;const _errs9 = errors;if(errors === _errs9){if(data4 && typeof data4 == "object" && !Array.isArray(data4)){for(const key0 in data4){const _errs12 = errors;if(typeof data4[key0] !== "string"){validate505.errors = [{instancePath:instancePath+"/settings/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/settings/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs12 === errors;if(!valid1){break;}}}else {validate505.errors = [{instancePath:instancePath+"/settings",schemaPath:"#/properties/settings/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.credential_version !== undefined){let data6 = data.credential_version;const _errs14 = errors;const _errs15 = errors;const _errs16 = errors;let valid3 = false;const _errs17 = errors;if(!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))){const err0 = {instancePath:instancePath+"/credential_version",schemaPath:"#/properties/credential_version/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 = _errs17 === errors;valid3 = valid3 || _valid0;const _errs19 = errors;if(typeof data6 !== "bigint"){const err1 = {instancePath:instancePath+"/credential_version",schemaPath:"#/properties/credential_version/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 = _errs19 === errors;valid3 = valid3 || _valid0;if(!valid3){const err2 = {instancePath:instancePath+"/credential_version",schemaPath:"#/properties/credential_version/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate505.errors = vErrors;return false;}else {errors = _errs16;if(vErrors !== null){if(_errs16){vErrors.length = _errs16;}else {vErrors = null;}}}var valid2 = _errs15 === errors;if(valid2){if(typeof data6 === "bigint"){if(data6 < 1){validate505.errors = [{instancePath:instancePath+"/credential_version",schemaPath:"#/properties/credential_version/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs14){if((typeof data6 == "number") && (isFinite(data6))){if(data6 < 1 || isNaN(data6)){validate505.errors = [{instancePath:instancePath+"/credential_version",schemaPath:"#/properties/credential_version/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs14 === errors;}else {var valid0 = true;}if(valid0){if(data.credential_hints !== undefined){let data7 = data.credential_hints;const _errs20 = errors;if(errors === _errs20){if(data7 && typeof data7 == "object" && !Array.isArray(data7)){for(const key1 in data7){let data8 = data7[key1];const _errs23 = errors;if(errors === _errs23){if(typeof data8 === "string"){if(!pattern342.test(data8)){validate505.errors = [{instancePath:instancePath+"/credential_hints/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/credential_hints/additionalProperties/pattern",keyword:"pattern",params:{pattern: "^.{4}$"},message:"must match pattern \""+"^.{4}$"+"\""}];return false;}}else {validate505.errors = [{instancePath:instancePath+"/credential_hints/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/credential_hints/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs23 === errors;if(!valid4){break;}}}else {validate505.errors = [{instancePath:instancePath+"/credential_hints",schemaPath:"#/properties/credential_hints/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs20 === errors;}else {var valid0 = true;}if(valid0){if(data.credential_prefixes !== undefined){let data9 = data.credential_prefixes;const _errs25 = errors;if(errors === _errs25){if(data9 && typeof data9 == "object" && !Array.isArray(data9)){for(const key2 in data9){let data10 = data9[key2];const _errs28 = errors;if(errors === _errs28){if(typeof data10 === "string"){if(!pattern343.test(data10)){validate505.errors = [{instancePath:instancePath+"/credential_prefixes/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/credential_prefixes/additionalProperties/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]{2,8}[_-]$"},message:"must match pattern \""+"^[a-z0-9]{2,8}[_-]$"+"\""}];return false;}}else {validate505.errors = [{instancePath:instancePath+"/credential_prefixes/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/credential_prefixes/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs28 === errors;if(!valid5){break;}}}else {validate505.errors = [{instancePath:instancePath+"/credential_prefixes",schemaPath:"#/properties/credential_prefixes/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs25 === errors;}else {var valid0 = true;}if(valid0){if(data.credential_failure !== undefined){let data11 = data.credential_failure;const _errs30 = errors;const _errs31 = errors;let valid6 = false;const _errs32 = errors;if(!(validate492(data11, {instancePath:instancePath+"/credential_failure",parentData:data,parentDataProperty:"credential_failure",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate492.errors : vErrors.concat(validate492.errors);errors = vErrors.length;}var _valid1 = _errs32 === errors;valid6 = valid6 || _valid1;if(_valid1){var props0 = {};props0.state = true;props0.status = true;props0.cause = true;props0.remedy = true;props0.detected_at = true;}const _errs33 = errors;if(data11 !== null){const err3 = {instancePath:instancePath+"/credential_failure",schemaPath:"#/properties/credential_failure/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs33 === errors;valid6 = valid6 || _valid1;if(!valid6){const err4 = {instancePath:instancePath+"/credential_failure",schemaPath:"#/properties/credential_failure/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;validate505.errors = vErrors;return false;}else {errors = _errs31;if(vErrors !== null){if(_errs31){vErrors.length = _errs31;}else {vErrors = null;}}}var valid0 = _errs30 === errors;}else {var valid0 = true;}if(valid0){if(data.standard_image !== undefined){const _errs35 = errors;if(!(validate494(data.standard_image, {instancePath:instancePath+"/standard_image",parentData:data,parentDataProperty:"standard_image",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate494.errors : vErrors.concat(validate494.errors);errors = vErrors.length;}var valid0 = _errs35 === errors;}else {var valid0 = true;}if(valid0){if(data.disconnect !== undefined){let data13 = data.disconnect;const _errs36 = errors;const _errs37 = errors;let valid7 = false;const _errs38 = errors;if(!(validate496(data13, {instancePath:instancePath+"/disconnect",parentData:data,parentDataProperty:"disconnect",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate496.errors : vErrors.concat(validate496.errors);errors = vErrors.length;}var _valid2 = _errs38 === errors;valid7 = valid7 || _valid2;if(_valid2){var props2 = {};props2.state = true;props2.started_at = true;props2.finished_at = true;props2.error = true;}const _errs39 = errors;if(data13 !== null){const err5 = {instancePath:instancePath+"/disconnect",schemaPath:"#/properties/disconnect/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var _valid2 = _errs39 === errors;valid7 = valid7 || _valid2;if(!valid7){const err6 = {instancePath:instancePath+"/disconnect",schemaPath:"#/properties/disconnect/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;validate505.errors = vErrors;return false;}else {errors = _errs37;if(vErrors !== null){if(_errs37){vErrors.length = _errs37;}else {vErrors = null;}}}var valid0 = _errs36 === errors;}else {var valid0 = true;}if(valid0){if(data.warnings !== undefined){let data14 = data.warnings;const _errs41 = errors;if(errors === _errs41){if(Array.isArray(data14)){var valid8 = true;const len0 = data14.length;for(let i0=0; i0<len0; i0++){let data15 = data14[i0];const _errs43 = errors;const _errs44 = errors;if(errors === _errs44){if(data15 && typeof data15 == "object" && !Array.isArray(data15)){let missing1;if(((data15.code === undefined) && (missing1 = "code")) || ((data15.message === undefined) && (missing1 = "message"))){validate505.errors = [{instancePath:instancePath+"/warnings/" + i0,schemaPath:"#/components/schemas/ProviderAccountWarning/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data15.code !== undefined){const _errs46 = errors;if(typeof data15.code !== "string"){validate505.errors = [{instancePath:instancePath+"/warnings/" + i0+"/code",schemaPath:"#/components/schemas/ProviderAccountWarning/properties/code/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid10 = _errs46 === errors;}else {var valid10 = true;}if(valid10){if(data15.message !== undefined){const _errs48 = errors;if(typeof data15.message !== "string"){validate505.errors = [{instancePath:instancePath+"/warnings/" + i0+"/message",schemaPath:"#/components/schemas/ProviderAccountWarning/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid10 = _errs48 === errors;}else {var valid10 = true;}if(valid10){if(data15.account_id !== undefined){const _errs50 = errors;if(typeof data15.account_id !== "string"){validate505.errors = [{instancePath:instancePath+"/warnings/" + i0+"/account_id",schemaPath:"#/components/schemas/ProviderAccountWarning/properties/account_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid10 = _errs50 === errors;}else {var valid10 = true;}}}}}else {validate505.errors = [{instancePath:instancePath+"/warnings/" + i0,schemaPath:"#/components/schemas/ProviderAccountWarning/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid8 = _errs43 === errors;if(!valid8){break;}}}else {validate505.errors = [{instancePath:instancePath+"/warnings",schemaPath:"#/properties/warnings/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs41 === errors;}else {var valid0 = true;}}}}}}}}}}}}}}else {validate505.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate505.errors = vErrors;return errors === 0;}validate505.evaluated = {"props":{"id":true,"name":true,"provider":true,"status":true,"settings":true,"credential_version":true,"credential_hints":true,"credential_prefixes":true,"credential_failure":true,"standard_image":true,"disconnect":true,"warnings":true},"dynamicProps":false,"dynamicItems":false};exports.validate4 = validate509;function validate509(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate509.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.name === undefined) && (missing0 = "name"))) || ((data.provider === undefined) && (missing0 = "provider"))) || ((data.status === undefined) && (missing0 = "status"))) || ((data.credential_version === undefined) && (missing0 = "credential_version"))) || ((data.settings === undefined) && (missing0 = "settings"))){validate509.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.id !== undefined){const _errs1 = errors;if(typeof data.id !== "string"){validate509.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.name !== undefined){const _errs3 = errors;if(typeof data.name !== "string"){validate509.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.provider !== undefined){const _errs5 = errors;if(typeof data.provider !== "string"){validate509.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.status !== undefined){const _errs7 = errors;if(typeof data.status !== "string"){validate509.errors = [{instancePath:instancePath+"/status",schemaPath:"#/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.settings !== undefined){let data4 = data.settings;const _errs9 = errors;if(errors === _errs9){if(data4 && typeof data4 == "object" && !Array.isArray(data4)){for(const key0 in data4){const _errs12 = errors;if(typeof data4[key0] !== "string"){validate509.errors = [{instancePath:instancePath+"/settings/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/settings/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs12 === errors;if(!valid1){break;}}}else {validate509.errors = [{instancePath:instancePath+"/settings",schemaPath:"#/properties/settings/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.credential_version !== undefined){let data6 = data.credential_version;const _errs14 = errors;const _errs15 = errors;const _errs16 = errors;let valid3 = false;const _errs17 = errors;if(!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))){const err0 = {instancePath:instancePath+"/credential_version",schemaPath:"#/properties/credential_version/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 = _errs17 === errors;valid3 = valid3 || _valid0;const _errs19 = errors;if(typeof data6 !== "bigint"){const err1 = {instancePath:instancePath+"/credential_version",schemaPath:"#/properties/credential_version/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 = _errs19 === errors;valid3 = valid3 || _valid0;if(!valid3){const err2 = {instancePath:instancePath+"/credential_version",schemaPath:"#/properties/credential_version/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate509.errors = vErrors;return false;}else {errors = _errs16;if(vErrors !== null){if(_errs16){vErrors.length = _errs16;}else {vErrors = null;}}}var valid2 = _errs15 === errors;if(valid2){if(typeof data6 === "bigint"){if(data6 < 1){validate509.errors = [{instancePath:instancePath+"/credential_version",schemaPath:"#/properties/credential_version/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs14){if((typeof data6 == "number") && (isFinite(data6))){if(data6 < 1 || isNaN(data6)){validate509.errors = [{instancePath:instancePath+"/credential_version",schemaPath:"#/properties/credential_version/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs14 === errors;}else {var valid0 = true;}if(valid0){if(data.credential_hints !== undefined){let data7 = data.credential_hints;const _errs20 = errors;if(errors === _errs20){if(data7 && typeof data7 == "object" && !Array.isArray(data7)){for(const key1 in data7){let data8 = data7[key1];const _errs23 = errors;if(errors === _errs23){if(typeof data8 === "string"){if(!pattern342.test(data8)){validate509.errors = [{instancePath:instancePath+"/credential_hints/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/credential_hints/additionalProperties/pattern",keyword:"pattern",params:{pattern: "^.{4}$"},message:"must match pattern \""+"^.{4}$"+"\""}];return false;}}else {validate509.errors = [{instancePath:instancePath+"/credential_hints/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/credential_hints/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs23 === errors;if(!valid4){break;}}}else {validate509.errors = [{instancePath:instancePath+"/credential_hints",schemaPath:"#/properties/credential_hints/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs20 === errors;}else {var valid0 = true;}if(valid0){if(data.credential_prefixes !== undefined){let data9 = data.credential_prefixes;const _errs25 = errors;if(errors === _errs25){if(data9 && typeof data9 == "object" && !Array.isArray(data9)){for(const key2 in data9){let data10 = data9[key2];const _errs28 = errors;if(errors === _errs28){if(typeof data10 === "string"){if(!pattern343.test(data10)){validate509.errors = [{instancePath:instancePath+"/credential_prefixes/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/credential_prefixes/additionalProperties/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]{2,8}[_-]$"},message:"must match pattern \""+"^[a-z0-9]{2,8}[_-]$"+"\""}];return false;}}else {validate509.errors = [{instancePath:instancePath+"/credential_prefixes/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/credential_prefixes/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs28 === errors;if(!valid5){break;}}}else {validate509.errors = [{instancePath:instancePath+"/credential_prefixes",schemaPath:"#/properties/credential_prefixes/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs25 === errors;}else {var valid0 = true;}if(valid0){if(data.credential_failure !== undefined){let data11 = data.credential_failure;const _errs30 = errors;const _errs31 = errors;let valid6 = false;const _errs32 = errors;if(!(validate492(data11, {instancePath:instancePath+"/credential_failure",parentData:data,parentDataProperty:"credential_failure",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate492.errors : vErrors.concat(validate492.errors);errors = vErrors.length;}var _valid1 = _errs32 === errors;valid6 = valid6 || _valid1;if(_valid1){var props0 = {};props0.state = true;props0.status = true;props0.cause = true;props0.remedy = true;props0.detected_at = true;}const _errs33 = errors;if(data11 !== null){const err3 = {instancePath:instancePath+"/credential_failure",schemaPath:"#/properties/credential_failure/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs33 === errors;valid6 = valid6 || _valid1;if(!valid6){const err4 = {instancePath:instancePath+"/credential_failure",schemaPath:"#/properties/credential_failure/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;validate509.errors = vErrors;return false;}else {errors = _errs31;if(vErrors !== null){if(_errs31){vErrors.length = _errs31;}else {vErrors = null;}}}var valid0 = _errs30 === errors;}else {var valid0 = true;}if(valid0){if(data.standard_image !== undefined){const _errs35 = errors;if(!(validate494(data.standard_image, {instancePath:instancePath+"/standard_image",parentData:data,parentDataProperty:"standard_image",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate494.errors : vErrors.concat(validate494.errors);errors = vErrors.length;}var valid0 = _errs35 === errors;}else {var valid0 = true;}if(valid0){if(data.disconnect !== undefined){let data13 = data.disconnect;const _errs36 = errors;const _errs37 = errors;let valid7 = false;const _errs38 = errors;if(!(validate496(data13, {instancePath:instancePath+"/disconnect",parentData:data,parentDataProperty:"disconnect",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate496.errors : vErrors.concat(validate496.errors);errors = vErrors.length;}var _valid2 = _errs38 === errors;valid7 = valid7 || _valid2;if(_valid2){var props2 = {};props2.state = true;props2.started_at = true;props2.finished_at = true;props2.error = true;}const _errs39 = errors;if(data13 !== null){const err5 = {instancePath:instancePath+"/disconnect",schemaPath:"#/properties/disconnect/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var _valid2 = _errs39 === errors;valid7 = valid7 || _valid2;if(!valid7){const err6 = {instancePath:instancePath+"/disconnect",schemaPath:"#/properties/disconnect/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;validate509.errors = vErrors;return false;}else {errors = _errs37;if(vErrors !== null){if(_errs37){vErrors.length = _errs37;}else {vErrors = null;}}}var valid0 = _errs36 === errors;}else {var valid0 = true;}if(valid0){if(data.warnings !== undefined){let data14 = data.warnings;const _errs41 = errors;if(errors === _errs41){if(Array.isArray(data14)){var valid8 = true;const len0 = data14.length;for(let i0=0; i0<len0; i0++){let data15 = data14[i0];const _errs43 = errors;const _errs44 = errors;if(errors === _errs44){if(data15 && typeof data15 == "object" && !Array.isArray(data15)){let missing1;if(((data15.code === undefined) && (missing1 = "code")) || ((data15.message === undefined) && (missing1 = "message"))){validate509.errors = [{instancePath:instancePath+"/warnings/" + i0,schemaPath:"#/components/schemas/ProviderAccountWarning/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data15.code !== undefined){const _errs46 = errors;if(typeof data15.code !== "string"){validate509.errors = [{instancePath:instancePath+"/warnings/" + i0+"/code",schemaPath:"#/components/schemas/ProviderAccountWarning/properties/code/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid10 = _errs46 === errors;}else {var valid10 = true;}if(valid10){if(data15.message !== undefined){const _errs48 = errors;if(typeof data15.message !== "string"){validate509.errors = [{instancePath:instancePath+"/warnings/" + i0+"/message",schemaPath:"#/components/schemas/ProviderAccountWarning/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid10 = _errs48 === errors;}else {var valid10 = true;}if(valid10){if(data15.account_id !== undefined){const _errs50 = errors;if(typeof data15.account_id !== "string"){validate509.errors = [{instancePath:instancePath+"/warnings/" + i0+"/account_id",schemaPath:"#/components/schemas/ProviderAccountWarning/properties/account_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid10 = _errs50 === errors;}else {var valid10 = true;}}}}}else {validate509.errors = [{instancePath:instancePath+"/warnings/" + i0,schemaPath:"#/components/schemas/ProviderAccountWarning/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid8 = _errs43 === errors;if(!valid8){break;}}}else {validate509.errors = [{instancePath:instancePath+"/warnings",schemaPath:"#/properties/warnings/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs41 === errors;}else {var valid0 = true;}}}}}}}}}}}}}}else {validate509.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate509.errors = vErrors;return errors === 0;}validate509.evaluated = {"props":{"id":true,"name":true,"provider":true,"status":true,"settings":true,"credential_version":true,"credential_hints":true,"credential_prefixes":true,"credential_failure":true,"standard_image":true,"disconnect":true,"warnings":true},"dynamicProps":false,"dynamicItems":false};exports.validate5 = validate513;function validate513(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate513.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.name === undefined) && (missing0 = "name"))) || ((data.provider === undefined) && (missing0 = "provider"))) || ((data.status === undefined) && (missing0 = "status"))) || ((data.credential_version === undefined) && (missing0 = "credential_version"))) || ((data.settings === undefined) && (missing0 = "settings"))){validate513.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.id !== undefined){const _errs1 = errors;if(typeof data.id !== "string"){validate513.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.name !== undefined){const _errs3 = errors;if(typeof data.name !== "string"){validate513.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.provider !== undefined){const _errs5 = errors;if(typeof data.provider !== "string"){validate513.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.status !== undefined){const _errs7 = errors;if(typeof data.status !== "string"){validate513.errors = [{instancePath:instancePath+"/status",schemaPath:"#/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.settings !== undefined){let data4 = data.settings;const _errs9 = errors;if(errors === _errs9){if(data4 && typeof data4 == "object" && !Array.isArray(data4)){for(const key0 in data4){const _errs12 = errors;if(typeof data4[key0] !== "string"){validate513.errors = [{instancePath:instancePath+"/settings/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/settings/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs12 === errors;if(!valid1){break;}}}else {validate513.errors = [{instancePath:instancePath+"/settings",schemaPath:"#/properties/settings/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.credential_version !== undefined){let data6 = data.credential_version;const _errs14 = errors;const _errs15 = errors;const _errs16 = errors;let valid3 = false;const _errs17 = errors;if(!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))){const err0 = {instancePath:instancePath+"/credential_version",schemaPath:"#/properties/credential_version/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 = _errs17 === errors;valid3 = valid3 || _valid0;const _errs19 = errors;if(typeof data6 !== "bigint"){const err1 = {instancePath:instancePath+"/credential_version",schemaPath:"#/properties/credential_version/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 = _errs19 === errors;valid3 = valid3 || _valid0;if(!valid3){const err2 = {instancePath:instancePath+"/credential_version",schemaPath:"#/properties/credential_version/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate513.errors = vErrors;return false;}else {errors = _errs16;if(vErrors !== null){if(_errs16){vErrors.length = _errs16;}else {vErrors = null;}}}var valid2 = _errs15 === errors;if(valid2){if(typeof data6 === "bigint"){if(data6 < 1){validate513.errors = [{instancePath:instancePath+"/credential_version",schemaPath:"#/properties/credential_version/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs14){if((typeof data6 == "number") && (isFinite(data6))){if(data6 < 1 || isNaN(data6)){validate513.errors = [{instancePath:instancePath+"/credential_version",schemaPath:"#/properties/credential_version/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs14 === errors;}else {var valid0 = true;}if(valid0){if(data.credential_hints !== undefined){let data7 = data.credential_hints;const _errs20 = errors;if(errors === _errs20){if(data7 && typeof data7 == "object" && !Array.isArray(data7)){for(const key1 in data7){let data8 = data7[key1];const _errs23 = errors;if(errors === _errs23){if(typeof data8 === "string"){if(!pattern342.test(data8)){validate513.errors = [{instancePath:instancePath+"/credential_hints/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/credential_hints/additionalProperties/pattern",keyword:"pattern",params:{pattern: "^.{4}$"},message:"must match pattern \""+"^.{4}$"+"\""}];return false;}}else {validate513.errors = [{instancePath:instancePath+"/credential_hints/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/credential_hints/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs23 === errors;if(!valid4){break;}}}else {validate513.errors = [{instancePath:instancePath+"/credential_hints",schemaPath:"#/properties/credential_hints/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs20 === errors;}else {var valid0 = true;}if(valid0){if(data.credential_prefixes !== undefined){let data9 = data.credential_prefixes;const _errs25 = errors;if(errors === _errs25){if(data9 && typeof data9 == "object" && !Array.isArray(data9)){for(const key2 in data9){let data10 = data9[key2];const _errs28 = errors;if(errors === _errs28){if(typeof data10 === "string"){if(!pattern343.test(data10)){validate513.errors = [{instancePath:instancePath+"/credential_prefixes/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/credential_prefixes/additionalProperties/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9]{2,8}[_-]$"},message:"must match pattern \""+"^[a-z0-9]{2,8}[_-]$"+"\""}];return false;}}else {validate513.errors = [{instancePath:instancePath+"/credential_prefixes/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/credential_prefixes/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs28 === errors;if(!valid5){break;}}}else {validate513.errors = [{instancePath:instancePath+"/credential_prefixes",schemaPath:"#/properties/credential_prefixes/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs25 === errors;}else {var valid0 = true;}if(valid0){if(data.credential_failure !== undefined){let data11 = data.credential_failure;const _errs30 = errors;const _errs31 = errors;let valid6 = false;const _errs32 = errors;if(!(validate492(data11, {instancePath:instancePath+"/credential_failure",parentData:data,parentDataProperty:"credential_failure",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate492.errors : vErrors.concat(validate492.errors);errors = vErrors.length;}var _valid1 = _errs32 === errors;valid6 = valid6 || _valid1;if(_valid1){var props0 = {};props0.state = true;props0.status = true;props0.cause = true;props0.remedy = true;props0.detected_at = true;}const _errs33 = errors;if(data11 !== null){const err3 = {instancePath:instancePath+"/credential_failure",schemaPath:"#/properties/credential_failure/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs33 === errors;valid6 = valid6 || _valid1;if(!valid6){const err4 = {instancePath:instancePath+"/credential_failure",schemaPath:"#/properties/credential_failure/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;validate513.errors = vErrors;return false;}else {errors = _errs31;if(vErrors !== null){if(_errs31){vErrors.length = _errs31;}else {vErrors = null;}}}var valid0 = _errs30 === errors;}else {var valid0 = true;}if(valid0){if(data.standard_image !== undefined){const _errs35 = errors;if(!(validate494(data.standard_image, {instancePath:instancePath+"/standard_image",parentData:data,parentDataProperty:"standard_image",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate494.errors : vErrors.concat(validate494.errors);errors = vErrors.length;}var valid0 = _errs35 === errors;}else {var valid0 = true;}if(valid0){if(data.disconnect !== undefined){let data13 = data.disconnect;const _errs36 = errors;const _errs37 = errors;let valid7 = false;const _errs38 = errors;if(!(validate496(data13, {instancePath:instancePath+"/disconnect",parentData:data,parentDataProperty:"disconnect",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate496.errors : vErrors.concat(validate496.errors);errors = vErrors.length;}var _valid2 = _errs38 === errors;valid7 = valid7 || _valid2;if(_valid2){var props2 = {};props2.state = true;props2.started_at = true;props2.finished_at = true;props2.error = true;}const _errs39 = errors;if(data13 !== null){const err5 = {instancePath:instancePath+"/disconnect",schemaPath:"#/properties/disconnect/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var _valid2 = _errs39 === errors;valid7 = valid7 || _valid2;if(!valid7){const err6 = {instancePath:instancePath+"/disconnect",schemaPath:"#/properties/disconnect/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;validate513.errors = vErrors;return false;}else {errors = _errs37;if(vErrors !== null){if(_errs37){vErrors.length = _errs37;}else {vErrors = null;}}}var valid0 = _errs36 === errors;}else {var valid0 = true;}if(valid0){if(data.warnings !== undefined){let data14 = data.warnings;const _errs41 = errors;if(errors === _errs41){if(Array.isArray(data14)){var valid8 = true;const len0 = data14.length;for(let i0=0; i0<len0; i0++){let data15 = data14[i0];const _errs43 = errors;const _errs44 = errors;if(errors === _errs44){if(data15 && typeof data15 == "object" && !Array.isArray(data15)){let missing1;if(((data15.code === undefined) && (missing1 = "code")) || ((data15.message === undefined) && (missing1 = "message"))){validate513.errors = [{instancePath:instancePath+"/warnings/" + i0,schemaPath:"#/components/schemas/ProviderAccountWarning/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data15.code !== undefined){const _errs46 = errors;if(typeof data15.code !== "string"){validate513.errors = [{instancePath:instancePath+"/warnings/" + i0+"/code",schemaPath:"#/components/schemas/ProviderAccountWarning/properties/code/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid10 = _errs46 === errors;}else {var valid10 = true;}if(valid10){if(data15.message !== undefined){const _errs48 = errors;if(typeof data15.message !== "string"){validate513.errors = [{instancePath:instancePath+"/warnings/" + i0+"/message",schemaPath:"#/components/schemas/ProviderAccountWarning/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid10 = _errs48 === errors;}else {var valid10 = true;}if(valid10){if(data15.account_id !== undefined){const _errs50 = errors;if(typeof data15.account_id !== "string"){validate513.errors = [{instancePath:instancePath+"/warnings/" + i0+"/account_id",schemaPath:"#/components/schemas/ProviderAccountWarning/properties/account_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid10 = _errs50 === errors;}else {var valid10 = true;}}}}}else {validate513.errors = [{instancePath:instancePath+"/warnings/" + i0,schemaPath:"#/components/schemas/ProviderAccountWarning/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid8 = _errs43 === errors;if(!valid8){break;}}}else {validate513.errors = [{instancePath:instancePath+"/warnings",schemaPath:"#/properties/warnings/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs41 === errors;}else {var valid0 = true;}}}}}}}}}}}}}}else {validate513.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate513.errors = vErrors;return errors === 0;}validate513.evaluated = {"props":{"id":true,"name":true,"provider":true,"status":true,"settings":true,"credential_version":true,"credential_hints":true,"credential_prefixes":true,"credential_failure":true,"standard_image":true,"disconnect":true,"warnings":true},"dynamicProps":false,"dynamicItems":false};exports.validate6 = validate517;function validate517(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate517.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.ok === undefined) && (missing0 = "ok")) || ((data.native_status === undefined) && (missing0 = "native_status"))) || ((data.native_body === undefined) && (missing0 = "native_body"))){validate517.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.ok !== undefined){const _errs1 = errors;if(typeof data.ok !== "boolean"){validate517.errors = [{instancePath:instancePath+"/ok",schemaPath:"#/properties/ok/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.native_status !== undefined){let data1 = data.native_status;const _errs3 = errors;const _errs5 = errors;let valid2 = false;const _errs6 = errors;if((!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))) && (data1 !== null)){const err0 = {instancePath:instancePath+"/native_status",schemaPath:"#/properties/native_status/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema694.properties.native_status.allOf[0].anyOf[0].type},message:"must be integer,null"};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+"/native_status",schemaPath:"#/properties/native_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 = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs8 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/native_status",schemaPath:"#/properties/native_status/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate517.errors = vErrors;return false;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.native_body !== undefined){let data2 = data.native_body;const _errs9 = errors;if(errors === _errs9){if(typeof data2 === "string"){if(func1(data2) > 4096){validate517.errors = [{instancePath:instancePath+"/native_body",schemaPath:"#/properties/native_body/maxLength",keyword:"maxLength",params:{limit: 4096},message:"must NOT have more than 4096 characters"}];return false;}}else {validate517.errors = [{instancePath:instancePath+"/native_body",schemaPath:"#/properties/native_body/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs9 === errors;}else {var valid0 = true;}}}}}else {validate517.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate517.errors = vErrors;return errors === 0;}validate517.evaluated = {"props":{"ok":true,"native_status":true,"native_body":true},"dynamicProps":false,"dynamicItems":false};exports.validate7 = validate518;function validate518(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate518.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.state === undefined) && (missing0 = "state")) || ((data.reason === undefined) && (missing0 = "reason"))) || ((data.fix === undefined) && (missing0 = "fix"))){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.state !== undefined){const _errs3 = errors;if("ready" !== data.state){const err1 = {instancePath:instancePath+"/state",schemaPath:"#/anyOf/0/properties/state/const",keyword:"const",params:{allowedValue: "ready"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.reason !== undefined){const _errs4 = errors;if(data.reason !== null){const err2 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/0/properties/reason/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.fix !== undefined){const _errs6 = errors;if(data.fix !== null){const err3 = {instancePath:instancePath+"/fix",schemaPath:"#/anyOf/0/properties/fix/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid1 = _errs6 === errors;}else {var valid1 = true;}}}}}var _valid0 = _errs2 === errors;valid0 = valid0 || _valid0;if(_valid0){var props0 = {};props0.state = true;props0.reason = true;props0.fix = true;}const _errs8 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((((data.state === undefined) && (missing1 = "state")) || ((data.reason === undefined) && (missing1 = "reason"))) || ((data.fix === undefined) && (missing1 = "fix"))){const err4 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}else {if(data.state !== undefined){const _errs9 = errors;if("preparing" !== data.state){const err5 = {instancePath:instancePath+"/state",schemaPath:"#/anyOf/1/properties/state/const",keyword:"const",params:{allowedValue: "preparing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid2 = _errs9 === errors;}else {var valid2 = true;}if(valid2){if(data.reason !== undefined){const _errs10 = errors;if(data.reason !== null){const err6 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/1/properties/reason/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var valid2 = _errs10 === errors;}else {var valid2 = true;}if(valid2){if(data.fix !== undefined){const _errs12 = errors;if(data.fix !== null){const err7 = {instancePath:instancePath+"/fix",schemaPath:"#/anyOf/1/properties/fix/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid2 = _errs12 === errors;}else {var valid2 = true;}}}}}var _valid0 = _errs8 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = props0 || {};props0.state = true;props0.reason = true;props0.fix = true;}}const _errs14 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((((data.state === undefined) && (missing2 = "state")) || ((data.reason === undefined) && (missing2 = "reason"))) || ((data.fix === undefined) && (missing2 = "fix"))){const err8 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data.state !== undefined){const _errs15 = errors;if("failed" !== data.state){const err9 = {instancePath:instancePath+"/state",schemaPath:"#/anyOf/2/properties/state/const",keyword:"const",params:{allowedValue: "failed"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var valid3 = _errs15 === errors;}else {var valid3 = true;}if(valid3){if(data.reason !== undefined){let data7 = data.reason;const _errs16 = errors;if(errors === _errs16){if(typeof data7 === "string"){if(func1(data7) < 1){const err10 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}else {const err11 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}var valid3 = _errs16 === errors;}else {var valid3 = true;}if(valid3){if(data.fix !== undefined){let data8 = data.fix;const _errs18 = errors;if(errors === _errs18){if(typeof data8 === "string"){if(func1(data8) < 1){const err12 = {instancePath:instancePath+"/fix",schemaPath:"#/anyOf/2/properties/fix/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/fix",schemaPath:"#/anyOf/2/properties/fix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}var valid3 = _errs18 === errors;}else {var valid3 = true;}}}}}var _valid0 = _errs14 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = props0 || {};props0.state = true;props0.reason = true;props0.fix = true;}}const _errs20 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((data.state === undefined) && (missing3 = "state")){const err14 = {instancePath,schemaPath:"#/anyOf/3/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}else {if(data.state !== undefined){const _errs21 = errors;if("unavailable" !== data.state){const err15 = {instancePath:instancePath+"/state",schemaPath:"#/anyOf/3/properties/state/const",keyword:"const",params:{allowedValue: "unavailable"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var valid4 = _errs21 === errors;}else {var valid4 = true;}if(valid4){if(data.fix !== undefined){let data10 = data.fix;const _errs22 = errors;if(errors === _errs22){if(typeof data10 === "string"){if(func1(data10) < 1){const err16 = {instancePath:instancePath+"/fix",schemaPath:"#/anyOf/3/properties/fix/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+"/fix",schemaPath:"#/anyOf/3/properties/fix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}var valid4 = _errs22 === errors;}else {var valid4 = true;}}}}var _valid0 = _errs20 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = props0 || {};props0.state = true;props0.fix = true;}}if(!valid0){const err18 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;validate518.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 missing4;if((((((((data.state === undefined) && (missing4 = "state")) || ((data.region === undefined) && (missing4 = "region"))) || ((data.image_version === undefined) && (missing4 = "image_version"))) || ((data.image_digest === undefined) && (missing4 = "image_digest"))) || ((data.reason === undefined) && (missing4 = "reason"))) || ((data.fix === undefined) && (missing4 = "fix"))) || ((data.checked_at === undefined) && (missing4 = "checked_at"))){validate518.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"}];return false;}else {if(props0 !== true){props0 = props0 || {};props0.state = true;props0.region = true;props0.image_version = true;props0.image_digest = true;props0.reason = true;props0.fix = true;props0.checked_at = true;}if(data.state !== undefined){let data11 = data.state;const _errs24 = errors;if(typeof data11 !== "string"){validate518.errors = [{instancePath:instancePath+"/state",schemaPath:"#/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data11 === "ready") || (data11 === "preparing")) || (data11 === "failed")) || (data11 === "unavailable"))){validate518.errors = [{instancePath:instancePath+"/state",schemaPath:"#/properties/state/enum",keyword:"enum",params:{allowedValues: schema686.properties.state.enum},message:"must be equal to one of the allowed values"}];return false;}var valid5 = _errs24 === errors;}else {var valid5 = true;}if(valid5){if(data.region !== undefined){const _errs26 = errors;if(typeof data.region !== "string"){validate518.errors = [{instancePath:instancePath+"/region",schemaPath:"#/properties/region/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs26 === errors;}else {var valid5 = true;}if(valid5){if(data.image_version !== undefined){const _errs28 = errors;if(typeof data.image_version !== "string"){validate518.errors = [{instancePath:instancePath+"/image_version",schemaPath:"#/properties/image_version/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs28 === errors;}else {var valid5 = true;}if(valid5){if(data.image_digest !== undefined){const _errs30 = errors;if(typeof data.image_digest !== "string"){validate518.errors = [{instancePath:instancePath+"/image_digest",schemaPath:"#/properties/image_digest/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs30 === errors;}else {var valid5 = true;}if(valid5){if(data.reason !== undefined){let data15 = data.reason;const _errs32 = errors;if((typeof data15 !== "string") && (data15 !== null)){validate518.errors = [{instancePath:instancePath+"/reason",schemaPath:"#/properties/reason/type",keyword:"type",params:{type: schema686.properties.reason.type},message:"must be string,null"}];return false;}var valid5 = _errs32 === errors;}else {var valid5 = true;}if(valid5){if(data.fix !== undefined){let data16 = data.fix;const _errs34 = errors;if((typeof data16 !== "string") && (data16 !== null)){validate518.errors = [{instancePath:instancePath+"/fix",schemaPath:"#/properties/fix/type",keyword:"type",params:{type: schema686.properties.fix.type},message:"must be string,null"}];return false;}var valid5 = _errs34 === errors;}else {var valid5 = true;}if(valid5){if(data.checked_at !== undefined){let data17 = data.checked_at;const _errs36 = errors;if((typeof data17 !== "string") && (data17 !== null)){validate518.errors = [{instancePath:instancePath+"/checked_at",schemaPath:"#/properties/checked_at/type",keyword:"type",params:{type: schema686.properties.checked_at.type},message:"must be string,null"}];return false;}if(errors === _errs36){if(errors === _errs36){if(typeof data17 === "string"){if(!(formats0.validate(data17))){validate518.errors = [{instancePath:instancePath+"/checked_at",schemaPath:"#/properties/checked_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid5 = _errs36 === errors;}else {var valid5 = true;}}}}}}}}}else {validate518.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate518.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate518.evaluated = {"dynamicProps":true,"dynamicItems":false};
|
|
@@ -0,0 +1,8 @@
|
|
|
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;
|
|
6
|
+
export declare const validate5: (value: unknown) => boolean;
|
|
7
|
+
export declare const validate6: (value: unknown) => boolean;
|
|
8
|
+
export declare const validate7: (value: unknown) => boolean;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
module.exports = require("./compact.cjs")({"roots":{"validate0":{"$":0},"validate1":{"$":6},"validate2":{"$":8},"validate3":{"$":0},"validate4":{"$":0},"validate5":{"$":0},"validate6":{"$":8},"validate7":{"$":2}},"definitions":[{"type":"object","required":["id","name","provider","status","credential_version","settings"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"provider":{"type":"string"},"status":{"type":"string"},"settings":{"type":"object","additionalProperties":{"type":"string"}},"credential_version":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"credential_hints":{"type":"object","additionalProperties":{"type":"string","pattern":"^.{4}$"}},"credential_prefixes":{"type":"object","additionalProperties":{"type":"string","pattern":"^[a-z0-9]{2,8}[_-]$"}},"credential_failure":{"anyOf":[{"$":1},{"type":"null"}]},"standard_image":{"$":2},"disconnect":{"anyOf":[{"$":3},{"type":"null"}]},"warnings":{"type":"array","items":{"$":5}}}},{"type":"object","required":["state","status","cause","remedy","detected_at"],"properties":{"state":{"type":"string","const":"credentials_rejected"},"status":{"enum":[401,403],"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}]},"cause":{"type":"string"},"remedy":{"type":"string","minLength":1},"detected_at":{"type":"string","format":"date-time"}}},{"type":"object","required":["state","region","image_version","image_digest","reason","fix","checked_at"],"anyOf":[{"properties":{"state":{"const":"ready"},"reason":{"type":"null"},"fix":{"type":"null"}},"required":["state","reason","fix"]},{"properties":{"state":{"const":"preparing"},"reason":{"type":"null"},"fix":{"type":"null"}},"required":["state","reason","fix"]},{"properties":{"state":{"const":"failed"},"reason":{"type":"string","minLength":1},"fix":{"type":"string","minLength":1}},"required":["state","reason","fix"]},{"properties":{"state":{"const":"unavailable"},"fix":{"type":"string","minLength":1}},"required":["state"]}],"properties":{"state":{"type":"string","enum":["ready","preparing","failed","unavailable"]},"region":{"type":"string"},"image_version":{"type":"string"},"image_digest":{"type":"string"},"reason":{"type":["string","null"]},"fix":{"type":["string","null"]},"checked_at":{"type":["string","null"],"format":"date-time"}}},{"type":"object","required":["state","started_at","finished_at","error"],"properties":{"state":{"type":"string"},"started_at":{"type":"string","format":"date-time"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"error":{"anyOf":[{"$":4},{"type":"null"}]}}},{"type":"object","required":["code","message","fix","request_id","details"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"fix":{"type":["string","null"]},"request_id":{"type":["string","null"]},"details":{"type":"object"}}},{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"account_id":{"type":"string"}}},{"type":"object","required":["data","next_cursor","available_providers","credential_fields"],"properties":{"data":{"type":"array","items":{"$":0}},"next_cursor":{"type":["string","null"]},"available_providers":{"type":"array","uniqueItems":true,"items":{"type":"string"}},"provider_metadata":{"type":"object","additionalProperties":{"type":"object","required":["display_name"],"properties":{"display_name":{"type":"string"},"credential_help_url":{"type":"string"}}}},"credential_fields":{"type":"object","additionalProperties":{"type":"array","items":{"$":7}}}}},{"type":"object","required":["name","secret","required"],"properties":{"name":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"label":{"type":"string"},"placeholder":{"type":"string"},"secret":{"type":"boolean"},"required":{"type":"boolean"}}},{"type":"object","required":["ok","native_status","native_body"],"properties":{"ok":{"type":"boolean"},"native_status":{"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}]},"native_body":{"type":"string","maxLength":4096}}}]});
|
|
@@ -0,0 +1,8 @@
|
|
|
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;
|
|
6
|
+
export declare const validate5: (value: unknown) => boolean;
|
|
7
|
+
export declare const validate6: (value: unknown) => boolean;
|
|
8
|
+
export declare const validate7: (value: unknown) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.validate0 = validate587;const schema825 = {"type":"object","required":["data"],"description":"The provider routes this workspace can use now, one entry per connected account or managed\nsupply, in the shape `match` reports for an eligible route (its declared gates, resources,\nattested facts and lifetime). It lists no route the workspace cannot use, and its\ncapabilities come from the same adapter declarations `match` reads. A route that needs\nexplicit image selection lists `request_overrides` with the create fields a caller must\nsend for it.\n","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/EligibleRoute"}}}};const schema548 = {"type":"object","required":["provider","class","account_id","supply","adapter_version","gates","resources","attested","lifetime"],"description":"One candidate that fits, with the contract it would grant.","properties":{"provider":{"type":"string"},"class":{"type":["string","null"]},"account_id":{"type":["string","null"]},"supply":{"type":"string"},"adapter_version":{"type":"string"},"gates":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/GrantedGate"}},"resources":{"type":"object","additionalProperties":true},"attested":{"type":"object","additionalProperties":true},"lifetime":{"$ref":"#/components/schemas/Lifetime"},"ranking":{"$ref":"#/components/schemas/EligibleRouteRanking"},"request_overrides":{"type":"object","required":["image"],"description":"The create request fields a caller must send for this route. Present on a\ndiscovery route that requires explicit image selection because the standard\nimage is not offered there; absent means the route needs no override. The\ncaller's other requirements do not change, and fields are never merged\nacross routes.\n","properties":{"image":{"$ref":"#/components/schemas/SandboxImageSelection","description":"The image selection the create request must send for this route."}}}}};const schema447 = {"type":"object","required":["variant","basis","granted","also","settings","unavailable"],"description":"One gate as granted to this sandbox.","properties":{"variant":{"minimum":0,"description":"Index into the declaration of route.adapter_version. Only meaningful with that version.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"basis":{"type":"string","enum":["implemented","proven"],"description":"The weakest basis among the granted values; for a gate granted with no named knob, the variant's own."},"granted":{"type":"object","additionalProperties":true,"description":"One entry per knob the request named: the granted values for a pick-one knob, the\nstring \"any\" where the request said so, the boolean for a yes/no knob, the declared\nnumber for a number knob. This is what the code may rely on.\n"},"also":{"type":"object","additionalProperties":true,"description":"The variant's other answers, including declared limits, for information. Calls that depend on them are refused."},"settings":{"type":"object","additionalProperties":true},"unavailable":{"type":["string","null"],"description":"Set when the account has since lost the gate; that gate's calls then answer gate_unavailable."}}};function validate376(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate376.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.variant === undefined) && (missing0 = "variant")) || ((data.basis === undefined) && (missing0 = "basis"))) || ((data.granted === undefined) && (missing0 = "granted"))) || ((data.also === undefined) && (missing0 = "also"))) || ((data.settings === undefined) && (missing0 = "settings"))) || ((data.unavailable === undefined) && (missing0 = "unavailable"))){validate376.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.variant !== undefined){let data0 = data.variant;const _errs1 = errors;const _errs2 = errors;const _errs3 = errors;let valid2 = false;const _errs4 = errors;if(!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))){const err0 = {instancePath:instancePath+"/variant",schemaPath:"#/properties/variant/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs4 === errors;valid2 = valid2 || _valid0;const _errs6 = errors;if(typeof data0 !== "bigint"){const err1 = {instancePath:instancePath+"/variant",schemaPath:"#/properties/variant/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs6 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/variant",schemaPath:"#/properties/variant/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate376.errors = vErrors;return false;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}var valid1 = _errs2 === errors;if(valid1){if(typeof data0 === "bigint"){if(data0 < 0){validate376.errors = [{instancePath:instancePath+"/variant",schemaPath:"#/properties/variant/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs1){if((typeof data0 == "number") && (isFinite(data0))){if(data0 < 0 || isNaN(data0)){validate376.errors = [{instancePath:instancePath+"/variant",schemaPath:"#/properties/variant/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.basis !== undefined){let data1 = data.basis;const _errs7 = errors;if(typeof data1 !== "string"){validate376.errors = [{instancePath:instancePath+"/basis",schemaPath:"#/properties/basis/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data1 === "implemented") || (data1 === "proven"))){validate376.errors = [{instancePath:instancePath+"/basis",schemaPath:"#/properties/basis/enum",keyword:"enum",params:{allowedValues: schema447.properties.basis.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.granted !== undefined){let data2 = data.granted;const _errs9 = errors;if(errors === _errs9){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){}else {validate376.errors = [{instancePath:instancePath+"/granted",schemaPath:"#/properties/granted/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.also !== undefined){let data3 = data.also;const _errs12 = errors;if(errors === _errs12){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){}else {validate376.errors = [{instancePath:instancePath+"/also",schemaPath:"#/properties/also/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs12 === errors;}else {var valid0 = true;}if(valid0){if(data.settings !== undefined){let data4 = data.settings;const _errs15 = errors;if(errors === _errs15){if(data4 && typeof data4 == "object" && !Array.isArray(data4)){}else {validate376.errors = [{instancePath:instancePath+"/settings",schemaPath:"#/properties/settings/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.unavailable !== undefined){let data5 = data.unavailable;const _errs18 = errors;if((typeof data5 !== "string") && (data5 !== null)){validate376.errors = [{instancePath:instancePath+"/unavailable",schemaPath:"#/properties/unavailable/type",keyword:"type",params:{type: schema447.properties.unavailable.type},message:"must be string,null"}];return false;}var valid0 = _errs18 === errors;}else {var valid0 = true;}}}}}}}}else {validate376.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate376.errors = vErrors;return errors === 0;}validate376.evaluated = {"props":{"variant":true,"basis":true,"granted":true,"also":true,"settings":true,"unavailable":true},"dynamicProps":false,"dynamicItems":false};const schema316 = {"type":"object","required":["seconds","remaining_seconds","ends_at","kept_until","at_end","max_seconds","extendable"],"description":"How long the sandbox may live. It counts from the provider's create, as with the\nprovider's own SDK (BoxRouter's clock starts when it sends the create). Whether paused\ntime counts depends on the provider.\n","properties":{"seconds":{"minimum":0,"description":"The lifetime in seconds. 0 only for a sandbox that has no lifetime record (one that ended before lifetimes were recorded).","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"remaining_seconds":{"minimum":0,"description":"As of observed_at. Equal to seconds while creating, and frozen while the sandbox is not running.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"ends_at":{"type":["string","null"],"format":"date-time","description":"Set only while running. The end never comes before it; how soon after is not\npromised. Null while creating, paused or ended.\n"},"kept_until":{"type":["string","null"],"format":"date-time","description":"While paused: when the sandbox is destroyed if it is not resumed, 30\ndays after it last ran, sooner where the provider keeps it for less. Where the lifetime\nkeeps counting while paused, the sandbox ends when the lifetime runs out, so\nkept_until is that moment when it falls inside the 30 days; extending the lifetime\nmoves it. Where the clock stops while paused, the full 30 days apply.\n"},"at_end":{"type":"string","enum":["destroy","pause"]},"max_seconds":{"description":"The route's longest single run, from one start to the next pause or end, as\nnarrowed for this account. A declared number: an integer, \"unlimited\", \"unknown\"\nor a floor.\n","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"}}};const formats0 = require("ajv-formats/dist/formats").fullFormats["date-time"];function validate323(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate323.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.seconds === undefined) && (missing0 = "seconds")) || ((data.remaining_seconds === undefined) && (missing0 = "remaining_seconds"))) || ((data.ends_at === undefined) && (missing0 = "ends_at"))) || ((data.kept_until === undefined) && (missing0 = "kept_until"))) || ((data.at_end === undefined) && (missing0 = "at_end"))) || ((data.max_seconds === undefined) && (missing0 = "max_seconds"))) || ((data.extendable === undefined) && (missing0 = "extendable"))){validate323.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.seconds !== undefined){let data0 = data.seconds;const _errs1 = errors;const _errs2 = errors;const _errs3 = errors;let valid2 = false;const _errs4 = errors;if(!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))){const err0 = {instancePath:instancePath+"/seconds",schemaPath:"#/properties/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 = _errs4 === errors;valid2 = valid2 || _valid0;const _errs6 = errors;if(typeof data0 !== "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 = _errs6 === 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++;validate323.errors = vErrors;return false;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}var valid1 = _errs2 === errors;if(valid1){if(typeof data0 === "bigint"){if(data0 < 0){validate323.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 === _errs1){if((typeof data0 == "number") && (isFinite(data0))){if(data0 < 0 || isNaN(data0)){validate323.errors = [{instancePath:instancePath+"/seconds",schemaPath:"#/properties/seconds/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.remaining_seconds !== undefined){let data1 = data.remaining_seconds;const _errs7 = errors;const _errs8 = errors;const _errs9 = errors;let valid4 = false;const _errs10 = errors;if(!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))){const err3 = {instancePath:instancePath+"/remaining_seconds",schemaPath:"#/properties/remaining_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 = _errs10 === errors;valid4 = valid4 || _valid1;const _errs12 = errors;if(typeof data1 !== "bigint"){const err4 = {instancePath:instancePath+"/remaining_seconds",schemaPath:"#/properties/remaining_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 = _errs12 === errors;valid4 = valid4 || _valid1;if(!valid4){const err5 = {instancePath:instancePath+"/remaining_seconds",schemaPath:"#/properties/remaining_seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate323.errors = vErrors;return false;}else {errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}}var valid3 = _errs8 === errors;if(valid3){if(typeof data1 === "bigint"){if(data1 < 0){validate323.errors = [{instancePath:instancePath+"/remaining_seconds",schemaPath:"#/properties/remaining_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 data1 == "number") && (isFinite(data1))){if(data1 < 0 || isNaN(data1)){validate323.errors = [{instancePath:instancePath+"/remaining_seconds",schemaPath:"#/properties/remaining_seconds/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.ends_at !== undefined){let data2 = data.ends_at;const _errs13 = errors;if((typeof data2 !== "string") && (data2 !== null)){validate323.errors = [{instancePath:instancePath+"/ends_at",schemaPath:"#/properties/ends_at/type",keyword:"type",params:{type: schema316.properties.ends_at.type},message:"must be string,null"}];return false;}if(errors === _errs13){if(errors === _errs13){if(typeof data2 === "string"){if(!(formats0.validate(data2))){validate323.errors = [{instancePath:instancePath+"/ends_at",schemaPath:"#/properties/ends_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.kept_until !== undefined){let data3 = data.kept_until;const _errs15 = errors;if((typeof data3 !== "string") && (data3 !== null)){validate323.errors = [{instancePath:instancePath+"/kept_until",schemaPath:"#/properties/kept_until/type",keyword:"type",params:{type: schema316.properties.kept_until.type},message:"must be string,null"}];return false;}if(errors === _errs15){if(errors === _errs15){if(typeof data3 === "string"){if(!(formats0.validate(data3))){validate323.errors = [{instancePath:instancePath+"/kept_until",schemaPath:"#/properties/kept_until/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.at_end !== undefined){let data4 = data.at_end;const _errs17 = errors;if(typeof data4 !== "string"){validate323.errors = [{instancePath:instancePath+"/at_end",schemaPath:"#/properties/at_end/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data4 === "destroy") || (data4 === "pause"))){validate323.errors = [{instancePath:instancePath+"/at_end",schemaPath:"#/properties/at_end/enum",keyword:"enum",params:{allowedValues: schema316.properties.at_end.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs17 === errors;}else {var valid0 = true;}if(valid0){if(data.max_seconds !== undefined){let data5 = data.max_seconds;const _errs19 = errors;const _errs20 = errors;let valid5 = false;const _errs21 = errors;const _errs22 = errors;const _errs23 = errors;let valid7 = false;const _errs24 = errors;if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){const err6 = {instancePath:instancePath+"/max_seconds",schemaPath:"#/properties/max_seconds/anyOf/0/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid3 = _errs24 === errors;valid7 = valid7 || _valid3;const _errs26 = errors;if(typeof data5 !== "bigint"){const err7 = {instancePath:instancePath+"/max_seconds",schemaPath:"#/properties/max_seconds/anyOf/0/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid3 = _errs26 === errors;valid7 = valid7 || _valid3;if(!valid7){const err8 = {instancePath:instancePath+"/max_seconds",schemaPath:"#/properties/max_seconds/anyOf/0/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs23;if(vErrors !== null){if(_errs23){vErrors.length = _errs23;}else {vErrors = null;}}}var valid6 = _errs22 === errors;if(valid6){if(typeof data5 === "bigint"){if(data5 < 1){const err9 = {instancePath:instancePath+"/max_seconds",schemaPath:"#/properties/max_seconds/anyOf/0/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}if(errors === _errs21){if((typeof data5 == "number") && (isFinite(data5))){if(data5 < 1 || isNaN(data5)){const err10 = {instancePath:instancePath+"/max_seconds",schemaPath:"#/properties/max_seconds/anyOf/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}var _valid2 = _errs21 === errors;valid5 = valid5 || _valid2;const _errs27 = errors;if(typeof data5 !== "string"){const err11 = {instancePath:instancePath+"/max_seconds",schemaPath:"#/properties/max_seconds/anyOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(!((data5 === "unlimited") || (data5 === "unknown"))){const err12 = {instancePath:instancePath+"/max_seconds",schemaPath:"#/properties/max_seconds/anyOf/1/enum",keyword:"enum",params:{allowedValues: schema316.properties.max_seconds.anyOf[1].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var _valid2 = _errs27 === errors;valid5 = valid5 || _valid2;const _errs29 = errors;if(errors === _errs29){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){let missing1;if((data5.at_least === undefined) && (missing1 = "at_least")){const err13 = {instancePath:instancePath+"/max_seconds",schemaPath:"#/properties/max_seconds/anyOf/2/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}else {if(data5.at_least !== undefined){let data6 = data5.at_least;const _errs31 = errors;const _errs32 = errors;const _errs33 = errors;let valid10 = false;const _errs34 = errors;if(!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))){const err14 = {instancePath:instancePath+"/max_seconds/at_least",schemaPath:"#/properties/max_seconds/anyOf/2/properties/at_least/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid4 = _errs34 === errors;valid10 = valid10 || _valid4;const _errs36 = errors;if(typeof data6 !== "bigint"){const err15 = {instancePath:instancePath+"/max_seconds/at_least",schemaPath:"#/properties/max_seconds/anyOf/2/properties/at_least/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var _valid4 = _errs36 === errors;valid10 = valid10 || _valid4;if(!valid10){const err16 = {instancePath:instancePath+"/max_seconds/at_least",schemaPath:"#/properties/max_seconds/anyOf/2/properties/at_least/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {errors = _errs33;if(vErrors !== null){if(_errs33){vErrors.length = _errs33;}else {vErrors = null;}}}var valid9 = _errs32 === errors;if(valid9){if(typeof data6 === "bigint"){if(data6 < 1){const err17 = {instancePath:instancePath+"/max_seconds/at_least",schemaPath:"#/properties/max_seconds/anyOf/2/properties/at_least/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}if(errors === _errs31){if((typeof data6 == "number") && (isFinite(data6))){if(data6 < 1 || isNaN(data6)){const err18 = {instancePath:instancePath+"/max_seconds/at_least",schemaPath:"#/properties/max_seconds/anyOf/2/properties/at_least/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}}}}}else {const err19 = {instancePath:instancePath+"/max_seconds",schemaPath:"#/properties/max_seconds/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}var _valid2 = _errs29 === errors;valid5 = valid5 || _valid2;if(_valid2){var props0 = {};props0.at_least = true;}if(!valid5){const err20 = {instancePath:instancePath+"/max_seconds",schemaPath:"#/properties/max_seconds/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;validate323.errors = vErrors;return false;}else {errors = _errs20;if(vErrors !== null){if(_errs20){vErrors.length = _errs20;}else {vErrors = null;}}}var valid0 = _errs19 === errors;}else {var valid0 = true;}if(valid0){if(data.extendable !== undefined){const _errs37 = errors;if(typeof data.extendable !== "boolean"){validate323.errors = [{instancePath:instancePath+"/extendable",schemaPath:"#/properties/extendable/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs37 === errors;}else {var valid0 = true;}}}}}}}}}else {validate323.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate323.errors = vErrors;return errors === 0;}validate323.evaluated = {"props":{"seconds":true,"remaining_seconds":true,"ends_at":true,"kept_until":true,"at_end":true,"max_seconds":true,"extendable":true},"dynamicProps":false,"dynamicItems":false};const schema549 = {"type":"object","required":["position","reason","explanation","price"],"description":"Why this route sits where it does in the order creation would try, with its hourly quote.\nIt explains the ordering of this dry run; creation re-ranks with the signals of that moment.\nAbsent on responses from a Cloud that predates it.\n","properties":{"position":{"minimum":1,"description":"Place in the order creation would try, 1 first.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"reason":{"type":"string","x-boxrouter-open-enum":true,"x-boxrouter-choices":{"lowest_price":{"label":"Lowest price","line":"Lowest hourly price of the routes ranked together."},"weighted_price":{"label":"Weighted price","line":"Automatic mode leads with a draw weighted toward lower prices, so the leader can change between creates; the routes behind it follow by price."},"lowest_time":{"label":"Lowest time","line":"Shortest run time measured on reference workloads first."},"predicted_completion":{"label":"Predicted completion","line":"Soonest predicted completion among the routes ranked together."},"predicted_ready_time":{"label":"Predicted ready time","line":"Ordered by predicted time to ready from this workspace's history."},"explicit_order":{"label":"Explicit order","line":"Placed by the provider order you set in Routing or in the request."},"after_named_providers":{"label":"After named providers","line":"Behind the providers you named in your order; the others keep BoxRouter's ranking."},"provider_key_order":{"label":"Provider key order","line":"Another key of a provider already placed; one provider's keys are tried in the order you set in Routing."},"only_eligible_route":{"label":"Only eligible route","line":"Nothing else to rank it against in its group."},"health_deprioritized":{"label":"Health deprioritized","line":"Recent failures or degraded health put it behind healthier routes."},"price_unknown":{"label":"Price unknown","line":"No price quote at this size, so routes with a quote are tried first."},"no_signals":{"label":"No signals","line":"No price or time signals exist yet, so it keeps BoxRouter's default order."}},"description":"Why the route ranks here. explicit_order is your own provider order; after_named_providers is a provider behind the ones you named; provider_key_order is\na later key of a provider already placed; price_unknown means no comparable hourly quote\nis available. New values may appear.\n"},"explanation":{"type":"string","description":"The reason in one sentence; any price mention refers to the hourly quote in price."},"price":{"type":"object","required":["usd_per_hour","kind","basis"],"description":"The hourly quote at the size this route would grant. For BYOK, kind `list_price` is the provider list price paid directly to the provider; for managed supply, kind `customer_price` is BoxRouter's customer price charged to credits. This is not a final bill or a complete-task estimate.","properties":{"usd_per_hour":{"type":["string","null"],"pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"Null when the size is unknown or the price version has no quote for it."},"kind":{"type":"string","x-boxrouter-open-enum":true,"description":"Kind of hourly quote; unknown means no quote is available."},"basis":{"type":"string","description":"The size priced and whose price it is, or why there is no price."}}}}};const pattern50 = new RegExp("^(0|[1-9][0-9]*)(\\.[0-9]+)?$", "u");function validate439(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate439.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.position === undefined) && (missing0 = "position")) || ((data.reason === undefined) && (missing0 = "reason"))) || ((data.explanation === undefined) && (missing0 = "explanation"))) || ((data.price === undefined) && (missing0 = "price"))){validate439.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.position !== undefined){let data0 = data.position;const _errs1 = errors;const _errs2 = errors;const _errs3 = errors;let valid2 = false;const _errs4 = errors;if(!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))){const err0 = {instancePath:instancePath+"/position",schemaPath:"#/properties/position/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs4 === errors;valid2 = valid2 || _valid0;const _errs6 = errors;if(typeof data0 !== "bigint"){const err1 = {instancePath:instancePath+"/position",schemaPath:"#/properties/position/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs6 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/position",schemaPath:"#/properties/position/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate439.errors = vErrors;return false;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}var valid1 = _errs2 === errors;if(valid1){if(typeof data0 === "bigint"){if(data0 < 1){validate439.errors = [{instancePath:instancePath+"/position",schemaPath:"#/properties/position/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs1){if((typeof data0 == "number") && (isFinite(data0))){if(data0 < 1 || isNaN(data0)){validate439.errors = [{instancePath:instancePath+"/position",schemaPath:"#/properties/position/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.reason !== undefined){const _errs7 = errors;if(typeof data.reason !== "string"){validate439.errors = [{instancePath:instancePath+"/reason",schemaPath:"#/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.explanation !== undefined){const _errs9 = errors;if(typeof data.explanation !== "string"){validate439.errors = [{instancePath:instancePath+"/explanation",schemaPath:"#/properties/explanation/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.price !== undefined){let data3 = data.price;const _errs11 = errors;if(errors === _errs11){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing1;if((((data3.usd_per_hour === undefined) && (missing1 = "usd_per_hour")) || ((data3.kind === undefined) && (missing1 = "kind"))) || ((data3.basis === undefined) && (missing1 = "basis"))){validate439.errors = [{instancePath:instancePath+"/price",schemaPath:"#/properties/price/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data3.usd_per_hour !== undefined){let data4 = data3.usd_per_hour;const _errs13 = errors;if((typeof data4 !== "string") && (data4 !== null)){validate439.errors = [{instancePath:instancePath+"/price/usd_per_hour",schemaPath:"#/properties/price/properties/usd_per_hour/type",keyword:"type",params:{type: schema549.properties.price.properties.usd_per_hour.type},message:"must be string,null"}];return false;}if(errors === _errs13){if(typeof data4 === "string"){if(!pattern50.test(data4)){validate439.errors = [{instancePath:instancePath+"/price/usd_per_hour",schemaPath:"#/properties/price/properties/usd_per_hour/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;}}}var valid3 = _errs13 === errors;}else {var valid3 = true;}if(valid3){if(data3.kind !== undefined){const _errs15 = errors;if(typeof data3.kind !== "string"){validate439.errors = [{instancePath:instancePath+"/price/kind",schemaPath:"#/properties/price/properties/kind/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs15 === errors;}else {var valid3 = true;}if(valid3){if(data3.basis !== undefined){const _errs17 = errors;if(typeof data3.basis !== "string"){validate439.errors = [{instancePath:instancePath+"/price/basis",schemaPath:"#/properties/price/properties/basis/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs17 === errors;}else {var valid3 = true;}}}}}else {validate439.errors = [{instancePath:instancePath+"/price",schemaPath:"#/properties/price/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs11 === errors;}else {var valid0 = true;}}}}}}else {validate439.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate439.errors = vErrors;return errors === 0;}validate439.evaluated = {"props":{"position":true,"reason":true,"explanation":true,"price":true},"dynamicProps":false,"dynamicItems":false};const schema542 = {"anyOf":[{"type":"string","const":"provider_default"},{"type":"string","minLength":1,"not":{"const":"provider_default"},"description":"OCI image reference."},{"type":"object","required":["dockerfile"],"properties":{"dockerfile":{"type":"string","minLength":1},"context_artifact_id":{"type":"string","minLength":1,"description":"Unexpired workspace-owned uploaded tar context, leased while the image builds."}}},{"$ref":"#/components/schemas/SandboxImageSelectionProviderArtifact"},{"type":"object","required":["private_oci"],"properties":{"private_oci":{"type":"string","minLength":1,"description":"OCI image reference in a registry that needs a login; send registry_credentials beside it."}}}]};const schema527 = {"type":"object","required":["provider_artifact"],"properties":{"provider_artifact":{"type":"string","minLength":1,"description":"A provider-native artifact id usable on the selected provider account."}}};const func1 = require("ajv/dist/runtime/ucs2length").default;function validate429(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate429.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(typeof data !== "string"){const err0 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if("provider_default" !== data){const err1 = {instancePath,schemaPath:"#/anyOf/0/const",keyword:"const",params:{allowedValue: "provider_default"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;const _errs3 = errors;const _errs5 = errors;const _errs6 = errors;if("provider_default" !== data){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs6 === errors;if(valid1){const err3 = {instancePath,schemaPath:"#/anyOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}if(errors === _errs3){if(typeof data === "string"){if(func1(data) < 1){const err4 = {instancePath,schemaPath:"#/anyOf/1/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}var _valid0 = _errs3 === errors;valid0 = valid0 || _valid0;const _errs7 = errors;if(errors === _errs7){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.dockerfile === undefined) && (missing0 = "dockerfile")){const err6 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data.dockerfile !== undefined){let data0 = data.dockerfile;const _errs9 = errors;if(errors === _errs9){if(typeof data0 === "string"){if(func1(data0) < 1){const err7 = {instancePath:instancePath+"/dockerfile",schemaPath:"#/anyOf/2/properties/dockerfile/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+"/dockerfile",schemaPath:"#/anyOf/2/properties/dockerfile/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var valid2 = _errs9 === errors;}else {var valid2 = true;}if(valid2){if(data.context_artifact_id !== undefined){let data1 = data.context_artifact_id;const _errs11 = errors;if(errors === _errs11){if(typeof data1 === "string"){if(func1(data1) < 1){const err9 = {instancePath:instancePath+"/context_artifact_id",schemaPath:"#/anyOf/2/properties/context_artifact_id/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+"/context_artifact_id",schemaPath:"#/anyOf/2/properties/context_artifact_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}var valid2 = _errs11 === errors;}else {var valid2 = true;}}}}else {const err11 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}var _valid0 = _errs7 === errors;valid0 = valid0 || _valid0;if(_valid0){var props0 = {};props0.dockerfile = true;props0.context_artifact_id = true;}const _errs13 = errors;const _errs14 = errors;if(errors === _errs14){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((data.provider_artifact === undefined) && (missing1 = "provider_artifact")){const err12 = {instancePath,schemaPath:"#/components/schemas/SandboxImageSelectionProviderArtifact/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}else {if(data.provider_artifact !== undefined){let data2 = data.provider_artifact;const _errs16 = errors;if(errors === _errs16){if(typeof data2 === "string"){if(func1(data2) < 1){const err13 = {instancePath:instancePath+"/provider_artifact",schemaPath:"#/components/schemas/SandboxImageSelectionProviderArtifact/properties/provider_artifact/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+"/provider_artifact",schemaPath:"#/components/schemas/SandboxImageSelectionProviderArtifact/properties/provider_artifact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}}}}else {const err15 = {instancePath,schemaPath:"#/components/schemas/SandboxImageSelectionProviderArtifact/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}var _valid0 = _errs13 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = props0 || {};props0.provider_artifact = true;}}const _errs18 = errors;if(errors === _errs18){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((data.private_oci === undefined) && (missing2 = "private_oci")){const err16 = {instancePath,schemaPath:"#/anyOf/4/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {if(data.private_oci !== undefined){let data3 = data.private_oci;const _errs20 = errors;if(errors === _errs20){if(typeof data3 === "string"){if(func1(data3) < 1){const err17 = {instancePath:instancePath+"/private_oci",schemaPath:"#/anyOf/4/properties/private_oci/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}else {const err18 = {instancePath:instancePath+"/private_oci",schemaPath:"#/anyOf/4/properties/private_oci/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}}}}else {const err19 = {instancePath,schemaPath:"#/anyOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}var _valid0 = _errs18 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = props0 || {};props0.private_oci = true;}}if(!valid0){const err20 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;validate429.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate429.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate429.evaluated = {"dynamicProps":true,"dynamicItems":false};function validate436(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate436.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.provider === undefined) && (missing0 = "provider")) || ((data.class === undefined) && (missing0 = "class"))) || ((data.account_id === undefined) && (missing0 = "account_id"))) || ((data.supply === undefined) && (missing0 = "supply"))) || ((data.adapter_version === undefined) && (missing0 = "adapter_version"))) || ((data.gates === undefined) && (missing0 = "gates"))) || ((data.resources === undefined) && (missing0 = "resources"))) || ((data.attested === undefined) && (missing0 = "attested"))) || ((data.lifetime === undefined) && (missing0 = "lifetime"))){validate436.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.provider !== undefined){const _errs1 = errors;if(typeof data.provider !== "string"){validate436.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.class !== undefined){let data1 = data.class;const _errs3 = errors;if((typeof data1 !== "string") && (data1 !== null)){validate436.errors = [{instancePath:instancePath+"/class",schemaPath:"#/properties/class/type",keyword:"type",params:{type: schema548.properties.class.type},message:"must be string,null"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.account_id !== undefined){let data2 = data.account_id;const _errs5 = errors;if((typeof data2 !== "string") && (data2 !== null)){validate436.errors = [{instancePath:instancePath+"/account_id",schemaPath:"#/properties/account_id/type",keyword:"type",params:{type: schema548.properties.account_id.type},message:"must be string,null"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.supply !== undefined){const _errs7 = errors;if(typeof data.supply !== "string"){validate436.errors = [{instancePath:instancePath+"/supply",schemaPath:"#/properties/supply/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.adapter_version !== undefined){const _errs9 = errors;if(typeof data.adapter_version !== "string"){validate436.errors = [{instancePath:instancePath+"/adapter_version",schemaPath:"#/properties/adapter_version/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.gates !== undefined){let data5 = data.gates;const _errs11 = errors;if(errors === _errs11){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){for(const key0 in data5){const _errs14 = errors;if(!(validate376(data5[key0], {instancePath:instancePath+"/gates/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data5,parentDataProperty:key0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate376.errors : vErrors.concat(validate376.errors);errors = vErrors.length;}var valid1 = _errs14 === errors;if(!valid1){break;}}}else {validate436.errors = [{instancePath:instancePath+"/gates",schemaPath:"#/properties/gates/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.resources !== undefined){let data7 = data.resources;const _errs15 = errors;if(errors === _errs15){if(data7 && typeof data7 == "object" && !Array.isArray(data7)){}else {validate436.errors = [{instancePath:instancePath+"/resources",schemaPath:"#/properties/resources/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.attested !== undefined){let data8 = data.attested;const _errs18 = errors;if(errors === _errs18){if(data8 && typeof data8 == "object" && !Array.isArray(data8)){}else {validate436.errors = [{instancePath:instancePath+"/attested",schemaPath:"#/properties/attested/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs18 === errors;}else {var valid0 = true;}if(valid0){if(data.lifetime !== undefined){const _errs21 = errors;if(!(validate323(data.lifetime, {instancePath:instancePath+"/lifetime",parentData:data,parentDataProperty:"lifetime",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate323.errors : vErrors.concat(validate323.errors);errors = vErrors.length;}var valid0 = _errs21 === errors;}else {var valid0 = true;}if(valid0){if(data.ranking !== undefined){const _errs22 = errors;if(!(validate439(data.ranking, {instancePath:instancePath+"/ranking",parentData:data,parentDataProperty:"ranking",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate439.errors : vErrors.concat(validate439.errors);errors = vErrors.length;}var valid0 = _errs22 === errors;}else {var valid0 = true;}if(valid0){if(data.request_overrides !== undefined){let data11 = data.request_overrides;const _errs23 = errors;if(errors === _errs23){if(data11 && typeof data11 == "object" && !Array.isArray(data11)){let missing1;if((data11.image === undefined) && (missing1 = "image")){validate436.errors = [{instancePath:instancePath+"/request_overrides",schemaPath:"#/properties/request_overrides/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data11.image !== undefined){if(!(validate429(data11.image, {instancePath:instancePath+"/request_overrides/image",parentData:data11,parentDataProperty:"image",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate429.errors : vErrors.concat(validate429.errors);errors = vErrors.length;}}}}else {validate436.errors = [{instancePath:instancePath+"/request_overrides",schemaPath:"#/properties/request_overrides/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs23 === errors;}else {var valid0 = true;}}}}}}}}}}}}}else {validate436.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate436.errors = vErrors;return errors === 0;}validate436.evaluated = {"props":{"provider":true,"class":true,"account_id":true,"supply":true,"adapter_version":true,"gates":true,"resources":true,"attested":true,"lifetime":true,"ranking":true,"request_overrides":true},"dynamicProps":false,"dynamicItems":false};function validate587(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate587.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.data === undefined) && (missing0 = "data")){validate587.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.data !== undefined){let data0 = data.data;const _errs1 = errors;if(errors === _errs1){if(Array.isArray(data0)){var valid1 = true;const len0 = data0.length;for(let i0=0; i0<len0; i0++){const _errs3 = errors;if(!(validate436(data0[i0], {instancePath:instancePath+"/data/" + i0,parentData:data0,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate436.errors : vErrors.concat(validate436.errors);errors = vErrors.length;}var valid1 = _errs3 === errors;if(!valid1){break;}}}else {validate587.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}}}}else {validate587.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate587.errors = vErrors;return errors === 0;}validate587.evaluated = {"props":{"data":true},"dynamicProps":false,"dynamicItems":false};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const validate0: (value: unknown) => boolean;
|